﻿/* ============================================
RIGELDECK - Global Styles (Navbar + Hero Efektleri)
============================================ */

html, body {
    min-height: 100%;
    margin: 0;
    background: #071426;
    color: #f4f8ff;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* Responsive touch targets shared by phone and tablet layouts. */
@media (max-width: 991.98px) {
    .navbar-toggler {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .footer-links a,
    .ops-pulse-action,
    .about-hero-cta a,
    .portfolio-card .link,
    .contact-form-panel .btn,
    .auth-switch a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding-block: 9px;
    }

    .footer-links a,
    .portfolio-card .link {
        padding-inline: 8px;
    }
}

/* ===== NAVBAR OPTIMIZE ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 20, 38, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(100, 136, 190, 0.15);
}

/* About page styles */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.about-hero-left h2 {
    margin: 0 0 10px 0;
    font-size: 1.28rem;
    color: #eaf6ff;
}

.about-hero-sub {
    color: rgba(234,246,255,0.9);
}

.about-hero-cta .btn-primary {
    display: inline-block;
    background: linear-gradient(180deg,#4a9eff,#1a5fb4);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 10px;
}

.about-hero-right .about-hero-stats {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.about-services ul {
    list-style: none;
    padding: 0;
}

.about-services li {
    margin: 8px 0;
}

.about-portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.portfolio-card {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: #eaf6ff;
    border: 1px solid rgba(255,255,255,0.04);
}

.navbar {
    padding: 0 !important;
    min-height: 64px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 20px;
    gap: 10px;
}

@media (max-width: 767.98px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .about-hero-left,
    .about-hero-right,
    .about-hero-right .about-hero-stats {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .about-hero-right .about-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        gap: 8px;
    }

    .about-hero-stats > div {
        min-width: 0;
        text-align: center;
    }

    .about-hero-stats small {
        overflow-wrap: anywhere;
    }

    .about-hero-cta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about-hero-cta .btn-primary,
    .about-hero-cta .btn-outline {
        width: 100%;
        margin: 0;
    }

    .about-portfolio .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
}

.nav-panel {
    min-width: 0;
}

.language-picker {
    position: relative;
    z-index: 1100;
}

.language-toggle {
    width: 32px;
    min-width: 32px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(29, 54, 91, 0.92), rgba(12, 25, 46, 0.94));
    color: #eaf6ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Language picker overrides: rectangular flags + rounded-rectangle buttons */
.language-flag-img,
.language-option-flag-img {
    width: 22px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.language-toggle:hover,
.language-toggle:focus-visible {
    border-color: rgba(125, 211, 252, 0.82);
    background: rgba(43, 103, 168, 0.32);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.language-flag {
    font-size: 0;
    line-height: 0;
    filter: none;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 174px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 12px;
    background: rgba(7, 20, 38, 0.97);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    animation: language-menu-pop 0.18s ease-out;
}

.language-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 28px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(125, 211, 252, 0.32);
    border-top: 1px solid rgba(125, 211, 252, 0.32);
    background: rgba(7, 20, 38, 0.97);
    transform: rotate(45deg);
}

@keyframes language-menu-pop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-option {
    width: 32px;
    height: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 136, 190, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: #eaf6ff;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.language-option:hover,
.language-option:focus-visible {
    border-color: rgba(125, 211, 252, 0.76);
    background: rgba(74, 158, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.language-option-flag {
    font-size: 1.45rem;
    line-height: 1;
}
.language-flag-img,
.language-option-flag-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


/* ===== AERO-OPS LOGO ===== */
.brand-lockup.aeroops-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    transition: all 0.3s ease !important;
}

    .brand-lockup.aeroops-brand:hover {
        transform: scale(1.02);
    }

    .brand-lockup.aeroops-brand img {
        display: none !important;
    }

.aeroops-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .aeroops-logo svg {
        width: 100% !important;
        height: 100% !important;
        overflow: visible;
        animation: aero-logo-bob 3s ease-in-out infinite;
        filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.3));
    }

@keyframes aero-logo-bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.brand-lockup.aeroops-brand:hover .aeroops-logo svg {
    animation: aero-logo-bounce 0.6s ease;
}

@keyframes aero-logo-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-8px) scale(1.05);
    }

    60% {
        transform: translateY(-4px) scale(1.02);
    }
}

.brand-lockup.aeroops-brand .brand-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    line-height: 1.1 !important;
}

    .brand-lockup.aeroops-brand .brand-text strong,
    .brand-lockup.aeroops-brand .brand-text small {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
    }

.title-row {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.title-aero {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    color: #e0f2fe !important;
    animation: aero-color-cycle 10s ease-in-out infinite !important;
    text-shadow: 0 2px 10px rgba(74, 158, 255, 0.3) !important;
}

.title-solutions {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    color: #7dd3fc !important;
    animation: aero-color-solutions 10s ease-in-out infinite !important;
    text-shadow: 0 2px 10px rgba(125, 211, 252, 0.3) !important;
}

@keyframes aero-color-cycle {
    0%, 100% {
        color: #e0f2fe !important;
        text-shadow: 0 2px 10px rgba(74, 158, 255, 0.4) !important;
    }

    25% {
        color: #dbeafe !important;
        text-shadow: 0 2px 10px rgba(96, 165, 250, 0.4) !important;
    }

    50% {
        color: #ede9fe !important;
        text-shadow: 0 2px 10px rgba(167, 139, 250, 0.4) !important;
    }

    75% {
        color: #ffedd5 !important;
        text-shadow: 0 2px 10px rgba(251, 146, 60, 0.4) !important;
    }
}

@keyframes aero-color-solutions {
    0%, 100% {
        color: #7dd3fc !important;
    }

    25% {
        color: #93c5fd !important;
    }

    50% {
        color: #c4b5fd !important;
    }

    75% {
        color: #fdba74 !important;
    }
}

.aeroops-subtitle {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.03em !important;
    margin-top: 1px !important;
}

.aeroops-underline {
    position: relative;
    height: 2px;
    margin-top: 3px;
    overflow: hidden;
    border-radius: 1px;
    display: block;
    width: 100%;
}

.underline-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #4a9eff, #60a5fa, #a78bfa, #fb923c, #f97316, #fb923c, #a78bfa, #4a9eff);
    background-size: 200% 100%;
    animation: aero-gradient-flow 4s linear infinite;
}

.underline-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: aero-shimmer-slide 1.5s ease-in-out infinite;
}

@keyframes aero-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes aero-shimmer-slide {
    0% {
        left: -40%;
    }

    100% {
        left: 140%;
    }
}

/* ===== NAVBAR MENÃœ - Ä°KONLU ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    flex-wrap: nowrap;
}

    .main-nav .nav-item {
        position: relative;
        min-width: 0;
    }

    .main-nav .nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 7px 10px !important;
        border-radius: 8px !important;
        color: #c8d3e8 !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        transition: all 0.25s ease !important;
        position: relative;
        overflow: hidden;
        min-width: 0;
        max-width: 142px;
        white-space: nowrap;
    }

        .main-nav .nav-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(74, 158, 255, 0.05));
            opacity: 0;
            transition: opacity 0.25s ease;
            border-radius: 8px;
        }

        .main-nav .nav-link:hover::before,
        .main-nav .nav-link.active::before {
            opacity: 1;
        }

        .main-nav .nav-link:hover,
        .main-nav .nav-link.active {
            color: #ffffff !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
        }

        .main-nav .nav-link.active {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.08)) !important;
            border: 1px solid rgba(74, 158, 255, 0.3);
        }

.nav-icon {
    flex: 0 0 auto;
    min-width: 18px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 0 4px rgba(74, 158, 255, 0.3));
}

.nav-icon-badge {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 20px;
    padding: 0 3px;
    border: 1px solid rgba(143, 215, 255, 0.28);
    border-radius: 14px;
    background: rgba(20, 38, 60, 0.74);
    color: #dff6ff;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.main-nav .nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(-5deg);
}

.nav-text {
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, #7dd3fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

@media (min-width: 992px) {
    .nav-panel {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex: 1 1 auto;
    }

    .main-nav {
        flex: 0 1 auto;
    }
}

@media (max-width: 1320px) and (min-width: 992px) {
    .nav-inner {
        padding: 0 14px;
        gap: 8px;
    }

    .main-nav {
        gap: 2px;
    }

        .main-nav .nav-link {
            gap: 5px !important;
            padding: 7px 8px !important;
            font-size: 0.78rem !important;
            max-width: 126px;
        }

    .nav-icon {
        min-width: 16px;
        font-size: 0.98rem;
    }

    .nav-icon-badge {
        min-width: 22px;
        height: 18px;
        font-size: 0.58rem;
    }

}

@media (max-width: 1120px) and (min-width: 992px) {
    .main-nav .nav-link {
        max-width: 108px;
    }

    .main-nav .nav-link .nav-icon:not(.nav-icon-badge) {
        display: none;
    }
}

/* ===== APP SHELL ===== */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #071426;
}

.app-main {
    flex: 1;
    padding-top: 64px;
}

/* ===== HERO STAGE - HAREKETLÄ° ARKA PLAN ===== */
.hero-stage {
    min-height: calc(100vh - 64px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(180deg, rgba(5, 13, 28, 0) 0%, rgba(5, 13, 28, 0) 60%, #071426 100%), url("/images/airport-hero-clean.png");
    background-repeat: no-repeat;
    background-position: center 80px;
    background-size: 110% auto;
    animation: hero-bg-move 20s ease-in-out infinite;
}

@keyframes hero-bg-move {
    0%, 100% {
        background-position: center 80px;
        background-size: 110% auto;
    }

    50% {
        background-position: center 60px;
        background-size: 115% auto;
    }
}

.hero-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(251, 146, 60, 0.06) 0%, transparent 50%);
    animation: hero-particles 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hero-particles {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-stage::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(74, 158, 255, 0.03) 60deg, transparent 120deg);
    animation: hero-light-sweep 12s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes hero-light-sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    left: 50%;
    top: clamp(100px, 10vw, 130px);
    transform: translateX(-50%);
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

    .hero-content h1 {
        margin: 0;
        color: #ffffff;
        font-weight: 900;
        letter-spacing: 0;
    }

        .hero-content h1 span,
        .hero-content h1 strong {
            display: block;
        }

        .hero-content h1 span {
            font-size: clamp(2rem, 3.2vw, 3rem);
            line-height: 1.1;
            animation: hero-text-glow 4s ease-in-out infinite;
        }

        .hero-content h1 strong {
            margin-top: 8px;
            color: #a9dfff;
            font-size: clamp(2.35rem, 4.1vw, 3.85rem);
            line-height: 1;
            animation: hero-text-glow 4s ease-in-out infinite 0.5s;
        }

@keyframes hero-text-glow {
    0%, 100% {
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72), 0 0 20px rgba(74, 158, 255, 0.1);
    }

    50% {
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72), 0 0 40px rgba(74, 158, 255, 0.3);
    }
}

.hero-content p {
    display: inline-block;
    margin: 18px auto 0;
    padding-top: 13px;
    min-width: min(560px, 90vw);
    border-top: 1px solid rgba(169, 223, 255, 0.25);
    color: #f4f8ff;
    font-size: clamp(1.05rem, 1.75vw, 1.42rem);
    font-weight: 500;
}

.ops-pulse {
    position: relative;
    z-index: 3;
    margin-top: 0;
    margin-bottom: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(169, 223, 255, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 0%, rgba(88, 166, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(5, 18, 37, 0.84), rgba(4, 11, 24, 0.72));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.ops-pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 58%);
    transform: translateX(-100%);
    animation: ops-pulse-sheen 9s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ops-pulse-sheen {
    0%, 45% {
        transform: translateX(-100%);
    }

    70%, 100% {
        transform: translateX(100%);
    }
}

.ops-pulse-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.ops-pulse-kicker,
.ops-pulse-live,
.ops-update-card span {
    color: #8fd7ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ops-pulse-header h2 {
    margin: 4px 0 0;
    color: #f7fbff;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    font-weight: 900;
}

.ops-pulse-live {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(110, 231, 168, 0.32);
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.18);
    color: #9ff5c7;
}

.ops-news-ticker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 34px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(3, 9, 20, 0.56);
}

.ops-news-ticker::before,
.ops-news-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
}

.ops-news-ticker::before {
    left: 0;
    background: linear-gradient(90deg, rgba(3, 9, 20, 0.96), transparent);
}

.ops-news-ticker::after {
    right: 0;
    background: linear-gradient(270deg, rgba(3, 9, 20, 0.96), transparent);
}

.ops-news-track {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    animation: ops-news-scroll 42s linear infinite;
    will-change: transform;
}

.ops-news-ticker:hover .ops-news-track {
    animation-play-state: paused;
}

.ops-news-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 22px;
    color: #dbeafe;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
}

.ops-news-track span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6ee7a8;
    box-shadow: 0 0 14px rgba(110, 231, 168, 0.86);
}

@keyframes ops-news-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ops-update-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ops-update-card {
    position: relative;
    min-height: 108px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(8, 18, 34, 0.68);
}

.ops-update-card::after {
    content: "";
    position: absolute;
    inset: auto 14px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--ops-card-accent, #58a6ff);
    box-shadow: 0 0 18px var(--ops-card-glow, rgba(88, 166, 255, 0.7));
}

.ops-update-card.released {
    --ops-card-accent: #6ee7a8;
    --ops-card-glow: rgba(110, 231, 168, 0.72);
}

.ops-update-card.in-progress {
    --ops-card-accent: #fbbf24;
    --ops-card-glow: rgba(251, 191, 36, 0.72);
}

.auth-gate,
.admin-empty {
    width: min(760px, calc(100% - 32px));
    margin: 64px auto;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.78);
    color: #e5edf8;
    border-radius: 8px;
}

.auth-gate-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    font-weight: 800;
}

.auth-gate h1,
.admin-users-header h1 {
    margin: 12px 0 6px;
    font-size: 1.7rem;
}

.auth-gate button,
.admin-refresh,
.admin-user-actions button,
.admin-role-chip {
    border: 0;
    border-radius: 6px;
    padding: 9px 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.admin-users-page {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 72px;
    color: #e5edf8;
}

.admin-users-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-eyebrow {
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-users-header p,
.admin-user-head p,
.admin-user-head small,
.admin-user-actions small {
    color: #9fb0c7;
    margin: 0;
}

.admin-status {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.34);
}

.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.admin-users-toolbar label {
    display: grid;
    gap: 6px;
}

.admin-users-toolbar label span {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-users-toolbar input,
.admin-users-toolbar select {
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.86);
    color: #e5edf8;
    padding: 8px 10px;
}

.admin-users-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-users-summary span {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
}

.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 14px;
}

.admin-user-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    padding: 16px;
}

.admin-user-card.is-passive {
    opacity: 0.7;
}

.admin-user-head {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
}

.admin-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f766e;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-weight: 800;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-head h2 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.admin-user-state {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-user-state.active {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.admin-user-state.passive {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.admin-user-metrics,
.admin-role-list,
.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-user-metrics span {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    padding: 7px 9px;
    color: #cbd5e1;
}

.admin-user-health {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.admin-user-health span {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 5px 8px;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-user-health span.ok {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(20, 83, 45, 0.2);
    color: #bbf7d0;
}

.admin-user-health span.watch {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(61, 45, 15, 0.2);
    color: #fde68a;
}

.admin-user-details {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.admin-user-details b {
    color: #eff6ff;
}

.admin-role-chip {
    background: rgba(30, 41, 59, 0.95);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-role-chip.assigned {
    background: #0f766e;
    color: #ecfeff;
}

.admin-user-actions {
    justify-content: space-between;
    align-items: center;
}

.admin-user-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-system-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    padding: 16px;
}

.admin-system-band.ready {
    border-color: rgba(34, 197, 94, 0.34);
}

.admin-system-band.needs-config {
    border-color: rgba(251, 191, 36, 0.42);
}

.admin-system-band span,
.admin-system-metric span,
.admin-system-panel header span {
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-system-band strong {
    display: block;
    margin-top: 4px;
    color: #eff6ff;
    font-size: 1rem;
}

.admin-system-band p {
    margin: 6px 0 0;
    color: #9fb0c7;
}

.admin-system-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-system-metric {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    padding: 14px;
}

.admin-system-metric strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 1.6rem;
    line-height: 1;
}

.admin-system-metric.needs-config {
    border-color: rgba(251, 191, 36, 0.42);
}

.admin-system-metric.watch {
    border-color: rgba(59, 130, 246, 0.34);
}

.admin-system-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: 14px;
}

.admin-system-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    padding: 16px;
}

.admin-system-panel header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-system-panel h2 {
    margin: 0;
    color: #eff6ff;
    font-size: 1rem;
}

.admin-system-table-list,
.admin-system-audit-list {
    display: grid;
    gap: 8px;
}

.admin-system-table-row,
.admin-system-audit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 6px;
    background: rgba(8, 15, 28, 0.55);
    padding: 9px 10px;
}

.admin-system-table-row span {
    color: #dbeafe;
}

.admin-system-table-row b {
    color: #cbd5e1;
}

.admin-system-table-row.missing {
    border-color: rgba(248, 113, 113, 0.38);
}

.admin-system-table-row.missing b,
.admin-system-audit-row.failed span {
    color: #fca5a5;
}

.admin-system-audit-row strong {
    display: block;
    color: #eff6ff;
    font-size: 0.86rem;
}

.admin-system-audit-row span,
.admin-system-audit-row time {
    color: #9fb0c7;
    font-size: 0.78rem;
}

.admin-system-audit-row.success {
    border-color: rgba(34, 197, 94, 0.2);
}

.admin-system-audit-row.failed {
    border-color: rgba(248, 113, 113, 0.26);
}

.admin-google-origin-panel {
    margin-bottom: 14px;
}

.admin-google-origin-panel p {
    margin: -4px 0 12px;
    color: #9fb0c7;
}

.admin-google-origin-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-google-origin-panel code,
.ops-google-guide code,
.account-google-origin-guide code {
    border: 1px solid rgba(143, 215, 255, 0.24);
    border-radius: 6px;
    background: rgba(3, 9, 20, 0.58);
    color: #dff6ff;
    padding: 6px 8px;
    font-size: 0.76rem;
}

@media (max-width: 780px) {
    .admin-users-page {
        width: min(100% - 20px, 1180px);
        margin: 24px auto 56px;
    }

    .admin-users-header,
    .admin-user-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-users-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-users-summary {
        justify-content: flex-start;
    }

    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-head {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .admin-user-state {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .admin-system-band,
    .admin-system-grid {
        grid-template-columns: 1fr;
    }
}

.wb-snapshot-panel {
    min-height: 260px;
}

.wb-snapshot-empty {
    margin: 14px 0 0;
    color: #9fb0c7;
}

.wb-snapshot-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.wb-snapshot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.7);
    color: #e5edf8;
    text-align: left;
}

.wb-snapshot-row:hover,
.wb-snapshot-row:focus-visible {
    border-color: rgba(96, 165, 250, 0.62);
}

.wb-snapshot-row span,
.wb-snapshot-row small {
    display: block;
}

.wb-snapshot-row small,
.wb-snapshot-row em {
    color: #9fb0c7;
    font-style: normal;
    font-size: 0.78rem;
}

.ops-update-card.planned {
    --ops-card-accent: #8fd7ff;
    --ops-card-glow: rgba(143, 215, 255, 0.72);
}

.ops-update-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
}

.ops-update-card p {
    margin: 8px 0 0;
    color: #afbdd0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.ops-pulse-footer {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.72), rgba(7, 14, 27, 0.72));
}

.ops-pulse-note {
    margin: 0 0 10px;
    color: #c7d9eb;
    font-size: 0.84rem;
    line-height: 1.5;
}

.ops-pulse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-pulse-action {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(143, 215, 255, 0.36);
    border-radius: 999px;
    background: rgba(20, 38, 60, 0.78);
    color: #e4f4ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ops-pulse-action:hover,
.ops-pulse-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(165, 228, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

/* ===== FEATURE CARDS (ESKÄ° HALÄ°) ===== */
.feature-card-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.feature-card {
    min-height: clamp(150px, 13vw, 198px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(143, 183, 232, 0.62);
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

    .feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(9, 25, 51, 0.92), rgba(12, 31, 61, 0.78) 52%, rgba(12, 31, 61, 0.42));
    }

    .feature-card:hover,
    .feature-card:focus-visible {
        transform: translateY(-3px);
        border-color: rgba(158, 217, 255, 0.92);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), 0 0 20px rgba(72, 167, 236, 0.28);
    }

.takeoff-card {
    position: relative;
    --phase-accent: #ffb454;
    background-image: url("/images/takeoff.png");
    background-position: 54% 52%;
}

.landing-card {
    position: relative;
    --phase-accent: #66d7ff;
    background-image: url("/images/landing.png");
    background-position: 52% 54%;
}

.takeoff-card::before,
.landing-card::before {
    background:
        linear-gradient(90deg, rgba(5, 14, 28, 0.97) 0%, rgba(7, 21, 40, 0.84) 46%, rgba(7, 21, 40, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 18, 35, 0.08) 42%, rgba(5, 13, 26, 0.72) 100%);
}

.takeoff-card::after,
.landing-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 32px;
    right: 32px;
    bottom: 15px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--phase-accent), transparent 76%);
    box-shadow: 0 0 14px var(--phase-accent);
    opacity: 0.78;
}

.balance-card {
    position: relative;
    background-image: url("/images/bco-card-weight-balance.png");
}

    .balance-card::before {
        display: none;
    }

.feature-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: inherit;
    padding: 26px 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 18px;
}

.card-icon {
    display: block;
    color: #ffffff;
    font-size: clamp(2.75rem, 4.2vw, 4rem);
    line-height: 0.9;
    transform: rotate(-12deg);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.phase-card-icon {
    width: clamp(56px, 5vw, 68px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(201, 229, 255, 0.32);
    border-radius: 16px;
    background:
        radial-gradient(circle at 28% 18%, rgba(104, 194, 255, 0.17), transparent 52%),
        linear-gradient(160deg, rgba(20, 39, 62, 0.9), rgba(7, 17, 31, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(95, 188, 255, 0.14);
    transform: none;
    text-shadow: none;
}

.takeoff-phase-icon {
    border-color: rgba(255, 180, 84, 0.54);
}

.landing-phase-icon {
    border-color: rgba(102, 215, 255, 0.54);
}

.phase-card-icon svg {
    width: 74%;
    height: 74%;
    overflow: visible;
}

.phase-card-icon .phase-runway,
.phase-card-icon .phase-route {
    fill: none;
    stroke-linecap: round;
}

.phase-card-icon .phase-runway {
    stroke: rgba(231, 242, 255, 0.42);
    stroke-width: 2.2;
    stroke-dasharray: 4 4;
}

.phase-card-icon .phase-route {
    stroke: var(--phase-accent);
    stroke-width: 2.6;
    stroke-dasharray: 2 5;
}

.phase-card-icon .phase-plane {
    fill: #f4f9ff;
    stroke: rgba(5, 14, 28, 0.42);
    stroke-width: 0.8;
    stroke-linejoin: round;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.36));
}

.feature-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.25rem, 1.65vw, 1.65rem);
    font-weight: 900;
    letter-spacing: 0;
}

.feature-card p {
    max-width: 290px;
    margin: 0;
    color: #eef6ff;
    font-size: clamp(0.96rem, 1.1vw, 1.08rem);
    line-height: 1.35;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid rgba(139, 181, 227, 0.35);
    background: rgba(8, 20, 38, 0.98);
    color: #dce9ff;
}

.footer-inner {
    min-height: 58px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1.1fr auto 1.1fr;
    align-items: center;
    gap: 28px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    font-size: 1.05rem;
}

    .footer-links a {
        color: #dce9ff;
        text-decoration: none;
    }

        .footer-links a:hover,
        .footer-links a.active {
            color: #9ed9ff;
        }

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(121, 187, 255, 0.28);
        background: rgba(16, 35, 61, 0.92);
        color: #f7fbff;
        font-size: 0.82rem;
        font-weight: 800;
        text-decoration: none;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

        .footer-social a:hover {
            transform: translateY(-1px);
            border-color: rgba(121, 187, 255, 0.55);
            background: rgba(24, 51, 86, 0.98);
            color: #ffffff;
        }

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #39b7ff, #2264b6);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: lowercase;
}

.footer-copy {
    justify-self: end;
    color: #b8c4d6;
    font-size: 0.86rem;
    white-space: nowrap;
}

.contact-experience {
    max-width: 1040px;
}

.contact-hero-line {
    margin-bottom: 18px;
}

.contact-hero-line h1 {
    margin: 4px 0 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(280px, 0.72fr);
    gap: 18px;
    align-items: stretch;
}

.contact-form-panel,
.contact-signal-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.74);
    padding: 18px;
}

.contact-form-panel .form-group + .form-group {
    margin-top: 14px;
}

.contact-form-panel label {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form-panel .form-control {
    min-height: 42px;
    margin-top: 6px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(7, 15, 28, 0.82);
    color: #eff6ff;
}

.contact-form-panel textarea.form-control {
    min-height: 148px;
}

.contact-status {
    margin-bottom: 14px;
    border: 1px solid rgba(110, 231, 168, 0.3);
    border-radius: 8px;
    background: rgba(20, 83, 45, 0.22);
    color: #d1fae5;
    padding: 10px 12px;
    font-size: 0.88rem;
}

.contact-signal-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 12%, rgba(251, 191, 36, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(8, 24, 44, 0.9), rgba(6, 16, 30, 0.86));
}

.contact-signal-panel strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.contact-signal-panel p {
    margin: 12px 0;
    color: #c7d9eb;
    line-height: 1.55;
}

.contact-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.contact-signal-grid div {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(7, 15, 28, 0.58);
    padding: 10px;
}

.contact-signal-grid b,
.contact-signal-grid small {
    display: block;
}

.contact-signal-grid b {
    color: #ffffff;
    font-size: 1rem;
}

.contact-signal-grid small {
    margin-top: 4px;
    color: #9fb0c7;
    font-size: 0.72rem;
}

/* ===== AUTH NAV + ACCOUNT ACCESS ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.nav-login-link,
.nav-register-link,
.nav-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nav-login-link {
    border: 1px solid rgba(143, 215, 255, 0.36);
    background: rgba(20, 38, 60, 0.7);
    color: #e7f6ff;
}

.nav-register-link {
    border: 1px solid rgba(110, 231, 168, 0.38);
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.42), rgba(21, 128, 61, 0.24));
    color: #f0fff7;
}

.nav-account-link {
    gap: 8px;
    max-width: 220px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    background: rgba(61, 45, 15, 0.34);
    color: #fff7dc;
    min-width: 0;
}

.nav-account-link span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-account-avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #8fd7ff, #3b82f6);
    color: #041326;
    font-size: 0.66rem;
    font-weight: 900;
}

.nav-login-link:hover,
.nav-login-link:focus-visible,
.nav-register-link:hover,
.nav-register-link:focus-visible,
.nav-account-link:hover,
.nav-account-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(232, 242, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
    outline: none;
}

@media (max-width: 1320px) and (min-width: 992px) {
    .nav-auth {
        gap: 6px;
        margin-left: 6px;
    }

    .nav-login-link,
    .nav-register-link,
    .nav-account-link {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .nav-account-link {
        max-width: 170px;
    }
}

.home-auth-band {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(110, 231, 168, 0.24);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 29, 42, 0.9), rgba(12, 22, 38, 0.82));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.home-auth-band span,
.auth-kicker,
.auth-form-head span,
.account-kicker,
.account-panel > span,
.account-empty > span {
    color: #8fd7ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-auth-band h2 {
    margin: 4px 0 6px;
    color: #ffffff;
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    font-weight: 900;
}

.home-auth-band p {
    margin: 0;
    color: #c7d9eb;
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-auth-actions {
    display: flex;
    gap: 10px;
}

.home-auth-primary,
.home-auth-secondary,
.account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.home-auth-primary,
.account-action {
    border: 1px solid rgba(125, 211, 252, 0.52);
    background: linear-gradient(180deg, rgba(56, 132, 206, 0.88), rgba(30, 81, 145, 0.88));
    color: #ffffff;
}

.home-auth-secondary,
.account-action.secondary {
    border: 1px solid rgba(110, 231, 168, 0.42);
    background: rgba(14, 92, 54, 0.42);
    color: #eafff4;
}

.home-auth-primary:hover,
.home-auth-primary:focus-visible,
.home-auth-secondary:hover,
.home-auth-secondary:focus-visible,
.account-action:hover,
.account-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(235, 248, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
    outline: none;
}

.operations-deck {
    position: relative;
    z-index: 4;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(143, 215, 255, 0.2);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.16), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(251, 191, 36, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(7, 18, 34, 0.94), rgba(11, 22, 38, 0.88));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.operations-deck-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.operations-deck-header span,
.operations-live-copy > span,
.operations-switch span,
.operations-metric span,
.operations-step span,
.contact-hero-line span,
.contact-signal-panel > span {
    color: #8fd7ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.operations-deck-header h2 {
    margin: 4px 0 6px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 900;
}

.operations-deck-header p {
    margin: 0;
    max-width: 690px;
    color: #c7d9eb;
    font-size: 0.92rem;
}

.operations-deck-route {
    min-width: 156px;
    padding: 10px 12px;
    border: 1px solid rgba(110, 231, 168, 0.26);
    border-radius: 8px;
    background: rgba(5, 24, 28, 0.68);
    text-align: right;
}

.operations-deck-route strong,
.operations-deck-route span {
    display: block;
}

.operations-deck-route strong {
    color: #e9fff7;
    font-size: 1rem;
}

.operations-deck-route span {
    margin-top: 3px;
    color: #a7f3d0;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
}

.operations-deck-grid {
    display: grid;
    grid-template-columns: 220px minmax(320px, 1.15fr) minmax(240px, 0.85fr);
    gap: 12px;
    align-items: stretch;
}

.operations-switcher {
    display: grid;
    gap: 8px;
}

.operations-switch {
    width: 100%;
    min-height: 72px;
    display: grid;
    gap: 2px;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.74);
    padding: 10px 12px;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.operations-switch strong {
    color: #eff6ff;
    font-size: 0.9rem;
}

.operations-switch small {
    color: #a8b7ca;
    font-size: 0.74rem;
}

.operations-switch.active,
.operations-switch:hover,
.operations-switch:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(110, 231, 168, 0.52);
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.48), rgba(8, 22, 38, 0.86));
    outline: none;
}

.operations-live-panel {
    min-height: 318px;
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(143, 215, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(9, 24, 44, 0.82), rgba(5, 13, 28, 0.8));
    padding: 18px;
}

.operations-radar {
    position: relative;
    aspect-ratio: 1;
    min-height: 210px;
    border-radius: 50%;
    border: 1px solid rgba(143, 215, 255, 0.2);
    background:
        radial-gradient(circle, rgba(143, 215, 255, 0.08) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(20, 184, 166, 0.16), rgba(3, 10, 22, 0.18) 68%);
    overflow: hidden;
}

.radar-ring,
.radar-sweep,
.radar-plane {
    position: absolute;
    inset: 0;
}

.radar-ring {
    margin: auto;
    border: 1px solid rgba(143, 215, 255, 0.18);
    border-radius: 50%;
}

.ring-a {
    width: 68%;
    height: 68%;
}

.ring-b {
    width: 38%;
    height: 38%;
}

.radar-sweep {
    background: conic-gradient(from 20deg, rgba(110, 231, 168, 0.36), transparent 72deg);
    animation: radar-spin 5s linear infinite;
}

.radar-plane {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 900;
    text-shadow: 0 0 18px rgba(110, 231, 168, 0.7);
}

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

.operations-live-copy h3 {
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    font-weight: 900;
}

.operations-live-copy p {
    margin: 0;
    color: #c7d9eb;
    line-height: 1.55;
}

.operations-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.operations-open-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    background: rgba(105, 73, 14, 0.42);
    color: #fff8dc;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.operations-live-actions span {
    color: #a8b7ca;
    font-size: 0.78rem;
}

.operations-metrics,
.operations-timeline {
    display: grid;
    gap: 10px;
}

.operations-metric,
.operations-step {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.74);
    padding: 12px;
}

.operations-metric strong,
.operations-step strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 1rem;
}

.operations-metric i {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #14b8a6 var(--metric-width), rgba(148, 163, 184, 0.18) var(--metric-width));
}

.operations-timeline {
    grid-column: 2 / 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operations-step {
    position: relative;
}

.operations-step::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.72);
}

.operations-step.done::after {
    background: #6ee7a8;
    box-shadow: 0 0 14px rgba(110, 231, 168, 0.72);
}

/* ===== AUTH PAGES ===== */
.auth-page,
.account-page {
    min-height: calc(100vh - 64px);
    padding: 108px 24px 56px;
    background:
        linear-gradient(180deg, rgba(5, 13, 28, 0.94), rgba(7, 20, 38, 1)),
        url("/images/airport-hero-clean.png");
    background-position: center top;
    background-size: cover;
}

.auth-shell {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 22px;
    align-items: stretch;
}

.auth-shell-register {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.08fr);
}

.auth-hero-panel,
.auth-form-panel,
.account-overview,
.account-panel,
.account-empty {
    border: 1px solid rgba(143, 215, 255, 0.22);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 21, 39, 0.92), rgba(4, 12, 26, 0.9));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-hero-panel {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    overflow: hidden;
    position: relative;
}

.auth-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(14, 165, 233, 0.22), transparent 42%),
        linear-gradient(300deg, rgba(110, 231, 168, 0.15), transparent 40%);
    pointer-events: none;
}

.auth-hero-panel > * {
    position: relative;
    z-index: 1;
}

.auth-hero-panel h1 {
    max-width: 680px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 4.1rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-hero-panel p {
    max-width: 620px;
    margin: 0;
    color: #d9e7f7;
    font-size: 1rem;
    line-height: 1.65;
}

.auth-status-strip,
.auth-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.auth-status-strip span,
.auth-benefit-list span {
    padding: 8px 10px;
    border: 1px solid rgba(143, 215, 255, 0.26);
    border-radius: 999px;
    background: rgba(3, 9, 20, 0.48);
    color: #e7f6ff;
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-form-panel {
    padding: 28px;
}

.auth-form-head {
    margin-bottom: 20px;
}

.auth-form-head h2 {
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
}

.auth-google-button,
.auth-primary-button,
.account-logout {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-google-button {
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.auth-google-slot {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-google-slot > div {
    max-width: 100%;
}

.auth-provider-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 8px;
    background: rgba(61, 45, 15, 0.26);
    color: #ffe9a8;
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-provider-note-error {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(69, 10, 10, 0.28);
    color: #fecaca;
}

.auth-google-mark {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #8fa8c7;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(148, 163, 184, 0.2);
}

.auth-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.auth-field label {
    color: #cfe3f6;
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-field-hint {
    color: #8fa8c7;
    font-size: 0.72rem;
    line-height: 1.4;
}

.auth-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 8px;
    background: rgba(3, 9, 20, 0.62);
    color: #ffffff;
    padding: 10px 12px;
    font-size: 0.96rem;
}

.auth-field input:focus {
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
    outline: none;
}

.auth-primary-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 18px;
    color: #dce9ff;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
}

.auth-primary-button {
    border: 1px solid rgba(125, 211, 252, 0.56);
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.account-logout {
    width: auto;
    min-width: 116px;
    border: 1px solid rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.28);
    color: #ffe4e6;
}

.auth-google-button:hover,
.auth-google-button:focus-visible,
.auth-primary-button:hover,
.auth-primary-button:focus-visible,
.account-logout:hover,
.account-logout:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
    outline: none;
}

.account-overview-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.account-state-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.account-state-chips span {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
}

.auth-switch {
    margin: 18px 0 0;
    color: #b8c7dc;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #9ee6ff;
    font-weight: 900;
    text-decoration: none;
}

.account-page {
    color: #eaf3ff;
}

.account-overview,
.account-grid,
.account-empty {
    max-width: 1120px;
    margin: 0 auto;
}

.account-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.account-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #8fd7ff, #3b82f6);
    color: #041326;
    font-size: 1.35rem;
    font-weight: 900;
}

.account-avatar-img {
    object-fit: cover;
    border: 2px solid rgba(143, 215, 255, 0.52);
}

.account-identity h1 {
    margin: 4px 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
}

.account-identity p {
    margin: 0;
    color: #bed0e5;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.account-panel {
    padding: 22px;
}

.account-panel dl {
    margin: 16px 0 0;
}

.account-panel dl div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.account-panel dt {
    color: #8fa8c7;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.account-panel dd {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.account-module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.account-module-list a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(143, 215, 255, 0.24);
    border-radius: 8px;
    background: rgba(20, 38, 60, 0.58);
    color: #e4f4ff;
    font-weight: 900;
    text-decoration: none;
}

.account-panel-wide {
    grid-column: 1 / -1;
}

.account-panel-wide p,
.account-empty p {
    margin: 12px 0 0;
    color: #c7d9eb;
    line-height: 1.6;
}

.account-empty {
    padding: 32px;
}

.account-empty h1 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    font-weight: 900;
}

.account-empty div {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.account-status {
    max-width: 1120px;
    margin: 14px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(110, 231, 168, 0.32);
    border-radius: 8px;
    background: rgba(14, 92, 54, 0.24);
    color: #dfffee;
    font-weight: 800;
}

.account-command-strip {
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(3, auto) repeat(2, minmax(140px, 1fr));
    gap: 10px;
    align-items: stretch;
    margin: 0 auto 16px;
}

.account-command,
.ops-dashboard-action,
.ops-dashboard-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(143, 215, 255, 0.34);
    border-radius: 8px;
    background: rgba(20, 38, 60, 0.74);
    color: #e4f4ff;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.account-command.primary,
.ops-dashboard-action.primary {
    border-color: rgba(110, 231, 168, 0.42);
    background: rgba(14, 92, 54, 0.38);
    color: #eafff4;
}

.account-command-strip > div {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px 10px;
}

.account-command-strip span,
.account-google-origin-guide strong {
    display: block;
    color: #8fd7ff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-command-strip strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.9rem;
}

.account-google-origin-guide {
    display: grid;
    gap: 9px;
    margin: 12px 0 14px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 8px;
    background: rgba(61, 45, 15, 0.18);
    padding: 12px;
}

.account-google-origin-guide p {
    margin: 0;
    color: #d5c28a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.account-google-origin-guide div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-grid-extended {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.account-form-grid label,
.account-photo-editor label {
    display: grid;
    gap: 7px;
}

.account-form-grid span,
.account-photo-editor span {
    color: #9fb6d1;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.account-form-grid input,
.account-form-grid textarea,
.account-photo-editor input,
.account-inline-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 8px;
    background: rgba(3, 9, 20, 0.56);
    color: #ffffff;
    padding: 10px 12px;
}

.account-form-grid textarea {
    min-height: 92px;
    resize: vertical;
}

.account-form-wide {
    grid-column: 1 / -1;
}

.account-photo-editor {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.account-photo-editor img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(143, 215, 255, 0.52);
}

.account-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

.account-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.account-google-link {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(110, 231, 168, 0.22);
    border-radius: 8px;
    background: rgba(14, 92, 54, 0.18);
}

.account-google-link small {
    color: #9fb1c9;
    font-weight: 800;
    text-transform: uppercase;
}

.account-google-link strong {
    color: #ffffff;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.account-list > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(20, 38, 60, 0.42);
}

.account-list strong {
    color: #ffffff;
    font-weight: 900;
}

.account-list small,
.account-muted {
    color: #9fb1c9;
}

.account-list button,
.account-table button {
    width: max-content;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(143, 215, 255, 0.34);
    border-radius: 8px;
    background: rgba(20, 38, 60, 0.72);
    color: #e7f6ff;
    font-size: 0.76rem;
    font-weight: 900;
}

.account-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    color: #dce9ff;
}

.account-table th,
.account-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
    vertical-align: top;
}

.account-table th {
    color: #8fd7ff;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-dashboard-page {
    min-height: calc(100vh - 64px);
    padding: 104px 24px 58px;
    background:
        linear-gradient(180deg, rgba(5, 13, 28, 0.94), rgba(7, 20, 38, 1)),
        url("/images/airport-hero-clean.png");
    background-position: center top;
    background-size: cover;
    color: #eaf3ff;
}

.ops-dashboard-hero,
.ops-dashboard-kpis,
.ops-dashboard-grid,
.ops-dashboard-empty {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.ops-dashboard-hero,
.ops-dashboard-panel,
.ops-dashboard-empty {
    border: 1px solid rgba(143, 215, 255, 0.22);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 21, 39, 0.92), rgba(4, 12, 26, 0.9));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ops-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
}

.ops-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.ops-dashboard-identity img,
.ops-dashboard-identity > span {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
}

.ops-dashboard-identity img {
    object-fit: cover;
    border: 2px solid rgba(143, 215, 255, 0.52);
}

.ops-dashboard-identity > span {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #8fd7ff, #3b82f6);
    color: #041326;
    font-size: 1.35rem;
    font-weight: 900;
}

.ops-dashboard-identity span,
.ops-dashboard-panel header span,
.ops-dashboard-kpis span {
    color: #8fd7ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ops-dashboard-identity h1 {
    margin: 5px 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
}

.ops-dashboard-identity p {
    margin: 0;
    color: #bed0e5;
}

.ops-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.ops-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ops-dashboard-kpis article {
    min-height: 112px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    padding: 16px;
}

.ops-dashboard-kpis article.ready {
    border-color: rgba(34, 197, 94, 0.32);
}

.ops-dashboard-kpis article.watch {
    border-color: rgba(251, 191, 36, 0.4);
}

.ops-dashboard-kpis strong {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
}

.ops-dashboard-kpis small {
    display: block;
    margin-top: 5px;
    color: #9fb0c7;
    line-height: 1.35;
}

.ops-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ops-dashboard-panel {
    padding: 18px;
}

.ops-dashboard-panel-wide {
    grid-column: 1 / -1;
}

.ops-dashboard-panel header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.ops-dashboard-panel h2,
.ops-dashboard-empty h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
}

.ops-dashboard-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ops-dashboard-modules a {
    min-height: 128px;
    display: grid;
    align-content: start;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.72);
    color: #eaf3ff;
    padding: 14px;
    text-decoration: none;
}

.ops-dashboard-modules a > span {
    width: fit-content;
    border: 1px solid rgba(143, 215, 255, 0.3);
    border-radius: 6px;
    padding: 4px 6px;
    color: #8fd7ff;
    font-size: 0.68rem;
    font-weight: 900;
}

.ops-dashboard-modules strong {
    color: #ffffff;
    font-size: 0.96rem;
}

.ops-dashboard-modules small,
.ops-dashboard-muted,
.ops-google-guide p {
    color: #9fb0c7;
    line-height: 1.45;
}

.ops-google-guide,
.ops-account-health {
    display: grid;
    gap: 10px;
}

.ops-google-guide {
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 8px;
    background: rgba(61, 45, 15, 0.18);
    padding: 14px;
}

.ops-google-guide.ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(20, 83, 45, 0.16);
}

.ops-google-guide div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-account-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-account-health div {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.72);
    padding: 12px;
}

.ops-account-health span {
    color: #8fa8c7;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-account-health strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
}

.ops-snapshot-table {
    display: grid;
    gap: 8px;
}

.ops-snapshot-table a {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.68);
    color: #dbeafe;
    padding: 10px 12px;
    text-decoration: none;
}

.ops-snapshot-table strong {
    color: #ffffff;
}

.ops-snapshot-table span,
.ops-snapshot-table time {
    color: #9fb0c7;
    font-size: 0.82rem;
}

.ops-dashboard-empty {
    padding: 32px;
}

.ops-dashboard-empty p {
    max-width: 720px;
    color: #c7d9eb;
    line-height: 1.55;
}

.ops-dashboard-empty div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 991.98px) {
    .ops-dashboard-hero,
    .ops-dashboard-panel header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-dashboard-hero-actions {
        justify-content: flex-start;
    }

    .ops-dashboard-kpis,
    .ops-dashboard-grid,
    .ops-dashboard-modules,
    .account-command-strip {
        grid-template-columns: 1fr;
    }

    .ops-account-health,
    .ops-snapshot-table a {
        grid-template-columns: 1fr;
    }

    .nav-auth {
        width: 100%;
        margin: 10px 0 0;
        padding-top: 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    .nav-login-link,
    .nav-register-link,
    .nav-account-link {
        flex: 1 1 0;
    }

    .home-auth-band,
    .operations-deck-grid,
    .operations-live-panel,
    .contact-grid,
    .auth-shell,
    .auth-shell-register,
    .account-grid,
    .account-grid-extended {
        grid-template-columns: 1fr;
    }

    .operations-timeline {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .auth-shell-register .auth-form-panel {
        order: 2;
    }

    .auth-shell-register .auth-hero-panel {
        order: 1;
    }

    .auth-hero-panel {
        min-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .auth-shell,
    .auth-shell-register {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-shell > *,
    .auth-form-panel,
    .auth-hero-panel,
    .auth-google-slot,
    .auth-field,
    .auth-field input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .auth-google-slot iframe,
    .auth-google-slot > div {
        max-width: 100% !important;
    }

    .auth-provider-note,
    .auth-hero-panel h1,
    .auth-hero-panel p {
        overflow-wrap: anywhere;
    }

    .home-auth-band,
    .account-overview {
        align-items: stretch;
    }

    .home-auth-actions,
    .operations-deck-header,
    .operations-live-actions,
    .account-overview,
    .account-identity,
    .account-empty div {
        flex-direction: column;
    }

    .operations-deck-route {
        width: 100%;
        text-align: left;
    }

    .home-auth-primary,
    .home-auth-secondary,
    .account-command,
    .ops-dashboard-action,
    .ops-dashboard-mini-action,
    .account-action,
    .account-logout,
    .admin-user-actions button {
        width: 100%;
    }

    .auth-page,
    .account-page {
        padding: 88px 14px 36px;
    }

    .auth-form-panel,
    .auth-hero-panel,
    .account-overview,
    .account-panel,
    .account-empty {
        padding: 20px;
    }

    .account-panel dl div,
    .account-module-list,
    .account-form-grid,
    .account-inline-form {
        grid-template-columns: 1fr;
    }

    .account-command-strip > div,
    .ops-dashboard-panel,
    .ops-dashboard-empty,
    .ops-dashboard-hero,
    .admin-user-card {
        padding: 16px;
    }

    .ops-dashboard-page {
        padding: 86px 14px 34px;
    }

    .ops-dashboard-identity {
        align-items: flex-start;
    }

    .ops-dashboard-identity img,
    .ops-dashboard-identity > span {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .ops-dashboard-kpis article,
    .ops-dashboard-modules a {
        min-height: unset;
    }

    .ops-dashboard-modules a,
    .account-command,
    .ops-dashboard-action,
    .ops-dashboard-mini-action,
    .admin-role-chip {
        justify-content: flex-start;
        text-align: left;
    }

    .admin-user-head {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .admin-user-avatar {
        width: 40px;
        height: 40px;
    }

    .admin-user-head h2 {
        font-size: 0.94rem;
    }

    .admin-user-metrics,
    .admin-user-health,
    .admin-role-list,
    .admin-user-actions {
        gap: 6px;
    }

    .admin-user-metrics span,
    .admin-user-health span {
        width: 100%;
    }

    .admin-google-origin-panel code,
    .ops-google-guide code,
    .account-google-origin-guide code {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* ===== CONTENT PAGES ===== */
.content-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 118px 24px 56px;
    color: #eaf3ff;
}

.narrow-page {
    max-width: 860px;
    line-height: 1.7;
}

    .narrow-page h1,
    .module-hero h1 {
        color: #ffffff;
        font-weight: 900;
        letter-spacing: 0;
    }

    .narrow-page .form-group {
        margin-top: 16px;
    }

.module-page {
    max-width: 1240px;
}

.module-hero {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(143, 183, 232, 0.38);
    border-radius: 6px;
    overflow: hidden;
    padding: 42px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

    .module-hero > div {
        max-width: 640px;
    }

.takeoff-module {
    background-image: linear-gradient(90deg, rgba(6, 17, 34, 0.92), rgba(6, 17, 34, 0.36)), url("/images/bco-card-takeoff.png");
}

.landing-module {
    background-image: linear-gradient(90deg, rgba(6, 17, 34, 0.92), rgba(6, 17, 34, 0.36)), url("/images/bco-card-landing.png");
}

.module-kicker {
    color: #9ed9ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-success {
    color: #38d67a;
    font-weight: bold;
}

.text-danger {
    color: #ff5b5b;
    font-weight: bold;
}

.cg-envelope {
    margin: auto;
    width: 400px;
    height: 200px;
}

.gauge-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(to right, red 20%, green 50%, red 80%);
    transition: width 0.5s ease-in-out;
}

.list-group-item {
    font-size: 14px;
}

.table th {
    width: 40%;
}

/* ============================================
   WEIGHT & BALANCE DASHBOARD (ESKÄ° HALÄ°)
   ============================================ */
.wb-dashboard {
    min-height: 100vh;
    padding: 92px 20px 28px;
    background: radial-gradient(circle at 30% 12%, rgba(42, 110, 176, 0.16), transparent 34%), linear-gradient(180deg, #07101f 0%, #080f1d 54%, #050a13 100%);
    color: #e9f1ff;
}

.wb-topbar,
.wb-panel,
.wb-kpi {
    border: 1px solid rgba(100, 136, 190, 0.25);
    background: linear-gradient(180deg, rgba(17, 28, 48, 0.9), rgba(9, 17, 31, 0.93));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wb-topbar {
    width: 100%;
    max-width: 1680px;
    min-height: 72px;
    margin: 0 auto 18px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    border-radius: 10px;
}

.wb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wb-brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef6ff, #9bb9dc);
    color: #0b1424;
    font-size: 1.4rem;
}

.wb-brand strong,
.wb-brand small {
    display: block;
    line-height: 1;
}

.wb-brand strong {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
}

.wb-brand small {
    margin-top: 5px;
    color: #96a8c5;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.wb-tabs,
.wb-toolbar {
    display: flex;
    align-items: center;
}

.wb-tabs {
    gap: 16px;
}

    .wb-tabs span {
        padding: 10px 16px;
        border: 1px solid transparent;
        border-radius: 6px;
        color: #c8d3e8;
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .wb-tabs .active {
        border-color: rgba(87, 201, 255, 0.6);
        background: rgba(40, 107, 156, 0.2);
        color: #ffffff;
    }

    .wb-tabs button {
        padding: 10px 16px;
        border: 1px solid transparent;
        border-radius: 6px;
        color: #c8d3e8;
        background: transparent;
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
        cursor: pointer;
    }

    .wb-tabs button.active {
        border-color: rgba(87, 201, 255, 0.6);
        background: rgba(40, 107, 156, 0.2);
        color: #ffffff;
    }

.wb-toolbar {
    justify-content: flex-end;
    gap: 12px;
    color: #dbe6f7;
}

.wb-time,
.wb-avatar {
    border: 1px solid rgba(100, 136, 190, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
}

.wb-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e4d92;
    font-weight: 900;
}

.wb-shell {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 0 24px;
}

.wb-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.wb-kpi {
    min-height: 92px;
    border-radius: 12px;
    padding: 16px 18px;
}

.kpi-label {
    display: block;
    color: #8f9db8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wb-kpi strong {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

    .wb-kpi strong small {
        color: #e1e8f5;
        font-size: 0.85rem;
    }

.wb-kpi small {
    color: #8ea0bd;
}

.wb-kpi.status strong {
    color: #39e288;
}

.wb-kpi.trim strong {
    color: #ffae3c;
}

.wb-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1.08fr) minmax(400px, 500px);
    gap: 16px;
    align-items: stretch;
}

.wb-bottom-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    gap: 16px;
}

.wb-left,
.wb-right,
.wb-center {
    display: grid;
    gap: 14px;
}

.wb-left {
    align-content: start;
}

.wb-right {
    grid-template-rows: minmax(0, auto) minmax(0, auto);
}

.wb-panel {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wb-left .wb-panel {
    padding-bottom: 8px;
}

.wb-left .wb-panel h2 {
    padding: 12px 14px;
    font-size: 0.92rem;
}

.wb-left .wb-mini-table th,
.wb-left .wb-mini-table td {
    padding: 8px 12px;
    font-size: 0.75rem;
}

.flight-card .wb-select {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
}

.info-card {
    padding-bottom: 10px;
}

.wb-info-note-wrap {
    display: grid;
    gap: 6px;
    padding: 10px 14px 12px;
}

.wb-info-note {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid rgba(125, 153, 186, 0.28);
    border-radius: 8px;
    background: rgba(10, 19, 30, 0.88);
    color: #eaf3ff;
    font-size: 0.76rem;
    line-height: 1.45;
    outline: none;
}

.wb-info-note:focus {
    border-color: rgba(123, 203, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(123, 203, 255, 0.22);
}

.wb-info-note::placeholder {
    color: rgba(167, 184, 204, 0.58);
}

.wb-info-note-wrap small {
    color: #8ea3bf;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.flight-card dl {
    padding: 0 14px;
}

.weather-line {
    padding: 12px 14px 2px;
}

.weather-card .weather-plane {
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
}

    .wb-panel h2 {
        margin: 0;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(100, 136, 190, 0.22);
        color: #ffffff;
        font-size: 0.98rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0;
    }

.wb-mini-table,
.wb-data-table {
    width: 100%;
    border-collapse: collapse;
}

    .wb-mini-table th,
    .wb-mini-table td,
    .wb-data-table th,
    .wb-data-table td {
        padding: 10px 14px;
        border-bottom: 1px solid rgba(100, 136, 190, 0.14);
        color: #cfd9eb;
        font-size: 0.78rem;
        text-align: left;
    }

    .wb-mini-table th,
    .wb-data-table th {
        color: #8d9ab4;
        font-weight: 800;
        text-transform: uppercase;
    }

    .wb-mini-table td,
    .wb-data-table td:not(:first-child) {
        text-align: right;
        color: #f0f5ff;
    }

.flight-card,
.weather-card {
    padding-bottom: 14px;
}

.flight-number {
    padding: 14px 16px 0;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
}

.flight-card p {
    margin: 3px 16px 12px;
    color: #aebbd2;
    font-size: 0.8rem;
}

.flight-card dl {
    margin: 0;
    padding: 0 16px;
}

    .flight-card dl div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(100, 136, 190, 0.14);
    }

.flight-card dt {
    color: #8d9ab4;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.flight-card dd {
    margin: 0;
    color: #dfe8f8;
    font-size: 0.78rem;
    text-align: right;
}

.weather-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 0;
}

.weather-plane {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(44, 104, 185, 0.28);
    color: #55a8ff;
    font-size: 1.7rem;
}

.weather-line strong,
.weather-line small {
    display: block;
}

.weather-line strong {
    font-size: 1.25rem;
}

.weather-line small {
    color: #91a0ba;
}

/* 3D Viewer */
.wb-aircraft-stage {
    position: relative;
    min-height: 330px;
    height: 100%;
    max-height: 360px;
    border: 1px solid rgba(100, 136, 190, 0.22);
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 28%, rgba(56, 112, 176, 0.22), transparent 42%),
        linear-gradient(180deg, #0a1425 0%, #09101d 55%, #060b15 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

    .wb-aircraft-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 48% 40%, transparent 0, transparent 55%, rgba(3, 8, 16, 0.4) 100%);
        pointer-events: none;
    }

.aircraft-hud {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aircraft-hud-top {
    top: 16px;
    left: 16px;
}

.aircraft-hud-bottom {
    left: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.aircraft-hud-title {
    color: #8f9db8;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aircraft-hud-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aircraft-hud-pill,
.aircraft-hud-text {
    padding: 7px 10px;
    border: 1px solid rgba(100, 136, 190, 0.24);
    border-radius: 6px;
    background: rgba(4, 10, 20, 0.72);
    color: #dce6f7;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.aircraft-hud-model {
    background: linear-gradient(180deg, rgba(44, 104, 185, 0.35), rgba(4, 10, 20, 0.82));
    border-color: rgba(87, 201, 255, 0.28);
}

.aircraft-hud-text {
    color: #b7c5db;
    font-weight: 700;
}

.aircraft-hud-pill.status-ok {
    color: #72f0a3;
    border-color: rgba(114, 240, 163, 0.28);
    background: rgba(12, 31, 19, 0.78);
}

.aircraft-hud-pill.status-fwd {
    color: #ffcf7a;
    border-color: rgba(255, 207, 122, 0.28);
    background: rgba(40, 24, 6, 0.78);
}

.aircraft-hud-pill.status-aft {
    color: #ff8b8b;
    border-color: rgba(255, 139, 139, 0.28);
    background: rgba(42, 10, 14, 0.78);
}

.aircraft-hud-accent {
    color: #9ae9ff;
    border-color: rgba(154, 233, 255, 0.3);
}

.aircraft-hud-limit {
    color: #ffd76a;
    border-color: rgba(255, 215, 106, 0.28);
    background: rgba(40, 31, 6, 0.76);
}

.aircraft-hud-bar {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    width: min(100%, 420px);
}

.aircraft-hud-track {
    position: relative;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 139, 139, 0.26) 0%, rgba(255, 207, 122, 0.28) 20%, rgba(114, 240, 163, 0.28) 60%, rgba(255, 207, 122, 0.28) 80%, rgba(255, 139, 139, 0.26) 100%);
    border: 1px solid rgba(152, 167, 197, 0.18);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.aircraft-hud-range {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 60%;
    width: 15%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(114, 240, 163, 0.55), rgba(114, 240, 163, 0.9));
    box-shadow: 0 0 16px rgba(114, 240, 163, 0.45);
}

.aircraft-hud-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.14), 0 0 18px currentColor;
}

.aircraft-hud-marker-label {
    position: absolute;
    top: -16px;
    transform: translateX(-50%);
    padding: 2px 5px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 10, 18, 0.88);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.aircraft-hud-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #8f9db8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.aircraft-hud-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aircraft-hud-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
}

.aircraft-hud-legend i.safe {
    background: #72f0a3;
    box-shadow: 0 0 12px rgba(114, 240, 163, 0.5);
}

.aircraft-hud-legend i.warn {
    background: #ffcf7a;
    box-shadow: 0 0 12px rgba(255, 207, 122, 0.45);
}

.aircraft-hud-marker.status-ok {
    background: #72f0a3;
    color: #72f0a3;
}

.aircraft-hud-marker.status-fwd {
    background: #ffcf7a;
    color: #ffcf7a;
}

.aircraft-hud-marker.status-aft {
    background: #ff8b8b;
    color: #ff8b8b;
}

#aircraft-3d-viewer {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 360px;
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aircraft-3d-container {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 320px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-bottom: -2px;
    padding-bottom: 0;
}

    .aircraft-3d-container:active {
        cursor: grabbing;
    }

    .aircraft-3d-container canvas {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        vertical-align: bottom;
        margin: 0;
        padding: 0;
    }

.aircraft-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #8b949e;
    z-index: 5;
    padding: 18px 20px;
    border: 1px solid rgba(100, 136, 190, 0.16);
    border-radius: 14px;
    background: rgba(5, 10, 18, 0.62);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

    .aircraft-loading span {
        font-size: 48px;
        display: block;
        margin-bottom: 12px;
        animation: float 2s ease-in-out infinite;
    }

    .aircraft-loading p {
        font-size: 14px;
        color: #c9d1d9;
        margin-bottom: 4px;
    }

    .aircraft-loading small {
        font-size: 11px;
        color: #6e7681;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.viewer-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 11px;
    color: #8b949e;
    z-index: 10;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(100, 136, 190, 0.22);
    padding-right: 8px;
}

    .panel-title-row h2 {
        border: 0;
    }

    .panel-title-row span {
        margin-right: 16px;
        color: #92a3c0;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

.wb-breakdown-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 16px 16px 16px;
    align-items: start;
}

.wb-breakdown-grid > .wb-data-table {
    display: table;
    overflow-x: visible;
    max-width: 100%;
}

.wb-donut-wrap {
    padding: 12px;
    border: 1px solid rgba(100, 136, 190, 0.18);
    border-radius: 10px;
    background: rgba(5, 12, 24, 0.35);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.wb-data-table thead th {
    padding-top: 14px;
}

.wb-data-table tr.positive td {
    color: #52e29a;
    background: rgba(39, 199, 126, 0.08);
}

.wb-donut-wrap {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: flex-start;
}

.wb-donut {
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #111c30 0 44%, transparent 45%), conic-gradient(#2f79ff 0 34%, #45d988 34% 48%, #f2cb40 48% 60%, #f26a3d 60% 86%, #814dff 86% 100%);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45), 0 0 25px rgba(47, 121, 255, 0.2);
}

    .wb-donut span,
    .wb-donut small {
        grid-area: 1 / 1;
        display: block;
    }

    .wb-donut span {
        margin-top: -12px;
        color: white;
        font-size: 1.18rem;
        font-weight: 900;
    }

    .wb-donut small {
        margin-top: 28px;
        color: #d7e2f4;
    }

.wb-legend {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .wb-legend li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        color: #cbd7eb;
        font-size: 0.8rem;
    }

    .wb-legend i {
        width: 12px;
        height: 12px;
        display: inline-block;
        margin-right: 8px;
        border-radius: 2px;
    }

    .wb-legend .green {
        background: #42d685;
    }

    .wb-legend .yellow {
        background: #e7c749;
    }

    .wb-legend .blue {
        background: #2f79ff;
    }

    .wb-legend .cyan {
        background: #3dd7d6;
    }

    .wb-legend .violet {
        background: #7b5cff;
    }

.envelope-panel {
    padding: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 20, 34, 0.98), rgba(8, 14, 26, 0.98));
}

.envelope-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(92, 184, 92, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(69, 173, 255, 0.12), transparent 28%);
    pointer-events: none;
}

.cg-chart-container {
    width: calc(100% - 24px);
    height: 320px;
    position: relative;
    overflow: hidden;
    margin: 0 12px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(6, 12, 22, 0.9), rgba(9, 16, 28, 0.98));
    border: 1px solid rgba(100, 136, 190, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .cg-chart-container svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.limit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 0;
    padding: 12px 16px 16px;
}

    .limit-grid span,
    .limit-grid strong,
    .limit-grid em {
        padding: 10px 0;
        border-bottom: 1px solid rgba(100, 136, 190, 0.14);
        font-size: 0.86rem;
    }

    .limit-grid span {
        color: #ffda80;
        font-weight: 900;
        text-transform: uppercase;
    }

    .limit-grid strong {
        color: #ffffff;
        text-align: right;
    }

    .limit-grid em {
        color: #9eb0cf;
        font-style: normal;
        text-align: right;
    }

.wb-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.load-panel {
    min-height: 184px;
    display: grid;
    grid-template-columns: 90px 1fr;
}

.load-side {
    padding: 16px;
    display: grid;
    gap: 8px;
    align-content: center;
}

    .load-side span,
    .load-side strong {
        display: block;
        border-radius: 5px;
        background: rgba(44, 104, 185, 0.18);
        padding: 7px 8px;
        color: #69aaff;
        font-size: 0.78rem;
        text-align: center;
    }

    .load-side strong {
        color: #ffffff;
    }

.load-main {
    padding: 18px 18px 16px 8px;
}

.load-head {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

    .load-head span {
        color: #f7dc70;
    }

.load-bars {
    height: 48px;
    margin: 28px 0 12px;
    display: flex;
    align-items: flex-end;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}

    .load-bars i {
        width: var(--w);
        height: calc(22px + var(--w));
        display: block;
        background: linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 25%), var(--c));
        box-shadow: 0 0 18px color-mix(in srgb, var(--c), transparent 45%);
        clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
    }

.load-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    color: #90a1bd;
    font-size: 0.72rem;
    text-align: center;
    text-transform: uppercase;
}

    .load-labels b {
        color: #ffffff;
        font-size: 0.78rem;
        text-transform: none;
    }

.trim-panel {
    min-height: 184px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr);
    align-content: start;
    gap: 14px;
}

.trim-panel .wb-donut-wrap.moved {
    align-self: stretch;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    min-width: 0;
}

.trim-panel .wb-donut-wrap.moved .wb-donut {
    width: 112px;
    height: 112px;
}

.trim-panel .wb-donut-wrap.moved .wb-donut span {
    font-size: 1rem;
}

.trim-panel .wb-donut-wrap.moved .wb-legend li {
    font-size: 0.72rem;
}

    .trim-panel strong,
    .trim-panel small {
        display: block;
    }

    .trim-panel strong {
        margin-top: 8px;
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .trim-panel small {
        margin-top: 8px;
        color: #9caccc;
    }

    .trim-panel button {
        align-self: start;
        justify-self: start;
        border: 0;
        border-radius: 7px;
        padding: 12px 22px;
        background: linear-gradient(180deg, #ff8b22, #e34c09);
        color: #ffffff;
        font-weight: 900;
        text-transform: uppercase;
    }

#weatherTemp {
    font-size: 20px;
    color: #fff;
}

#weatherDetail {
    font-size: 11px;
    color: #8b949e;
}

/* ============================================
   BLAZOR UI
   ============================================ */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    background: #fff3cd;
    color: #231f20;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        cursor: pointer;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ============================================
   WIP (Work In Progress) - Takeoff/Landing Pages
   ============================================ */

.wip-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #07101f 0%, #080f1d 54%, #050a13 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.wip-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.wip-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wip-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(100, 136, 190, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 136, 190, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    opacity: 0.5;
}

.wip-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(42, 110, 176, 0.1) 0%, transparent 70%);
}

.wip-aircraft-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: wip-float 3s ease-in-out infinite;
}

@keyframes wip-float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.wip-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.wip-spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid transparent;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: wip-spin 1.5s linear infinite;
}

.wip-spinner-ring-delayed {
    animation-delay: -0.75s;
    border-top-color: transparent;
    border-right-color: #4a9eff;
    opacity: 0.6;
}

@keyframes wip-spin {
    to {
        transform: rotate(360deg);
    }
}

.wip-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wip-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: #4a9eff;
    margin: 10px 0 40px;
    letter-spacing: 0.1em;
}

.wip-info-box {
    background: linear-gradient(180deg, rgba(17, 28, 48, 0.95), rgba(9, 17, 31, 0.98));
    border: 1px solid rgba(100, 136, 190, 0.3);
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

    .wip-info-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #4a9eff, #ff8c00, #4a9eff);
        background-size: 200% 100%;
        animation: wip-gradient-shift 3s ease infinite;
    }

@keyframes wip-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.wip-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wip-pulse {
    width: 12px;
    height: 12px;
    background: #ff8c00;
    border-radius: 50%;
    position: relative;
    animation: wip-pulse 2s ease-in-out infinite;
}

@keyframes wip-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
}

.wip-status-text {
    color: #ff8c00;
    font-size: 1.1rem;
    font-weight: 700;
}

.wip-en-text {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 8px 0 20px;
}

.wip-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(100, 136, 190, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.wip-progress-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #4a9eff, #ff8c00);
    border-radius: 3px;
    animation: wip-progress 2s ease-in-out infinite;
    position: relative;
}

    .wip-progress-fill::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
        animation: wip-shimmer 1.5s ease-in-out infinite;
    }

@keyframes wip-progress {
    0%, 100% {
        width: 65%;
    }

    50% {
        width: 75%;
    }
}

@keyframes wip-shimmer {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

.wip-estimate {
    color: #6e7681;
    font-size: 0.85rem;
    font-style: italic;
}

.wip-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.wip-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(17, 28, 48, 0.6);
    border: 1px solid rgba(100, 136, 190, 0.2);
    border-radius: 8px;
    color: #c8d3e8;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .wip-detail-item:hover {
        background: rgba(17, 28, 48, 0.9);
        border-color: rgba(74, 158, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

.wip-detail-icon {
    font-size: 1.4rem;
}

.wip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(100, 136, 190, 0.2);
    color: #4a6a8c;
    font-size: 0.85rem;
    font-weight: 600;
}

.landing-theme .wip-subtitle {
    color: #ff8c00;
}

.landing-theme .wip-spinner-ring {
    border-top-color: #ff8c00;
}

.landing-theme .wip-spinner-ring-delayed {
    border-right-color: #ff8c00;
}

.landing-theme .wip-pulse {
    background: #ff6b6b;
    animation: wip-pulse-landing 2s ease-in-out infinite;
}

@keyframes wip-pulse-landing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

.landing-theme .wip-status-text {
    color: #ff8c00;
}

.landing-theme .wip-progress-fill {
    background: linear-gradient(90deg, #ff8c00, #ff6b6b);
}

.wip-runway-lights {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.wip-light {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
    animation: wip-light-blink 1s ease-in-out infinite alternate;
}

@keyframes wip-light-blink {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .navbar {
        min-height: 56px;
    }

    .app-main {
        padding-top: 56px;
    }

    .hero-stage {
        min-height: calc(100vh - 56px);
    }

    .aeroops-logo {
        width: 44px;
        height: 44px;
    }

    .title-aero, .title-solutions {
        font-size: 1.15rem !important;
    }

    .aeroops-subtitle {
        font-size: 0.68rem !important;
    }

    .main-nav {
        gap: 2px;
    }

        .main-nav .nav-link {
            padding: 6px 12px !important;
            font-size: 0.85rem !important;
        }

    .nav-icon {
        font-size: 1rem;
    }

    .feature-card-row {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto 22px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 14px;
        padding: 18px 20px;
    }

    .wb-grid {
        grid-template-columns: 1fr;
    }

    .wb-right {
        grid-template-rows: auto;
    }

    .wb-bottom-grid {
        grid-template-columns: 1fr;
    }

    .wb-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .load-panel {
        grid-template-columns: 1fr;
    }

    .trim-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .nav-inner {
        padding: 0 12px;
    }

    .aeroops-logo {
        width: 40px;
        height: 40px;
    }

    .title-aero, .title-solutions {
        font-size: 1.05rem !important;
    }

    .aeroops-subtitle {
        font-size: 0.62rem !important;
    }

    .aeroops-underline {
        display: none;
    }

    .main-nav .nav-link {
        gap: 6px !important;
        padding: 8px 14px !important;
    }

    .nav-text {
        font-size: 0.8rem;
    }

    .hero-stage {
        background-size: auto 520px;
        padding-top: 72px;
    }

    .hero-content {
        top: 96px;
    }

    .feature-card-row {
        margin-top: 420px;
    }

    .wb-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .limit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wb-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 575.98px) {
    .brand-lockup.aeroops-brand {
        gap: 8px !important;
    }

    .aeroops-logo {
        width: 36px;
        height: 36px;
    }

    .title-row {
        flex-direction: column;
        gap: 0;
        line-height: 1;
    }

    .title-aero, .title-solutions {
        font-size: 0.95rem !important;
    }

    .hero-content {
        top: 80px;
        padding: 0 18px;
    }

        .hero-content p {
            min-width: 0;
            width: 100%;
            font-size: 1rem;
        }

    .feature-card-row {
        gap: 14px;
        margin-top: 360px;
    }

    .feature-card {
        min-height: 150px;
    }

    .feature-card-content {
        padding: 22px;
        grid-template-columns: auto 1fr;
        gap: 14px;
    }

    .wb-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .wb-aircraft-stage {
        min-height: 250px;
        max-height: 300px;
    }

    #aircraft-3d-viewer, .aircraft-3d-container {
        min-height: 250px;
        max-height: 300px;
    }
}

/* ===== HOME PAGE LAYOUT FIX ===== */
.app-main {
    padding-top: 64px;
}

.hero-stage {
    min-height: calc(100svh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(18px, 2.4vw, 28px);
    overflow: visible;
    padding: 0 0 clamp(26px, 4vw, 42px);
    background: #071426;
    animation: none;
}

.hero-stage::before,
.hero-stage::after {
    display: none;
}

.hero-visual {
    position: relative;
    min-height: clamp(360px, 47vw, 680px);
    display: grid;
    place-items: start center;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(5, 13, 28, 0.08) 0%, rgba(5, 13, 28, 0.12) 58%, #071426 100%),
        url("/images/airport-hero-clean.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 26%, rgba(74, 158, 255, 0.14), transparent 42%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    left: auto;
    top: auto;
    width: min(980px, calc(100% - 32px));
    margin: clamp(62px, 8vw, 106px) auto 0;
    padding: 0;
    transform: none;
}

.hero-content p {
    min-width: 0;
    max-width: min(720px, 100%);
    width: fit-content;
}

.hero-slogan-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    padding: 10px 18px;
    border: 1px solid rgba(169, 223, 255, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(9, 22, 43, 0.78), rgba(8, 18, 33, 0.9)),
        radial-gradient(circle at top, rgba(89, 179, 255, 0.16), transparent 58%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.hero-slogan-ribbon span {
    color: #d8ebff;
    font-size: clamp(0.82rem, 1.1vw, 0.96rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-brand-copy {
    margin-top: 16px;
}

.feature-card-row {
    position: relative;
    z-index: 4;
    width: min(100% - 32px, 1320px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    margin: 0 auto;
}

.feature-card {
    min-width: 0;
    min-height: clamp(150px, 13vw, 198px);
}

.balance-card::before {
    display: block;
    background: linear-gradient(90deg, rgba(9, 25, 51, 0.88), rgba(12, 31, 61, 0.62) 54%, rgba(12, 31, 61, 0.26));
}

.balance-card .feature-card-content {
    color: #fff;
}

.ops-pulse {
    width: min(100% - 32px, 1320px);
}

@media (max-width: 991.98px) {
    .app-main {
        padding-top: 56px;
    }

    .hero-stage {
        min-height: auto;
        padding-bottom: 28px;
    }

    .hero-visual {
        min-height: clamp(320px, 58vw, 520px);
        background-position: center top;
    }

    .feature-card-row {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .ops-pulse {
        max-width: 640px;
        margin-top: 0;
        margin-inline: auto;
    }

    .ops-pulse-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ops-update-grid {
        grid-template-columns: 1fr;
    }

    .hero-slogan-ribbon {
        max-width: min(100%, 560px);
        padding-inline: 14px;
    }

    .hero-slogan-ribbon span {
        white-space: normal;
        line-height: 1.35;
    }
}

/* WB Envelope Professional Refinement */
.envelope-panel-pro {
    position: relative;
    border: 1px solid rgba(110, 184, 255, 0.22);
    border-radius: 14px;
    background:
        radial-gradient(120% 90% at 10% 10%, rgba(116, 213, 255, 0.11), transparent 55%),
        radial-gradient(120% 90% at 90% 0%, rgba(255, 225, 112, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.98) 0%, rgba(4, 10, 18, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 36px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.envelope-panel-pro::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 22%, transparent 44%);
}

.envelope-panel-pro .cg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 8px;
}

.envelope-panel-pro .cg-header h2 {
    margin: 0;
}

.envelope-panel-pro .cg-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.envelope-panel-pro .wb-mini-btn {
    border: 1px solid rgba(137, 210, 255, 0.45);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 49, 72, 0.85), rgba(15, 28, 45, 0.85));
    color: #e9f7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease;
}

.envelope-panel-pro .wb-mini-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(157, 224, 255, 0.75);
}

.envelope-panel-pro .wb-hint {
    color: #9db5cc;
    font-size: 0.7rem;
}

.envelope-panel-pro .cg-summary-stats,
.envelope-panel-pro .cg-point-summary {
    padding-inline: 14px;
}

.envelope-panel-pro .cg-summary-stats {
    padding-top: 2px;
    padding-bottom: 8px;
}

.envelope-panel-pro .cg-summary-stats div,
.envelope-panel-pro .cg-point-summary div {
    border-radius: 10px;
    border: 1px solid rgba(153, 193, 230, 0.2);
    background: linear-gradient(180deg, rgba(18, 31, 48, 0.74), rgba(10, 22, 37, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.envelope-panel-pro .cg-point-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 14px;
}

.envelope-panel-pro .cg-point-summary span {
    display: block;
    color: #9db3c7;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.envelope-panel-pro .cg-point-summary strong {
    color: #e8f3ff;
    font-size: 0.83rem;
}

.envelope-panel-pro .cg-chart-container {
    margin: 0 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(127, 177, 220, 0.24);
    background:
        radial-gradient(95% 80% at 50% 10%, rgba(122, 209, 255, 0.1), transparent 62%),
        linear-gradient(180deg, #07111d 0%, #040c17 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 -28px 50px rgba(0, 0, 0, 0.4);
}

.envelope-panel-pro .cg-chart-container svg {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
    .envelope-panel-pro .cg-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .envelope-panel-pro .cg-point-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-stage {
        gap: 16px;
    }

    .hero-visual {
        min-height: clamp(300px, 72vw, 430px);
        background-size: auto 100%;
        background-position: center top;
    }

    .hero-content {
        width: min(100% - 28px, 620px);
        margin-top: clamp(44px, 11vw, 78px);
    }

    .hero-content h1 span {
        font-size: clamp(1.62rem, 7vw, 2.2rem);
    }

    .hero-content h1 strong {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .feature-card-row {
        width: min(100% - 24px, 620px);
        margin-top: 0;
    }

    .ops-pulse {
        width: min(100% - 24px, 620px);
        margin-top: 0;
        padding: 14px;
    }

    .ops-news-track {
        animation-duration: 34s;
    }

    .ops-news-ticker::before,
    .ops-news-ticker::after {
        width: 42px;
    }
}

@media (max-width: 575.98px) {
    .hero-visual {
        min-height: 330px;
    }

    .hero-content {
        margin-top: 42px;
        padding: 0;
    }

    .hero-content p {
        width: 100%;
        font-size: 0.98rem;
    }

    .feature-card-row {
        gap: 12px;
        margin-top: 0;
    }

    .feature-card {
        min-height: 136px;
    }

    .feature-card-content {
        padding: 20px;
    }
}

/* ===== WEIGHT & BALANCE LAYOUT FIXES ===== */
.wb-dashboard {
    overflow-x: hidden;
}

.wb-topbar,
.wb-grid,
.wb-bottom-grid,
.wb-breakdown-grid {
    min-width: 0;
}

.wb-topbar {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
}

.wb-tabs {
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 8px;
}

.wb-toolbar {
    min-width: max-content;
    flex-wrap: nowrap;
}

.wb-time {
    min-width: 104px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wb-grid {
    grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr) minmax(360px, 0.9fr);
}

.wb-center,
.wb-right,
.wb-panel,
.wb-table-panel,
.wb-breakdown-grid {
    min-width: 0;
}

.wb-aircraft-stage,
#aircraft-3d-viewer,
.aircraft-3d-container {
    height: clamp(300px, 28vw, 420px);
    min-height: 300px;
    max-height: 420px;
}

.aircraft-3d-container {
    margin-bottom: 0;
}

.wb-breakdown-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
}

.wb-table-panel {
    overflow: hidden;
    border-radius: 12px;
}

.wb-table-panel .wb-data-table {
    table-layout: fixed;
    min-width: 0;
    width: 100%;
}

.wb-table-panel .wb-data-table th,
.wb-table-panel .wb-data-table td {
    overflow-wrap: anywhere;
    padding-inline: 10px;
    white-space: nowrap;
}

.wb-table-panel input,
.flight-card select,
.flight-card input {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.wb-table-panel input[type="number"],
.wb-edit-field {
    width: 100%;
    min-width: 0;
    max-width: 112px;
    padding: 6px 8px;
    border: 1px solid rgba(100, 136, 190, 0.28);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #f0f5ff;
    font: inherit;
    text-align: right;
}

.wb-edit-field {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-height: 32px;
    cursor: pointer;
    appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wb-edit-field.alpha {
    width: auto;
    min-width: 106px;
    text-align: left;
    justify-content: center;
}

.wb-edit-field small {
    color: #8ea0bd;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wb-edit-field:hover,
.wb-edit-field:focus-visible {
    border-color: rgba(87, 201, 255, 0.8);
    background: rgba(77, 163, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.13), 0 0 18px rgba(77, 163, 255, 0.18);
    color: #ffffff;
    outline: none;
}

.wb-edit-field:active {
    transform: translateY(1px);
}

.wb-table-panel .wb-data-table th:first-child,
.wb-table-panel .wb-data-table td:first-child {
    width: 34%;
    min-width: 0;
    white-space: normal;
}

.wb-table-panel .wb-data-table th:nth-child(2),
.wb-table-panel .wb-data-table td:nth-child(2),
.wb-table-panel .wb-data-table th:nth-child(3),
.wb-table-panel .wb-data-table td:nth-child(3) {
    width: 22%;
}

.wb-table-panel .wb-data-table th:nth-child(4),
.wb-table-panel .wb-data-table td:nth-child(4) {
    width: 22%;
}

.wb-table-panel .wb-data-table th,
.wb-table-panel .wb-data-table td {
    padding-top: 7px;
    padding-bottom: 7px;
}

.wb-table-panel .wb-data-table tbody tr {
    height: 30px;
}

.wb-table-panel .wb-readonly-value {
    min-width: 0;
    font-size: 0.76rem;
}

.wb-table-panel .wb-data-table td small {
    font-size: 0.64rem;
    color: #95a6bf;
}

.wb-table-panel > .panel-title-row {
    min-height: 30px;
    padding: 0 12px 4px;
}

.wb-table-panel > .panel-title-row h2 {
    font-size: 0.76rem;
    letter-spacing: 0.07em;
}

.wb-table-panel > .panel-title-row span {
    font-size: 0.68rem;
}

.hold-panel-header {
    margin-top: 18px;
    margin-bottom: 8px;
}

.hold-table {
    margin-top: 10px;
}

.hold-table td {
    vertical-align: middle;
}

.hold-meta {
    margin-top: 4px;
    color: #8b949e;
    font-size: 0.78rem;
    font-weight: 600;
}

.hold-edit {
    min-height: 40px;
    max-width: none;
    padding: 8px 10px;
    border-radius: 5px;
}

.hold-edit small {
    color: #7fd1ff;
}

.hold-summary-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(100, 136, 190, 0.16);
    border-radius: 8px;
    background: rgba(5, 12, 24, 0.38);
    color: #c9d1d9;
    font-weight: 600;
}

.hold-summary-inline strong {
    color: #ffffff;
}

.wb-passenger-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.wb-passenger-summary-card {
    border: 1px solid rgba(100, 136, 190, 0.16);
    border-radius: 8px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(11, 18, 31, 0.96), rgba(7, 12, 22, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wb-passenger-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: #8fa1b3;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wb-passenger-summary-card strong,
.wb-passenger-summary-card button {
    color: #f4f8fb;
}

.wb-passenger-summary-card .wb-select {
    width: 100%;
    justify-content: space-between;
}

.wb-subsection-title {
    margin: 18px 0 10px;
    color: #cfe6ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.passenger-table td button {
    width: 100%;
    justify-content: center;
}

.wb-readonly-value {
    display: inline-block;
    min-width: 74px;
    color: #f4f8fb;
    font-weight: 700;
}

.loadsheet-route {
    min-height: 100vh;
    padding: 14px;
    background: radial-gradient(circle at 30% 12%, rgba(42, 110, 176, 0.16), transparent 34%), linear-gradient(180deg, #07101f 0%, #080f1d 54%, #050a13 100%);
}

.loadsheet-embedded {
    min-height: 0;
    padding: 0 0 24px;
    background: transparent;
}

.loadsheet-route .wb-topbar {
    width: min(100%, 1540px);
    margin: 0 auto 14px;
}

.loadsheet-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 136, 190, 0.16);
}

.loadsheet-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loadsheet-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #16324d, #0c1827);
    color: #fff;
    font-weight: 900;
}

.loadsheet-brand strong,
.loadsheet-brand small {
    display: block;
}

.loadsheet-brand strong {
    font-size: 1.05rem;
}

.loadsheet-meta {
    display: grid;
    gap: 4px;
    text-align: right;
    color: #9aacbf;
    font-size: 0.82rem;
}

.loadsheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.loadsheet-card {
    padding: 14px;
    border: 1px solid rgba(100, 136, 190, 0.16);
    border-radius: 10px;
    background: rgba(9, 16, 28, 0.9);
}

.loadsheet-card.full {
    grid-column: 1 / -1;
}

.loadsheet-card h3 {
    margin: 0 0 12px;
    color: #cfe6ff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92rem;
}

.loadsheet-card dl {
    display: grid;
    gap: 10px;
}

.loadsheet-card dl div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

.loadsheet-card dt {
    color: #8fa1b3;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.loadsheet-card dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.loadsheet-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loadsheet-strip span {
    padding: 10px 12px;
    border: 1px solid rgba(100, 136, 190, 0.16);
    border-radius: 8px;
    background: rgba(5, 12, 24, 0.45);
    color: #c9d1d9;
}

.loadsheet-strip strong {
    margin-left: 6px;
    color: #fff;
}

.wb-loadsheet-page {
    margin-top: 12px;
    padding: 18px 0 28px;
    /* use site background instead of plain white to blend with app theme */
    background: transparent;
    color: #f4f8ff;
    border-radius: 2px;
    overflow: hidden;
    font-family: "Courier New", Courier, monospace;
}

.loadsheet-paper {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: 16px 24px 24px;
    /* darker translucent paper to match site background */
    background: linear-gradient(180deg, rgba(7,20,38,0.85), rgba(7,20,38,0.75));
    color: #f4f8ff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.loadsheet-embedded .loadsheet-paper {
    width: min(100%, 1540px);
    margin: 0 auto;
    box-shadow: 0 18px 44px rgba(12, 20, 36, 0.22);
}

.loadsheet-top,
.loadsheet-meta-grid,
.loadsheet-weight-table,
.loadsheet-balance,
.loadsheet-footer {
    font-family: "Courier New", Courier, monospace;
}

.loadsheet-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.loadsheet-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.loadsheet-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d91d1d, #ff6b6b);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.9rem;
}

.loadsheet-airline {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: rgba(226, 239, 255, 0.95);
}

.loadsheet-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(244, 248, 255, 0.88);
    letter-spacing: 0.18em;
}

.loadsheet-date-block {
    text-align: right;
    font-size: 0.86rem;
    color: rgba(244, 248, 255, 0.82);
}

.loadsheet-meta-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 0.8rem;
    margin-bottom: 14px;
    align-items: end;
}

.loadsheet-meta-grid span,
.loadsheet-weight-table span,
.loadsheet-balance-title {
    color: rgba(224,232,240,0.88);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loadsheet-meta-grid strong,
.loadsheet-weight-table strong,
.loadsheet-balance-line strong {
    color: rgba(255,255,255,0.98);
    font-weight: 700;
}

.loadsheet-section {
    margin: 18px 0;
}

.loadsheet-heading-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: rgba(244,248,255,0.9);
    letter-spacing: 0.18em;
}

.loadsheet-lines > div,
.loadsheet-weight-table > div {
    display: grid;
    grid-template-columns: 300px 120px 1fr;
    gap: 10px;
    padding: 2px 0;
    font-size: 0.82rem;
    line-height: 1.2;
}

.loadsheet-lines > div strong,
.loadsheet-weight-table > div strong {
    font-size: 0.98rem;
}

.loadsheet-lines em,
.loadsheet-weight-table em {
    font-style: normal;
    /* lighter emphasis color for readability on dark background */
    color: rgba(236,241,247,0.86);
}

.loadsheet-weight-table {
    margin-top: 10px;
}

.loadsheet-divider {
    margin: 14px 0;
    /* subtle light divider to match dark paper */
    border-top: 2px solid rgba(255,255,255,0.06);
}

.loadsheet-balance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 12px;
}

.loadsheet-balance-title {
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.loadsheet-balance-line {
    display: flex;
    gap: 16px;
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.loadsheet-balance-right pre,
.loadsheet-mono {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: pre-wrap;
    /* make monospace blocks readable on dark background */
    color: rgba(236,241,247,0.88);
}

.loadsheet-footer {
    margin-top: 18px;
    font-size: 0.74rem;
    /* footer text lighter for contrast */
    color: rgba(236,241,247,0.82);
    display: grid;
    gap: 4px;
}

.wb-donut-wrap:not(.moved) {
    justify-self: center;
    width: min(100%, 300px);
    grid-template-columns: minmax(108px, 138px) minmax(0, 1fr);
}

.wb-donut {
    width: clamp(108px, 10vw, 138px);
    height: clamp(108px, 10vw, 138px);
}

.wb-donut span {
    font-size: clamp(0.9rem, 1.05vw, 1.18rem);
}

.wb-legend li {
    min-width: 0;
}

.wb-legend li strong {
    flex: 0 0 auto;
}

.envelope-panel {
    min-height: auto;
}

.cg-chart-container {
    height: auto;
    aspect-ratio: 520 / 340;
    max-width: 100%;
    overflow: hidden;
}

.cg-chart-container svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.load-bars {
    min-height: 58px;
    height: 58px;
    gap: 0;
}

.load-bars i {
    flex: 0 0 var(--w);
    width: var(--w);
    height: var(--h);
    min-width: 8px;
    display: block;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 25%), var(--c));
    box-shadow: 0 0 18px color-mix(in srgb, var(--c), transparent 45%);
    clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
}

.load-main {
    min-width: 0;
}

    .load-labels {
        grid-template-columns: repeat(5, minmax(90px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

/* ============================================
   WEIGHT & BALANCE DATA ENTRY PAD
   ============================================ */
.wb-entry-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(2, 8, 18, 0.68);
    backdrop-filter: blur(12px);
}

.wb-entry-pad {
    width: min(100%, 560px);
    border: 1px solid rgba(122, 184, 255, 0.34);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 30, 52, 0.98), rgba(7, 14, 27, 0.99));
    color: #eef6ff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.wb-entry-pad header,
.wb-entry-pad footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.wb-entry-pad header {
    border-bottom: 1px solid rgba(100, 136, 190, 0.2);
}

.wb-entry-pad header span {
    color: #82cfff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.wb-entry-pad h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0;
}

.wb-entry-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(100, 136, 190, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbe8fb;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
}

.wb-entry-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(87, 201, 255, 0.36);
    border-radius: 8px;
    background: rgba(5, 12, 24, 0.78);
    box-shadow: inset 0 0 18px rgba(36, 144, 255, 0.08);
}

.wb-entry-display input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.wb-entry-display span {
    color: #9bb0cf;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wb-keyboard {
    padding: 0 16px 16px;
}

.wb-keyboard.numeric {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wb-keyboard.alpha {
    display: grid;
    gap: 9px;
}

.wb-key-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wb-keyboard button,
.wb-entry-pad footer button {
    min-height: 48px;
    border: 1px solid rgba(100, 136, 190, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(36, 57, 92, 0.92), rgba(19, 34, 60, 0.96));
    color: #edf6ff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.wb-keyboard.numeric button {
    font-size: 1.2rem;
}

.wb-keyboard.alpha button {
    flex: 1 1 0;
    max-width: 48px;
}

.wb-key-row.actions button {
    max-width: none;
}

.wb-key-row.actions .wide {
    flex: 3;
}

.wb-keyboard button:hover,
.wb-keyboard button:focus-visible,
.wb-entry-pad footer button:hover,
.wb-entry-pad footer button:focus-visible,
.wb-entry-icon:hover,
.wb-entry-icon:focus-visible {
    border-color: rgba(87, 201, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(87, 201, 255, 0.12);
    outline: none;
}

.wb-keyboard button:active,
.wb-entry-pad footer button:active,
.wb-entry-icon:active {
    transform: translateY(1px);
}

.wb-entry-pad footer {
    border-top: 1px solid rgba(100, 136, 190, 0.2);
}

.wb-entry-pad footer button {
    flex: 1;
    min-height: 44px;
}

.wb-entry-pad footer .ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #c8d5ea;
}

.wb-entry-pad footer .primary {
    border-color: rgba(68, 213, 139, 0.52);
    background: linear-gradient(180deg, #39c978, #1f8f57);
    color: #03140c;
}

@media (max-width: 1199.98px) {
    .wb-topbar {
        grid-template-columns: 1fr auto;
    }

    .wb-tabs {
        grid-column: 1 / -1;
        order: 3;
    }

    .wb-grid,
    .wb-bottom-grid {
        grid-template-columns: 1fr;
    }

    .wb-left,
    .wb-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .envelope-panel,
    .limits-panel {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .wb-dashboard {
        padding-inline: 12px;
    }

    .wb-topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }

    .wb-toolbar {
        justify-content: space-between;
        min-width: 0;
    }

    .wb-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .wb-left,
    .wb-right,
    .wb-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .wb-aircraft-stage,
    #aircraft-3d-viewer,
    .aircraft-3d-container {
        height: 300px;
    }

    .wb-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cg-chart-container {
        min-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .wb-kpis {
        grid-template-columns: 1fr;
    }

    .wb-table-panel {
        overflow-x: auto;
    }

    .wb-table-panel .wb-data-table {
        min-width: 640px;
    }

    .limit-grid {
        grid-template-columns: 1fr;
    }

    .limit-grid strong,
    .limit-grid em {
        text-align: left;
    }
}

/* ============================================
WB-SELECT (Departure/Arrival List Button Styling)
============================================ */
.wb-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(87, 201, 255, 0.28);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(28, 46, 80, 0.76), rgba(16, 28, 52, 0.88));
    color: #e8f0ff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wb-select:hover {
    border-color: rgba(87, 201, 255, 0.56);
    background: linear-gradient(180deg, rgba(38, 60, 100, 0.88), rgba(20, 36, 64, 0.96));
    box-shadow: 0 0 12px rgba(87, 201, 255, 0.16);
}

.wb-select:focus-visible {
    outline: none;
    border-color: rgba(87, 201, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(87, 201, 255, 0.12);
}

.wb-select span {
    flex: 1;
    text-align: left;
    color: #ffffff;
}

.wb-select small {
    color: #6b9cff;
    font-size: 0.8rem;
    margin-left: 8px;
}

.wb-select:active {
    transform: translateY(1px);
}

/* ============================================
WB-LIST-PAD (List Selection Modal)
============================================ */
.wb-list-pad {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    width: min(100%, 420px);
}

.wb-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid rgba(100, 136, 190, 0.2);
    border-bottom: 1px solid rgba(100, 136, 190, 0.2);
}

.wb-list-search {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px;
    border: 1px solid rgba(100, 136, 190, 0.2);
    border-radius: 8px;
    background: rgba(7, 14, 27, 0.92);
    backdrop-filter: blur(10px);
}

.wb-list-search input {
    width: 100%;
    border: 1px solid rgba(87, 201, 255, 0.28);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
    background: rgba(5, 12, 24, 0.78);
    color: #ffffff;
    font-weight: 700;
}

.wb-list-search input:focus-visible {
    border-color: rgba(87, 201, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(87, 201, 255, 0.12);
}

.wb-list-item {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(87, 201, 255, 0.16);
    border-radius: 6px;
    background: rgba(28, 46, 80, 0.52);
    color: #e8f0ff;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.14s ease;
}

.wb-list-item:hover {
    border-color: rgba(87, 201, 255, 0.48);
    background: rgba(38, 60, 100, 0.72);
    box-shadow: inset 0 0 12px rgba(87, 201, 255, 0.08);
}

.wb-list-item:focus-visible {
    outline: none;
    border-color: rgba(87, 201, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(87, 201, 255, 0.12);
}

.wb-list-item:active {
    transform: translateY(1px);
}

.wb-list-empty {
    padding: 14px 16px;
    border: 1px dashed rgba(100, 136, 190, 0.28);
    border-radius: 8px;
    background: rgba(5, 12, 24, 0.45);
    color: #9eb0cf;
    font-weight: 700;
    text-align: center;
}

.wb-list-pad footer {
    padding: 12px;
    border-top: 1px solid rgba(100, 136, 190, 0.2);
    display: flex;
    gap: 10px;
}

.wb-list-pad footer button {
    flex: 1;
    min-height: 40px;
}
/*finish*/

/* ============================================
   WB COCKPIT REFINEMENT
   ============================================ */
.wb-dashboard {
    --wb-surface: rgba(12, 18, 29, 0.94);
    --wb-surface-2: rgba(17, 25, 38, 0.92);
    --wb-line: rgba(148, 163, 184, 0.18);
    --wb-line-strong: rgba(125, 211, 252, 0.34);
    --wb-text: #edf4ff;
    --wb-muted: #9aa8bb;
    --wb-cyan: #62d8ff;
    --wb-green: #6ee7a8;
    --wb-amber: #f6c760;
    --wb-red: #ff8b8b;
    padding: 72px 12px 16px;
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.78), rgba(6, 10, 17, 0.94)),
        radial-gradient(circle at 12% 16%, rgba(66, 153, 225, 0.13), transparent 31%),
        radial-gradient(circle at 92% 18%, rgba(110, 231, 168, 0.1), transparent 28%),
        #070b12;
    color: var(--wb-text);
    font-family: "Aptos", "Segoe UI", sans-serif;
}

.wb-topbar,
.wb-panel,
.wb-kpi {
    border-color: var(--wb-line);
    background: linear-gradient(180deg, rgba(20, 29, 43, 0.94), rgba(10, 16, 26, 0.96));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.wb-topbar {
    min-height: 56px;
    margin-bottom: 10px;
    border-radius: 8px;
    gap: 12px;
}

.wb-brand-mark {
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #8fbad5);
}

.wb-brand strong {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.wb-tabs {
    gap: 8px;
}

.wb-tabs button,
.wb-tabs span {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 5px;
    color: #aebbd0;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.wb-tabs button.active {
    border-color: var(--wb-line-strong);
    background: rgba(98, 216, 255, 0.12);
}

.wb-time,
.wb-avatar {
    border-radius: 6px;
}

.wb-shell {
    width: 100%;
    max-width: 1780px;
}

.wb-kpis {
    grid-template-columns: minmax(170px, 1.1fr) repeat(8, minmax(116px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.wb-kpi {
    min-height: 70px;
    border-radius: 8px;
    padding: 10px 10px;
    position: relative;
    overflow: hidden;
}

.wb-kpi::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(98, 216, 255, 0.6), transparent);
    opacity: 0.55;
}

.wb-kpi-primary::before {
    background: linear-gradient(90deg, rgba(110, 231, 168, 0.85), rgba(98, 216, 255, 0.72));
}

.kpi-label {
    color: var(--wb-muted);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.wb-kpi strong {
    margin-top: 4px;
    font-size: clamp(0.92rem, 0.95vw, 1.14rem);
    line-height: 1.08;
}

.wb-kpi small {
    display: block;
    margin-top: 3px;
    color: #96a5b9;
    font-size: 0.66rem;
    line-height: 1.25;
}

.wb-kpi-edit-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5fbff;
    font-weight: 800;
    font-size: clamp(0.94rem, 0.9vw, 1.1rem);
    cursor: pointer;
}

.wb-kpi-edit-value small {
    margin: 0;
    color: #9fdfff;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

.wb-kpi-edit-value:hover,
.wb-kpi-edit-value:focus-visible {
    color: #b9ecff;
    outline: none;
}

.wb-kpi.status strong {
    color: var(--wb-green);
}

.wb-kpi.trim strong {
    color: var(--wb-amber);
}

.wb-grid {
    grid-template-columns: minmax(290px, 0.9fr) minmax(560px, 1.4fr) minmax(290px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.wb-left,
.wb-center,
.wb-right {
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.wb-panel {
    border-radius: 8px;
    background: linear-gradient(180deg, var(--wb-surface-2), var(--wb-surface));
}

.wb-panel h2,
.panel-title-row h2 {
    padding: 9px 11px;
    color: #f7fbff;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel-title-row {
    min-height: 40px;
    border-bottom-color: var(--wb-line);
    background: rgba(255, 255, 255, 0.015);
}

.panel-title-row span {
    max-width: 52%;
    margin-right: 11px;
    color: #93a4b8;
    font-size: 0.67rem;
    line-height: 1.25;
    text-align: right;
}

.flight-card {
    background:
        linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(10, 16, 25, 0.96));
}

.flight-number {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    margin: 0 14px 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wb-amber);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.flight-number-edit:hover,
.flight-number-edit:focus-visible {
    color: #ffd973;
    outline: none;
}

.flight-card p {
    margin: 0 11px 8px;
    color: #a4b2c5;
}

.flight-card dl {
    gap: 0;
    padding: 0 11px 11px;
}

.flight-card dl div {
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.flight-card dl div:last-child {
    border-bottom: 0;
}

.flight-card dt {
    color: #9ba9bc;
    font-size: 0.69rem;
    letter-spacing: 0.07em;
}

.flight-card dd {
    text-align: left;
}

.wb-field-hint {
    margin-top: 6px;
    color: #9eb0c4;
    text-align: left;
}

.wb-field-hint small {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
}

.crew-code-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.crew-code-select {
    min-height: 34px;
    padding-inline: 8px;
}

.wb-select {
    min-height: 38px;
    padding: 8px 10px;
    border-color: rgba(98, 216, 255, 0.26);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(22, 35, 52, 0.92), rgba(12, 21, 33, 0.98));
    font-size: 0.86rem;
}

.wb-select:hover,
.wb-select:focus-visible {
    border-color: rgba(98, 216, 255, 0.68);
    background: linear-gradient(180deg, rgba(29, 48, 68, 0.98), rgba(13, 24, 37, 1));
}

.wb-select small {
    color: var(--wb-cyan);
    width: 0;
    height: 0;
    margin-left: 10px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--wb-cyan);
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.wb-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-left .wb-mini-table th,
.wb-left .wb-mini-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    color: #dbe6f5;
}

.wb-left .wb-mini-table th {
    color: #94a3b8;
    font-weight: 700;
}

.weather-line {
    padding: 12px 14px 14px;
}

.weather-plane {
    border-radius: 8px;
    background: rgba(98, 216, 255, 0.12);
    color: var(--wb-cyan);
}

.wb-table-panel {
    background: linear-gradient(180deg, rgba(14, 22, 34, 0.98), rgba(8, 13, 22, 0.98));
}

.wb-breakdown-grid {
    padding: 8px;
}

.wb-data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.wb-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 7px;
    border-bottom: 1px solid var(--wb-line);
    background: rgba(18, 27, 39, 0.98);
    color: #98a8bb;
    font-size: 0.63rem;
    letter-spacing: 0.07em;
}

.wb-data-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #e8eef7;
    font-size: 0.76rem;
}

.wb-data-table tbody tr:hover td {
    background: rgba(98, 216, 255, 0.045);
}

.wb-data-table tr.positive td {
    color: var(--wb-green);
    background: rgba(110, 231, 168, 0.07);
}

.wb-edit-field {
    max-width: 108px;
    min-height: 30px;
    border-radius: 5px;
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.045);
    color: #f8fbff;
    font-weight: 750;
}

.wb-readonly-value {
    color: #f8fbff;
    font-weight: 800;
}

.hold-panel-header {
    margin-top: 10px;
}

.hold-summary-inline,
.wb-passenger-summary-card {
    border-radius: 6px;
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.wb-passenger-summary {
    margin: 12px;
}

.wb-subsection-title {
    margin: 16px 12px 8px;
    color: #bfe9ff;
    font-size: 0.78rem;
}

.envelope-panel {
    min-height: 310px;
}

.cg-chart-container {
    height: 270px;
    border-radius: 6px;
    border-color: rgba(148, 163, 184, 0.16);
}

.cg-summary-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 12px;
}

.cg-summary-stats div {
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.cg-summary-stats span {
    display: block;
    color: #93a4b8;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.cg-summary-stats strong {
    color: #ffffff;
    font-size: 0.86rem;
}

.limit-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 14px;
}

.limit-results div {
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.limit-results span {
    display: block;
    color: #93a4b8;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.limit-results strong {
    color: #ffffff;
    font-size: 0.84rem;
}

.wb-aircraft-stage {
    min-height: 260px;
    height: 260px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 35%, rgba(98, 216, 255, 0.17), transparent 36%),
        linear-gradient(180deg, #101827 0%, #0a101b 100%);
}

.aircraft-hud-pill,
.aircraft-hud-text {
    border-radius: 5px;
    background: rgba(5, 10, 18, 0.72);
}

.wb-right .limits-panel {
    order: 1;
}

.wb-right .wb-aircraft-stage {
    order: 2;
}

.wb-right .envelope-panel {
    order: 3;
}

.cargo-panel {
    min-height: 0;
}

.cargo-panel .hold-table {
    min-width: 0;
}

.cargo-panel .hold-table th,
.cargo-panel .hold-table td {
    padding-inline: 8px;
}

.limit-grid {
    grid-template-columns: 0.7fr 1fr;
    padding: 8px 14px 14px;
}

.limit-grid span,
.limit-grid strong,
.limit-grid em {
    padding: 8px 0;
}

.limit-grid em {
    display: none;
}

.limit-grid span {
    color: var(--wb-amber);
    font-size: 0.72rem;
}

.limit-grid strong {
    font-size: 0.82rem;
}

.wb-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.load-panel,
.trim-panel {
    min-height: 128px;
}

.load-panel {
    padding: 8px;
}

.trim-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
        "donut fuel"
        "donut trim"
        "donut action";
    gap: 8px;
    padding: 8px;
}

.trim-panel .wb-donut-wrap.moved {
    grid-area: donut;
    margin: 0;
}

.trim-panel > div:nth-of-type(2) {
    grid-area: fuel;
}

.trim-panel > div:nth-of-type(3) {
    grid-area: trim;
}

.trim-panel > button {
    grid-area: action;
    align-self: end;
    min-height: 36px;
}

.load-main .load-head strong,
.load-main .load-labels b {
    font-size: 0.78rem;
}

.load-main .load-labels span {
    font-size: 0.66rem;
}

.load-bars i {
    min-height: 18px;
}

.wb-list-pad {
    width: min(100%, 520px);
}

.wb-list-item {
    border-radius: 5px;
    background: rgba(18, 31, 47, 0.82);
}

.wb-list-item span {
    display: block;
    color: #f5f9ff;
    font-weight: 760;
}

.wb-list-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(98, 216, 255, 0.48) rgba(9, 14, 24, 0.75);
}

.wb-list-body::-webkit-scrollbar {
    width: 9px;
}

.wb-list-body::-webkit-scrollbar-track {
    background: rgba(9, 14, 24, 0.75);
}

.wb-list-body::-webkit-scrollbar-thumb {
    border: 2px solid rgba(9, 14, 24, 0.75);
    border-radius: 999px;
    background: rgba(98, 216, 255, 0.48);
}

@media (max-width: 1399.98px) {
    .wb-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .wb-grid {
        grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.32fr);
    }

    .wb-right {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.75fr);
    }

    .wb-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .wb-dashboard {
        padding-top: 72px;
    }

    .wb-kpis,
    .wb-grid,
    .wb-right {
        grid-template-columns: 1fr;
    }

    .wb-left {
        grid-template-columns: 1fr;
    }

    .panel-title-row span {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .wb-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .wb-kpi-primary {
        grid-column: 1 / -1;
    }

    .flight-card dl div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .wb-table-panel {
        overflow-x: auto;
    }

    .wb-table-panel .wb-data-table {
        min-width: 680px;
    }
}

/* ============================================
   WB ADMIN PAGE
   ============================================ */
.wb-admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 94px 16px 26px;
    color: #e8eef9;
}

.wb-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.wb-admin-header h1 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    color: #f3f8ff;
}

.wb-admin-header p {
    margin: 0;
    color: #a7b6ca;
    font-size: 0.88rem;
}

.wb-admin-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(98, 216, 255, 0.32);
    border-radius: 8px;
    color: #c5ecff;
    text-decoration: none;
    background: rgba(13, 29, 43, 0.65);
}

.wb-admin-link:hover {
    color: #e0f5ff;
    border-color: rgba(98, 216, 255, 0.62);
}

.wb-admin-toolbar {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid rgba(136, 164, 197, 0.25);
    border-radius: 10px;
    background: rgba(12, 18, 30, 0.82);
    margin-bottom: 12px;
}

.wb-admin-save-top {
    margin-left: auto;
}

.wb-admin-toolbar label {
    display: grid;
    gap: 4px;
}

.wb-admin-toolbar span {
    color: #a8b7cb;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.wb-admin-toolbar select,
.wb-admin-toolbar button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(126, 156, 190, 0.35);
    background: rgba(15, 27, 40, 0.9);
    color: #edf5ff;
}

.wb-admin-status {
    font-size: 0.78rem;
    padding: 8px 10px;
    border: 1px solid rgba(126, 156, 190, 0.2);
    border-radius: 8px;
    background: rgba(9, 18, 29, 0.72);
}

.wb-admin-status.is-success {
    color: #9adab6;
}

.wb-admin-status.is-error {
    color: #ffb4b4;
}

.wb-admin-status.is-neutral {
    color: #b8c7da;
}

.wb-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wb-admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.wb-admin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.wb-admin-banner strong {
    color: #f3f8ff;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wb-admin-banner span {
    color: #d7e4f5;
    font-size: 0.78rem;
}

.wb-admin-banner-warning {
    border-color: rgba(255, 205, 107, 0.28);
    background: linear-gradient(180deg, rgba(63, 45, 13, 0.8), rgba(38, 26, 9, 0.88));
}

.wb-admin-banner-success {
    border-color: rgba(110, 231, 168, 0.24);
    background: linear-gradient(180deg, rgba(19, 57, 39, 0.82), rgba(12, 34, 24, 0.88));
}

.wb-admin-summary-card {
    border: 1px solid rgba(136, 164, 197, 0.22);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 27, 41, 0.95), rgba(10, 16, 27, 0.95));
    padding: 12px;
}

.wb-admin-summary-card span,
.wb-admin-summary-card small,
.wb-admin-card-note {
    display: block;
    color: #9db3c7;
}

.wb-admin-summary-card span {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wb-admin-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #f3f8ff;
    font-size: 1.05rem;
    font-weight: 800;
}

.wb-admin-summary-card small {
    margin-top: 4px;
    font-size: 0.7rem;
}

.wb-admin-card {
    border: 1px solid rgba(136, 164, 197, 0.24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 27, 41, 0.95), rgba(10, 16, 27, 0.95));
    padding: 10px;
}

.wb-admin-card h2 {
    margin: 0 0 10px;
    color: #d9e9ff;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wb-admin-card-note {
    margin: -2px 0 10px;
    font-size: 0.74rem;
    line-height: 1.4;
}

.wb-admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wb-admin-card-head button,
.wb-admin-save {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(110, 231, 168, 0.38);
    background: rgba(20, 45, 35, 0.7);
    color: #c6ffd9;
    font-size: 0.74rem;
    cursor: pointer;
}

.wb-admin-save[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.wb-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.wb-admin-form-grid label {
    display: grid;
    gap: 4px;
}

.wb-admin-form-grid span {
    color: #a9b8cc;
    font-size: 0.7rem;
}

.wb-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-admin-table th,
.wb-admin-table td {
    border-bottom: 1px solid rgba(136, 164, 197, 0.18);
    padding: 6px;
    font-size: 0.78rem;
}

.wb-admin-table th {
    color: #9eb1c8;
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.wb-admin-col-action,
.wb-admin-cell-action {
    width: 74px;
    text-align: right;
}

.wb-admin-table input {
    width: 100%;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(125, 153, 186, 0.3);
    border-radius: 6px;
    background: rgba(10, 19, 30, 0.9);
    color: #eaf3ff;
}

.wb-admin-remove {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 133, 133, 0.3);
    border-radius: 6px;
    background: rgba(57, 19, 24, 0.7);
    color: #ffcccc;
    font-size: 0.7rem;
    cursor: pointer;
}

.wb-admin-remove:hover,
.wb-admin-remove:focus-visible {
    border-color: rgba(255, 133, 133, 0.56);
    background: rgba(74, 22, 29, 0.84);
}

.wb-admin-mode-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wb-admin-mode-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wb-admin-mode-tag.abs {
    border-color: rgba(107, 226, 171, 0.45);
    background: rgba(24, 74, 55, 0.55);
    color: #b4f6d6;
}

.wb-admin-mode-tag.delta {
    border-color: rgba(255, 199, 122, 0.48);
    background: rgba(97, 61, 18, 0.56);
    color: #ffe0ad;
}

@media (max-width: 991.98px) {
    .wb-admin-summary-grid,
    .wb-admin-grid {
        grid-template-columns: 1fr;
    }

    .wb-admin-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wb-admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-admin-status {
        margin-left: 0;
    }
}

/* ============================================
   WB LAYOUT TIDY OVERRIDES
   ============================================ */
.wb-dashboard {
    padding-top: 64px;
}

.wb-dashboard .wb-shell {
    max-width: 1680px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.wb-dashboard .wb-kpis {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) repeat(8, minmax(102px, 1fr));
    gap: 7px;
    margin-bottom: 7px;
}

.wb-dashboard .wb-kpi {
    min-height: 64px;
    padding: 8px 9px;
}

.wb-dashboard .wb-kpi strong {
    margin-top: 3px;
}

.wb-dashboard .wb-kpi-primary > strong {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: clamp(0.72rem, 0.75vw, 0.86rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wb-dashboard .wb-kpi-aircraft {
    display: block;
    margin-top: 4px;
    color: #9eb0c9;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wb-dashboard .wb-kpi-registration {
    margin-top: 4px;
    min-height: 30px;
    width: 100%;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.wb-dashboard .flight-card-note {
    margin: 0 10px 6px;
    color: #97aac4;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wb-dashboard .flight-info-note {
    margin: 0 10px 10px;
}

.wb-dashboard .flight-info-note h2 {
    margin: 0 0 6px;
    color: #cbd8ea;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wb-dashboard .wb-kpi-registration::after {
    content: "";
}

.wb-dashboard .wb-kpi-primary {
    padding-bottom: 11px;
}

.wb-dashboard .wb-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.12fr) minmax(320px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.wb-dashboard .wb-left,
.wb-dashboard .wb-center {
    display: contents;
}

.wb-dashboard .wb-right {
    display: block;
}

.wb-dashboard .flight-card {
    grid-column: 1;
    grid-row: 1;
}

.wb-dashboard .passenger-distribution-panel {
    grid-column: 2;
    grid-row: 1;
}

.wb-dashboard .cargo-panel {
    grid-column: 3;
    grid-row: 1;
}

.wb-dashboard .wb-table-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.wb-dashboard .envelope-panel {
    grid-column: 2;
    grid-row: 2;
}

.wb-dashboard .limits-panel {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wb-dashboard .info-card {
    grid-column: 1 / span 2;
    grid-row: 3;
}

.wb-dashboard .wb-panel {
    border-radius: 7px;
}

.wb-dashboard .flight-card,
.wb-dashboard .passenger-distribution-panel,
.wb-dashboard .cargo-panel {
    height: 100%;
    min-height: 330px;
}

.wb-dashboard .passenger-distribution-panel,
.wb-dashboard .cargo-panel {
    display: flex;
    flex-direction: column;
}

.wb-dashboard .panel-title-row {
    min-height: 36px;
}

.wb-dashboard .wb-breakdown-grid {
    padding: 7px;
    flex: 1;
}

.wb-dashboard .flight-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 0;
    padding: 0 10px 8px;
}

.wb-dashboard .flight-card dl > div {
    min-width: 0;
}

.wb-dashboard .flight-card dl > div:has(#aircraftType) {
    display: none;
}

.wb-dashboard .flight-card .wb-select {
    width: 100%;
}

.wb-dashboard .flight-card .catering-group-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.wb-dashboard .flight-card .catering-group-row .wb-select {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.78rem;
}

.wb-dashboard .flight-card .catering-group-row .wb-field-hint {
    margin-top: 3px;
    overflow: hidden;
}

.wb-dashboard .flight-card .catering-group-row .wb-field-hint small {
    display: block;
    overflow: hidden;
    color: #8fa5bd;
    font-size: 0.62rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-dashboard .flight-card > h2 {
    padding: 0 10px;
}

.wb-dashboard .flight-top-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    gap: 8px;
    margin: 0 10px 8px;
    align-items: end;
}

.wb-dashboard .flight-number-field {
    display: grid;
    gap: 4px;
    margin: 0;
}

.wb-dashboard .flight-top-select {
    display: grid;
    gap: 4px;
}

.wb-dashboard .flight-fuel-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 10px 6px;
}

.wb-dashboard .flight-fuel-fields > div {
    display: grid;
    gap: 4px;
}

.wb-dashboard .flight-fuel-fields > div > span {
    color: #9eb0c9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wb-dashboard .flight-number-label {
    color: #9eb0c9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wb-dashboard .flight-card .flight-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(98, 216, 255, 0.26);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(22, 35, 52, 0.92), rgba(12, 21, 33, 0.98));
    color: #eaf6ff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: left;
}

.wb-dashboard .flight-card .flight-number::after {
    content: "EDIT";
    color: var(--wb-cyan);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.wb-dashboard .flight-card .flight-number:hover,
.wb-dashboard .flight-card .flight-number:focus-visible {
    border-color: rgba(98, 216, 255, 0.68);
    background: linear-gradient(180deg, rgba(29, 48, 68, 0.98), rgba(13, 24, 37, 1));
    color: #ffffff;
}

.wb-dashboard .flight-top-fields .wb-select,
.wb-dashboard .flight-fuel-fields .wb-select {
    min-height: 34px;
    padding: 6px 10px;
}

.wb-dashboard .flight-card dl > div:has(#dd-departure),
.wb-dashboard .flight-card dl > div:has(#dd-arrival) {
    display: none;
}

.wb-dashboard .flight-fuel-fields .flight-fuel-edit small {
    width: auto;
    height: auto;
    margin-left: 8px;
    border: 0;
    color: #8fd8ff;
    overflow: visible;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.wb-dashboard .flight-card > p {
    margin: 0 10px 4px;
    font-size: 0.74rem;
}

.wb-dashboard .flight-card .weather-line {
    margin: 0 10px 10px;
    padding: 8px 10px;
}

.wb-dashboard .flight-bottom-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
    gap: 10px;
    margin: 0 10px 10px;
    align-items: stretch;
}

.wb-dashboard .flight-card .crew-code-row dd {
    padding: 8px 10px 10px;
    border: 1px solid rgba(104, 140, 181, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 24, 37, 0.9), rgba(10, 18, 29, 0.96));
}

.wb-dashboard .flight-card .crew-code-row {
    grid-column: 1 / -1;
}

.wb-dashboard .flight-card .crew-code-controls {
    gap: 8px;
}

.wb-dashboard .flight-card .crew-code-select {
    min-height: 40px;
    border-radius: 8px;
}

.wb-dashboard .flight-card .crew-code-select span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.wb-dashboard .flight-card .crew-code-hint {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(110, 140, 176, 0.14);
}

.wb-dashboard .flight-card .crew-code-hint small {
    color: #9bb0c9;
    line-height: 1.4;
}

.wb-dashboard .flight-card .weather-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(91, 129, 173, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(15, 26, 39, 0.9), rgba(9, 17, 28, 0.97));
}

.wb-dashboard .flight-card .weather-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.wb-dashboard .flight-card .weather-label {
    color: #8fa7c3;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wb-dashboard .flight-card #weatherTemp {
    font-size: 1.12rem;
    line-height: 1.1;
}

.wb-dashboard .flight-card #weatherDetail {
    color: #9db3c9;
    font-size: 0.72rem;
    line-height: 1.35;
}

.wb-dashboard .flight-info-note {
    margin: 0;
}

.wb-dashboard .flight-info-note .wb-info-note {
    min-height: 88px;
}

@media (max-width: 900px) {
    .wb-dashboard .flight-top-fields,
    .wb-dashboard .flight-fuel-fields,
    .wb-dashboard .flight-bottom-row {
        grid-template-columns: 1fr;
    }

    .wb-dashboard .flight-card .crew-code-controls {
        grid-template-columns: 1fr;
    }
}

.wb-dashboard .aircraft-stage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 0;
}

.wb-dashboard .aircraft-stage-label {
    color: #9eb0c9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wb-dashboard .aircraft-stage-select {
    min-width: 180px;
    max-width: 220px;
    justify-content: space-between;
}

.wb-dashboard .wb-passenger-summary {
    margin: 8px;
}

.wb-dashboard .wb-subsection-title {
    margin: 8px 8px 5px;
    font-size: 0.75rem;
}

.wb-dashboard .wb-passenger-type-picker {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.15fr) auto;
    align-items: end;
    gap: 12px;
    margin: 5px 8px 8px;
    padding: 10px 11px;
    border: 1px solid rgba(94, 147, 201, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(16, 29, 45, 0.76), rgba(9, 17, 28, 0.82)),
        radial-gradient(circle at 8% 0%, rgba(73, 174, 230, 0.09), transparent 44%);
}

.wb-dashboard .wb-passenger-picker-field {
    min-width: 0;
}

.wb-dashboard .wb-passenger-picker-field > span {
    display: block;
    margin: 0 0 5px;
    color: #9eb0c9;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wb-dashboard .wb-passenger-type-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: space-between;
}

.wb-dashboard .wb-passenger-weight-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 1px;
}

.wb-dashboard .wb-passenger-weight-summary > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-height: 26px;
    padding: 5px 7px;
    border: 1px solid rgba(102, 177, 222, 0.2);
    border-radius: 6px;
    background: rgba(12, 27, 42, 0.74);
    white-space: nowrap;
}

.wb-dashboard .wb-passenger-weight-summary strong {
    color: #dceafb;
    font-size: 0.68rem;
    font-weight: 800;
}

.wb-dashboard .wb-passenger-weight-summary small {
    color: #8fa7bf;
    font-size: 0.65rem;
}

.wb-dashboard .wb-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.wb-dashboard .wb-cargo-reset-row {
    margin: 8px 8px 2px;
}

.wb-dashboard .wb-mini-btn.wb-reset-passenger {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 179, 71, 0.34);
    border-radius: 7px;
    background: rgba(68, 43, 16, 0.48);
    color: #f4d7ac;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.wb-dashboard .wb-mini-btn.wb-reset-passenger svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-dashboard .wb-mini-btn.wb-reset-passenger:hover,
.wb-dashboard .wb-mini-btn.wb-reset-passenger:focus-visible {
    border-color: rgba(255, 195, 107, 0.8);
    background: rgba(88, 54, 18, 0.72);
    color: #fff0d7;
    box-shadow: 0 0 0 3px rgba(255, 171, 64, 0.1);
    transform: translateY(-1px);
}

.wb-dashboard .wb-mini-btn.wb-reset-cargo {
    border-color: rgba(113, 212, 255, 0.45);
    background: linear-gradient(180deg, rgba(18, 59, 86, 0.92), rgba(10, 32, 49, 0.92));
    color: #dff5ff;
}

.wb-dashboard .wb-mini-btn.wb-reset-cargo:hover,
.wb-dashboard .wb-mini-btn.wb-reset-cargo:focus-visible {
    border-color: rgba(149, 227, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.14);
}

.wb-dashboard .passenger-distribution-panel .panel-title-row,
.wb-dashboard .cargo-panel .panel-title-row {
    padding-inline: 8px;
}

.wb-dashboard .passenger-distribution-panel .wb-list-empty,
.wb-dashboard .cargo-panel .wb-list-empty {
    margin: 8px;
}

.wb-dashboard .passenger-distribution-panel .wb-data-table th,
.wb-dashboard .passenger-distribution-panel .wb-data-table td,
.wb-dashboard .cargo-panel .hold-table th,
.wb-dashboard .cargo-panel .hold-table td {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 0.72rem;
}

.wb-dashboard .cargo-panel .hold-summary-inline {
    padding: 7px 10px 9px;
    font-size: 0.74rem;
}

.wb-dashboard .envelope-panel {
    min-height: 300px;
}

.wb-dashboard .passenger-distribution-panel {
    min-height: 300px;
}

.wb-dashboard .cg-chart-container {
    height: 290px;
}

.wb-dashboard .limits-panel .cg-summary-stats {
    padding: 6px 10px 8px;
    gap: 6px;
}

.wb-dashboard .limits-panel .cg-point-summary {
    padding: 0 10px 10px;
    gap: 6px;
}

.wb-dashboard .limits-panel .cg-summary-stats div,
.wb-dashboard .limits-panel .cg-point-summary div {
    display: block;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(153, 193, 230, 0.22);
    background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(10, 22, 37, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wb-dashboard .limits-panel .cg-summary-stats div.limit-active,
.wb-dashboard .limits-panel .cg-point-summary div.limit-active,
.wb-dashboard .aircraft-hud-pill.aircraft-hud-limit {
    position: relative;
}

.wb-dashboard .aircraft-hud-pill.aircraft-hud-limit::before {
    content: "L";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 215, 106, 0.14);
    border: 1px solid rgba(255, 215, 106, 0.55);
    color: #ffe28a;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-0.02em);
}

.wb-dashboard .aircraft-hud-pill.aircraft-hud-limit.status-fwd,
.wb-dashboard .aircraft-hud-pill.aircraft-hud-limit.status-ok,
.wb-dashboard .aircraft-hud-pill.aircraft-hud-limit.status-aft {
    box-shadow: 0 0 0 1px rgba(255, 215, 106, 0.28), 0 0 0 5px rgba(255, 215, 106, 0.06);
}

.wb-dashboard .limits-panel .cg-summary-stats span,
.wb-dashboard .limits-panel .cg-point-summary span {
    display: block;
    margin-bottom: 4px;
    color: #9db3c7;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wb-dashboard .limits-panel .cg-summary-stats strong,
.wb-dashboard .limits-panel .cg-point-summary strong {
    display: block;
    color: #eff6ff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.wb-dashboard .limits-panel .cg-summary-stats small,
.wb-dashboard .limits-panel .cg-point-summary small {
    display: block;
    margin-top: 4px;
    color: #8ea3bf;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.wb-dashboard .limits-panel .cg-summary-stats strong {
    font-size: 0.88rem;
}

.wb-dashboard .limits-panel .cg-summary-stats small:nth-of-type(1) {
    color: #b7cbe0;
}

.wb-dashboard .limits-panel .cg-summary-stats small:nth-of-type(2) {
    color: #e3c96d;
}

.wb-dashboard .limits-panel .aircraft-3d-container {
    position: relative;
    z-index: 1;
    min-height: 330px;
}

.wb-dashboard .limits-visual-stage {
    position: relative;
    min-height: 330px;
}

.wb-dashboard .limits-panel .cg-summary-stats div:nth-child(1) strong,
.wb-dashboard .limits-panel .cg-summary-stats div:nth-child(2) strong,
.wb-dashboard .limits-panel .cg-summary-stats div:nth-child(3) strong {
    color: #ffffff;
}

.wb-dashboard .wb-aircraft-stage {
    min-height: 232px;
    height: 232px;
}

.wb-dashboard .limit-grid {
    padding: 7px 10px 10px;
}

.wb-dashboard .limit-results {
    padding: 0 10px 10px;
    gap: 6px;
}

.wb-dashboard .wb-bottom-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.12fr) minmax(320px, 1fr);
    gap: 8px;
    align-items: stretch;
}

.wb-dashboard .load-panel,
.wb-dashboard .trim-panel {
    min-height: 118px;
}

.wb-dashboard .load-panel {
    grid-column: 1;
}

.wb-dashboard .trim-panel {
    grid-column: 2 / span 2;
}

@media (max-width: 1500px) {
    .wb-dashboard .wb-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .wb-dashboard .wb-grid {
        grid-template-columns: minmax(278px, 0.9fr) minmax(0, 1.1fr);
    }

    .wb-dashboard .flight-card dl {
        grid-template-columns: 1fr;
    }

    .wb-dashboard .flight-card dl > div:nth-child(3),
    .wb-dashboard .flight-card dl > div:nth-child(4) {
        grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    }

    .wb-dashboard .wb-right {
        grid-column: 1 / -1;
        display: block;
    }

    .wb-dashboard .cargo-panel {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .wb-dashboard .limits-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .wb-dashboard .info-card {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .wb-dashboard .wb-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .wb-dashboard {
        padding-top: 70px;
    }

    .wb-dashboard .wb-kpis,
    .wb-dashboard .wb-grid,
    .wb-dashboard .wb-bottom-grid {
        grid-template-columns: 1fr;
    }

    .wb-dashboard .wb-right {
        display: grid;
    }

    .wb-dashboard .aircraft-stage-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wb-dashboard .aircraft-stage-select {
        max-width: none;
    }
}

/* ============================================
   WB V2 POLISH
   ============================================ */
.wb-dashboard .wb-panel h2,
.wb-dashboard .panel-title-row h2 {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
}

.wb-dashboard .panel-title-row {
    align-items: center;
}

.wb-dashboard .wb-data-table thead tr {
    height: 34px;
}

.wb-dashboard .wb-data-table tbody tr {
    height: 36px;
}

.wb-dashboard .wb-data-table td,
.wb-dashboard .wb-data-table th {
    vertical-align: middle;
}

.wb-dashboard .wb-left > .cargo-panel {
    min-height: 0;
}

.wb-dashboard .wb-left > .cargo-panel .hold-table th,
.wb-dashboard .wb-left > .cargo-panel .hold-table td {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.72rem;
}

.wb-dashboard .wb-left > .cargo-panel .hold-summary-inline {
    padding: 8px 10px 10px;
}

.wb-dashboard .wb-center > .envelope-panel {
    margin-top: -2px;
}

.wb-toolbar .wb-compact-toggle {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(123, 203, 255, 0.42);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.95), rgba(12, 22, 34, 0.95));
    color: #d9f2ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.wb-toolbar .wb-compact-toggle:hover,
.wb-toolbar .wb-compact-toggle:focus-visible {
    border-color: rgba(158, 225, 255, 0.78);
    color: #f1faff;
    outline: none;
}

.wb-dashboard.wb-compact .wb-kpis {
    grid-template-columns: minmax(160px, 1.2fr) repeat(8, minmax(92px, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.wb-dashboard.wb-compact .wb-kpi {
    min-height: 56px;
    padding: 6px 7px;
}

.wb-dashboard.wb-compact .wb-kpi small {
    display: none;
}

.wb-dashboard.wb-compact .wb-grid {
    grid-template-columns: minmax(268px, 0.9fr) minmax(560px, 1.62fr) minmax(254px, 0.72fr);
    gap: 6px;
}

.wb-dashboard.wb-compact .wb-left,
.wb-dashboard.wb-compact .wb-center,
.wb-dashboard.wb-compact .wb-right {
    gap: 6px;
}

.wb-dashboard.wb-compact .wb-panel h2,
.wb-dashboard.wb-compact .panel-title-row h2 {
    min-height: 32px;
    font-size: 0.78rem;
}

.wb-dashboard.wb-compact .crew-code-controls {
    gap: 4px;
}

.wb-dashboard.wb-compact .crew-code-select {
    min-height: 30px;
    padding-inline: 6px;
}

.wb-dashboard.wb-compact .wb-data-table thead tr {
    height: 30px;
}

.wb-dashboard.wb-compact .wb-data-table tbody tr {
    height: 32px;
}

.wb-dashboard.wb-compact .wb-edit-field {
    min-height: 27px;
}

.wb-dashboard.wb-compact .envelope-panel {
    min-height: 274px;
}

.wb-dashboard.wb-compact .cg-chart-container {
    height: 232px;
}

.wb-dashboard.wb-compact .wb-aircraft-stage {
    min-height: 206px;
    height: 206px;
}

.wb-dashboard.wb-compact .wb-bottom-grid {
    gap: 6px;
    margin-top: 6px;
}

.wb-dashboard .cg-chart-container {
    position: relative;
}

.wb-dashboard .cg-limit-warning {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: min(82%, 360px);
    transform: translate(-50%, -50%);
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 107, 107, 0.7);
    border-radius: 10px;
    background: rgba(42, 12, 18, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #ffd2d2;
    text-align: center;
    pointer-events: none;
}

.wb-dashboard .cg-limit-warning strong {
    color: #ff7b7b;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.wb-dashboard .cg-limit-warning span {
    font-size: 0.75rem;
    line-height: 1.35;
}

.wb-dashboard .cg-limits-box {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    min-width: 86px;
    padding: 6px 7px;
    border: 1px solid rgba(136, 156, 179, 0.18);
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(148, 170, 196, 0.06) 0px,
            rgba(148, 170, 196, 0.06) 4px,
            rgba(148, 170, 196, 0.02) 4px,
            rgba(148, 170, 196, 0.02) 8px
        ),
        rgba(10, 16, 26, 0.46);
    backdrop-filter: blur(1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    opacity: 0.74;
}

.wb-dashboard .cg-limits-box > span {
    display: block;
    margin-bottom: 4px;
    color: rgba(152, 167, 187, 0.78);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.wb-dashboard .cg-limits-box > div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.wb-dashboard .cg-limits-box > div:last-child {
    margin-bottom: 0;
}

.wb-dashboard .cg-limits-box i {
    display: inline-block;
    width: 12px;
    border-top: 2px dashed transparent;
    opacity: 0.75;
}

.wb-dashboard .cg-limits-box i.mtow {
    border-top-color: #ff9500;
}

.wb-dashboard .cg-limits-box i.mzfw {
    border-top-color: #ffd700;
}

.wb-dashboard .cg-limits-box i.mlw {
    border-top-color: #ff6b6b;
}

.wb-dashboard .cg-limits-box em {
    color: rgba(212, 222, 234, 0.76);
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.wb-dashboard .wb-cg-analysis-inline {
    display: grid;
    gap: 4px;
}

.wb-dashboard .wb-cg-analysis-inline small {
    color: #b7c7da;
    letter-spacing: 0.02em;
}

.wb-dashboard .wb-passenger-type-side {
    display: grid;
    gap: 4px;
    margin: 0 10px 8px;
    padding: 7px 9px;
    border: 1px solid rgba(123, 167, 213, 0.28);
    border-radius: 7px;
    background: rgba(12, 21, 33, 0.72);
}

.wb-dashboard .wb-passenger-type-side > span {
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    color: #89a6c7;
    text-transform: uppercase;
}

.wb-dashboard .wb-passenger-type-side > strong {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #e8f3ff;
}

.wb-dashboard .wb-cg-analysis-summary {
    margin: 0 8px 8px;
}

.wb-dashboard .wb-cg-analysis-summary .wb-passenger-summary-card {
    min-height: 78px;
}

.wb-dashboard .wb-cg-analysis-summary .wb-passenger-summary-card small {
    color: #8fb0d4;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.wb-dashboard .wb-cg-analysis-side > strong {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
}

.wb-standalone-page .wb-standalone-shell {
    display: grid;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px;
}

.wb-standalone-page .wb-standalone-hero,
.wb-standalone-page .wb-standalone-card {
    padding-bottom: 14px;
}

.fuel-summary-grid,
.summary-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
}

.fuel-summary-grid > div,
.summary-detail-grid > div,
.summary-hero-card,
.fuel-check-grid > div {
    border-radius: 10px;
    border: 1px solid rgba(153, 193, 230, 0.18);
    background: linear-gradient(180deg, rgba(18, 31, 48, 0.78), rgba(10, 22, 37, 0.78));
    padding: 10px 12px;
}

.fuel-summary-grid span,
.summary-detail-grid span,
.summary-hero-card span,
.fuel-check-grid span {
    display: block;
    color: #9db3c7;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fuel-summary-grid strong,
.summary-detail-grid strong,
.summary-hero-card strong,
.fuel-check-grid strong {
    display: block;
    color: #eff6ff;
    font-size: 0.9rem;
    font-weight: 800;
}

.fuel-summary-grid small,
.summary-hero-card small {
    display: block;
    color: #8ea3bf;
    font-size: 0.65rem;
    margin-top: 3px;
}

.fuel-hero-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
    gap: 12px;
    padding: 12px 14px 14px;
}

.fuel-hero-main {
    display: grid;
    gap: 12px;
    align-content: center;
    min-height: 170px;
    border-radius: 12px;
    border: 1px solid rgba(153, 193, 230, 0.18);
    background: radial-gradient(circle at top, rgba(255, 183, 77, 0.16), transparent 55%), rgba(10, 18, 28, 0.65);
    padding: 14px;
}

.fuel-hero-number span {
    color: #9db3c7;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fuel-hero-number strong {
    display: block;
    color: #fff7eb;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    margin-top: 6px;
}

.fuel-hero-bars {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 84px;
    padding: 0 2px;
    border-bottom: 1px solid rgba(153, 193, 230, 0.15);
}

.fuel-hero-bars i {
    display: block;
    width: 18%;
    height: var(--h);
    min-height: 18px;
    border-radius: 8px 8px 4px 4px;
    background: var(--c);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.fuel-ladder {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fuel-ladder > div {
    border-radius: 8px;
    border: 1px solid rgba(153, 193, 230, 0.16);
    background: rgba(11, 18, 29, 0.62);
    padding: 8px 10px;
}

.fuel-ladder span {
    display: block;
    color: #90a8c2;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fuel-ladder strong {
    display: block;
    color: #eff6ff;
    font-size: 0.78rem;
    margin-top: 4px;
}

.fuel-ladder-note {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fuel-ladder-note span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #90a8c2;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fuel-ladder-note i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.fuel-ladder-note .tof { background: #ff8c1a; }
.fuel-ladder-note .trp { background: #f6c43b; }
.fuel-ladder-note .rsv { background: #0e9de5; }
.fuel-ladder-note .txi { background: #dce861; }

.summary-mini-chart {
    padding: 0 14px 14px;
}

.summary-mini-chart svg {
    width: 100%;
    height: 170px;
    display: block;
    border-radius: 12px;
}

.summary-mini-chart text {
    text-rendering: geometricPrecision;
}

.summary-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0 14px 12px;
}

.summary-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #90a8c2;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.summary-chart-legend .zfw { background: #ff8c1a; }
.summary-chart-legend .tow { background: #f6c43b; }
.summary-chart-legend .law { background: #0e9de5; }
.summary-chart-legend .mtow { background: #ffae3c; }
.summary-chart-legend .mzfw { background: #ffd700; }
.summary-chart-legend .mlw { background: #ff6b6b; }

.summary-wide-note {
    grid-column: 1 / -1;
    border-radius: 10px;
    border: 1px solid rgba(153, 193, 230, 0.18);
    background: linear-gradient(180deg, rgba(18, 31, 48, 0.78), rgba(10, 22, 37, 0.78));
    padding: 10px 12px;
}

.summary-wide-note span {
    display: block;
    color: #9db3c7;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-wide-note strong {
    display: block;
    color: #eff6ff;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 4px;
}

.fuel-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
}

.summary-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
}

.summary-hero-card.accent {
    background: linear-gradient(180deg, rgba(39, 199, 126, 0.18), rgba(10, 22, 37, 0.78));
}

.summary-hero-card strong,
.summary-hero-card small {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.fuel-check-wide {
    grid-column: 1 / -1;
}

.fuel-check-wide strong {
    font-size: 0.8rem;
}

.fuel-timeline {
    margin-top: 10px;
    position: relative;
    padding: 14px 0 0;
}

.fuel-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.fuel-timeline-header span {
    color: #90a8c2;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fuel-timeline-header strong {
    color: #eff6ff;
    font-size: 0.72rem;
    font-weight: 800;
}

.fuel-timeline-track {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,140,26,0.25), rgba(246,196,59,0.25), rgba(14,157,229,0.2));
    border: 1px solid rgba(153, 193, 230, 0.16);
}

.fuel-timeline-seg {
    position: absolute;
    top: 14px;
    height: 10px;
    min-width: 14%;
    border-radius: 999px;
    opacity: 0.92;
}

.fuel-timeline-seg.tof { left: 0; background: #ff8c1a; }
.fuel-timeline-seg.trp { left: 32%; background: #f6c43b; }
.fuel-timeline-seg.rsv { left: 63%; background: #0e9de5; }

.fuel-timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #90a8c2;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .fuel-summary-grid,
    .summary-detail-grid,
    .fuel-check-grid,
    .summary-hero-grid,
    .fuel-hero-grid {
        grid-template-columns: 1fr;
    }

    .fuel-hero-number strong {
        font-size: 1.6rem;
    }

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

    .fuel-ladder-note {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fuel-timeline {
        margin-top: 6px;
    }

    .fuel-timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== DELPHI-PARITY TAKEOFF TRIM ===== */
.wb-dashboard .flight-fuel-fields.has-trim-thrust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wb-dashboard .trim-kpi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 5px 0 4px;
}

.wb-dashboard .trim-kpi-setting,
.wb-dashboard .trim-result-item {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(98, 216, 255, 0.2);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(19, 43, 65, 0.72), rgba(10, 27, 43, 0.82));
}

.wb-dashboard .trim-kpi-setting small,
.wb-dashboard .trim-result-item small {
    margin: 0;
    color: #8fb5d2;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.wb-dashboard .trim-kpi-setting strong,
.wb-dashboard .trim-result-item strong {
    margin: 0;
    color: #f7c95c;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.wb-dashboard .trim-result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.wb-dashboard .trim-result-empty {
    color: #92a5bc;
    font-size: 0.76rem;
}

@media (max-width: 767.98px) {
    .wb-dashboard .flight-fuel-fields.has-trim-thrust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .wb-dashboard {
        padding-top: 66px;
        padding-inline: 10px;
    }

    .wb-dashboard .wb-topbar,
    .wb-dashboard .wb-panel {
        border-radius: 10px;
    }

    .wb-dashboard .wb-topbar {
        gap: 10px;
        padding: 10px 12px;
    }

    .wb-dashboard .wb-brand {
        gap: 10px;
    }

    .wb-dashboard .wb-brand strong {
        font-size: 0.9rem;
    }

    .wb-dashboard .wb-brand small {
        font-size: 0.68rem;
    }

    .wb-dashboard .wb-tabs {
        gap: 6px;
        margin-inline: -2px;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .wb-dashboard .wb-tabs button,
    .wb-dashboard .wb-tabs span {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .wb-dashboard .wb-toolbar {
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
    }

    .wb-dashboard .wb-toolbar .wb-compact-toggle {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .wb-dashboard .wb-save-state,
    .wb-dashboard .wb-time {
        font-size: 0.68rem;
    }

    .wb-dashboard .wb-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.72rem;
    }

    .wb-dashboard .wb-kpis {
        gap: 8px;
    }

    .wb-dashboard .wb-kpi,
    .wb-dashboard .wb-panel {
        padding: 12px;
    }

    .wb-dashboard .wb-kpi strong,
    .wb-dashboard .wb-kpi-edit-value span {
        font-size: 1rem;
    }

    .wb-dashboard .wb-kpi small,
    .wb-dashboard .wb-kpi .kpi-label {
        line-height: 1.25;
    }

    .wb-dashboard .flight-top-fields,
    .wb-dashboard .flight-card dl,
    .wb-dashboard .flight-fuel-fields,
    .wb-dashboard .wb-breakdown-grid,
    .wb-dashboard .trim-result-list,
    .wb-dashboard .trim-kpi-list {
        grid-template-columns: 1fr;
    }

    .wb-dashboard .flight-number,
    .wb-dashboard .wb-select,
    .wb-dashboard .wb-kpi-edit-value {
        min-height: 40px;
    }

    .wb-dashboard .aircraft-hud-top,
    .wb-dashboard .aircraft-hud-bottom,
    .wb-dashboard .aircraft-stage-toolbar {
        gap: 8px;
    }

    .wb-dashboard .aircraft-hud-values,
    .wb-dashboard .aircraft-hud-legend,
    .wb-dashboard .aircraft-hud-bar-meta {
        gap: 6px;
    }

    .wb-dashboard .wb-right .wb-aircraft-stage,
    .wb-dashboard .cg-chart-container {
        min-height: 220px;
    }

    .wb-dashboard .wb-data-table th,
    .wb-dashboard .wb-data-table td {
        padding: 8px 7px;
        font-size: 0.74rem;
    }
}

@media (max-width: 575.98px) {
    .wb-dashboard {
        padding-top: 64px;
        padding-inline: 8px;
    }

    .wb-dashboard .wb-topbar {
        padding: 9px 10px;
    }

    .wb-dashboard .wb-panel,
    .wb-dashboard .wb-kpi {
        padding: 10px;
    }

    .wb-dashboard .wb-panel h2,
    .wb-dashboard .panel-title-row h2 {
        min-height: 30px;
        font-size: 0.78rem;
    }

    .wb-dashboard .wb-kpi strong,
    .wb-dashboard .wb-kpi-edit-value span {
        font-size: 0.94rem;
    }

    .wb-dashboard .wb-kpi small,
    .wb-dashboard .wb-select small,
    .wb-dashboard .flight-fuel-fields > div > span {
        font-size: 0.66rem;
    }

    .wb-dashboard .wb-right .wb-aircraft-stage,
    .wb-dashboard .cg-chart-container,
    .wb-dashboard .aircraft-3d-container,
    .wb-dashboard #aircraft-3d-viewer {
        height: 240px;
        min-height: 240px;
    }

    .wb-dashboard .aircraft-hud-pill,
    .wb-dashboard .aircraft-hud-text {
        font-size: 0.68rem;
    }
}

/* ===== ACCOUNT-LINKED WB HISTORY ===== */
.wb-snapshot-row .wb-snapshot-main {
    min-width: 150px;
}

.wb-snapshot-row .wb-snapshot-values {
    min-width: 190px;
    margin-left: auto;
    text-align: right;
}

.wb-snapshot-row .wb-snapshot-values strong {
    color: #eaf6ff;
    font-size: 0.78rem;
}

.wb-snapshot-picker {
    width: min(820px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 36px));
    overflow: hidden;
    border: 1px solid rgba(98, 216, 255, 0.3);
    border-radius: 10px;
    background:
        radial-gradient(circle at 85% 0%, rgba(31, 122, 176, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(10, 25, 41, 0.99), rgba(6, 17, 29, 0.99));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
}

.wb-snapshot-picker > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 180, 216, 0.16);
}

.wb-snapshot-picker > header span {
    color: #72d8ff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.wb-snapshot-picker > header h2 {
    margin: 3px 0 0;
    color: #f4f9ff;
    font-size: 1.1rem;
}

.wb-snapshot-picker-list {
    max-height: min(620px, calc(100vh - 150px));
    margin: 0;
    padding: 12px;
    overflow-y: auto;
}

.wb-snapshot-picker .wb-snapshot-empty {
    padding: 18px;
}

@media (max-width: 700px) {
    .wb-snapshot-row {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .wb-snapshot-row .wb-snapshot-values {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        margin: 0;
        text-align: left;
    }
}

/* ===== LIVE W&B DATA SURFACES ===== */
.wb-dashboard .wb-readonly-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
}

.wb-dashboard .wb-readonly-select small {
    color: #77cfee;
    font-size: 0.66rem;
}

.wb-dashboard .wb-kpi.status.status-check strong,
.wb-dashboard .load-side .status-check {
    color: #ffcf7a;
}

.wb-dashboard .wb-kpi.status.status-pending strong,
.wb-dashboard .load-side .status-pending {
    color: #91a5bd;
}

.wb-dashboard .aircraft-hud-pill.status-pending,
.wb-dashboard .aircraft-hud-limit.status-pending {
    color: #9fb0c7;
    border-color: rgba(159, 176, 199, 0.24);
    background: rgba(17, 28, 43, 0.78);
}

.wb-dashboard .aircraft-hud-marker.status-pending {
    color: #9fb0c7;
    background: #9fb0c7;
}

.wb-dashboard .aircraft-hud-range {
    width: auto;
}

.wb-dashboard .aircraft-model-unavailable {
    z-index: 5;
    display: grid;
    gap: 6px;
    max-width: 360px;
    padding: 18px 22px;
    text-align: center;
    border: 1px solid rgba(255, 207, 122, 0.28);
    border-radius: 12px;
    background: rgba(8, 16, 27, 0.82);
    color: #dce8f4;
}

.wb-dashboard .aircraft-model-unavailable strong {
    color: #ffcf7a;
}

.wb-dashboard .aircraft-model-unavailable span,
.wb-dashboard .aircraft-model-unavailable small {
    color: #91a5bd;
    line-height: 1.35;
}

.wb-dashboard .load-bars.dynamic {
    display: grid;
    grid-template-columns: repeat(5, minmax(28px, 1fr));
    align-items: end;
    gap: 4px;
}

.wb-dashboard .load-bars.dynamic i {
    width: auto;
    min-width: 0;
    height: var(--h);
    flex: none;
}

.wb-dashboard .load-side strong {
    overflow-wrap: anywhere;
}

.loadsheet-live-warning {
    max-width: 1080px;
    margin: 18px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 207, 122, 0.32);
    border-radius: 7px;
    background: rgba(62, 39, 8, 0.42);
    color: #ffe3a8;
    font-size: 0.84rem;
    font-weight: 700;
}

.fuel-ladder,
.fuel-ladder-note {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fuel-hero-bars i {
    width: 30%;
}

.summary-live-limits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.summary-live-limit {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(143, 215, 255, 0.18);
    border-radius: 7px;
    background: rgba(10, 24, 39, 0.72);
}

.summary-live-limit > span,
.summary-live-limit > small {
    color: #8fa8c2;
    font-size: 0.7rem;
}

.summary-live-limit > strong {
    color: #f2f8ff;
    font-size: 0.9rem;
}

.summary-live-limit > i {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.16);
}

.summary-live-limit > i > b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #55c7ff, #6ee7a8);
}

@media (max-width: 767.98px) {
    .summary-live-limits {
        grid-template-columns: 1fr;
    }
}

/* ===== WB MOBILE USABILITY HOTFIX ===== */
@media (max-width: 767.98px) {
    .wb-dashboard {
        padding-top: 64px;
        padding-inline: 8px;
    }

    .wb-dashboard .wb-topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .wb-dashboard .wb-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        margin: 0;
        padding-bottom: 0;
    }

    .wb-dashboard .wb-tabs button,
    .wb-dashboard .wb-tabs span {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .wb-dashboard .wb-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .wb-dashboard .wb-toolbar .wb-compact-toggle {
        width: 100%;
        min-width: 0;
    }

    .wb-dashboard .wb-toolbar .wb-save-state,
    .wb-dashboard .wb-toolbar .wb-time {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .wb-dashboard .wb-toolbar .wb-save-state {
        grid-column: 1 / -1;
        order: 10;
    }

    .wb-dashboard .wb-toolbar .wb-time {
        grid-column: span 2;
    }

    .wb-dashboard .wb-toolbar .wb-avatar {
        justify-self: end;
    }

    .wb-dashboard .wb-kpis,
    .wb-dashboard .wb-grid,
    .wb-dashboard .wb-bottom-grid,
    .wb-dashboard .wb-left,
    .wb-dashboard .wb-center,
    .wb-dashboard .wb-right,
    .wb-dashboard .wb-breakdown-grid,
    .wb-dashboard .wb-passenger-summary,
    .wb-dashboard .limit-grid {
        grid-template-columns: 1fr;
    }

    .wb-dashboard .wb-kpis,
    .wb-dashboard .wb-grid,
    .wb-dashboard .wb-bottom-grid,
    .wb-dashboard .wb-left,
    .wb-dashboard .wb-center,
    .wb-dashboard .wb-right {
        gap: 10px;
    }

    .wb-dashboard .wb-panel,
    .wb-dashboard .wb-kpi {
        min-width: 0;
        padding: 10px;
    }

    .wb-dashboard .wb-aircraft-stage,
    .wb-dashboard #aircraft-3d-viewer,
    .wb-dashboard .aircraft-3d-container,
    .wb-dashboard .cg-chart-container {
        height: 220px;
        min-height: 220px;
    }

    .wb-dashboard .wb-table-panel,
    .wb-dashboard .cargo-panel,
    .wb-dashboard .passenger-panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wb-dashboard .wb-table-panel .wb-data-table {
        min-width: 560px;
        table-layout: auto;
    }

    .wb-dashboard .cargo-panel .hold-table,
    .wb-dashboard .passenger-panel .passenger-table {
        min-width: 520px;
    }

    .wb-dashboard .hold-summary-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wb-dashboard.wb-compact .wb-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wb-dashboard.wb-compact .wb-kpi-primary,
    .wb-dashboard.wb-compact .wb-kpi.status,
    .wb-dashboard.wb-compact .wb-kpi.module {
        grid-column: span 3;
    }
}

@media (max-width: 575.98px) {
    .wb-dashboard .wb-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-dashboard .wb-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-dashboard .wb-toolbar .wb-time,
    .wb-dashboard .wb-toolbar .wb-save-state {
        grid-column: 1 / -1;
    }

    .wb-dashboard .wb-toolbar .wb-avatar {
        justify-self: start;
    }

    .wb-dashboard .wb-table-panel .wb-data-table {
        min-width: 520px;
    }

    .wb-dashboard .cargo-panel .hold-table,
    .wb-dashboard .passenger-panel .passenger-table {
        min-width: 500px;
    }

    .wb-dashboard.wb-compact .wb-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-dashboard.wb-compact .wb-kpi-primary,
    .wb-dashboard.wb-compact .wb-kpi.status,
    .wb-dashboard.wb-compact .wb-kpi.module {
        grid-column: 1 / -1;
    }
}

/* ===== WB MOBILE GRID STABILIZATION =====
   Desktop panel coordinates must be cleared when the dashboard collapses to
   one column. Otherwise CSS Grid creates an implicit second column on phones. */
.wb-dashboard .wb-email-button {
    border-color: rgba(66, 214, 133, 0.45);
    color: #a9f1c9;
    background: linear-gradient(180deg, rgba(22, 92, 65, 0.82), rgba(10, 53, 43, 0.9));
}

.wb-dashboard .wb-email-button:hover,
.wb-dashboard .wb-email-button:focus-visible {
    border-color: rgba(66, 214, 133, 0.8);
    color: #e7fff2;
}

.wb-dashboard .wb-email-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wb-dashboard .wb-email-state {
    grid-column: 1 / -1;
    color: #ffcb7a;
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: right;
}

.wb-dashboard .wb-email-state.success {
    color: #77e7aa;
}

@media (max-width: 991.98px) {
    .wb-dashboard,
    .wb-dashboard .wb-shell,
    .wb-dashboard .wb-topbar,
    .wb-dashboard .wb-grid,
    .wb-dashboard .wb-bottom-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wb-dashboard {
        overflow-x: clip;
    }

    .wb-dashboard .flight-card,
    .wb-dashboard .passenger-distribution-panel,
    .wb-dashboard .cargo-panel,
    .wb-dashboard .wb-table-panel,
    .wb-dashboard .envelope-panel,
    .wb-dashboard .info-card,
    .wb-dashboard .wb-right,
    .wb-dashboard .limits-panel,
    .wb-dashboard .load-panel,
    .wb-dashboard .trim-panel {
        grid-column: 1 / -1;
        grid-row: auto;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    /* Keep the operational input flow ahead of the heavier visual panels. */
    .wb-dashboard .flight-card { order: 10; }
    .wb-dashboard .passenger-distribution-panel { order: 20; }
    .wb-dashboard .cargo-panel { order: 30; }
    .wb-dashboard .wb-table-panel { order: 40; }
    .wb-dashboard .wb-right { order: 50; }
    .wb-dashboard .envelope-panel { order: 60; }
    .wb-dashboard .info-card { order: 70; }

    .wb-dashboard .wb-table-panel,
    .wb-dashboard .cargo-panel,
    .wb-dashboard .passenger-panel {
        max-width: 100%;
        scrollbar-color: rgba(98, 216, 255, 0.65) rgba(255, 255, 255, 0.06);
        scrollbar-width: thin;
    }
}

@media (max-width: 575.98px) {
    .wb-dashboard .wb-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-dashboard .wb-kpi-primary {
        grid-column: 1 / -1;
    }

    .wb-dashboard .wb-kpi {
        min-height: 70px;
    }
}

/* ===== WB PHONE CARD TABLES ===== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .wb-dashboard {
        padding-inline: 14px;
    }

    .wb-dashboard .wb-topbar {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;
    }

    .wb-dashboard .wb-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        overflow: visible;
    }

    .wb-dashboard .wb-tabs button,
    .wb-dashboard .wb-tabs span,
    .wb-dashboard .wb-toolbar .wb-compact-toggle {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .wb-dashboard .wb-toolbar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .wb-dashboard .wb-toolbar .wb-save-state,
    .wb-dashboard .wb-toolbar .wb-email-state {
        grid-column: 1 / -1;
        text-align: left;
    }

    .wb-dashboard .wb-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wb-dashboard .flight-top-fields,
    .wb-dashboard .flight-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wb-dashboard .flight-number-field,
    .wb-dashboard .crew-code-row {
        grid-column: 1 / -1;
    }

    .wb-dashboard .flight-fuel-fields,
    .wb-dashboard .flight-fuel-fields.has-trim-thrust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wb-dashboard .wb-panel,
    .wb-dashboard .wb-kpi {
        min-width: 0;
    }

    .wb-dashboard .cg-chart-container,
    .wb-dashboard .aircraft-3d-container,
    .wb-dashboard #aircraft-3d-viewer {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .wb-dashboard {
        padding-right: max(8px, env(safe-area-inset-right));
        padding-left: max(8px, env(safe-area-inset-left));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .wb-dashboard .wb-email-button {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .wb-dashboard .wb-tabs button,
    .wb-dashboard .wb-toolbar .wb-compact-toggle,
    .wb-dashboard .wb-select,
    .wb-dashboard .wb-edit-field,
    .wb-dashboard .flight-number {
        min-height: 44px;
    }

    .wb-dashboard .flight-card dl > div:nth-child(1),
    .wb-dashboard .flight-card dl > div:nth-child(2) {
        display: none;
    }

    .wb-dashboard .wb-mobile-card-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        table-layout: auto;
    }

    .wb-dashboard .wb-mobile-card-table thead {
        display: none;
    }

    .wb-dashboard .wb-mobile-card-table tbody {
        display: grid;
        gap: 9px;
    }

    .wb-dashboard .wb-mobile-card-table tr {
        display: grid;
        width: 100%;
        overflow: hidden;
        border: 1px solid rgba(118, 157, 196, 0.2);
        border-radius: 9px;
        background: rgba(7, 22, 37, 0.72);
    }

    .wb-dashboard .wb-mobile-card-table td {
        display: flex;
        min-width: 0;
        min-height: 38px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 9px;
        border: 0;
        border-bottom: 1px solid rgba(118, 157, 196, 0.12);
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .wb-dashboard .wb-mobile-card-table td:last-child {
        border-bottom: 0;
    }

    .wb-dashboard .wb-mobile-card-table td::before {
        flex: 0 0 36%;
        color: #8fa8c2;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .wb-dashboard .wb-mobile-card-table .wb-edit-field {
        width: min(160px, 58vw);
        margin-left: auto;
    }

    .wb-dashboard .wb-mobile-hold-table td:nth-child(1)::before { content: "Hold"; }
    .wb-dashboard .wb-mobile-hold-table td:nth-child(2)::before { content: "Max Weight"; }
    .wb-dashboard .wb-mobile-hold-table td:nth-child(3)::before { content: "Index"; }
    .wb-dashboard .wb-mobile-hold-table td:nth-child(4)::before { content: "Cargo Input"; }

    .wb-dashboard .wb-mobile-breakdown-table td:nth-child(1)::before { content: "Item"; }
    .wb-dashboard .wb-mobile-breakdown-table td:nth-child(2)::before { content: "Weight"; }
    .wb-dashboard .wb-mobile-breakdown-table td:nth-child(3)::before { content: "Index / LI"; }
    .wb-dashboard .wb-mobile-breakdown-table td:nth-child(4)::before { content: "Result"; }

    .wb-dashboard .wb-mobile-pax-table td:first-child::before { content: "Destination"; }
    .wb-dashboard .wb-mobile-pax-table td:not(:first-child):not(:last-child)::before { content: "Passenger"; }
    .wb-dashboard .wb-mobile-pax-table td:last-child::before { content: "Total"; }

    .wb-dashboard .wb-mobile-section-table td:nth-child(1)::before { content: "Section"; }
    .wb-dashboard .wb-mobile-section-table td:nth-child(2)::before { content: "Capacity"; }
    .wb-dashboard .wb-mobile-section-table td:nth-child(3)::before { content: "Arm Index"; }
    .wb-dashboard .wb-mobile-section-table td:nth-child(4)::before { content: "Input"; }
    .wb-dashboard .wb-mobile-section-table td:nth-child(5)::before { content: "Total"; }

    .wb-dashboard .wb-right .wb-aircraft-stage,
    .wb-dashboard .cg-chart-container,
    .wb-dashboard .aircraft-3d-container,
    .wb-dashboard #aircraft-3d-viewer {
        height: 200px;
        min-height: 200px;
    }
}
