
/* css/app.css */
/* =========================================================
   DESTROZADO07 // STAR CITIZEN CONTROL V2
   INDUSTRIAL CONTROL UI
   DRAKE-INSPIRED UTILITARIAN SHELL
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --bg-0: #070808;
    --bg-1: #0a0c0d;
    --bg-2: #0f1213;
    --bg-3: #15191a;
    --bg-4: #1b2021;
    --bg-5: #252a2b;

    --steel-0: #111415;
    --steel-1: #171b1c;
    --steel-2: #202526;
    --steel-3: #2a3031;

    --panel:
        rgba(15, 18, 19, 0.97);

    --panel-strong:
        rgba(21, 25, 26, 0.99);

    --panel-soft:
        rgba(255, 255, 255, 0.022);

    --line:
        rgba(218, 224, 222, 0.085);

    --line-medium:
        rgba(218, 224, 222, 0.14);

    --line-strong:
        rgba(218, 224, 222, 0.22);

    --text:
        #e2e4df;

    --text-soft:
        #a4aaa7;

    --text-dim:
        #69706d;

    --text-dark:
        #363c3a;

    --accent:
        #d77a24;

    --accent-soft:
        rgba(215, 122, 36, 0.12);

    --accent-medium:
        rgba(215, 122, 36, 0.30);

    --accent-strong:
        #f09a45;

    --accent-hot:
        #ffad58;

    --positive:
        #7baf80;

    --negative:
        #c7665d;

    --warning:
        #d7a052;

    --sidebar-width:
        244px;

    --topbar-height:
        86px;

    --section-nav-height:
        54px;

    --radius-sm:
        2px;

    --radius-md:
        3px;

    --radius-lg:
        4px;

    --shadow-panel:
        0 20px 54px rgba(0, 0, 0, 0.30);

    --transition:
        150ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    background: var(--bg-0);
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 78% 3%,
            rgba(215, 122, 36, 0.055),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #070808 0%,
            #0b0d0e 46%,
            #080909 100%
        );

    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    overflow-x: hidden;
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    color: inherit;
}


a {
    color: inherit;
}


/* =========================================================
   INDUSTRIAL BACKGROUND
   ========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        );

    background-size:
        56px 56px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 88%
        );

    z-index: 0;
}


body::after {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 4px,
            rgba(255, 255, 255, 0.006) 5px
        );

    opacity: 0.3;

    z-index: 0;
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {

    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width:
        var(--sidebar-width);

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #151819 0%,
            #0e1112 45%,
            #090b0c 100%
        );

    border-right:
        1px solid
        rgba(215, 122, 36, 0.20);

    box-shadow:
        12px 0 42px
        rgba(0, 0, 0, 0.34);

    z-index: 30;
}


.sidebar::after {

    content: "";

    position: absolute;

    top: 0;
    right: 7px;
    bottom: 0;

    width: 1px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(215, 122, 36, 0.20),
            rgba(255, 255, 255, 0.03) 40%,
            transparent
        );
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {

    position: relative;

    min-height:
        var(--topbar-height);

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        15px 17px;

    border-bottom:
        1px solid
        var(--line-medium);

    background:
        linear-gradient(
            120deg,
            rgba(215, 122, 36, 0.10),
            rgba(255, 255, 255, 0.01) 55%
        );
}


.brand::after {

    content: "AUTHORIZED TERMINAL";

    position: absolute;

    right: 11px;
    bottom: 5px;

    color:
        rgba(255, 255, 255, 0.10);

    font-size: 6px;

    font-weight: 800;

    letter-spacing: 0.15em;
}


.brand-mark {

    position: relative;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    background:
        #1a1d1e;

    border:
        1px solid
        rgba(215, 122, 36, 0.55);

    color:
        var(--accent-hot);

    font-size: 14px;

    font-weight: 900;

    letter-spacing: 0.12em;

    clip-path:
        polygon(
            0 0,
            calc(100% - 8px) 0,
            100% 8px,
            100% 100%,
            8px 100%,
            0 calc(100% - 8px)
        );
}


.brand-mark::before {

    content: "";

    position: absolute;

    left: 4px;
    top: 4px;

    width: 7px;
    height: 2px;

    background:
        var(--accent);
}


.brand-mark::after {

    content: "";

    position: absolute;

    right: 4px;
    bottom: 4px;

    width: 7px;
    height: 2px;

    background:
        var(--accent);
}


.brand-copy {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.brand-copy strong {

    color:
        var(--text);

    font-size: 13px;

    font-weight: 850;

    letter-spacing: 0.08em;

    white-space: nowrap;
}


.brand-copy span {

    margin-top: 2px;

    color:
        var(--text-dim);

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 0.16em;
}


/* =========================================================
   TERMINAL ID
   ========================================================= */

.sidebar-terminal-id {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-height: 38px;

    padding:
        0 17px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);

    background:
        rgba(0, 0, 0, 0.18);
}


.sidebar-terminal-id span {

    color:
        var(--text-dim);

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 0.17em;
}


.sidebar-terminal-id strong {

    color:
        rgba(215, 122, 36, 0.88);

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 0.12em;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-nav {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding:
        14px 11px;

    overflow-y: auto;
}


.area-nav-item {

    position: relative;

    width: 100%;

    min-height: 59px;

    display: grid;

    grid-template-columns:
        35px minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);

    border-radius: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.006)
        );

    color:
        var(--text-soft);

    text-align: left;

    cursor: pointer;

    clip-path:
        polygon(
            0 0,
            calc(100% - 7px) 0,
            100% 7px,
            100% 100%,
            0 100%
        );

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}


.area-nav-item:hover {

    background:
        linear-gradient(
            90deg,
            rgba(215, 122, 36, 0.09),
            rgba(255, 255, 255, 0.015)
        );

    border-color:
        rgba(215, 122, 36, 0.18);

    color:
        var(--text);
}


.area-nav-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(215, 122, 36, 0.22),
            rgba(215, 122, 36, 0.055)
        );

    border-color:
        rgba(215, 122, 36, 0.32);

    color:
        #f3eee7;
}


.area-nav-item.active::before {

    content: "";

    position: absolute;

    left: 0;
    top: 7px;
    bottom: 7px;

    width: 3px;

    background:
        var(--accent);

    box-shadow:
        0 0 10px
        rgba(215, 122, 36, 0.38);
}


.area-nav-item.active::after {

    content: "";

    position: absolute;

    right: 10px;
    top: 10px;

    width: 16px;
    height: 1px;

    background:
        rgba(240, 154, 69, 0.60);
}


.area-nav-index {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 31px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.07);

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.08em;
}


.area-nav-item.active
.area-nav-index {

    color:
        var(--accent-hot);

    border-right-color:
        rgba(215, 122, 36, 0.25);
}


.area-nav-copy {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.area-nav-copy strong {

    color:
        inherit;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.075em;
}


.area-nav-copy small {

    margin-top: 2px;

    color:
        var(--text-dim);

    font-size: 7px;

    font-weight: 650;

    letter-spacing: 0.045em;
}


.area-nav-item.active
.area-nav-copy small {

    color:
        #9d8a78;
}


/* =========================================================
   SYSTEM SEPARATOR
   ========================================================= */

.nav-system-separator {

    display: flex;

    align-items: center;

    gap: 9px;

    margin:
        9px 2px 2px;

    color:
        var(--text-dim);
}


.nav-system-separator::before {

    content: "";

    flex: 1;

    height: 1px;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.10) 0,
            rgba(255, 255, 255, 0.10) 5px,
            transparent 5px,
            transparent 9px
        );
}


.nav-system-separator span {

    flex-shrink: 0;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.16em;
}


.area-nav-system {

    min-height: 51px;

    opacity: 0.88;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {

    margin-top: auto;

    padding:
        13px 16px 15px;

    border-top:
        1px solid
        var(--line-medium);

    background:
        #0b0d0e;
}


.sidebar-status-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.15em;
}


.status-line {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 28px;

    padding:
        0 9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    background:
        rgba(255, 255, 255, 0.018);

    color:
        var(--text-soft);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.08em;
}


.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--warning);

    box-shadow:
        0 0 9px
        rgba(215, 160, 82, 0.4);
}


.status-dot.online {

    background:
        var(--positive);

    box-shadow:
        0 0 9px
        rgba(123, 175, 128, 0.5);
}


.status-dot.offline {

    background:
        var(--negative);

    box-shadow:
        0 0 9px
        rgba(199, 102, 93, 0.5);
}


.version-line {

    margin-top: 8px;

    color:
        #464c49;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: 0.12em;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {

    grid-column: 2;

    min-width: 0;

    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {

    position: sticky;

    top: 0;

    z-index: 20;

    min-height:
        var(--topbar-height);

    display: flex;

    align-items: stretch;

    justify-content: space-between;

    gap: 20px;

    padding:
        0 25px;

    background:
        linear-gradient(
            180deg,
            rgba(19, 22, 23, 0.98),
            rgba(10, 12, 13, 0.97)
        );

    border-bottom:
        1px solid
        rgba(215, 122, 36, 0.17);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}


.topbar::before {

    content: "";

    position: absolute;

    left: 25px;
    bottom: -1px;

    width: 96px;
    height: 2px;

    background:
        var(--accent);
}


.topbar-area-block {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 14px;
}


.active-area-code {

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(215, 122, 36, 0.28);

    background:
        rgba(215, 122, 36, 0.06);

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.08em;

    clip-path:
        polygon(
            0 0,
            calc(100% - 7px) 0,
            100% 7px,
            100% 100%,
            7px 100%,
            0 calc(100% - 7px)
        );
}


.topbar-title {

    min-width: 0;
}


.topbar-pretitle {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 3px;
}


.eyebrow {

    color:
        var(--accent);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.19em;
}


.topbar-divider {

    color:
        #434a47;

    font-size: 8px;
}


.active-area-label {

    color:
        var(--text-dim);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.14em;
}


.topbar-title h1 {

    margin: 0;

    color:
        var(--text);

    font-size:
        clamp(
            20px,
            2vw,
            27px
        );

    font-weight: 620;

    letter-spacing: -0.025em;
}


.topbar-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;
}


.topbar-context {

    display: flex;

    align-items: stretch;

    min-height: 46px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        #101314;

    clip-path:
        polygon(
            7px 0,
            100% 0,
            100% calc(100% - 7px),
            calc(100% - 7px) 100%,
            0 100%,
            0 7px
        );
}


.context-item {

    min-width: 108px;

    padding:
        7px 13px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.06);
}


.context-item:first-child {

    border-left: 0;
}


.context-label {

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.14em;
}


.context-item strong {

    margin-top: 2px;

    color:
        var(--text);

    font-size: 10px;

    font-weight: 750;

    white-space: nowrap;
}


.context-wallet strong {

    color:
        var(--accent-hot);
}


/* =========================================================
   SECTION MODULE NAVIGATION
   ========================================================= */

.section-nav-shell {

    position: sticky;

    top:
        var(--topbar-height);

    z-index: 18;

    min-height:
        var(--section-nav-height);

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    align-items: stretch;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        rgba(9, 11, 12, 0.97);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.17);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.section-nav-ident {

    min-width: 125px;

    display: flex;

    align-items: center;

    padding:
        0 18px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(255, 255, 255, 0.012);
}


.section-nav-ident span {

    color:
        #5f6663;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.18em;
}


.section-nav {

    min-width: 0;

    display: flex;

    align-items: stretch;

    overflow-x: auto;

    scrollbar-width: none;
}


.section-nav::-webkit-scrollbar {

    display: none;
}


.section-nav-empty {

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 5px,
            transparent 5px,
            transparent 12px
        );
}


.section-nav-item {

    position: relative;

    min-width: 105px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        0 15px;

    border: 0;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.055);

    background:
        transparent;

    color:
        var(--text-dim);

    cursor: pointer;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition);
}


.section-nav-item:hover {

    color:
        var(--text);

    background:
        rgba(255, 255, 255, 0.025);
}


.section-nav-item.active {

    color:
        var(--text);

    background:
        linear-gradient(
            180deg,
            rgba(215, 122, 36, 0.10),
            rgba(215, 122, 36, 0.025)
        );
}


.section-nav-item.active::after {

    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 0;

    height: 2px;

    background:
        var(--accent);
}


.section-nav-marker {

    color:
        #505754;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;
}


.section-nav-item.active
.section-nav-marker {

    color:
        var(--accent-hot);
}


.section-nav-label {

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.section-nav-end {

    min-width: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        0 13px;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.06);

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.13em;
}


.section-nav-end-light {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--positive);

    box-shadow:
        0 0 7px
        rgba(123, 175, 128, 0.4);
}


/* =========================================================
   HAZARD DIVIDER
   ========================================================= */

.hazard-divider {

    height: 5px;

    display: flex;

    overflow: hidden;

    background:
        #090b0b;
}


.hazard-divider span {

    flex: 1;

    background:
        repeating-linear-gradient(
            135deg,
            rgba(215, 122, 36, 0.33) 0,
            rgba(215, 122, 36, 0.33) 7px,
            rgba(15, 18, 19, 0.25) 7px,
            rgba(15, 18, 19, 0.25) 14px
        );

    border-right:
        1px solid
        rgba(0, 0, 0, 0.5);
}


.hazard-divider span:nth-child(even) {

    opacity: 0.42;
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.workspace {

    width: 100%;

    max-width:
        1720px;

    margin:
        0 auto;

    padding:
        22px 26px 48px;
}


/* =========================================================
   VIEWS
   ========================================================= */

.view {

    display: none;

    animation:
        view-enter
        150ms ease;
}


.view.active {

    display: block;
}


@keyframes view-enter {

    from {
        opacity: 0;

        transform:
            translateY(3px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   DASHBOARD HERO
   ========================================================= */

.dashboard-hero {

    position: relative;

    overflow: hidden;

    min-height: 142px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    padding:
        24px 26px;

    border:
        1px solid
        var(--line-medium);

    background:
        linear-gradient(
            120deg,
            rgba(215, 122, 36, 0.115),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.005)
        ),
        #111415;

    box-shadow:
        var(--shadow-panel);

    clip-path:
        polygon(
            0 0,
            calc(100% - 16px) 0,
            100% 16px,
            100% 100%,
            16px 100%,
            0 calc(100% - 16px)
        );
}


.dashboard-hero::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 110px;
    height: 3px;

    background:
        var(--accent);
}


.dashboard-hero::after {

    content: "D07 // GENERAL OPERATIONS TERMINAL";

    position: absolute;

    right: 24px;
    top: 16px;

    color:
        rgba(255, 255, 255, 0.045);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.16em;
}


.section-kicker {

    color:
        var(--accent);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.18em;
}


.dashboard-hero h2 {

    margin:
        5px 0 5px;

    font-size:
        clamp(
            25px,
            3vw,
            36px
        );

    font-weight: 560;

    letter-spacing: -0.035em;
}


.dashboard-hero p {

    max-width: 620px;

    margin: 0;

    color:
        var(--text-soft);

    font-size: 11px;

    line-height: 1.65;
}


.hero-status {

    min-width: 150px;

    padding:
        12px 15px;

    border:
        1px solid
        rgba(215, 122, 36, 0.22);

    border-left:
        3px solid
        var(--accent);

    background:
        rgba(0, 0, 0, 0.19);
}


.hero-status span {

    display: block;

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.16em;
}


.hero-status strong {

    display: block;

    margin-top: 3px;

    color:
        var(--accent-hot);

    font-size: 12px;

    font-weight: 850;

    letter-spacing: 0.07em;
}


/* =========================================================
   METRICS
   ========================================================= */

.metric-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 9px;

    margin-top: 9px;
}


.metric-card {

    position: relative;

    min-height: 105px;

    padding:
        17px 18px 15px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.027),
            rgba(255, 255, 255, 0.005)
        ),
        #111415;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.14);

    clip-path:
        polygon(
            0 0,
            calc(100% - 9px) 0,
            100% 9px,
            100% 100%,
            0 100%
        );
}


.metric-card::before {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 34px;
    height: 2px;

    background:
        var(--accent);
}


.metric-card::after {

    content: "";

    position: absolute;

    top: 8px;
    right: 8px;

    width: 13px;
    height: 1px;

    background:
        rgba(215, 122, 36, 0.36);
}


.metric-label {

    display: block;

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.15em;
}


.metric-value {

    display: block;

    margin-top: 9px;

    color:
        var(--text);

    font-size:
        clamp(
            21px,
            2vw,
            29px
        );

    font-weight: 580;

    letter-spacing: -0.04em;
}


.metric-unit {

    display: block;

    margin-top: 1px;

    color:
        #646b68;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.10em;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;

    margin-top: 9px;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel {

    position: relative;

    min-width: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    background:
        #101314;

    box-shadow:
        0 12px 34px
        rgba(0, 0, 0, 0.16);
}


.panel::after {

    content: "";

    position: absolute;

    top: -1px;
    right: 18px;

    width: 23px;
    height: 1px;

    background:
        rgba(215, 122, 36, 0.52);

    pointer-events: none;
}


.panel-wide {

    margin-top: 9px;
}


.panel-header {

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding:
        11px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.065);

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.022),
            transparent
        );
}


.panel-code {

    display: block;

    margin-bottom: 1px;

    color:
        var(--accent);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.15em;
}


.panel-header h3 {

    margin: 0;

    color:
        var(--text);

    font-size: 12px;

    font-weight: 680;

    letter-spacing: 0.01em;
}


.panel-meta {

    color:
        #565d5a;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.14em;
}


.panel-body {

    padding:
        5px 15px 10px;
}


/* =========================================================
   DATA ROWS
   ========================================================= */

.data-row {

    min-height: 39px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 17px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.042);
}


.data-row:last-child {

    border-bottom: 0;
}


.data-row span {

    color:
        var(--text-soft);

    font-size: 10px;
}


.data-row strong {

    color:
        var(--text);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;

    font-weight: 750;

    text-align: right;
}


.data-row.emphasized {

    margin-top: 2px;

    padding-top: 2px;
}


.data-row.emphasized strong {

    color:
        var(--accent-hot);
}


/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-feed {

    min-height: 150px;

    padding:
        15px;
}


.empty-state {

    min-height: 118px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border:
        1px dashed
        rgba(255, 255, 255, 0.075);

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.006) 0,
            rgba(255, 255, 255, 0.006) 6px,
            transparent 6px,
            transparent 13px
        );
}


.empty-state span {

    color:
        var(--accent);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.18em;
}


.empty-state p {

    margin:
        7px 0 0;

    color:
        var(--text-dim);

    font-size: 10px;
}


/* =========================================================
   MODULE PLACEHOLDER
   ========================================================= */

.module-placeholder {

    position: relative;

    min-height:
        calc(
            100vh -
            var(--topbar-height) -
            var(--section-nav-height) -
            85px
        );

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        var(--line);

    background:
        linear-gradient(
            135deg,
            rgba(215, 122, 36, 0.035),
            transparent 34%
        ),
        #101314;
}


.module-placeholder::before {

    content: "";

    position: absolute;

    inset: 17px;

    border:
        1px dashed
        rgba(255, 255, 255, 0.045);

    pointer-events: none;
}


.module-placeholder::after {

    content: "AWAITING MODULE DATA";

    position: absolute;

    right: 24px;
    bottom: 17px;

    color:
        rgba(255, 255, 255, 0.035);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.15em;
}


.module-placeholder span {

    color:
        var(--accent);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.20em;
}


.module-placeholder h2 {

    margin:
        5px 0 0;

    color:
        var(--text);

    font-size:
        clamp(
            25px,
            4vw,
            40px
        );

    font-weight: 520;

    letter-spacing: -0.04em;
}


/* =========================================================
   GENERIC UI COMPONENTS
   ========================================================= */

.btn {

    min-height: 36px;

    padding:
        0 14px;

    border:
        1px solid
        var(--line-medium);

    border-radius: 0;

    background:
        #15191a;

    color:
        var(--text);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.06em;

    cursor: pointer;

    clip-path:
        polygon(
            0 0,
            calc(100% - 5px) 0,
            100% 5px,
            100% 100%,
            0 100%
        );

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}


.btn:hover {

    background:
        #1d2223;

    border-color:
        var(--line-strong);
}


.btn-primary {

    border-color:
        rgba(215, 122, 36, 0.34);

    background:
        rgba(215, 122, 36, 0.12);

    color:
        var(--accent-hot);
}


.btn-primary:hover {

    background:
        rgba(215, 122, 36, 0.21);

    border-color:
        rgba(215, 122, 36, 0.52);
}


/* =========================================================
   FORMS
   ========================================================= */

.input,
.select,
.textarea {

    width: 100%;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 0;

    background:
        #090c0d;

    color:
        var(--text);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


.input,
.select {

    min-height: 37px;

    padding:
        0 10px;
}


.textarea {

    min-height: 88px;

    padding:
        9px 10px;

    resize: vertical;
}


.input:focus,
.select:focus,
.textarea:focus {

    border-color:
        rgba(215, 122, 36, 0.43);

    background:
        #0d1011;

    box-shadow:
        inset 3px 0 0
        rgba(215, 122, 36, 0.35);
}


.form-label {

    display: block;

    margin-bottom: 5px;

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.13em;
}


select option {

    background:
        #101415;

    color:
        var(--text);
}


/* =========================================================
   MODULE HERO
   ========================================================= */

.operations-hero,
.trade-hero,
.routes-hero,
.intel-hero,
.universe-hero,
.history-hero {

    margin-bottom: 0;
}


.operations-hero > .btn,
.trade-hero > .btn,
.routes-hero > .btn,
.intel-hero > .btn,
.universe-hero > .btn,
.history-hero > .btn {

    flex-shrink: 0;

    align-self: center;

    min-width: 132px;
}


/* =========================================================
   MODULE MESSAGES
   ========================================================= */

.operations-message,
.trade-message,
.routes-message,
.intel-message,
.universe-message,
.history-message {

    position: relative;

    margin-top: 9px;

    padding:
        10px 13px;

    border:
        1px solid
        rgba(123, 175, 128, 0.25);

    border-left:
        3px solid
        var(--positive);

    background:
        rgba(123, 175, 128, 0.055);

    color:
        #a6c8aa;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 8px;

    font-weight: 750;

    letter-spacing: 0.04em;
}


.operations-message[data-type="error"],
.trade-message[data-type="error"],
.routes-message[data-type="error"],
.intel-message[data-type="error"],
.universe-message[data-type="error"],
.history-message[data-type="error"] {

    border-color:
        rgba(199, 102, 93, 0.30);

    border-left-color:
        var(--negative);

    background:
        rgba(199, 102, 93, 0.06);

    color:
        #d9a09b;
}


/* =========================================================
   SHARED MODULE SPACING
   ========================================================= */

.operations-metrics,
.trade-metrics,
.routes-metrics,
.intel-metrics,
.universe-metrics,
.history-metrics {

    margin-top: 9px;
}


.operations-grid,
.trade-grid,
.routes-grid,
.intel-grid,
.universe-grid {

    margin-top: 9px;
}


/* =========================================================
   MODULE PANEL BODIES
   ========================================================= */

.operations-panel-body,
.trade-panel-body,
.routes-panel-body,
.intel-panel-body,
.universe-form {

    display: grid;

    gap: 10px;

    padding:
        14px 15px 16px;
}


/* =========================================================
   FIELDS
   ========================================================= */

.operations-field,
.trade-field,
.routes-field,
.intel-field,
.universe-field,
.history-field {

    display: block;

    min-width: 0;
}


.operations-field .input,
.operations-field .select,
.trade-field .input,
.trade-field .select,
.routes-field .input,
.routes-field .select,
.intel-field .input,
.intel-field .select,
.universe-field .input,
.universe-field .select,
.history-field .input,
.history-field .select {

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.operations-field .input:hover,
.operations-field .select:hover,
.trade-field .input:hover,
.trade-field .select:hover,
.routes-field .input:hover,
.routes-field .select:hover,
.intel-field .input:hover,
.intel-field .select:hover,
.universe-field .input:hover,
.universe-field .select:hover,
.history-field .input:hover,
.history-field .select:hover {

    border-color:
        rgba(255, 255, 255, 0.15);

    background:
        #0e1213;
}


/* =========================================================
   ACTION GROUPS
   ========================================================= */

.operations-actions,
.routes-actions,
.intel-actions,
.history-actions,
.routes-row-actions {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;
}


.operations-panel-body > .btn,
.trade-panel-body > .btn,
.routes-panel-body > .btn,
.universe-submit {

    justify-self: start;
}


/* =========================================================
   OPERATIONS
   ========================================================= */

.operations-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}


.operations-session-status,
.route-run-status {

    min-height: 39px;

    display: flex;

    align-items: center;

    padding:
        0 11px;

    border:
        1px solid
        var(--line);

    border-left:
        3px solid
        var(--text-dim);

    background:
        rgba(0, 0, 0, 0.18);

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.08em;
}


.operations-session-status[data-status="online"],
.route-run-status[data-status="online"] {

    border-left-color:
        var(--positive);

    color:
        #9fc4a3;

    background:
        rgba(123, 175, 128, 0.045);
}


.operations-session-status[data-status="offline"],
.route-run-status[data-status="offline"] {

    border-left-color:
        var(--negative);

    color:
        #bd8580;
}


.operations-history-list,
.trade-history-list,
.routes-history,
.history-list {

    padding:
        0 15px 7px;
}


.operations-history-row,
.trade-history-row,
.routes-history-row {

    min-height: 62px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);
}


.operations-history-row:last-child,
.trade-history-row:last-child,
.routes-history-row:last-child {

    border-bottom: 0;
}


.operations-history-main,
.trade-history-main,
.routes-history-main,
.operations-history-value,
.trade-history-value,
.routes-history-value {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.operations-history-main strong,
.trade-history-main strong,
.routes-history-main strong {

    color:
        var(--text);

    font-size: 10px;

    font-weight: 700;
}


.operations-history-main span,
.trade-history-main span,
.routes-history-main span {

    color:
        var(--text-dim);

    font-size: 8px;

    line-height: 1.45;
}


.operations-history-value,
.trade-history-value,
.routes-history-value {

    align-items: flex-end;

    text-align: right;
}


.operations-history-value strong,
.trade-history-value strong,
.routes-history-value strong {

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;

    font-weight: 800;
}


.operations-history-value span,
.trade-history-value span,
.routes-history-value span {

    color:
        var(--text-dim);

    font-size: 7px;
}


/* =========================================================
   TRADE
   ========================================================= */

.trade-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}


.trade-preview {

    position: relative;

    min-height: 52px;

    display: flex;

    align-items: center;

    padding:
        0 13px;

    overflow: hidden;

    border:
        1px solid
        rgba(215, 122, 36, 0.28);

    border-left:
        3px solid
        var(--accent);

    background:
        linear-gradient(
            90deg,
            rgba(215, 122, 36, 0.10),
            rgba(215, 122, 36, 0.02)
        );

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.07em;
}


.trade-preview::after {

    content: "";

    position: absolute;

    right: 0;
    top: 0;

    width: 19px;
    height: 100%;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 5px,
            rgba(215, 122, 36, 0.07) 5px,
            rgba(215, 122, 36, 0.07) 9px
        );
}


/* =========================================================
   ROUTES
   ========================================================= */

.routes-grid {

    display: grid;

    grid-template-columns:
        minmax(250px, 0.95fr)
        minmax(250px, 0.85fr)
        minmax(290px, 1.2fr);

    gap: 9px;

    align-items: start;
}


.routes-list,
.routes-history {

    padding:
        0 15px 7px;
}


.routes-list-row {

    min-height: 66px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 18px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);
}


.routes-list-row:last-child {

    border-bottom: 0;
}


.routes-list-main {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.routes-list-main strong {

    color:
        var(--text);

    font-size: 10px;

    font-weight: 750;
}


.routes-list-main span {

    color:
        var(--text-dim);

    font-size: 8px;

    line-height: 1.5;
}


.routes-list-stats {

    min-width: 105px;

    text-align: right;
}


.routes-list-stats strong {

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;
}


.routes-row-actions {

    justify-content:
        flex-end;
}


.routes-row-actions .btn {

    min-width: 36px;

    padding:
        0 10px;
}


/* =========================================================
   MARKET INTEL
   ========================================================= */

.intel-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}


.intel-filter-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 9px;
}


.intel-row {

    min-height: 60px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);
}


.intel-row:last-child {

    border-bottom: 0;
}


.intel-row-main {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.intel-row-main strong {

    color:
        var(--text);

    font-size: 9px;

    font-weight: 750;

    line-height: 1.4;
}


.intel-row-main span {

    color:
        var(--text-dim);

    font-size: 8px;

    line-height: 1.45;
}


.intel-row-value {

    max-width: 225px;

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 8px;

    font-weight: 800;

    text-align: right;

    line-height: 1.45;
}


.intel-panel-body > .empty-state {

    min-height: 105px;
}


/* =========================================================
   UNIVERSE
   ========================================================= */

.universe-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 9px;

    align-items: start;
}


.universe-panel {

    height: 100%;
}


.universe-submit {

    margin-top: 2px;
}


.universe-catalog-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 0;

    padding: 0;
}


.universe-list {

    min-width: 0;

    min-height: 170px;

    padding:
        14px 15px;

    border-right:
        1px solid
        var(--line);

    border-bottom:
        1px solid
        var(--line);
}


.universe-list:nth-child(3n) {

    border-right: 0;
}


.universe-list:nth-last-child(-n + 3) {

    border-bottom: 0;
}


.universe-list .form-label {

    margin-bottom: 8px;
}


.universe-list-content {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.universe-record {

    position: relative;

    min-height: 31px;

    display: flex;

    align-items: center;

    padding:
        6px 8px
        6px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.042);

    background:
        rgba(255, 255, 255, 0.012);

    color:
        var(--text-soft);

    font-size: 8px;

    line-height: 1.4;
}


.universe-record::before {

    content: "";

    position: absolute;

    left: 0;
    top: 7px;
    bottom: 7px;

    width: 2px;

    background:
        rgba(215, 122, 36, 0.70);
}


.universe-empty {

    min-height: 64px;

    display: grid;

    place-items: center;

    border:
        1px dashed
        rgba(255, 255, 255, 0.055);

    color:
        var(--text-dim);

    font-size: 8px;

    letter-spacing: 0.05em;
}


/* =========================================================
   HISTORY
   ========================================================= */

.history-filter-panel .panel-body {

    padding:
        14px 15px 16px;
}


.history-filter-grid {

    display: grid;

    grid-template-columns:
        minmax(170px, 0.4fr)
        minmax(270px, 1fr);

    gap: 9px;
}


.history-actions {

    margin-top: 9px;
}


.history-list {

    padding:
        0 15px 7px;
}


.history-row {

    min-height: 66px;

    display: grid;

    grid-template-columns:
        78px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 16px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);
}


.history-row:last-child {

    border-bottom: 0;
}


.history-source {

    min-width: 68px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 24px;

    padding:
        0 7px;

    border:
        1px solid
        var(--line);

    background:
        rgba(255, 255, 255, 0.018);

    color:
        var(--text-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.10em;
}


.history-source[data-source="economy"] {

    border-color:
        rgba(215, 122, 36, 0.25);

    color:
        var(--accent-hot);

    background:
        rgba(215, 122, 36, 0.06);
}


.history-source[data-source="trade"] {

    border-color:
        rgba(123, 175, 128, 0.22);

    color:
        #a0c3a4;

    background:
        rgba(123, 175, 128, 0.05);
}


.history-source[data-source="route"] {

    border-color:
        rgba(215, 160, 82, 0.22);

    color:
        #d2ad73;

    background:
        rgba(215, 160, 82, 0.05);
}


.history-row-main {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.history-row-main strong {

    color:
        var(--text);

    font-size: 9px;

    font-weight: 750;
}


.history-row-main span {

    color:
        var(--text-dim);

    font-size: 8px;

    line-height: 1.45;
}


.history-row-value {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 3px;

    text-align: right;
}


.history-row-value strong {

    color:
        var(--accent-hot);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;
}


.history-row-value span {

    color:
        var(--text-dim);

    font-size: 7px;
}


/* =========================================================
   MODULE EMPTY STATES
   ========================================================= */

.operations-history-list > .empty-state,
.trade-history-list > .empty-state,
.routes-list > .empty-state,
.routes-history > .empty-state,
.intel-panel-body > .empty-state,
.history-list > .empty-state {

    margin:
        15px 0;

    min-height: 96px;
}


/* =========================================================
   MODULE PANEL DETAIL
   ========================================================= */

.operations-panel,
.trade-panel,
.routes-panel,
.intel-panel,
.universe-panel {

    position: relative;

    overflow: hidden;
}


.operations-panel::before,
.trade-panel::before,
.routes-panel::before,
.intel-panel::before,
.universe-panel::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 20px;
    height: 2px;

    background:
        rgba(215, 122, 36, 0.50);

    pointer-events: none;
}


/* =========================================================
   COMPATIBILITY WITH PREVIOUS NAV CLASSES
   ========================================================= */

.nav-item,
.nav-group,
.nav-group-toggle,
.nav-submenu,
.nav-subsection-label {

    /*
     * Ya no forman parte del layout principal,
     * pero se conservan sin efectos destructivos
     * por compatibilidad durante la migración.
     */

    box-sizing: border-box;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

* {

    scrollbar-width: thin;

    scrollbar-color:
        #343a38
        #090b0c;
}


::-webkit-scrollbar {

    width: 8px;
    height: 8px;
}


::-webkit-scrollbar-track {

    background:
        #090b0c;
}


::-webkit-scrollbar-thumb {

    background:
        #343a38;

    border:
        2px solid
        #090b0c;
}


::-webkit-scrollbar-thumb:hover {

    background:
        #474e4b;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {

    background:
        rgba(215, 122, 36, 0.28);

    color:
        #ffffff;
}


/* =========================================================
M33 // D07 FILTER SYSTEM
========================================================= */

.d07-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(10, 13, 14, 0.72);
}

.d07-filter-search {
    flex: 1 1 260px;
    min-width: 220px;
}

.d07-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.d07-filter-group-label {
    color: var(--text-dim);
    font-family: Consolas, "Courier New", monospace;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.d07-filter-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.d07-filter-chip {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #101415;
    color: var(--text-dim);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.d07-filter-chip:hover {
    border-color: var(--line-strong);
    background: #181d1e;
    color: var(--text);
}

.d07-filter-chip.active,
.d07-filter-chip[aria-pressed="true"] {
    border-color: rgba(215, 122, 36, 0.42);
    background: rgba(215, 122, 36, 0.14);
    color: var(--accent-hot);
}

.d07-filter-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.d07-filter-reset {
    opacity: 0.78;
}

.d07-filter-reset:hover {
    opacity: 1;
}

.d07-filter-count {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-left: 2px solid rgba(215, 122, 36, 0.55);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.d07-filter-count strong {
    margin-right: 5px;
    color: var(--accent-hot);
}

.d07-filter-active {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}

.d07-filter-active:empty {
    display: none;
}

.d07-filter-token {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid rgba(215, 122, 36, 0.23);
    background: rgba(215, 122, 36, 0.07);
    color: var(--text-dim);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.d07-filter-token strong {
    color: var(--accent-hot);
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (
    max-width: 1320px
) {

    :root {

        --sidebar-width:
            226px;
    }


    .universe-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .routes-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .routes-grid > :last-child {

        grid-column:
            1 / -1;
    }


    .intel-filter-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .section-nav-ident {

        min-width: 105px;

        padding:
            0 13px;
    }


    .section-nav-item {

        min-width: 95px;

        padding:
            0 11px;
    }
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (
    max-width: 1120px
) {

    :root {

        --sidebar-width:
            210px;
    }


    .brand {

        padding:
            14px 13px;
    }


    .brand-mark {

        width: 43px;
        height: 43px;
    }


    .brand-copy strong {

        font-size: 11px;
    }


    .brand-copy span {

        font-size: 6px;
    }


    .sidebar-terminal-id {

        padding:
            0 13px;
    }


    .main-nav {

        padding:
            12px 8px;
    }


    .area-nav-item {

        min-height: 55px;

        padding:
            6px 9px;

        grid-template-columns:
            31px minmax(0, 1fr);
    }


    .area-nav-copy strong {

        font-size: 9px;
    }


    .area-nav-copy small {

        font-size: 6px;
    }


    .topbar {

        padding:
            0 18px;
    }


    .topbar-context {

        display: none;
    }


    .metric-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   MODULE RESPONSIVE
   ========================================================= */

@media (
    max-width: 980px
) {

    .operations-grid,
    .trade-grid,
    .intel-grid {

        grid-template-columns:
            1fr;
    }


    .routes-grid {

        grid-template-columns:
            1fr;
    }


    .routes-grid > :last-child {

        grid-column:
            auto;
    }


    .universe-catalog-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .universe-list,
    .universe-list:nth-child(3n) {

        border-right:
            1px solid var(--line);

        border-bottom:
            1px solid var(--line);
    }


    .universe-list:nth-child(2n) {

        border-right: 0;
    }


    .universe-list:nth-last-child(-n + 2) {

        border-bottom: 0;
    }
}


/* =========================================================
   MOBILE / NARROW
   ========================================================= */

@media (
    max-width: 820px
) {

    :root {

        --topbar-height:
            70px;

        --section-nav-height:
            48px;
    }


    .app-shell {

        display: block;

        padding-bottom:
            66px;
    }


    .sidebar {

        top: auto;

        right: 0;

        width: auto;
        height: 66px;

        flex-direction: row;

        align-items: stretch;

        border-right: 0;

        border-top:
            1px solid
            rgba(215, 122, 36, 0.22);

        background:
            rgba(10, 12, 13, 0.985);

        backdrop-filter:
            blur(15px);

        -webkit-backdrop-filter:
            blur(15px);
    }


    .sidebar::after,
    .brand,
    .sidebar-terminal-id,
    .sidebar-footer,
    .nav-system-separator {

        display: none;
    }


    .main-nav {

        width: 100%;
        height: 66px;

        display: grid;

        grid-template-columns:
            repeat(
                7,
                minmax(54px, 1fr)
            );

        gap: 0;

        padding: 0;

        overflow-x: auto;

        overflow-y: hidden;
    }


    .area-nav-item {

        min-width: 58px;
        min-height: 66px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding:
            4px;

        border: 0;

        border-left:
            1px solid
            rgba(255, 255, 255, 0.04);

        background:
            transparent;

        clip-path: none;

        text-align: center;
    }


    .area-nav-item.active {

        background:
            rgba(215, 122, 36, 0.10);
    }


    .area-nav-item.active::before {

        left: 9px;
        right: 9px;
        top: 0;
        bottom: auto;

        width: auto;
        height: 2px;
    }


    .area-nav-item.active::after {

        display: none;
    }


    .area-nav-index {

        display: none;
    }


    .area-nav-copy {

        align-items: center;
    }


    .area-nav-copy strong {

        font-size: 7px;

        letter-spacing: 0.04em;
    }


    .area-nav-copy small {

        display: none;
    }


    .main-content {

        min-height: auto;
    }


    .topbar {

        min-height:
            var(--topbar-height);

        padding:
            0 13px;
    }


    .topbar-area-block {

        gap: 10px;
    }


    .active-area-code {

        width: 39px;
        height: 39px;

        font-size: 10px;
    }


    .topbar-title h1 {

        font-size: 17px;
    }


    .topbar-pretitle {

        gap: 5px;
    }


    .eyebrow {

        font-size: 6px;
    }


    .active-area-label,
    .topbar-divider {

        display: none;
    }


    .section-nav-shell {

        top:
            var(--topbar-height);

        min-height:
            var(--section-nav-height);

        grid-template-columns:
            minmax(0, 1fr);
    }


    .section-nav-ident,
    .section-nav-end {

        display: none;
    }


    .section-nav-item {

        min-width: 92px;

        padding:
            0 10px;
    }


    .section-nav-marker {

        display: none;
    }


    .section-nav-label {

        font-size: 7px;
    }


    .hazard-divider {

        height: 3px;
    }


    .workspace {

        padding:
            15px 12px 28px;
    }


    .dashboard-hero {

        min-height: 135px;

        align-items: flex-start;

        flex-direction: column;

        padding:
            20px 18px;
    }


    .dashboard-hero::after {

        display: none;
    }


    .hero-status {

        width: 100%;

        min-width: 0;
    }


    .metric-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .dashboard-grid {

        grid-template-columns:
            1fr;
    }


    .operations-hero > .btn,
    .trade-hero > .btn,
    .routes-hero > .btn,
    .intel-hero > .btn,
    .universe-hero > .btn,
    .history-hero > .btn {

        width: 100%;

        align-self: stretch;
    }


    .operations-grid,
    .trade-grid,
    .routes-grid,
    .intel-grid,
    .universe-grid {

        grid-template-columns:
            1fr;
    }


    .intel-filter-grid,
    .history-filter-grid {

        grid-template-columns:
            1fr;
    }


    .operations-history-row,
    .trade-history-row,
    .routes-history-row,
    .intel-row {

        grid-template-columns:
            1fr;

        gap: 6px;
    }


    .operations-history-value,
    .trade-history-value,
    .routes-history-value {

        align-items:
            flex-start;

        text-align:
            left;
    }


    .intel-row-value {

        max-width: none;

        text-align: left;
    }


    .routes-list-row {

        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .routes-list-stats {

        min-width: 0;

        text-align: left;
    }


    .routes-row-actions {

        justify-content:
            flex-start;
    }


    .history-row {

        grid-template-columns:
            1fr;

        gap: 6px;
    }


    .history-source {

        justify-self:
            start;
    }


    .history-row-value {

        align-items:
            flex-start;

        text-align:
            left;
    }


    .universe-catalog-grid {

        grid-template-columns:
            1fr;
    }


    .universe-list,
    .universe-list:nth-child(2n),
    .universe-list:nth-child(3n),
    .universe-list:nth-last-child(-n + 2),
    .universe-list:nth-last-child(-n + 3) {

        border-right: 0;

        border-bottom:
            1px solid var(--line);
    }


    .universe-list:last-child {

        border-bottom: 0;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (
    max-width: 520px
) {

    .workspace {

        padding:
            10px 8px 24px;
    }


    .topbar {

        padding:
            0 9px;
    }


    .active-area-code {

        width: 35px;
        height: 35px;
    }


    .topbar-title h1 {

        font-size: 15px;
    }


    .metric-grid {

        grid-template-columns:
            1fr;
    }


    .metric-card {

        min-height: 90px;
    }


    .dashboard-hero {

        padding:
            18px 15px;
    }


    .dashboard-hero h2 {

        font-size: 23px;
    }


    .dashboard-hero p {

        font-size: 10px;
    }


    .panel-header {

        min-height: 50px;

        padding:
            10px 12px;
    }


    .panel-body {

        padding:
            5px 12px 9px;
    }


    .area-nav-copy strong {

        font-size: 6px;
    }


    .section-nav-item {

        min-width: 80px;

        padding:
            0 8px;
    }


    .section-nav-label {

        font-size: 6px;
    }


    .operations-panel-body,
    .trade-panel-body,
    .routes-panel-body,
    .intel-panel-body,
    .universe-form {

        padding:
            12px;
    }


    .operations-actions,
    .routes-actions,
    .intel-actions,
    .history-actions {

        display: grid;

        grid-template-columns:
            1fr;
    }


    .operations-actions .btn,
    .routes-actions .btn,
    .intel-actions .btn,
    .history-actions .btn {

        width: 100%;
    }


    .operations-history-list,
    .trade-history-list,
    .routes-list,
    .routes-history,
    .history-list {

        padding:
            0 12px 5px;
    }


    .universe-list {

        padding:
            12px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }
}
/* =========================================================
M33 // READABILITY 16PX
========================================================= */

body { font-size: 16px; }
.area-nav-copy strong { font-size: 16px; }
.area-nav-copy small { font-size: 16px; }
.section-nav-label { font-size: 16px; }
.panel-header h3 { font-size: 16px; }
.panel-meta { font-size: 16px; }
.data-row span { font-size: 16px; }
.data-row strong { font-size: 16px; }
.btn { font-size: 16px; }
.input,
.select,
.textarea { font-size: 16px; }
.form-label { font-size: 16px; }
.d07-filter-group-label { font-size: 16px; }
.d07-filter-chip { font-size: 16px; }
.d07-filter-count { font-size: 16px; }
.d07-filter-token { font-size: 16px; }
select option { font-size: 16px; }

/* =========================================================
M33 // TYPOGRAPHY FINAL 14-16
========================================================= */

/* SIDEBAR // 14PX */
.brand-copy strong,
.brand-copy span,
.sidebar-terminal-id span,
.sidebar-terminal-id strong,
.area-nav-index,
.area-nav-copy strong,
.area-nav-copy small,
.nav-system-separator span,
.area-nav-system .area-nav-index,
.area-nav-system .area-nav-copy strong,
.area-nav-system .area-nav-copy small {
    font-size: 14px;
}

/* TOPBAR // ACTIVE AREA */
.topbar-area-block {
    align-items: center;
    gap: 18px;
}

.active-area-code {
    width: 58px;
    height: 58px;
    font-size: 20px;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.topbar-pretitle {
    justify-content: center;
    margin-bottom: 4px;
}

.eyebrow,
.active-area-label,
.topbar-divider {
    font-size: 16px;
}

.topbar-title h1 {
    font-size: clamp(28px, 2.4vw, 34px);
    text-align: center;
}

/* TOPBAR // SYSTEM SESSION WALLET */
.topbar-context {
    min-height: 62px;
    align-items: stretch;
}

.context-item {
    min-width: 140px;
    padding: 9px 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.context-label {
    font-size: 16px;
    text-align: center;
}

.context-item strong {
    margin-top: 4px;
    font-size: 18px;
    text-align: center;
}

/* =========================================================
M33 // SIDEBAR FINAL SCALE
========================================================= */

.section-nav-ident span {
    font-size: 16px;
}

.area-nav-index {
    font-size: 14px;
}

.area-nav-copy strong {
    font-size: 14px;
}

.area-nav-copy small {
    font-size: 11px;
    line-height: 1.25;
}

.nav-system-separator span {
    font-size: 14px;
}

.area-nav-system .area-nav-index,
.area-nav-system .area-nav-copy strong {
    font-size: 14px;
}

.area-nav-system .area-nav-copy small {
    font-size: 11px;
}

/* =========================================================
HANGAR V3 // SHIP MEDIA
========================================================= */

.fleet-ship-media {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin: 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(145deg, rgba(215,122,36,0.04), rgba(255,255,255,0.01)), #090c0d;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.fleet-ship-media::before {
    content: "RSI // VEHICLE VISUAL";
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    color: var(--accent-hot);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.fleet-ship-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
}

.fleet-rsi-link {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    text-decoration: none;
    backdrop-filter: blur(8px);
}



/* =========================================================
   D07_HANGAR_V3_LAYOUT_PP71
   ========================================================= */

.fleet-list-panel-selected {
    align-self: start;
    overflow: visible !important;
}

.fleet-list-panel-selected .fleet-list {
    max-height: 168px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.fleet-selected-workspace {
    width: 100%;
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 154, 34, 0.20);
    background:
        linear-gradient(
            180deg,
            rgba(255, 142, 31, 0.025),
            rgba(0, 0, 0, 0)
        );
}

.fleet-selected-workspace
.fleet-ship-media-expanded {
    width: 100%;
    height: clamp(480px, 53vh, 680px);
    min-height: 480px;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 154, 34, 0.42);
    background:
        linear-gradient(
            145deg,
            rgba(215, 122, 36, 0.045),
            rgba(255, 255, 255, 0.008)
        ),
        #070a0b;
}

.fleet-selected-workspace
.fleet-ship-media-expanded:has(.ship-holoviewer) {
    min-height: 480px;
}

.fleet-selected-workspace
.fleet-ship-media-expanded
.ship-holoviewer {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.fleet-selected-workspace
.fleet-ship-media-expanded
.ship-holoviewer-viewport {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
}

.fleet-selected-workspace
.fleet-ship-media-expanded
.ship-holoviewer-canvas {
    width: 100% !important;
    height: 100% !important;
}

.fleet-ship-specs-compact {
    width: 100%;
    min-width: 0;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(110, 135, 145, 0.22);
    background: rgba(5, 8, 9, 0.62);
}

.fleet-ship-specs-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-ship-specs-header h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.fleet-ship-spec-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    column-gap: 18px;
    row-gap: 0;
}

.fleet-ship-spec-grid > * {
    min-width: 0;
    margin: 0 !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.fleet-detail-panel {
    align-self: start;
}

.fleet-detail {
    min-width: 0;
}

.fleet-detail
.fleet-detail-heading {
    margin-bottom: 16px;
}

.fleet-detail
.fleet-detail-heading h2 {
    margin: 3px 0 8px;
}

.fleet-detail
.fleet-detail-heading p {
    margin: 0;
    max-width: 74ch;
    line-height: 1.5;
}

.fleet-component-impact-panel {
    position: relative;
    min-height: 500px;
    padding: 16px;
    margin-top: 14px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 154, 34, 0.30);
    background:
        linear-gradient(
            145deg,
            rgba(255, 143, 31, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        #080b0c;
    clip-path:
        polygon(
            0 0,
            calc(100% - 12px) 0,
            100% 12px,
            100% 100%,
            0 100%
        );
}

.fleet-component-impact-panel::before {
    content: "D07 // COMPONENT DELTA";
    position: absolute;
    top: 8px;
    right: 14px;
    color: rgba(255, 154, 34, 0.58);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.fleet-component-impact-header {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-component-impact-header h3 {
    margin: 4px 0 0;
    font-size: 15px;
    letter-spacing: 0.06em;
}

.fleet-component-impact-hint {
    margin: 12px 0;
    color: rgba(235, 240, 241, 0.68);
    font-size: 12px;
    line-height: 1.45;
}

.fleet-component-impact-compare {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 10px;
    margin-top: 14px;
}

.fleet-component-impact-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.025);
}

.fleet-component-impact-current {
    border-color: rgba(255, 154, 34, 0.48);
}

.fleet-component-impact-candidate {
    border-color: rgba(110, 145, 155, 0.30);
}

.fleet-component-impact-label {
    color: rgba(255, 154, 34, 0.78);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 0.10em;
}

.fleet-component-impact-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fleet-component-impact-card small {
    color: rgba(235, 240, 241, 0.58);
    line-height: 1.35;
}

.fleet-component-impact-delta {
    min-height: 250px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-component-impact-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
    border: 1px dashed rgba(255, 154, 34, 0.18);
    color: rgba(235, 240, 241, 0.38);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.05em;
}

.fleet-selected-workspace
.fleet-powerplant-compatibility {
    width: min(390px, 46%) !important;
    max-height: calc(100% - 28px) !important;
}

.fleet-powerplant-compatibility-close {
    display: grid !important;
    place-items: center;
}

@media (max-width: 1250px) {

    .fleet-ship-spec-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .fleet-selected-workspace
    .fleet-ship-media-expanded {
        height: clamp(440px, 50vh, 590px);
        min-height: 440px;
    }
}

@media (max-width: 900px) {

    .fleet-list-panel-selected
    .fleet-list {
        max-height: 220px;
    }

    .fleet-selected-workspace
    .fleet-ship-media-expanded {
        height: 440px;
        min-height: 420px;
    }

    .fleet-ship-spec-grid {
        grid-template-columns: 1fr;
    }

    .fleet-component-impact-compare {
        grid-template-columns: 1fr;
    }

    .fleet-selected-workspace
    .fleet-powerplant-compatibility {
        width: calc(100% - 24px) !important;
    }
}

/* =========================================================
   END D07_HANGAR_V3_LAYOUT_PP71
   ========================================================= */



/* =========================================================
   D07_PP75_COMPONENT_COMPARE
   ========================================================= */


.fleet-powerplant-option {
    cursor: pointer;
    transition:
        border-color 120ms ease,
        background 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
}


.fleet-powerplant-option:hover,
.fleet-powerplant-option:focus-visible {
    outline: none;
    border-color:
        rgba(
            255,
            176,
            48,
            0.78
        ) !important;
    background:
        rgba(
            255,
            154,
            34,
            0.10
        ) !important;
}


.fleet-powerplant-option.is-selected {
    border-color:
        rgba(
            255,
            188,
            72,
            1
        ) !important;
    background:
        rgba(
            255,
            154,
            34,
            0.19
        ) !important;
    box-shadow:
        inset
        3px
        0
        0
        rgba(
            255,
            176,
            48,
            1
        ),
        0
        0
        14px
        rgba(
            255,
            154,
            34,
            0.10
        );
}


.fleet-component-impact-loading,
.fleet-component-impact-error {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.05em;
}


.fleet-component-impact-loading {
    color:
        rgba(
            255,
            176,
            48,
            0.76
        );
    border:
        1px dashed
        rgba(
            255,
            154,
            34,
            0.24
        );
}


.fleet-component-impact-error {
    color:
        rgba(
            255,
            105,
            90,
            0.92
        );
    border:
        1px dashed
        rgba(
            255,
            85,
            70,
            0.35
        );
}


.fleet-component-impact-summary {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );
}


.fleet-component-impact-summary-title {
    color:
        rgba(
            240,
            244,
            245,
            0.88
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}


.fleet-component-impact-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.fleet-component-impact-counter {
    padding: 4px 7px;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );
    background:
        rgba(
            255,
            255,
            255,
            0.025
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
}


.fleet-component-impact-counter.is-gain {
    color:
        rgba(
            105,
            225,
            145,
            0.94
        );
    border-color:
        rgba(
            105,
            225,
            145,
            0.28
        );
}


.fleet-component-impact-counter.is-cost {
    color:
        rgba(
            255,
            112,
            92,
            0.94
        );
    border-color:
        rgba(
            255,
            112,
            92,
            0.28
        );
}


.fleet-component-impact-counter.is-change {
    color:
        rgba(
            255,
            188,
            72,
            0.90
        );
    border-color:
        rgba(
            255,
            188,
            72,
            0.25
        );
}


.fleet-component-delta-list {
    display: grid;
    gap: 5px;
    max-height: 390px;
    overflow-y: auto;
    padding-right: 4px;
}


.fleet-component-delta-row {
    display: grid;
    grid-template-columns:
        minmax(
            150px,
            1fr
        )
        minmax(
            170px,
            0.9fr
        )
        minmax(
            120px,
            auto
        );
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 9px;
    box-sizing: border-box;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
    background:
        rgba(
            255,
            255,
            255,
            0.018
        );
}


.fleet-component-delta-row.is-gain {
    border-left:
        3px solid
        rgba(
            93,
            218,
            136,
            0.78
        );
}


.fleet-component-delta-row.is-cost {
    border-left:
        3px solid
        rgba(
            255,
            104,
            87,
            0.78
        );
}


.fleet-component-delta-row.is-change {
    border-left:
        3px solid
        rgba(
            255,
            178,
            62,
            0.70
        );
}


.fleet-component-delta-stat {
    min-width: 0;
    display: grid;
    gap: 2px;
}


.fleet-component-delta-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color:
        rgba(
            240,
            244,
            245,
            0.86
        );
    font-size: 10px;
    font-weight: 700;
}


.fleet-component-delta-stat small {
    color:
        rgba(
            220,
            228,
            230,
            0.38
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 8px;
    letter-spacing: 0.05em;
}


.fleet-component-delta-values {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
}


.fleet-component-delta-old {
    color:
        rgba(
            225,
            232,
            234,
            0.50
        );
}


.fleet-component-delta-arrow {
    color:
        rgba(
            255,
            176,
            48,
            0.60
        );
}


.fleet-component-delta-new {
    color:
        rgba(
            245,
            247,
            248,
            0.94
        );
}


.fleet-component-delta-change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 9px;
}


.fleet-component-delta-result {
    padding: 3px 5px;
    border:
        1px solid
        currentColor;
    font-size: 8px;
    letter-spacing: 0.06em;
}


.fleet-component-delta-row.is-gain
.fleet-component-delta-change {
    color:
        rgba(
            105,
            225,
            145,
            0.94
        );
}


.fleet-component-delta-row.is-cost
.fleet-component-delta-change {
    color:
        rgba(
            255,
            112,
            92,
            0.94
        );
}


.fleet-component-delta-row.is-change
.fleet-component-delta-change {
    color:
        rgba(
            255,
            188,
            72,
            0.90
        );
}


@media (
    max-width: 1100px
) {

    .fleet-component-delta-row {
        grid-template-columns:
            minmax(
                125px,
                1fr
            )
            auto;
    }


    .fleet-component-delta-change {
        grid-column:
            1
            /
            -1;
        justify-content:
            flex-end;
    }
}


/* =========================================================
   END D07_PP75_COMPONENT_COMPARE
   ========================================================= */



/* =========================================================
   D07_HANGAR_V3_LAYOUT_PP78

   FINAL TARGET

   TOP:
   FULL WIDTH 3D / IMAGE

   BOTTOM LEFT:
   SHIP SPECIFICATIONS

   BOTTOM RIGHT:
   COMPONENT IMPACT / COMPARISON
   ========================================================= */


/* ---------------------------------------------------------
   MAIN FLEET GRID WHILE A SHIP IS SELECTED
   --------------------------------------------------------- */

.fleet-grid-selected-layout {
    display:
        grid !important;

    grid-template-columns:
        minmax(
            0,
            1fr
        ) !important;

    grid-auto-flow:
        row !important;

    gap:
        16px !important;

    align-items:
        start !important;
}


.fleet-grid-selected-layout
>
.fleet-list-panel-selected {
    grid-column:
        1
        /
        -1 !important;

    width:
        100% !important;

    min-width:
        0 !important;
}


.fleet-grid-selected-layout
>
.fleet-detail-panel {
    display:
        none !important;
}


/* ---------------------------------------------------------
   KEEP SHIP CATALOG COMPACT
   --------------------------------------------------------- */

.fleet-grid-selected-layout
.fleet-list-panel-selected
.fleet-list {
    max-height:
        150px !important;

    overflow-y:
        auto !important;
}


.fleet-grid-selected-layout
.fleet-list-panel-selected {
    margin-bottom:
        0 !important;
}


/* ---------------------------------------------------------
   MASTER SELECTED SHIP WORKSPACE
   --------------------------------------------------------- */

.fleet-grid-selected-layout
>
.fleet-selected-workspace-pp78 {
    grid-column:
        1
        /
        -1 !important;

    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(
            0,
            1fr
        ) !important;

    gap:
        16px !important;

    box-sizing:
        border-box !important;

    border-top:
        0 !important;

    background:
        transparent !important;
}


/* ---------------------------------------------------------
   SHIP IDENTITY
   --------------------------------------------------------- */

.fleet-selected-identity {
    min-width:
        0;

    padding:
        14px
        16px;

    display:
        grid;

    grid-template-columns:
        minmax(
            220px,
            auto
        )
        minmax(
            0,
            1fr
        );

    align-items:
        center;

    gap:
        18px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(
            255,
            154,
            34,
            0.20
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                255,
                143,
                31,
                0.035
            ),
            rgba(
                255,
                255,
                255,
                0.008
            )
        ),
        #080b0c;
}


.fleet-selected-identity-title {
    min-width:
        0;
}


.fleet-selected-identity-title h2 {
    margin:
        3px
        0
        0;

    font-size:
        clamp(
            20px,
            1.65vw,
            30px
        );
}


.fleet-selected-description {
    margin:
        0;

    min-width:
        0;

    max-width:
        none;

    line-height:
        1.5;

    color:
        rgba(
            235,
            240,
            241,
            0.76
        );
}


/* ---------------------------------------------------------
   FULL WIDTH HOLOVIEWER
   --------------------------------------------------------- */

.fleet-selected-workspace-pp78
.fleet-ship-media-fullwidth {
    width:
        100% !important;

    max-width:
        none !important;

    height:
        clamp(
            590px,
            64vh,
            780px
        ) !important;

    min-height:
        590px !important;

    margin:
        0 !important;

    box-sizing:
        border-box !important;

    overflow:
        hidden !important;

    border:
        1px solid
        rgba(
            255,
            154,
            34,
            0.48
        ) !important;

    background:
        linear-gradient(
            145deg,
            rgba(
                215,
                122,
                36,
                0.035
            ),
            rgba(
                255,
                255,
                255,
                0.006
            )
        ),
        #06090a !important;
}


.fleet-selected-workspace-pp78
.fleet-ship-media-fullwidth:has(.ship-holoviewer) {
    min-height:
        590px !important;
}


.fleet-selected-workspace-pp78
.fleet-ship-media-fullwidth
.ship-holoviewer {
    width:
        100% !important;

    height:
        100% !important;

    min-height:
        100% !important;
}


.fleet-selected-workspace-pp78
.fleet-ship-media-fullwidth
.ship-holoviewer-viewport {
    width:
        100% !important;

    height:
        100% !important;

    min-height:
        100% !important;
}


.fleet-selected-workspace-pp78
.fleet-ship-media-fullwidth
canvas {
    width:
        100% !important;

    height:
        100% !important;
}


/* ---------------------------------------------------------
   BOTTOM GRID
   LEFT = SHIP DATA
   RIGHT = COMPONENT IMPACT
   --------------------------------------------------------- */

.fleet-selected-bottom-grid {
    width:
        100%;

    min-width:
        0;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        minmax(
            0,
            1fr
        );

    gap:
        16px;

    align-items:
        stretch;

    box-sizing:
        border-box;
}


.fleet-selected-bottom-grid
>
* {
    min-width:
        0;
}


/* ---------------------------------------------------------
   LEFT // SPECS
   --------------------------------------------------------- */

.fleet-selected-bottom-grid
.fleet-ship-specs-pp78 {
    width:
        100% !important;

    height:
        100%;

    min-height:
        360px;

    margin:
        0 !important;

    padding:
        16px !important;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(
            110,
            135,
            145,
            0.25
        );
}


.fleet-selected-bottom-grid
.fleet-ship-spec-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    column-gap:
        18px;

    row-gap:
        0;
}


/* ---------------------------------------------------------
   RIGHT // COMPONENT ANALYSIS
   --------------------------------------------------------- */

.fleet-selected-bottom-grid
.fleet-component-impact-panel-pp78 {
    width:
        100% !important;

    height:
        100%;

    min-height:
        360px !important;

    margin:
        0 !important;

    padding:
        16px !important;

    box-sizing:
        border-box;
}


.fleet-selected-bottom-grid
.fleet-component-impact-delta {
    min-height:
        190px;
}


/* ---------------------------------------------------------
   POWER PLANT COMPATIBILITY POPUP
   NOW OVER THE FULL WIDTH 3D AREA
   --------------------------------------------------------- */

.fleet-selected-workspace-pp78
.fleet-powerplant-compatibility {
    width:
        min(
            420px,
            34%
        ) !important;

    max-height:
        calc(
            100%
            -
            32px
        ) !important;

    top:
        16px !important;

    right:
        16px !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (
    max-width: 1250px
) {

    .fleet-selected-workspace-pp78
    .fleet-ship-media-fullwidth {
        height:
            600px !important;

        min-height:
            560px !important;
    }


    .fleet-selected-bottom-grid
    .fleet-ship-spec-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .fleet-selected-workspace-pp78
    .fleet-powerplant-compatibility {
        width:
            min(
                420px,
                42%
            ) !important;
    }
}


@media (
    max-width: 950px
) {

    .fleet-selected-identity {
        grid-template-columns:
            1fr;
    }


    .fleet-selected-bottom-grid {
        grid-template-columns:
            1fr;
    }


    .fleet-selected-workspace-pp78
    .fleet-ship-media-fullwidth {
        height:
            500px !important;

        min-height:
            460px !important;
    }


    .fleet-selected-workspace-pp78
    .fleet-powerplant-compatibility {
        width:
            calc(
                100%
                -
                32px
            ) !important;
    }
}


@media (
    max-width: 650px
) {

    .fleet-selected-bottom-grid
    .fleet-ship-spec-grid {
        grid-template-columns:
            1fr;
    }


    .fleet-selected-workspace-pp78
    .fleet-ship-media-fullwidth {
        height:
            430px !important;

        min-height:
            400px !important;
    }
}


/* =========================================================
   END D07_HANGAR_V3_LAYOUT_PP78
   ========================================================= */

/* =========================================================
   D07_P128C_FULL_LOADOUT_WORKBENCH_BEGIN
   17-IMAGE FULL LOADOUT WORKBENCH
   ========================================================= */

.fleet-hangar-cockpit-mounted {
    gap:
        0 !important;
}

.fleet-selected-workspace.fleet-full-workbench-mounted {
    width:
        100%;

    min-width:
        0;

    padding:
        0 !important;

    display:
        block !important;

    border-top:
        1px solid
        rgba(
            222,
            108,
            29,
            0.34
        );

    background:
        #050607 !important;
}

.fleet-full-workbench {
    --d07-orange:
        #d86f1d;

    --d07-orange-hot:
        #ff8a2a;

    --d07-amber:
        #dba84a;

    --d07-panel:
        #090b0c;

    --d07-panel-2:
        #0d1011;

    --d07-panel-3:
        #121517;

    --d07-panel-4:
        #171b1d;

    --d07-line:
        rgba(
            224,
            115,
            35,
            0.30
        );

    --d07-line-strong:
        rgba(
            255,
            138,
            42,
            0.58
        );

    --d07-line-soft:
        rgba(
            255,
            255,
            255,
            0.080
        );

    --d07-text:
        #e8ecee;

    --d07-muted:
        rgba(
            232,
            236,
            238,
            0.52
        );

    width:
        100%;

    min-width:
        0;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        );

    color:
        var(
            --d07-text
        );

    background:
        radial-gradient(
            circle at 26% 10%,
            rgba(
                216,
                111,
                29,
                0.045
            ),
            transparent
            34%
        ),
        #050607;

    font-family:
        "Rajdhani",
        "Arial Narrow",
        "Segoe UI",
        sans-serif;
}

.fleet-physical-command {
    min-height:
        78px;

    padding:
        11px
        16px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border-bottom:
        1px solid
        var(
            --d07-line
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.085
            ),
            transparent
            37%
        ),
        #090b0c;

    box-sizing:
        border-box;
}

.fleet-physical-identity-host {
    min-width:
        0;

    flex:
        1 1 auto;
}

.fleet-physical-identity-host
.fleet-selected-identity {
    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    background:
        transparent !important;
}

.fleet-physical-identity-fallback {
    color:
        #eef0f1;

    font-size:
        clamp(
            24px,
            2vw,
            34px
        );

    font-weight:
        800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}

.fleet-command-right {
    min-width:
        0;

    display:
        grid;

    justify-items:
        end;

    gap:
        7px;
}

.fleet-physical-build-state {
    display:
        flex;

    gap:
        4px;

    align-items:
        center;
}

.fleet-physical-build-chip {
    min-width:
        72px;

    padding:
        6px
        8px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    background:
        #0e1112;

    color:
        rgba(
            232,
            236,
            238,
            0.44
        );

    font-size:
        9px;

    font-weight:
        800;

    text-align:
        center;

    letter-spacing:
        0.085em;
}

.fleet-physical-build-chip.is-active {
    border-color:
        rgba(
            255,
            138,
            42,
            0.65
        );

    color:
        #f3aa66;

    background:
        rgba(
            216,
            111,
            29,
            0.10
        );
}

.fleet-physical-build-chip.has-changes {
    box-shadow:
        inset
        0
        -2px
        0
        var(
            --d07-orange-hot
        );
}

.fleet-physical-build-chip.has-saved-build {
    color:
        rgba(
            150,
            218,
            168,
            0.92
        );

    border-color:
        rgba(
            111,
            201,
            136,
            0.34
        );
}

.fleet-build-actions {
    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        4px;
}

.fleet-build-action {
    min-height:
        25px;

    padding:
        4px
        8px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    background:
        #111416;

    color:
        rgba(
            232,
            236,
            238,
            0.68
        );

    font:
        inherit;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.07em;

    cursor:
        pointer;
}

.fleet-build-action:hover:not(:disabled) {
    border-color:
        rgba(
            255,
            138,
            42,
            0.42
        );

    color:
        #f1f3f4;
}

.fleet-build-action-primary {
    border-color:
        rgba(
            216,
            111,
            29,
            0.38
        );

    color:
        #e99a55;
}

.fleet-build-action-danger {
    color:
        rgba(
            221,
            151,
            124,
            0.82
        );
}

.fleet-build-action:disabled {
    opacity:
        0.30;

    cursor:
        default;
}

.fleet-physical-primary-nav {
    min-height:
        38px;

    padding:
        0
        16px;

    display:
        flex;

    gap:
        22px;

    align-items:
        stretch;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        #07090a;

    overflow-x:
        auto;
}

.fleet-physical-primary-nav-item {
    position:
        relative;

    min-width:
        max-content;

    display:
        grid;

    place-items:
        center;

    color:
        rgba(
            232,
            236,
            238,
            0.40
        );

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.10em;
}

.fleet-physical-primary-nav-item.is-active {
    color:
        #eef1f2;
}

.fleet-physical-primary-nav-item.is-active::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    height:
        2px;

    background:
        var(
            --d07-orange-hot
        );
}

.fleet-planned-status {
    min-height:
        27px;

    padding:
        0
        16px;

    display:
        flex;

    align-items:
        center;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.055
        );

    background:
        #080a0b;

    color:
        rgba(
            232,
            236,
            238,
            0.38
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    letter-spacing:
        0.055em;
}

.fleet-physical-stage {
    min-width:
        0;

    display:
        grid;

    grid-template-columns:
        minmax(
            430px,
            0.90fr
        )
        minmax(
            620px,
            1.35fr
        );

    gap:
        1px;

    border-bottom:
        1px solid
        var(
            --d07-line
        );

    background:
        var(
            --d07-line
        );
}

.fleet-physical-ship-pane,
.fleet-physical-loadout-panel {
    min-width:
        0;

    background:
        var(
            --d07-panel
        );
}

.fleet-physical-ship-pane {
    display:
        grid;

    grid-template-rows:
        auto
        minmax(
            390px,
            1fr
        )
        auto;
}

.fleet-physical-pane-header,
.fleet-physical-loadout-header {
    min-height:
        50px;

    padding:
        9px
        12px;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    box-sizing:
        border-box;
}

.fleet-physical-pane-header {
    display:
        grid;

    align-content:
        center;
}

.fleet-physical-loadout-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        12px;
}

.fleet-full-workbench
.section-kicker {
    margin:
        0
        0
        3px;

    color:
        #df7829;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.13em;
}

.fleet-physical-pane-header
strong,
.fleet-physical-loadout-heading
h2 {
    margin:
        0;

    color:
        #e7ebed;

    font-size:
        12px;

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        0.050em;
}

.fleet-physical-media-host {
    position:
        relative;

    min-width:
        0;

    min-height:
        390px;

    overflow:
        hidden;

    background:
        radial-gradient(
            circle at 50% 46%,
            rgba(
                216,
                111,
                29,
                0.06
            ),
            transparent
            44%
        ),
        linear-gradient(
            rgba(
                255,
                255,
                255,
                0.016
            )
            1px,
            transparent
            1px
        ),
        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                0.016
            )
            1px,
            transparent
            1px
        ),
        #060809;

    background-size:
        auto,
        32px
        32px,
        32px
        32px,
        auto;
}

.fleet-physical-media-host::before {
    content:
        "";

    position:
        absolute;

    z-index:
        2;

    inset:
        10px;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.10
        );

    pointer-events:
        none;
}

.fleet-ship-media-physical,
.fleet-physical-media-host
.fleet-ship-media,
.fleet-physical-media-host
.ship-holoviewer,
.fleet-physical-media-host
.ship-holoviewer-viewport,
.fleet-physical-media-host
.ship-holoviewer-canvas {
    width:
        100% !important;

    height:
        100% !important;

    min-height:
        390px !important;

    margin:
        0 !important;

    border:
        0 !important;

    box-shadow:
        none !important;
}

.fleet-physical-media-empty {
    min-height:
        390px;

    display:
        grid;

    place-items:
        center;

    color:
        var(
            --d07-muted
        );

    font-size:
        10px;
}

.fleet-physical-ship-hint {
    padding:
        7px
        10px;

    border-top:
        1px solid
        var(
            --d07-line-soft
        );

    color:
        rgba(
            232,
            236,
            238,
            0.33
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    letter-spacing:
        0.04em;
}

.fleet-physical-loadout-panel {
    display:
        grid;

    grid-template-rows:
        auto
        auto
        minmax(
            0,
            1fr
        )
        auto;
}

.fleet-physical-loadout-summary {
    padding-top:
        3px;

    color:
        rgba(
            232,
            236,
            238,
            0.42
        );

    font-size:
        9px;

    font-weight:
        800;

    text-align:
        right;

    letter-spacing:
        0.05em;
}

.fleet-physical-loadout-tabs {
    padding:
        6px
        8px;

    display:
        flex;

    gap:
        4px;

    align-items:
        center;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        #07090a;

    overflow-x:
        auto;
}

.fleet-physical-loadout-tab {
    min-width:
        max-content;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    background:
        #0d1011;

    color:
        rgba(
            232,
            236,
            238,
            0.43
        );

    font:
        inherit;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.09em;

    cursor:
        pointer;
}

.fleet-physical-loadout-tab:hover,
.fleet-physical-loadout-tab.is-active {
    color:
        #edf0f1;

    border-color:
        rgba(
            255,
            138,
            42,
            0.52
        );

    background:
        rgba(
            216,
            111,
            29,
            0.10
        );
}

.fleet-physical-loadout-groups {
    min-height:
        0;

    max-height:
        560px;

    padding:
        8px;

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    align-content:
        start;

    gap:
        7px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}

.fleet-physical-loadout-group {
    min-width:
        0;

    border:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        #0c0f10;
}

.fleet-physical-loadout-group[hidden] {
    display:
        none !important;
}

.fleet-physical-loadout-group-header {
    min-height:
        32px;

    padding:
        6px
        8px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        8px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.060
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.055
            ),
            transparent
        );
}

.fleet-physical-loadout-group-header
strong {
    color:
        #dfe3e5;

    font-size:
        9px;

    letter-spacing:
        0.075em;
}

.fleet-physical-loadout-group-header
span {
    color:
        rgba(
            232,
            236,
            238,
            0.32
        );

    font-size:
        7px;

    font-weight:
        800;

    text-align:
        right;
}

.fleet-physical-instance-grid {
    padding:
        6px;

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        5px;
}

.fleet-physical-instance-card {
    min-width:
        0;

    min-height:
        112px;

    padding:
        7px;

    display:
        grid;

    grid-template-rows:
        auto
        auto
        auto
        auto
        1fr;

    gap:
        3px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.075
        );

    background:
        linear-gradient(
            145deg,
            rgba(
                255,
                255,
                255,
                0.018
            ),
            transparent
            58%
        ),
        #111416;

    color:
        var(
            --d07-text
        );

    font:
        inherit;

    text-align:
        left;

    cursor:
        pointer;

    transition:
        border-color
        100ms
        ease,
        background
        100ms
        ease;
}

.fleet-physical-instance-card:hover {
    border-color:
        rgba(
            255,
            138,
            42,
            0.38
        );

    background:
        #15191b;
}

.fleet-physical-instance-card.is-active {
    border-color:
        rgba(
            255,
            138,
            42,
            0.90
        );

    background:
        linear-gradient(
            145deg,
            rgba(
                216,
                111,
                29,
                0.14
            ),
            transparent
            58%
        ),
        #151718;

    box-shadow:
        inset
        3px
        0
        0
        var(
            --d07-orange-hot
        );
}

.fleet-physical-instance-card.is-planned {
    border-color:
        rgba(
            255,
            138,
            42,
            0.48
        );
}

.fleet-physical-instance-label {
    color:
        #df7829;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.09em;
}

.fleet-physical-instance-name {
    overflow:
        hidden;

    color:
        #eff1f2;

    font-size:
        10px;

    line-height:
        1.15;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-physical-instance-meta {
    color:
        rgba(
            232,
            236,
            238,
            0.39
        );

    font-size:
        7px;

    letter-spacing:
        0.04em;
}

.fleet-physical-instance-states {
    min-width:
        0;

    padding-top:
        4px;

    display:
        grid;

    gap:
        2px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );
}

.fleet-physical-current-line,
.fleet-physical-planned-line {
    overflow:
        hidden;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-physical-current-line {
    color:
        rgba(
            194,
            204,
            208,
            0.54
        );
}

.fleet-physical-planned-line {
    color:
        rgba(
            232,
            236,
            238,
            0.27
        );
}

.fleet-physical-instance-card.is-planned
.fleet-physical-planned-line {
    color:
        #f09a4f;
}

.fleet-physical-instance-footer {
    align-self:
        end;

    margin-top:
        3px;

    padding-top:
        4px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        5px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );
}

.fleet-physical-state-badge {
    padding:
        2px
        4px;

    border:
        1px solid
        rgba(
            91,
            188,
            121,
            0.26
        );

    color:
        rgba(
            130,
            207,
            151,
            0.79
        );

    font-size:
        6px;

    font-weight:
        800;
}

.fleet-physical-change-label {
    color:
        #d9873f;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.06em;
}

.fleet-physical-loadout-empty {
    margin:
        0
        8px
        8px;

    padding:
        16px;

    border:
        1px dashed
        rgba(
            216,
            111,
            29,
            0.20
        );

    color:
        rgba(
            232,
            236,
            238,
            0.39
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        9px;

    text-align:
        center;
}

.fleet-physical-workbench[hidden] {
    display:
        none !important;
}

.fleet-workbench-v2 {
    min-width:
        0;

    scroll-margin-top:
        10px;

    border-bottom:
        1px solid
        var(
            --d07-line
        );

    background:
        #07090a;
}

.fleet-physical-workbench-header {
    min-height:
        55px;

    padding:
        9px
        12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.095
            ),
            transparent
            36%
        ),
        #0a0c0d;
}

.fleet-workbench-heading
h3 {
    margin:
        0;

    color:
        #eef1f2;

    font-size:
        14px;

    font-weight:
        800;

    letter-spacing:
        0.055em;
}

.fleet-workbench-close {
    padding:
        6px
        9px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    background:
        #111416;

    color:
        rgba(
            232,
            236,
            238,
            0.54
        );

    font:
        inherit;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.075em;

    cursor:
        pointer;
}

.fleet-workbench-grid {
    min-width:
        0;

    display:
        grid;

    grid-template-columns:
        minmax(
            170px,
            0.78fr
        )
        minmax(
            500px,
            2.35fr
        )
        minmax(
            180px,
            0.82fr
        )
        minmax(
            210px,
            0.92fr
        );

    gap:
        1px;

    background:
        var(
            --d07-line
        );
}

.fleet-workbench-column {
    min-width:
        0;

    min-height:
        350px;

    display:
        grid;

    grid-template-rows:
        auto
        minmax(
            0,
            1fr
        );

    background:
        #090b0c;
}

.fleet-workbench-column-title {
    min-height:
        34px;

    padding:
        0
        9px;

    display:
        flex;

    align-items:
        center;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        rgba(
            255,
            255,
            255,
            0.012
        );

    color:
        #d9873f;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.10em;
}

.fleet-workbench-column-body {
    min-width:
        0;

    padding:
        9px;

    box-sizing:
        border-box;
}

.fleet-workbench-card-body {
    display:
        grid;

    gap:
        8px;
}

.fleet-workbench-component-name {
    color:
        #f0f2f3;

    font-size:
        14px;

    font-weight:
        800;

    line-height:
        1.1;
}

.fleet-workbench-component-meta {
    color:
        rgba(
            232,
            236,
            238,
            0.44
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    line-height:
        1.5;
}

.fleet-workbench-state-line {
    width:
        max-content;

    padding:
        3px
        5px;

    border:
        1px solid
        rgba(
            92,
            181,
            120,
            0.24
        );

    color:
        rgba(
            129,
            207,
            150,
            0.76
        );

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.07em;
}

.fleet-workbench-empty {
    min-height:
        150px;

    display:
        grid;

    place-items:
        center;

    color:
        rgba(
            232,
            236,
            238,
            0.30
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    line-height:
        1.5;

    text-align:
        center;
}

.fleet-compatible-tools {
    margin-bottom:
        7px;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        125px;

    gap:
        5px;
}

.fleet-compatible-search,
.fleet-compatible-sort {
    min-width:
        0;

    min-height:
        30px;

    padding:
        5px
        8px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius:
        0;

    outline:
        none;

    background:
        #0d1011;

    color:
        #dfe3e5;

    font:
        inherit;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        0.04em;
}

.fleet-compatible-search:focus,
.fleet-compatible-sort:focus {
    border-color:
        rgba(
            255,
            138,
            42,
            0.55
        );
}

.fleet-compatible-table-body {
    min-height:
        250px;

    max-height:
        335px;

    display:
        grid;

    align-content:
        start;

    gap:
        3px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}

.fleet-compatible-table-row {
    min-width:
        0;

    min-height:
        42px;

    padding:
        6px
        7px;

    display:
        grid;

    grid-template-columns:
        minmax(
            130px,
            1.1fr
        )
        minmax(
            180px,
            1.8fr
        )
        72px;

    gap:
        8px;

    align-items:
        center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.065
        );

    background:
        #101315;

    color:
        var(
            --d07-text
        );

    font:
        inherit;

    text-align:
        left;

    cursor:
        pointer;
}

.fleet-compatible-table-row:hover {
    border-color:
        rgba(
            255,
            138,
            42,
            0.35
        );

    background:
        #15191b;
}

.fleet-compatible-table-row.is-installed {
    cursor:
        default;

    border-color:
        rgba(
            101,
            185,
            128,
            0.20
        );
}

.fleet-compatible-table-row.is-selected {
    border-color:
        rgba(
            255,
            138,
            42,
            0.80
        );

    box-shadow:
        inset
        2px
        0
        0
        var(
            --d07-orange-hot
        );
}

.fleet-compatible-row-name {
    overflow:
        hidden;

    color:
        #edf0f1;

    font-size:
        9px;

    font-weight:
        800;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-compatible-row-meta {
    overflow:
        hidden;

    color:
        rgba(
            232,
            236,
            238,
            0.38
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-compatible-row-status {
    color:
        #d9873f;

    font-size:
        7px;

    font-weight:
        800;

    text-align:
        right;

    letter-spacing:
        0.05em;
}

.fleet-compatible-table-row.is-installed
.fleet-compatible-row-status {
    color:
        rgba(
            122,
            202,
            145,
            0.75
        );
}

/* =========================================================
   D07_P129E89_OWNERSHIP_VISUAL_STATES_BEGIN

   Hangar V3 // Inventory / Ownership visual contract.

   Logical states are already provided by fleet.js:
   - ownership-installed
   - ownership-in-storage
   - ownership-owned
   - ownership-missing
   - data-need-quantity

   Visual rules deliberately do not change row dimensions,
   grid columns, spacing, typography sizing or responsive
   layout.

   The left inset indicator acts like a compact Drake
   engineering/status rail and works for both generic and
   nested turret/missile compatible rows.
   ========================================================= */


/* ---------------------------------------------------------
   INSTALLED
   Exact component installed on the active physical target.
   Keep the existing green technical confirmation language.
   --------------------------------------------------------- */

.fleet-compatible-table-row.ownership-installed {
    background:
        linear-gradient(
            90deg,
            rgba(
                86,
                151,
                106,
                0.10
            ),
            rgba(
                86,
                151,
                106,
                0.015
            )
            42%,
            transparent
            72%
        );

    box-shadow:
        inset 2px 0 0
        rgba(
            122,
            202,
            145,
            0.70
        );
}

.fleet-compatible-table-row.ownership-installed
.fleet-compatible-row-status {
    color:
        rgba(
            122,
            202,
            145,
            0.90
        );
}


/* ---------------------------------------------------------
   IN STORAGE
   Owned and immediately available for this build.
   Amber/Drake inventory-ready state.
   --------------------------------------------------------- */

.fleet-compatible-table-row.ownership-in-storage {
    background:
        linear-gradient(
            90deg,
            rgba(
                210,
                143,
                63,
                0.11
            ),
            rgba(
                210,
                143,
                63,
                0.018
            )
            42%,
            transparent
            72%
        );

    box-shadow:
        inset 2px 0 0
        rgba(
            217,
            135,
            63,
            0.78
        );
}

.fleet-compatible-table-row.ownership-in-storage
.fleet-compatible-row-status {
    color:
        rgba(
            225,
            157,
            86,
            0.96
        );
}


/* ---------------------------------------------------------
   OWNED
   Asset exists but is not currently storage-available.
   Deliberately neutral/cool so it is distinct from both
   ready inventory and missing inventory.
   --------------------------------------------------------- */

.fleet-compatible-table-row.ownership-owned {
    background:
        linear-gradient(
            90deg,
            rgba(
                147,
                159,
                166,
                0.075
            ),
            rgba(
                147,
                159,
                166,
                0.012
            )
            42%,
            transparent
            72%
        );

    box-shadow:
        inset 2px 0 0
        rgba(
            166,
            177,
            183,
            0.52
        );
}

.fleet-compatible-table-row.ownership-owned
.fleet-compatible-row-status {
    color:
        rgba(
            184,
            194,
            199,
            0.82
        );
}


/* ---------------------------------------------------------
   MISSING
   No usable owned asset satisfies this candidate.
   Muted industrial warning red: visible but not alarm-heavy.
   --------------------------------------------------------- */

.fleet-compatible-table-row.ownership-missing {
    background:
        linear-gradient(
            90deg,
            rgba(
                173,
                77,
                62,
                0.09
            ),
            rgba(
                173,
                77,
                62,
                0.014
            )
            42%,
            transparent
            72%
        );

    box-shadow:
        inset 2px 0 0
        rgba(
            196,
            92,
            75,
            0.60
        );
}

.fleet-compatible-table-row.ownership-missing
.fleet-compatible-row-status {
    color:
        rgba(
            207,
            105,
            88,
            0.90
        );
}


/* ---------------------------------------------------------
   NEED xN
   A remaining build deficit exists after Current target
   satisfaction and available storage deduction.

   Do not replace the Ownership color/state. Instead add a
   subtle bottom warning rail so combinations remain readable:

   INSTALLED // NEED x1
   IN STORAGE // NEED x1
   MISSING // NEED xN
   --------------------------------------------------------- */

.fleet-compatible-table-row[
    data-need-quantity
]:not(
    [data-need-quantity="0"]
) {
    background-image:
        linear-gradient(
            90deg,
            rgba(
                217,
                135,
                63,
                0.08
            ),
            transparent
            58%
        );

    outline:
        1px solid
        rgba(
            217,
            135,
            63,
            0.12
        );

    outline-offset:
        -1px;
}

.fleet-compatible-table-row[
    data-need-quantity
]:not(
    [data-need-quantity="0"]
)
.fleet-compatible-row-status {
    text-shadow:
        0 0 8px
        rgba(
            217,
            135,
            63,
            0.16
        );
}


/* ---------------------------------------------------------
   Preserve exact-target installed precedence.

   Some certified generic rows already carry .is-installed.
   Nested rows also retain their existing installed class.
   --------------------------------------------------------- */

.fleet-compatible-table-row.is-installed.ownership-installed
.fleet-compatible-row-status {
    color:
        rgba(
            122,
            202,
            145,
            0.94
        );
}


/* =========================================================
   D07_P129E89_OWNERSHIP_VISUAL_STATES_END
   ========================================================= */

.fleet-compatible-empty {
    min-height:
        180px;

    display:
        grid;

    place-items:
        center;

    color:
        rgba(
            232,
            236,
            238,
            0.30
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    text-align:
        center;
}

.fleet-plan-component-button {
    width:
        100%;

    min-height:
        31px;

    margin-top:
        10px;

    border:
        1px solid
        rgba(
            255,
            138,
            42,
            0.48
        );

    background:
        rgba(
            216,
            111,
            29,
            0.10
        );

    color:
        #f2a25d;

    font:
        inherit;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.08em;

    cursor:
        pointer;
}

.fleet-plan-component-button:disabled {
    opacity:
        0.28;

    cursor:
        default;
}

.fleet-workbench-legacy-mirror {
    margin-top:
        10px;

    padding-top:
        9px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.050
        );

    color:
        rgba(
            232,
            236,
            238,
            0.54
        );

    font-size:
        8px;
}

.fleet-build-impact-body {
    display:
        grid;

    gap:
        8px;
}

.fleet-build-impact-count {
    padding:
        8px;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.20
        );

    background:
        rgba(
            216,
            111,
            29,
            0.045
        );

    color:
        #e79a55;

    font-size:
        9px;

    font-weight:
        800;

    text-align:
        center;

    letter-spacing:
        0.07em;
}

.fleet-build-impact-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        4px;
}

.fleet-build-impact-metric {
    min-width:
        0;

    padding:
        7px;

    display:
        grid;

    gap:
        3px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.060
        );

    background:
        #101315;
}

.fleet-build-impact-metric
span {
    color:
        rgba(
            232,
            236,
            238,
            0.34
        );

    font-size:
        6px;

    font-weight:
        800;
}

.fleet-build-impact-metric
strong {
    color:
        #edf0f1;

    font-size:
        14px;
}

.fleet-build-impact-nd {
    padding:
        8px;

    border:
        1px dashed
        rgba(
            255,
            255,
            255,
            0.08
        );

    color:
        rgba(
            232,
            236,
            238,
            0.29
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.5;
}

.fleet-component-delta-band {
    min-width:
        0;

    border-top:
        1px solid
        var(
            --d07-line
        );

    background:
        #080a0b;
}

.fleet-component-delta-title {
    min-height:
        29px;

    padding:
        0
        11px;

    display:
        flex;

    align-items:
        center;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    color:
        #d9873f;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.10em;
}

.fleet-component-delta-body {
    min-height:
        76px;

    padding:
        10px;

    box-sizing:
        border-box;

    overflow-x:
        auto;
}

.fleet-component-delta-body
.fleet-component-impact-delta-list,
.fleet-component-delta-body
.fleet-component-impact-list {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                115px,
                1fr
            )
        ) !important;

    gap:
        5px !important;
}

.fleet-legacy-impact-engine {
    position:
        absolute;

    width:
        1px;

    height:
        1px;

    overflow:
        hidden;

    opacity:
        0;

    pointer-events:
        none;
}

.fleet-nested-surface {
    min-width:
        0;

    padding:
        10px
        12px;

    border-bottom:
        1px solid
        var(
            --d07-line
        );

    background:
        #07090a;
}

.fleet-nested-surface-title {
    margin-bottom:
        7px;

    color:
        rgba(
            232,
            236,
            238,
            0.32
        );

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.09em;
}

#fleet-cockpit-selector-host
.fleet-bulk-component-selector {
    position:
        absolute !important;

    width:
        1px !important;

    height:
        1px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}

#fleet-cockpit-selector-host
.fleet-nested-hardpoints-panel {
    position:
        static !important;

    width:
        100% !important;

    height:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        visible !important;

    opacity:
        1 !important;

    pointer-events:
        auto !important;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.18
        ) !important;

    border-radius:
        0 !important;

    background:
        #0b0d0e !important;
}

#fleet-cockpit-selector-host
.fleet-nested-hardpoints-header {
    background:
        rgba(
            216,
            111,
            29,
            0.055
        ) !important;
}

.fleet-physical-data-rail {
    min-width:
        0;

    padding:
        9px
        12px
        12px;

    border-bottom:
        1px solid
        var(
            --d07-line-soft
        );

    background:
        #07090a;
}

.fleet-physical-data-rail-title {
    margin-bottom:
        7px;

    color:
        rgba(
            232,
            236,
            238,
            0.33
        );

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.09em;
}

.fleet-physical-data-rail
.fleet-ship-spec-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap:
        5px;
}

.fleet-physical-data-empty {
    color:
        rgba(
            232,
            236,
            238,
            0.30
        );

    font-size:
        8px;
}

@media (
    max-width:
        1550px
) {

    .fleet-physical-stage {
        grid-template-columns:
            minmax(
                390px,
                0.86fr
            )
            minmax(
                560px,
                1.30fr
            );
    }

    .fleet-workbench-grid {
        grid-template-columns:
            minmax(
                155px,
                0.72fr
            )
            minmax(
                430px,
                2fr
            )
            minmax(
                160px,
                0.76fr
            )
            minmax(
                190px,
                0.84fr
            );
    }

    .fleet-physical-loadout-groups {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }
}

@media (
    max-width:
        1250px
) {

    .fleet-physical-command {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .fleet-command-right {
        width:
            100%;

        justify-items:
            start;
    }

    .fleet-build-actions {
        justify-content:
            flex-start;
    }

    .fleet-physical-stage {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }

    .fleet-workbench-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .fleet-workbench-compatible {
        grid-column:
            1
            /
            -1;

        grid-row:
            1;
    }

    .fleet-physical-data-rail
    .fleet-ship-spec-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (
    max-width:
        760px
) {

    .fleet-physical-command,
    .fleet-physical-primary-nav,
    .fleet-planned-status {
        padding-left:
            9px;

        padding-right:
            9px;
    }

    .fleet-physical-build-state {
        max-width:
            100%;

        overflow-x:
            auto;
    }

    .fleet-build-actions {
        max-width:
            100%;

        overflow-x:
            auto;

        flex-wrap:
            nowrap;
    }

    .fleet-physical-instance-grid,
    .fleet-workbench-grid {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }

    .fleet-workbench-compatible {
        grid-column:
            auto;

        grid-row:
            auto;
    }

    .fleet-compatible-tools {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }

    .fleet-compatible-table-row {
        grid-template-columns:
            minmax(
                0,
                1fr
            );

        gap:
            3px;
    }

    .fleet-compatible-row-status {
        text-align:
            left;
    }

    .fleet-physical-data-rail
    .fleet-ship-spec-grid {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }
}

/* =========================================================
   D07_P128D_MISSILES_TURRETS_SPECIALIZED_BEGIN
   MISSILES + TURRETS SPECIALIZED WORKSPACES
   ========================================================= */

.fleet-physical-loadout-groups.p128d-specialized-hidden {
    display:
        none !important;
}

.fleet-p128d-specialized-surface {
    min-width:
        0;

    min-height:
        0;

    display:
        grid;

    grid-template-rows:
        auto
        auto
        minmax(
            0,
            1fr
        );

    background:
        #090b0c;
}

.fleet-p128d-specialized-surface[hidden] {
    display:
        none !important;
}

.fleet-p128d-specialized-header {
    min-height:
        54px;

    padding:
        9px
        11px;

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        12px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.065
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.075
            ),
            transparent
            48%
        ),
        #0b0e0f;
}

.fleet-p128d-specialized-heading {
    min-width:
        0;
}

.fleet-p128d-specialized-heading
h3 {
    margin:
        0;

    color:
        #edf0f1;

    font-size:
        13px;

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        0.055em;
}

.fleet-p128d-specialized-meta {
    max-width:
        260px;

    padding-top:
        3px;

    color:
        rgba(
            232,
            236,
            238,
            0.39
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.45;

    text-align:
        right;

    letter-spacing:
        0.035em;
}

.fleet-p128d-contract-notice {
    margin:
        7px
        8px
        0;

    padding:
        7px
        8px;

    display:
        grid;

    grid-template-columns:
        max-content
        minmax(
            0,
            1fr
        );

    gap:
        10px;

    align-items:
        center;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.22
        );

    background:
        rgba(
            216,
            111,
            29,
            0.045
        );
}

.fleet-p128d-contract-notice
strong {
    color:
        #e38a42;

    font-size:
        8px;

    letter-spacing:
        0.075em;
}

.fleet-p128d-contract-notice
span {
    color:
        rgba(
            232,
            236,
            238,
            0.38
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.45;
}

.fleet-p128d-missile-body {
    min-height:
        0;

    max-height:
        540px;

    padding:
        8px;

    display:
        grid;

    align-content:
        start;

    gap:
        8px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}

.fleet-p128d-missile-family {
    min-width:
        0;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.075
        );

    background:
        #0c0f10;
}

.fleet-p128d-missile-family-header {
    min-height:
        36px;

    padding:
        7px
        8px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.055
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.060
            ),
            transparent
        );
}

.fleet-p128d-missile-family-header
strong {
    color:
        #e7eaec;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.07em;
}

.fleet-p128d-missile-family-header
span {
    color:
        rgba(
            232,
            236,
            238,
            0.33
        );

    font-size:
        7px;

    font-weight:
        800;

    text-align:
        right;
}

.fleet-p128d-rack-grid {
    padding:
        7px;

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        5px;
}

.fleet-p128d-rack-card {
    min-width:
        0;

    min-height:
        130px;

    padding:
        8px;

    display:
        grid;

    grid-template-rows:
        auto
        auto
        auto
        1fr
        auto;

    gap:
        5px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.070
        );

    background:
        linear-gradient(
            145deg,
            rgba(
                216,
                111,
                29,
                0.035
            ),
            transparent
            52%
        ),
        #101315;
}

.fleet-p128d-rack-card-top {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        6px;
}

.fleet-p128d-rack-position {
    color:
        #df7829;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.08em;
}

.fleet-p128d-rack-state {
    padding:
        2px
        4px;

    border:
        1px solid
        rgba(
            104,
            194,
            132,
            0.22
        );

    color:
        rgba(
            132,
            207,
            153,
            0.80
        );

    font-size:
        6px;

    font-weight:
        800;
}

.fleet-p128d-rack-name {
    overflow:
        hidden;

    color:
        #eff1f2;

    font-size:
        11px;

    line-height:
        1.15;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128d-rack-meta {
    color:
        rgba(
            232,
            236,
            238,
            0.38
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.4;
}

.fleet-p128d-logical-contract {
    align-self:
        end;

    padding-top:
        6px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );

    color:
        rgba(
            232,
            236,
            238,
            0.25
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        6px;

    line-height:
        1.4;
}

.fleet-p128d-rack-edit,
.fleet-p128d-open-specialized {
    min-height:
        28px;

    padding:
        5px
        8px;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.36
        );

    background:
        rgba(
            216,
            111,
            29,
            0.075
        );

    color:
        #e59550;

    font:
        inherit;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.075em;

    cursor:
        pointer;
}

.fleet-p128d-rack-edit:hover,
.fleet-p128d-open-specialized:hover {
    border-color:
        rgba(
            255,
            138,
            42,
            0.70
        );

    color:
        #f5aa67;

    background:
        rgba(
            216,
            111,
            29,
            0.13
        );
}

.fleet-p128d-payload-contract {
    margin:
        0
        7px
        7px;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.16
        );

    background:
        #090c0d;
}

.fleet-p128d-payload-title {
    min-height:
        31px;

    padding:
        0
        8px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        8px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.055
        );
}

.fleet-p128d-payload-title
strong {
    color:
        #d9873f;

    font-size:
        8px;

    letter-spacing:
        0.08em;
}

.fleet-p128d-payload-title
span {
    color:
        rgba(
            232,
            236,
            238,
            0.28
        );

    font-size:
        6px;

    font-weight:
        800;

    letter-spacing:
        0.08em;
}

.fleet-p128d-payload-list {
    display:
        grid;

    gap:
        1px;

    background:
        rgba(
            255,
            255,
            255,
            0.040
        );
}

.fleet-p128d-payload-item {
    min-width:
        0;

    min-height:
        48px;

    padding:
        7px
        8px;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        auto
        auto;

    gap:
        10px;

    align-items:
        center;

    background:
        #0f1213;
}

.fleet-p128d-payload-item-left {
    min-width:
        0;

    display:
        grid;

    gap:
        2px;
}

.fleet-p128d-payload-item-left
strong {
    overflow:
        hidden;

    color:
        #e8ebed;

    font-size:
        9px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128d-payload-item-left
span {
    color:
        rgba(
            232,
            236,
            238,
            0.32
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;
}

.fleet-p128d-payload-quantity {
    color:
        #e0a05e;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        10px;

    font-weight:
        800;
}

.fleet-p128d-payload-lock {
    padding:
        3px
        5px;

    border:
        1px solid
        rgba(
            215,
            126,
            83,
            0.22
        );

    color:
        rgba(
            224,
            150,
            118,
            0.72
        );

    font-size:
        6px;

    font-weight:
        800;

    letter-spacing:
        0.06em;
}

.fleet-p128d-payload-empty,
.fleet-p128d-specialized-empty,
.fleet-p128d-loading {
    min-height:
        120px;

    display:
        grid;

    place-items:
        center;

    color:
        rgba(
            232,
            236,
            238,
            0.28
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    text-align:
        center;
}

.fleet-p128d-turret-overview-body {
    padding:
        8px;

    display:
        grid;

    gap:
        7px;
}

.fleet-p128d-turret-overview-copy {
    color:
        rgba(
            232,
            236,
            238,
            0.36
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.45;
}

.fleet-p128d-turret-surface {
    max-height:
        620px;
}

.fleet-p128d-turret-mount {
    min-height:
        0;

    max-height:
        520px;

    padding:
        8px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}

.fleet-nested-surface.is-p128d-rehomed {
    display:
        none !important;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoints-panel {
    position:
        static !important;

    width:
        100% !important;

    min-width:
        0 !important;

    height:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        visible !important;

    opacity:
        1 !important;

    pointer-events:
        auto !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    background:
        transparent !important;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoints-header {
    margin-bottom:
        7px !important;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.14
        ) !important;

    border-radius:
        0 !important;

    background:
        rgba(
            216,
            111,
            29,
            0.040
        ) !important;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoint-tree {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        7px !important;
}

.fleet-p128d-turret-root {
    min-width:
        0;

    padding:
        0 !important;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.075
        ) !important;

    border-radius:
        0 !important;

    background:
        #0e1112 !important;

    overflow:
        hidden;
}

.fleet-p128d-turret-root-contract {
    min-height:
        30px;

    padding:
        0
        8px;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        auto
        auto;

    gap:
        6px;

    align-items:
        center;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.055
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.065
            ),
            transparent
        );
}

.fleet-p128d-turret-root-label {
    color:
        #d9873f;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.08em;
}

.fleet-p128d-turret-root-contract
strong {
    color:
        rgba(
            232,
            236,
            238,
            0.70
        );

    font-size:
        7px;

    letter-spacing:
        0.07em;
}

.fleet-p128d-lock-badge {
    padding:
        2px
        4px;

    border:
        1px solid
        rgba(
            216,
            137,
            91,
            0.25
        );

    color:
        rgba(
            224,
            154,
            113,
            0.72
        );

    font-size:
        6px;

    font-weight:
        800;
}

.fleet-p128d-turret-weapons-label {
    margin:
        7px
        8px
        0;

    padding-top:
        7px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );

    color:
        rgba(
            232,
            236,
            238,
            0.31
        );

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.075em;
}

.fleet-p128d-turret-root
.fleet-nested-hardpoint-child-list {
    padding:
        7px
        8px
        8px !important;

    display:
        grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        5px !important;
}

.fleet-p128d-turret-weapon-slot {
    position:
        relative;

    min-width:
        0;

    min-height:
        58px;

    padding:
        7px !important;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.075
        ) !important;

    border-radius:
        0 !important;

    background:
        #111416 !important;

    color:
        #e8ebed !important;

    font-family:
        inherit !important;

    font-size:
        8px !important;

    font-weight:
        700 !important;

    line-height:
        1.35 !important;

    text-align:
        left !important;

    cursor:
        pointer !important;
}

.fleet-p128d-turret-weapon-slot:hover,
.fleet-p128d-turret-weapon-slot.is-selected {
    border-color:
        rgba(
            255,
            138,
            42,
            0.72
        ) !important;

    background:
        rgba(
            216,
            111,
            29,
            0.09
        ) !important;
}

.fleet-p128d-turret-weapon-slot.is-planned {
    border-color:
        rgba(
            255,
            138,
            42,
            0.88
        ) !important;

    box-shadow:
        inset
        2px
        0
        0
        #ff8a2a;
}

.fleet-p128d-nested-planned-badge {
    margin-top:
        6px;

    padding-top:
        5px;

    display:
        block;

    overflow:
        hidden;

    border-top:
        1px solid
        rgba(
            255,
            138,
            42,
            0.20
        );

    color:
        #f09a4f;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        6px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoint-compatibility {
    margin:
        7px
        0
        0 !important;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.16
        ) !important;

    border-radius:
        0 !important;

    background:
        #0b0e0f !important;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoint-compatible-list {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        4px !important;
}

.fleet-p128d-turret-mount
.fleet-nested-hardpoint-option {
    min-width:
        0;

    border-radius:
        0 !important;

    background:
        #111416 !important;
}

.fleet-p128d-nested-compatible-row {
    grid-template-columns:
        minmax(
            125px,
            1.05fr
        )
        minmax(
            180px,
            1.75fr
        )
        72px;
}

@media (
    max-width:
        1550px
) {

    .fleet-p128d-rack-grid,
    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-tree {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }
}

@media (
    max-width:
        900px
) {

    .fleet-p128d-contract-notice {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }

    .fleet-p128d-rack-grid,
    .fleet-p128d-turret-root
    .fleet-nested-hardpoint-child-list,
    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-compatible-list {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }

    .fleet-p128d-payload-item {
        grid-template-columns:
            minmax(
                0,
                1fr
            );

        gap:
            4px;
    }

    .fleet-p128d-specialized-header {
        flex-direction:
            column;
    }

    .fleet-p128d-specialized-meta {
        max-width:
            none;

        text-align:
            left;
    }
}

/* D07_P128D_MISSILES_TURRETS_SPECIALIZED_END */

/* =========================================================
   D07_P128E_PHYSICAL_3D_SELECTION_INTEGRATION_BEGIN
   CERTIFIED PHYSICAL 3D <-> LOADOUT LINK
   ========================================================= */

.fleet-p128e-physical-link-status {
    min-width:
        0;

    min-height:
        34px;

    padding:
        6px
        8px;

    display:
        grid;

    grid-template-columns:
        28px
        minmax(
            0,
            1fr
        );

    gap:
        8px;

    align-items:
        center;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.055
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );

    background:
        #0a0d0e;
}

.fleet-p128e-link-icon {
    width:
        28px;

    height:
        22px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    color:
        rgba(
            235,
            239,
            240,
            0.42
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.06em;
}

.fleet-p128e-link-copy {
    min-width:
        0;

    display:
        grid;

    gap:
        1px;
}

.fleet-p128e-link-main {
    overflow:
        hidden;

    color:
        rgba(
            236,
            239,
            240,
            0.72
        );

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.065em;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128e-link-detail {
    overflow:
        hidden;

    color:
        rgba(
            232,
            236,
            238,
            0.30
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        6px;

    line-height:
        1.4;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128e-physical-link-status[data-state="linked"] {
    border-color:
        rgba(
            216,
            111,
            29,
            0.20
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.075
            ),
            transparent
            48%
        ),
        #0a0d0e;
}

.fleet-p128e-physical-link-status[data-state="linked"]
.fleet-p128e-link-icon {
    border-color:
        rgba(
            255,
            138,
            42,
            0.48
        );

    color:
        #ee9850;
}

.fleet-p128e-physical-link-status[data-state="linked"]
.fleet-p128e-link-main {
    color:
        #e99850;
}

.fleet-p128e-physical-link-status[data-state="pending"]
.fleet-p128e-link-icon {
    border-color:
        rgba(
            219,
            164,
            84,
            0.28
        );

    color:
        rgba(
            224,
            179,
            112,
            0.76
        );
}

.fleet-p128e-physical-link-status[data-state="unlinked"]
.fleet-p128e-link-icon {
    border-color:
        rgba(
            255,
            255,
            255,
            0.065
        );

    color:
        rgba(
            235,
            239,
            240,
            0.25
        );
}

.fleet-p128e-physical-link-status[data-state="error"] {
    border-color:
        rgba(
            213,
            89,
            70,
            0.26
        );

    background:
        rgba(
            110,
            27,
            20,
            0.10
        );
}

.fleet-p128e-physical-link-status[data-state="error"]
.fleet-p128e-link-icon,
.fleet-p128e-physical-link-status[data-state="error"]
.fleet-p128e-link-main {
    color:
        rgba(
            232,
            121,
            104,
            0.86
        );
}

.fleet-p128e-certified-3d-target {
    transition:
        border-color
        120ms ease,
        box-shadow
        120ms ease,
        filter
        120ms ease;
}

.fleet-p128e-certified-3d-target.is-p128e-physical-active {
    outline:
        1px solid
        rgba(
            255,
            138,
            42,
            0.50
        );

    outline-offset:
        2px;

    filter:
        brightness(
            1.08
        );
}

.fleet-cockpit-shell[data-p128e-physical-link-state="linked"]
.fleet-physical-stage,
.fleet-hangar-cockpit[data-p128e-physical-link-state="linked"]
.fleet-physical-stage {
    border-color:
        rgba(
            216,
            111,
            29,
            0.16
        );
}

@media (
    max-width:
        760px
) {

    .fleet-p128e-physical-link-status {
        grid-template-columns:
            24px
            minmax(
                0,
                1fr
            );

        gap:
            6px;
    }

    .fleet-p128e-link-icon {
        width:
            24px;
    }

    .fleet-p128e-link-main,
    .fleet-p128e-link-detail {
        white-space:
            normal;
    }
}

/* D07_P128E_PHYSICAL_3D_SELECTION_INTEGRATION_END */

/* =========================================================
   D07_P128F_FINAL_VISUAL_FINISH_BEGIN

   DESTROZADO07 // HANGAR V3
   FINAL LOADOUT VISUAL SYSTEM

   Drake industrial / gunmetal / burnt orange.
   No glassmorphism.
   No generic blue cyberpunk.
   No excessive glow.
   ========================================================= */


/* =========================================================
   01 // FINAL COCKPIT FOUNDATION
   ========================================================= */

.fleet-p128f-final {
    --p128f-black:
        #060809;

    --p128f-panel:
        #0a0d0e;

    --p128f-panel-2:
        #0d1011;

    --p128f-panel-3:
        #111416;

    --p128f-panel-4:
        #15191b;

    --p128f-line:
        rgba(
            235,
            239,
            240,
            0.075
        );

    --p128f-line-strong:
        rgba(
            235,
            239,
            240,
            0.13
        );

    --p128f-orange:
        #d86f1d;

    --p128f-orange-bright:
        #ec9347;

    --p128f-orange-soft:
        rgba(
            216,
            111,
            29,
            0.12
        );

    --p128f-orange-line:
        rgba(
            216,
            111,
            29,
            0.34
        );

    --p128f-text:
        #e9edef;

    --p128f-muted:
        rgba(
            232,
            236,
            238,
            0.47
        );

    --p128f-dim:
        rgba(
            232,
            236,
            238,
            0.27
        );

    width:
        100%;

    min-width:
        0;

    position:
        relative;

    overflow:
        hidden;

    border:
        1px solid
        var(--p128f-line-strong);

    border-radius:
        2px;

    background:
        linear-gradient(
            135deg,
            rgba(
                216,
                111,
                29,
                0.025
            ),
            transparent
            19%
        ),
        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                0.008
            )
            1px,
            transparent
            1px
        ),
        var(--p128f-black);

    background-size:
        auto,
        42px
        100%,
        auto;

    box-shadow:
        inset
        0
        1px
        0
        rgba(
            255,
            255,
            255,
            0.025
        );

    color:
        var(--p128f-text);

    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        "Segoe UI",
        Arial,
        sans-serif;
}

.fleet-p128f-final::before {
    content:
        "";

    position:
        absolute;

    z-index:
        20;

    top:
        0;

    left:
        0;

    width:
        78px;

    height:
        2px;

    background:
        var(--p128f-orange);

    opacity:
        0.82;

    pointer-events:
        none;
}

.fleet-p128f-workspace {
    gap:
        8px !important;

    background:
        transparent !important;
}


/* =========================================================
   02 // COMMAND / STATE STRIP
   ========================================================= */

.fleet-p128f-command-strip {
    width:
        100%;

    min-width:
        0;

    min-height:
        52px;

    display:
        grid;

    grid-template-columns:
        minmax(
            190px,
            1.15fr
        )
        minmax(
            150px,
            1fr
        )
        minmax(
            140px,
            0.8fr
        )
        minmax(
            120px,
            0.7fr
        )
        minmax(
            180px,
            1fr
        );

    align-items:
        stretch;

    border-bottom:
        1px solid
        var(--p128f-line-strong);

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.075
            ),
            transparent
            27%
        ),
        #0b0e0f;
}

.fleet-p128f-command-brand,
.fleet-p128f-command-cell {
    min-width:
        0;

    padding:
        8px
        12px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    border-right:
        1px solid
        var(--p128f-line);
}

.fleet-p128f-command-brand {
    position:
        relative;

    padding-left:
        18px;
}

.fleet-p128f-command-brand::before {
    content:
        "";

    position:
        absolute;

    left:
        8px;

    top:
        10px;

    bottom:
        10px;

    width:
        3px;

    background:
        var(--p128f-orange);
}

.fleet-p128f-command-brand strong {
    color:
        var(--p128f-text);

    font-size:
        13px;

    font-weight:
        900;

    line-height:
        1;

    letter-spacing:
        0.105em;
}

.fleet-p128f-command-brand span,
.fleet-p128f-command-eyebrow {
    margin-top:
        4px;

    color:
        var(--p128f-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1;

    letter-spacing:
        0.07em;
}

.fleet-p128f-command-value {
    overflow:
        hidden;

    color:
        rgba(
            236,
            240,
            241,
            0.76
        );

    font-size:
        10px;

    font-weight:
        800;

    line-height:
        1.15;

    letter-spacing:
        0.045em;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.fleet-p128f-command-planned {
    border-right:
        0;
}

.fleet-p128f-final.has-p128f-planned
.fleet-p128f-command-planned {
    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.12
            ),
            rgba(
                216,
                111,
                29,
                0.025
            )
        );
}

.fleet-p128f-final.has-p128f-planned
.fleet-p128f-command-planned
.fleet-p128f-command-value {
    color:
        var(--p128f-orange-bright);
}

.fleet-p128f-final.is-p128f-editing
.fleet-p128f-command-mode
.fleet-p128f-command-value {
    color:
        var(--p128f-orange-bright);
}


/* =========================================================
   03 // INDUSTRIAL CONTROLS
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-control {
    min-height:
        30px;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.105
        );

    border-radius:
        1px;

    background:
        linear-gradient(
            180deg,
            rgba(
                255,
                255,
                255,
                0.028
            ),
            rgba(
                255,
                255,
                255,
                0.004
            )
        ),
        #111416;

    box-shadow:
        none;

    color:
        rgba(
            235,
            239,
            240,
            0.67
        );

    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        "Segoe UI",
        sans-serif;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.055em;

    text-transform:
        uppercase;

    transition:
        border-color
        110ms ease,
        background
        110ms ease,
        color
        110ms ease;
}

.fleet-p128f-final
.fleet-p128f-control:hover:not(:disabled) {
    border-color:
        rgba(
            216,
            111,
            29,
            0.48
        );

    background:
        #15191b;

    color:
        #f0f2f2;
}

.fleet-p128f-final
.fleet-p128f-control.is-p128f-accent {
    border-color:
        rgba(
            216,
            111,
            29,
            0.35
        );

    background:
        linear-gradient(
            180deg,
            rgba(
                216,
                111,
                29,
                0.14
            ),
            rgba(
                216,
                111,
                29,
                0.055
            )
        ),
        #111416;

    color:
        #e89a59;
}

.fleet-p128f-final
.fleet-p128f-control.is-p128f-destructive {
    border-color:
        rgba(
            192,
            102,
            68,
            0.20
        );

    color:
        rgba(
            225,
            161,
            138,
            0.72
        );
}

.fleet-p128f-final
.fleet-p128f-control:disabled {
    opacity:
        0.34;

    cursor:
        not-allowed;

    filter:
        saturate(
            0.42
        );
}

.fleet-p128f-final
.fleet-p128f-input {
    min-height:
        32px;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.10
        );

    border-radius:
        1px;

    outline:
        0;

    background:
        #090c0d;

    color:
        #e4e8e9;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        9px;
}

.fleet-p128f-final
.fleet-p128f-input:focus {
    border-color:
        rgba(
            216,
            111,
            29,
            0.52
        );

    box-shadow:
        inset
        2px
        0
        0
        rgba(
            216,
            111,
            29,
            0.58
        );
}


/* =========================================================
   04 // LOADOUT CATEGORY NAVIGATION
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-category-tabs {
    min-width:
        0;

    display:
        grid !important;

    grid-template-columns:
        repeat(
            5,
            minmax(
                90px,
                1fr
            )
        );

    gap:
        0 !important;

    border-top:
        1px solid
        var(--p128f-line);

    border-bottom:
        1px solid
        var(--p128f-line-strong);

    background:
        #090c0d;
}

.fleet-p128f-final
.fleet-p128f-category-tabs
[data-loadout-filter] {
    min-height:
        36px;

    padding:
        7px
        10px;

    border:
        0;

    border-right:
        1px solid
        var(--p128f-line);

    border-radius:
        0;

    background:
        transparent;

    color:
        rgba(
            232,
            236,
            238,
            0.42
        );

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.065em;

    text-transform:
        uppercase;
}

.fleet-p128f-final
.fleet-p128f-category-tabs
[data-loadout-filter]:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.018
        );

    color:
        rgba(
            238,
            241,
            242,
            0.72
        );
}

.fleet-p128f-final[data-p128f-active-filter="all"]
.fleet-p128f-category-tabs
[data-loadout-filter="all"],

.fleet-p128f-final[data-p128f-active-filter="weapons"]
.fleet-p128f-category-tabs
[data-loadout-filter="weapons"],

.fleet-p128f-final[data-p128f-active-filter="systems"]
.fleet-p128f-category-tabs
[data-loadout-filter="systems"],

.fleet-p128f-final[data-p128f-active-filter="missiles"]
.fleet-p128f-category-tabs
[data-loadout-filter="missiles"],

.fleet-p128f-final[data-p128f-active-filter="turrets"]
.fleet-p128f-category-tabs
[data-loadout-filter="turrets"] {
    background:
        linear-gradient(
            180deg,
            rgba(
                216,
                111,
                29,
                0.14
            ),
            rgba(
                216,
                111,
                29,
                0.035
            )
        );

    box-shadow:
        inset
        0
        -2px
        0
        var(--p128f-orange);

    color:
        #f0a365;
}


/* =========================================================
   05 // PHYSICAL SHIP / 3D STAGE
   ========================================================= */

.fleet-p128f-workspace
.fleet-ship-media,
.fleet-p128f-final
.fleet-ship-media {
    position:
        relative;

    min-width:
        0;

    height:
        clamp(
            350px,
            41vh,
            500px
        ) !important;

    min-height:
        350px !important;

    max-height:
        500px;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.085
        ) !important;

    border-radius:
        1px !important;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(
                216,
                111,
                29,
                0.035
            ),
            transparent
            42%
        ),
        #070a0b !important;
}

.fleet-p128f-workspace
.fleet-ship-media::before,
.fleet-p128f-final
.fleet-ship-media::before {
    opacity:
        0.42;
}

.fleet-p128f-workspace
.fleet-ship-media
.ship-holoviewer,
.fleet-p128f-final
.fleet-ship-media
.ship-holoviewer {
    width:
        100% !important;

    height:
        100% !important;

    min-height:
        100% !important;
}

.fleet-p128f-workspace
.fleet-ship-media
.ship-holoviewer-viewport,
.fleet-p128f-final
.fleet-ship-media
.ship-holoviewer-viewport {
    width:
        100% !important;

    height:
        100% !important;

    min-height:
        100% !important;
}

.fleet-p128f-final
.fleet-physical-stage {
    min-width:
        0;

    display:
        grid;

    grid-template-columns:
        minmax(
            390px,
            0.92fr
        )
        minmax(
            0,
            1.35fr
        );

    gap:
        8px;

    align-items:
        stretch;
}


/* =========================================================
   06 // P128E PHYSICAL LINK
   ========================================================= */

.fleet-p128f-final
.fleet-p128e-physical-link-status {
    min-height:
        38px;

    margin:
        0;

    padding:
        6px
        10px;

    border-top:
        1px solid
        var(--p128f-line);

    border-bottom:
        1px solid
        var(--p128f-line);

    background:
        #090c0d;
}

.fleet-p128f-final
.fleet-p128e-physical-link-status[data-state="linked"] {
    border-left:
        2px solid
        var(--p128f-orange);

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.09
            ),
            transparent
            36%
        ),
        #090c0d;
}

.fleet-p128f-final
.fleet-p128e-link-main {
    font-size:
        8px;

    letter-spacing:
        0.08em;
}

.fleet-p128f-final
.fleet-p128e-link-detail {
    font-size:
        6px;

    letter-spacing:
        0.045em;
}


/* =========================================================
   07 // OVERVIEW / PHYSICAL LOADOUT
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-loadout-surface {
    min-width:
        0;

    position:
        relative;

    border:
        1px solid
        var(--p128f-line);

    border-radius:
        1px;

    background:
        #080b0c;
}

.fleet-p128f-final
.fleet-physical-loadout-groups {
    min-width:
        0;

    display:
        grid;

    gap:
        8px;

    padding:
        9px;

    background:
        #080b0c;
}

.fleet-p128f-final
.fleet-p128f-loadout-group,
.fleet-p128f-final
.fleet-physical-loadout-group {
    min-width:
        0;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.075
        );

    border-radius:
        1px;

    background:
        #0c0f10;

    box-shadow:
        inset
        0
        1px
        0
        rgba(
            255,
            255,
            255,
            0.015
        );
}

.fleet-p128f-final
.fleet-physical-loadout-group-header {
    min-height:
        36px;

    padding:
        7px
        10px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    border-bottom:
        1px solid
        rgba(
            235,
            239,
            240,
            0.065
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.055
            ),
            transparent
            42%
        ),
        #101315;
}

.fleet-p128f-final
.fleet-physical-loadout-group-header
strong {
    color:
        rgba(
            238,
            241,
            242,
            0.84
        );

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        0.075em;
}

.fleet-p128f-final
.fleet-physical-loadout-group-header
span {
    color:
        var(--p128f-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    letter-spacing:
        0.045em;
}

.fleet-p128f-final
.fleet-physical-loadout-group
article {
    border-radius:
        1px !important;

    background:
        #0e1112;

    transition:
        border-color
        110ms ease,
        background
        110ms ease;
}

.fleet-p128f-final
.fleet-physical-loadout-group
article:hover {
    background:
        #111516;

    border-color:
        rgba(
            216,
            111,
            29,
            0.25
        ) !important;
}

.fleet-p128f-final
.is-planned {
    border-color:
        rgba(
            216,
            111,
            29,
            0.54
        ) !important;

    box-shadow:
        inset
        2px
        0
        0
        rgba(
            216,
            111,
            29,
            0.72
        ) !important;
}


/* =========================================================
   08 // FINAL EDIT WORKBENCH
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-workbench-surface {
    min-width:
        0;

    position:
        relative;

    overflow:
        visible;

    margin-top:
        9px;

    border:
        1px solid
        var(--p128f-line-strong);

    border-top:
        2px solid
        rgba(
            216,
            111,
            29,
            0.66
        );

    border-radius:
        1px;

    background:
        #080b0c;

    box-shadow:
        0
        -10px
        32px
        rgba(
            0,
            0,
            0,
            0.20
        );
}

.fleet-p128f-final
.fleet-p128f-workbench-surface[hidden] {
    display:
        none !important;
}

.fleet-p128f-final
.fleet-workbench-grid {
    min-width:
        0;

    display:
        grid !important;

    grid-template-columns:
        minmax(
            175px,
            0.86fr
        )
        minmax(
            390px,
            2.25fr
        )
        minmax(
            175px,
            0.86fr
        )
        minmax(
            190px,
            0.90fr
        ) !important;

    gap:
        1px !important;

    align-items:
        stretch;

    background:
        rgba(
            235,
            239,
            240,
            0.065
        );
}

.fleet-p128f-final
.fleet-workbench-grid
> * {
    min-width:
        0;

    padding:
        9px;

    background:
        #0b0e0f;
}

.fleet-p128f-final
.fleet-workbench-grid
> *:nth-child(2) {
    background:
        #090c0d;
}

.fleet-p128f-final
.fleet-workbench-grid
h3,
.fleet-p128f-final
.fleet-workbench-grid
h4,
.fleet-p128f-final
.fleet-workbench-grid
strong {
    letter-spacing:
        0.04em;
}

.fleet-p128f-final
.fleet-workbench-grid
[class*="build-impact"] {
    position:
        sticky;

    top:
        8px;

    align-self:
        start;
}


/* =========================================================
   09 // COMPATIBLE COMPONENT TABLE
   ========================================================= */

.fleet-p128f-final
.fleet-compatible-table {
    min-width:
        0;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.07
        );

    background:
        #080b0c;
}

.fleet-p128f-final
.fleet-compatible-table-row,
.fleet-p128f-final
.fleet-p128f-compatible-row {
    min-width:
        0;

    min-height:
        36px;

    border-bottom:
        1px solid
        rgba(
            235,
            239,
            240,
            0.052
        );

    background:
        #0b0e0f;

    transition:
        background
        100ms ease,
        border-color
        100ms ease;
}

.fleet-p128f-final
.fleet-compatible-table-row:hover,
.fleet-p128f-final
.fleet-p128f-compatible-row:hover {
    background:
        #101415;
}

.fleet-p128f-final
.fleet-compatible-table-row.is-selected,
.fleet-p128f-final
.fleet-compatible-table-row[aria-selected="true"],
.fleet-p128f-final
.fleet-p128f-compatible-row.is-selected {
    border-left:
        2px solid
        var(--p128f-orange);

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.115
            ),
            rgba(
                216,
                111,
                29,
                0.015
            )
            58%
        ),
        #0d1011;
}

.fleet-p128f-final
.fleet-compatible-table-row
strong {
    color:
        rgba(
            239,
            242,
            243,
            0.88
        );
}

.fleet-p128f-final
.fleet-compatible-empty {
    min-height:
        90px;

    padding:
        18px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--p128f-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        8px;

    text-align:
        center;

    letter-spacing:
        0.055em;
}


/* =========================================================
   10 // COMPONENT DELTA
   ========================================================= */

.fleet-p128f-final
.fleet-component-delta-band {
    min-width:
        0;

    margin-top:
        1px;

    border-top:
        1px solid
        rgba(
            216,
            111,
            29,
            0.24
        );

    border-bottom:
        1px solid
        var(--p128f-line);

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.07
            ),
            transparent
            32%
        ),
        #090c0d;
}

.fleet-p128f-final
.fleet-component-delta-band
> * {
    min-width:
        0;
}

.fleet-p128f-final
.fleet-component-delta-band
strong {
    color:
        #e7a36b;
}


/* =========================================================
   11 // MISSILE SPECIALIZED WORKSPACE
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-specialized,
.fleet-p128f-final
.fleet-p128d-specialized-surface {
    min-width:
        0;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.075
        );

    border-radius:
        1px;

    background:
        #080b0c;
}

.fleet-p128f-final
.fleet-p128d-specialized-header {
    min-height:
        48px;

    padding:
        8px
        10px;

    border-bottom:
        1px solid
        var(--p128f-line);

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.075
            ),
            transparent
            42%
        ),
        #0e1112;
}

.fleet-p128f-final
.fleet-p128d-specialized-heading
h3 {
    font-size:
        12px;

    letter-spacing:
        0.07em;
}

.fleet-p128f-final
.fleet-p128d-specialized-meta {
    color:
        var(--p128f-muted);

    font-size:
        7px;
}

.fleet-p128f-final
.fleet-p128d-contract-notice {
    margin:
        8px;

    padding:
        8px
        10px;

    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.16
        );

    border-left:
        2px solid
        rgba(
            216,
            111,
            29,
            0.58
        );

    border-radius:
        1px;

    background:
        rgba(
            216,
            111,
            29,
            0.035
        );
}

.fleet-p128f-final
.fleet-p128d-contract-notice
strong {
    color:
        #dd8d4d;

    font-size:
        8px;

    letter-spacing:
        0.055em;
}

.fleet-p128f-final
.fleet-p128d-contract-notice
span {
    color:
        var(--p128f-muted);

    font-size:
        8px;

    line-height:
        1.45;
}

.fleet-p128f-final
.fleet-p128d-missile-body {
    padding:
        0
        8px
        8px;
}

.fleet-p128f-final
.fleet-p128d-rack-grid {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(
                175px,
                1fr
            )
        ) !important;

    gap:
        7px !important;
}

.fleet-p128f-final
.fleet-p128d-rack-card,
.fleet-p128f-final
.fleet-p128f-rack-card {
    min-width:
        0;

    padding:
        9px;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.085
        );

    border-radius:
        1px;

    background:
        #0e1112;
}

.fleet-p128f-final
.fleet-p128d-rack-card:hover {
    border-color:
        rgba(
            216,
            111,
            29,
            0.32
        );

    background:
        #111516;
}

.fleet-p128f-final
.fleet-p128d-rack-position {
    color:
        #d98a4a;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    letter-spacing:
        0.05em;
}

.fleet-p128f-final
.fleet-p128d-rack-name {
    color:
        rgba(
            238,
            241,
            242,
            0.90
        );

    font-size:
        11px;

    letter-spacing:
        0.025em;
}

.fleet-p128f-final
.fleet-p128d-rack-meta,
.fleet-p128f-final
.fleet-p128d-logical-contract {
    color:
        var(--p128f-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    line-height:
        1.45;
}

.fleet-p128f-final
.fleet-p128d-payload-contract {
    margin-top:
        8px;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.07
        );

    background:
        #0b0e0f;
}

.fleet-p128f-final
.fleet-p128d-payload-title {
    min-height:
        34px;

    padding:
        7px
        9px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border-bottom:
        1px solid
        var(--p128f-line);

    background:
        #101315;
}

.fleet-p128f-final
.fleet-p128d-payload-title
strong {
    font-size:
        9px;

    letter-spacing:
        0.065em;
}

.fleet-p128f-final
.fleet-p128d-payload-title
span {
    color:
        rgba(
            225,
            147,
            82,
            0.68
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;
}

.fleet-p128f-final
.fleet-p128d-payload-item {
    border-bottom:
        1px solid
        rgba(
            235,
            239,
            240,
            0.045
        );

    background:
        #0b0e0f;
}


/* =========================================================
   12 // TURRET / NESTED WORKSPACE
   ========================================================= */

.fleet-p128f-final
.fleet-p128d-turret-mount {
    min-width:
        0;

    padding:
        0
        8px
        8px;
}

.fleet-p128f-final
.fleet-p128d-turret-mount
.fleet-nested-hardpoint-tree {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        7px !important;
}

.fleet-p128f-final
.fleet-p128d-turret-root,
.fleet-p128f-final
.fleet-p128f-turret-root {
    min-width:
        0;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.085
        ) !important;

    border-radius:
        1px !important;

    background:
        #0c0f10 !important;
}

.fleet-p128f-final
.fleet-p128d-turret-root-contract {
    min-height:
        34px;

    padding:
        6px
        8px;

    border-bottom:
        1px solid
        rgba(
            216,
            111,
            29,
            0.17
        );

    background:
        linear-gradient(
            90deg,
            rgba(
                216,
                111,
                29,
                0.07
            ),
            transparent
            58%
        ),
        #111416;
}

.fleet-p128f-final
.fleet-p128d-lock-badge {
    border:
        1px solid
        rgba(
            216,
            111,
            29,
            0.26
        );

    border-radius:
        1px;

    background:
        rgba(
            216,
            111,
            29,
            0.055
        );

    color:
        rgba(
            230,
            153,
            89,
            0.75
        );
}

.fleet-p128f-final
.fleet-p128d-turret-weapons-label {
    padding:
        7px
        8px
        4px;

    color:
        var(--p128f-dim);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        7px;

    letter-spacing:
        0.055em;
}

.fleet-p128f-final
.fleet-p128d-turret-root
.fleet-nested-hardpoint-child-list {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        5px !important;

    padding:
        7px;
}

.fleet-p128f-final
.fleet-p128d-turret-weapon-slot {
    min-width:
        0;

    min-height:
        48px;

    padding:
        7px
        8px;

    border:
        1px solid
        rgba(
            235,
            239,
            240,
            0.075
        ) !important;

    border-radius:
        1px !important;

    background:
        #101315 !important;
}

.fleet-p128f-final
.fleet-p128d-turret-weapon-slot:hover {
    border-color:
        rgba(
            216,
            111,
            29,
            0.34
        ) !important;

    background:
        #141819 !important;
}

.fleet-p128f-final
.fleet-p128d-turret-weapon-slot
.fleet-p128d-nested-planned-badge {
    color:
        var(--p128f-orange-bright);

    background:
        rgba(
            216,
            111,
            29,
            0.08
        );
}

.fleet-p128f-final
.fleet-p128d-turret-mount
.fleet-nested-hardpoint-compatibility {
    margin-top:
        8px !important;

    border:
        1px solid
        var(--p128f-line) !important;

    background:
        #090c0d !important;
}

.fleet-p128f-final
.fleet-p128d-turret-mount
.fleet-nested-hardpoint-compatible-list {
    gap:
        5px !important;

    padding:
        6px;
}


/* =========================================================
   13 // LEGACY ENGINE VISUALLY SUBORDINATE
   ========================================================= */

.fleet-p128f-final
.fleet-p128f-legacy-engine {
    min-width:
        0;

    margin:
        0;

    padding:
        0;

    border:
        0;

    background:
        transparent;
}

.fleet-p128f-final
#fleet-cockpit-selector-host
.fleet-bulk-component-selector {
    border-radius:
        1px !important;
}

.fleet-p128f-final
#fleet-cockpit-selector-host
.fleet-nested-hardpoints-panel {
    border-radius:
        1px !important;
}


/* =========================================================
   14 // EDIT MODE EMPHASIS
   ========================================================= */

.fleet-p128f-final.is-p128f-editing
.fleet-p128f-loadout-surface {
    border-color:
        rgba(
            216,
            111,
            29,
            0.16
        );
}

.fleet-p128f-final.is-p128f-editing
.fleet-p128f-workbench-surface {
    animation:
        p128f-workbench-enter
        150ms
        ease-out;
}

@keyframes p128f-workbench-enter {

    from {
        opacity:
            0.72;

        transform:
            translateY(
                4px
            );
    }

    to {
        opacity:
            1;

        transform:
            translateY(
                0
            );
    }
}


/* =========================================================
   15 // TECHNICAL SCROLLBARS
   ========================================================= */

.fleet-p128f-final
* {
    scrollbar-width:
        thin;

    scrollbar-color:
        #3c4143
        #090c0d;
}

.fleet-p128f-final
*::-webkit-scrollbar {
    width:
        8px;

    height:
        8px;
}

.fleet-p128f-final
*::-webkit-scrollbar-track {
    background:
        #090c0d;
}

.fleet-p128f-final
*::-webkit-scrollbar-thumb {
    border:
        2px solid
        #090c0d;

    background:
        #3a4042;
}

.fleet-p128f-final
*::-webkit-scrollbar-thumb:hover {
    background:
        #555d60;
}


/* =========================================================
   16 // RESPONSIVE // LARGE DESKTOP
   ========================================================= */

@media (
    max-width:
        1600px
) {

    .fleet-p128f-command-strip {
        grid-template-columns:
            minmax(
                170px,
                1.05fr
            )
            minmax(
                135px,
                0.9fr
            )
            minmax(
                125px,
                0.75fr
            )
            minmax(
                105px,
                0.60fr
            )
            minmax(
                165px,
                0.95fr
            );
    }


    .fleet-p128f-final
    .fleet-workbench-grid {
        grid-template-columns:
            minmax(
                165px,
                0.82fr
            )
            minmax(
                340px,
                2fr
            )
            minmax(
                165px,
                0.82fr
            )
            minmax(
                175px,
                0.82fr
            ) !important;
    }


    .fleet-p128f-final
    .fleet-p128d-rack-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    190px,
                    1fr
                )
            ) !important;
    }
}


/* =========================================================
   17 // RESPONSIVE // 1360
   ========================================================= */

@media (
    max-width:
        1360px
) {

    .fleet-p128f-command-strip {
        grid-template-columns:
            minmax(
                180px,
                1fr
            )
            repeat(
                2,
                minmax(
                    135px,
                    0.8fr
                )
            )
            minmax(
                165px,
                1fr
            );
    }


    .fleet-p128f-command-filter {
        display:
            none;
    }


    .fleet-p128f-final
    .fleet-physical-stage {
        grid-template-columns:
            minmax(
                0,
                1fr
            );
    }


    .fleet-p128f-workspace
    .fleet-ship-media,
    .fleet-p128f-final
    .fleet-ship-media {
        height:
            clamp(
                330px,
                38vh,
                450px
            ) !important;

        min-height:
            330px !important;
    }


    .fleet-p128f-final
    .fleet-workbench-grid {
        grid-template-columns:
            minmax(
                0,
                1fr
            )
            minmax(
                0,
                1.65fr
            ) !important;
    }


    .fleet-p128f-final
    .fleet-workbench-grid
    > *:nth-child(3),
    .fleet-p128f-final
    .fleet-workbench-grid
    > *:nth-child(4) {
        border-top:
            1px solid
            var(--p128f-line);
    }


    .fleet-p128f-final
    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-tree {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }
}


/* =========================================================
   18 // RESPONSIVE // TABLET
   ========================================================= */

@media (
    max-width:
        980px
) {

    .fleet-p128f-command-strip {
        grid-template-columns:
            minmax(
                0,
                1.35fr
            )
            minmax(
                0,
                1fr
            )
            minmax(
                0,
                1fr
            );
    }


    .fleet-p128f-command-filter,
    .fleet-p128f-command-ship {
        display:
            none;
    }


    .fleet-p128f-final
    .fleet-p128f-category-tabs {
        overflow-x:
            auto;

        grid-template-columns:
            repeat(
                5,
                minmax(
                    110px,
                    1fr
                )
            );
    }


    .fleet-p128f-final
    .fleet-workbench-grid {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-p128f-final
    .fleet-workbench-grid
    > * {
        border-bottom:
            1px solid
            var(--p128f-line);
    }


    .fleet-p128f-final
    .fleet-workbench-grid
    [class*="build-impact"] {
        position:
            static;
    }


    .fleet-p128f-final
    .fleet-p128d-rack-grid {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-p128f-final
    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-tree {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }
}


/* =========================================================
   19 // RESPONSIVE // MOBILE/NARROW
   ========================================================= */

@media (
    max-width:
        720px
) {

    .fleet-p128f-final {
        border-left:
            0;

        border-right:
            0;
    }


    .fleet-p128f-command-strip {
        min-height:
            48px;

        grid-template-columns:
            minmax(
                0,
                1fr
            )
            minmax(
                0,
                1fr
            );
    }


    .fleet-p128f-command-brand {
        display:
            none;
    }


    .fleet-p128f-command-mode,
    .fleet-p128f-command-planned {
        padding:
            7px
            9px;
    }


    .fleet-p128f-command-value {
        white-space:
            normal;

        font-size:
            9px;
    }


    .fleet-p128f-workspace
    .fleet-ship-media,
    .fleet-p128f-final
    .fleet-ship-media {
        height:
            300px !important;

        min-height:
            300px !important;
    }


    .fleet-p128f-final
    .fleet-p128d-turret-root
    .fleet-nested-hardpoint-child-list {
        grid-template-columns:
            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-p128f-final
    .fleet-p128d-contract-notice {
        margin:
            6px;
    }


    .fleet-p128f-final
    .fleet-physical-loadout-groups {
        padding:
            6px;

        gap:
            6px;
    }
}


/* =========================================================
   20 // ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (
    prefers-reduced-motion:
        reduce
) {

    .fleet-p128f-final
    *,
    .fleet-p128f-final
    *::before,
    .fleet-p128f-final
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.001ms !important;
    }
}


/* =========================================================
   D07_P128F_FINAL_VISUAL_FINISH_END
   ========================================================= */

/* D07_P128C_FULL_LOADOUT_WORKBENCH_END */

/* D07_P128G_GLOBAL_REFLOW_BEGIN */

/*
 * P128G // GLOBAL HANGAR V3 REFLOW
 *
 * PRIMARY VISUAL TARGET:
 * LG ULTRAWIDE 3440 x 1440
 *
 * GOAL:
 * - Use ultrawide horizontal space correctly.
 * - Increase 3D visual importance.
 * - Improve component/loadout hierarchy.
 * - Give Compatible Components real working width.
 * - Keep Current / Compatible / Selected / Build Impact visible.
 * - Reflow Missiles and Turrets without inventing data.
 * - Improve Ship Data readability.
 * - Preserve P128C / P128D / P128E / P128F behavior.
 *
 * SCOPE:
 * CSS ONLY.
 *
 * NO:
 * - game-data changes
 * - database changes
 * - geometry changes
 * - ShipHoloviewer logic changes
 */


    #workspace:has(> #view-fleet.active) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

.fleet-selected-workspace.fleet-full-workbench-mounted {

    width:
        100% !important;

    max-width:
        none !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        visible !important;
}


.fleet-hangar-cockpit {

    --p128g-gap-xs:
        6px;

    --p128g-gap-sm:
        10px;

    --p128g-gap-md:
        14px;

    --p128g-gap-lg:
        18px;

    --p128g-panel:
        #090c0d;

    --p128g-panel-2:
        #0d1112;

    --p128g-panel-3:
        #111516;

    --p128g-line:
        rgba(
            236,
            239,
            240,
            0.085
        );

    --p128g-line-strong:
        rgba(
            216,
            111,
            29,
            0.40
        );

    --p128g-orange:
        #d86f1d;

    --p128g-orange-soft:
        #d9873f;

    --p128g-text:
        #edf0f1;

    --p128g-muted:
        rgba(
            232,
            236,
            238,
            0.56
        );


    width:
        100% !important;

    max-width:
        none !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(
            0,
            1fr
        ) !important;

    gap:
        var(
            --p128g-gap-sm
        ) !important;

    box-sizing:
        border-box !important;

    background:
        #050708 !important;
}


/* ==========================================================
   TOP COMMAND STRIP
   ========================================================== */


.fleet-p128f-command-strip {

    min-height:
        62px !important;

    grid-template-columns:

        minmax(
            250px,
            1.25fr
        )

        minmax(
            210px,
            0.95fr
        )

        minmax(
            190px,
            0.85fr
        )

        minmax(
            180px,
            0.78fr
        )

        minmax(
            240px,
            1.05fr
        ) !important;

    border-bottom:
        1px solid
        var(
            --p128g-line-strong
        ) !important;
}


.fleet-p128f-command-brand,
.fleet-p128f-command-strip
> * {

    min-width:
        0 !important;
}


.fleet-p128f-command-brand {

    padding:
        10px
        16px !important;
}


.fleet-p128f-command-brand
strong {

    font-size:
        14px !important;

    letter-spacing:
        0.10em !important;
}


.fleet-p128f-command-brand
span,
.fleet-p128f-command-strip
[class*="fleet-p128f-command-"]
.fleet-p128f-command-label {

    font-size:
        9px !important;
}


.fleet-p128f-command-strip
[class*="fleet-p128f-command-"]
.fleet-p128f-command-value {

    font-size:
        11px !important;

    line-height:
        1.2 !important;
}


/* ==========================================================
   SHIP IDENTITY / BUILD COMMAND
   ========================================================== */


.fleet-physical-command {

    min-height:
        74px !important;

    padding:
        10px
        16px !important;

    gap:
        var(
            --p128g-gap-md
        ) !important;

    align-items:
        center !important;
}


.fleet-command-right {

    gap:
        10px !important;

    align-items:
        center !important;
}


.fleet-planned-status {

    min-height:
        30px !important;

    padding:
        6px
        14px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.075em !important;
}


/* ==========================================================
   MAIN PHYSICAL STAGE
   ========================================================== */


.fleet-physical-stage {

    width:
        100% !important;

    min-width:
        0 !important;

    display:
        grid !important;

    grid-template-columns:

        minmax(
            0,
            1.45fr
        )

        minmax(
            560px,
            0.95fr
        ) !important;

    align-items:
        stretch !important;

    gap:
        var(
            --p128g-gap-sm
        ) !important;

    padding:
        0 !important;

    box-sizing:
        border-box !important;

    background:
        transparent !important;
}


.fleet-physical-ship-pane,
.fleet-cockpit-installed.fleet-physical-loadout-panel {

    min-width:
        0 !important;

    min-height:
        600px !important;

    border:
        1px solid
        var(
            --p128g-line
        ) !important;

    background:
        var(
            --p128g-panel
        ) !important;
}


/* ==========================================================
   3D / SHIP CONTEXT
   ========================================================== */


.fleet-physical-ship-pane {

    display:
        grid !important;

    grid-template-rows:

        auto

        minmax(
            0,
            1fr
        )

        auto !important;
}


.fleet-physical-pane-header,
.fleet-physical-loadout-header {

    min-height:
        58px !important;

    padding:
        10px
        14px !important;

    box-sizing:
        border-box !important;
}


.fleet-physical-pane-header
strong,
.fleet-physical-loadout-heading
h2 {

    font-size:
        15px !important;

    line-height:
        1.15 !important;

    letter-spacing:
        0.045em !important;
}


.fleet-physical-pane-header
.section-kicker,
.fleet-physical-loadout-heading
.section-kicker {

    font-size:
        9px !important;

    letter-spacing:
        0.09em !important;
}


.fleet-physical-media-host {

    width:
        100% !important;

    min-width:
        0 !important;

    min-height:
        510px !important;

    height:
        100% !important;

    overflow:
        hidden !important;

    background:

        radial-gradient(
            circle at 52% 46%,
            rgba(
                216,
                111,
                29,
                0.055
            ),
            transparent 44%
        ),

        #050708 !important;
}


.fleet-physical-media-host
.fleet-ship-media,
.fleet-physical-media-host
.fleet-ship-media-physical,
.fleet-physical-media-host
.ship-holoviewer,
.fleet-physical-media-host
.ship-holoviewer-viewport,
.fleet-physical-media-host
canvas {

    width:
        100% !important;

    height:
        100% !important;

    min-height:
        100% !important;

    max-width:
        none !important;
}


.fleet-physical-ship-hint {

    min-height:
        34px !important;

    padding:
        8px
        12px !important;

    font-size:
        8px !important;

    letter-spacing:
        0.065em !important;
}


/* ==========================================================
   LOADOUT PANEL
   ========================================================== */


.fleet-cockpit-installed.fleet-physical-loadout-panel {

    display:
        grid !important;

    grid-template-rows:

        auto

        auto

        minmax(
            0,
            1fr
        ) !important;

    overflow:
        hidden !important;
}


.fleet-physical-loadout-header {

    display:
        flex !important;

    justify-content:
        space-between !important;

    gap:
        14px !important;

    align-items:
        center !important;
}


.fleet-physical-loadout-summary {

    font-size:
        9px !important;

    line-height:
        1.35 !important;

    text-align:
        right !important;
}


.fleet-physical-loadout-tabs {

    min-height:
        42px !important;

    display:
        grid !important;

    grid-template-columns:

        repeat(
            5,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        1px !important;

    padding:
        0 !important;

    border-top:
        1px solid
        var(
            --p128g-line
        ) !important;

    border-bottom:
        1px solid
        var(
            --p128g-line
        ) !important;

    background:
        rgba(
            235,
            239,
            240,
            0.055
        ) !important;
}


.fleet-physical-loadout-tab {

    min-width:
        0 !important;

    min-height:
        42px !important;

    padding:
        7px
        9px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.075em !important;
}


.fleet-physical-loadout-groups {

    min-width:
        0 !important;

    min-height:
        0 !important;

    padding:
        10px !important;

    display:
        grid !important;

    grid-template-columns:

        repeat(
            2,
            minmax(
                0,
                1fr
            )
        ) !important;

    align-content:
        start !important;

    gap:
        10px !important;

    overflow:
        auto !important;
}


.fleet-physical-loadout-groups
> * {

    min-width:
        0 !important;
}


/* ==========================================================
   COMPONENT WORKBENCH
   ========================================================== */


.fleet-physical-workbench {

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    border:
        1px solid
        var(
            --p128g-line
        ) !important;

    background:
        #07090a !important;
}


.fleet-physical-workbench-header {

    min-height:
        58px !important;

    padding:
        10px
        14px !important;

    gap:
        12px !important;

    align-items:
        center !important;
}


.fleet-workbench-heading
h3 {

    font-size:
        16px !important;

    line-height:
        1.2 !important;
}


.fleet-workbench-close {

    min-height:
        34px !important;

    padding:
        7px
        12px !important;

    font-size:
        9px !important;
}


.fleet-workbench-grid {

    width:
        100% !important;

    min-width:
        0 !important;

    display:
        grid !important;

    grid-template-columns:

        minmax(
            220px,
            0.92fr
        )

        minmax(
            560px,
            2.45fr
        )

        minmax(
            240px,
            1fr
        )

        minmax(
            260px,
            1.06fr
        ) !important;

    gap:
        1px !important;

    align-items:
        stretch !important;

    background:
        var(
            --p128g-line
        ) !important;
}


.fleet-workbench-grid
> * {

    min-width:
        0 !important;

    min-height:
        430px !important;

    padding:
        12px !important;

    box-sizing:
        border-box !important;

    background:
        var(
            --p128g-panel
        ) !important;
}


.fleet-workbench-compatible {

    background:
        #080b0c !important;
}


.fleet-workbench-column-title {

    min-height:
        40px !important;

    padding:
        0
        11px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.11em !important;
}


.fleet-workbench-column-body {

    padding:
        11px !important;
}


.fleet-workbench-component-name {

    font-size:
        16px !important;

    line-height:
        1.15 !important;
}


.fleet-workbench-component-meta,
.fleet-workbench-legacy-mirror,
.fleet-build-impact-body {

    font-size:
        9px !important;

    line-height:
        1.5 !important;
}


/* ==========================================================
   COMPATIBLE COMPONENTS
   ========================================================== */


.fleet-compatible-tools {

    display:
        grid !important;

    grid-template-columns:

        minmax(
            0,
            1fr
        )

        minmax(
            170px,
            0.34fr
        ) !important;

    gap:
        8px !important;

    margin-bottom:
        9px !important;
}


.fleet-compatible-search,
.fleet-compatible-sort {

    min-height:
        36px !important;

    padding:
        7px
        10px !important;

    font-size:
        10px !important;
}


.fleet-compatible-table-body {

    min-height:
        300px !important;

    max-height:
        560px !important;

    overflow:
        auto !important;
}


.fleet-plan-component-button {

    min-height:
        38px !important;

    margin-top:
        12px !important;

    padding:
        8px
        12px !important;

    font-size:
        10px !important;

    letter-spacing:
        0.08em !important;
}


.fleet-workbench-selected,
.fleet-workbench-impact {

    background:
        var(
            --p128g-panel-2
        ) !important;
}


/* ==========================================================
   COMPONENT DELTA
   ========================================================== */


.fleet-component-delta-band {

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    display:
        grid !important;

    grid-template-columns:

        minmax(
            180px,
            0.22fr
        )

        minmax(
            0,
            1.78fr
        ) !important;

    border-top:
        1px solid
        var(
            --p128g-line-strong
        ) !important;

    background:
        #080a0b !important;
}


.fleet-component-delta-title {

    min-height:
        50px !important;

    display:
        flex !important;

    align-items:
        center !important;

    padding:
        10px
        14px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.10em !important;
}


.fleet-component-delta-body {

    min-width:
        0 !important;

    padding:
        10px
        14px !important;

    font-size:
        9px !important;
}


/* ==========================================================
   MISSILES / TURRETS
   ========================================================== */


.fleet-p128d-specialized-surface {

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    border:
        1px solid
        var(
            --p128g-line
        ) !important;

    background:
        var(
            --p128g-panel
        ) !important;
}


.fleet-p128d-contract-notice {

    min-height:
        44px !important;

    padding:
        9px
        13px !important;

    gap:
        10px !important;

    font-size:
        9px !important;

    line-height:
        1.4 !important;
}


.fleet-p128d-missile-body {

    min-width:
        0 !important;

    padding:
        12px !important;

    gap:
        12px !important;
}


.fleet-p128d-turret-mount {

    min-width:
        0 !important;

    padding:
        12px !important;
}


.fleet-p128d-turret-mount
.fleet-nested-hardpoints-panel {

    width:
        100% !important;

    max-width:
        none !important;

    min-width:
        0 !important;
}


.fleet-p128d-turret-mount
.fleet-nested-hardpoint-child {

    min-height:
        38px !important;

    font-size:
        10px !important;
}


/* ==========================================================
   NESTED WORKSPACE
   ========================================================== */


.fleet-nested-surface {

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        0 !important;
}


.fleet-nested-surface-title {

    min-height:
        38px !important;

    padding:
        8px
        12px !important;

    font-size:
        9px !important;
}


/* ==========================================================
   SHIP DATA
   ========================================================== */


.fleet-physical-data-rail {

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        1px solid
        var(
            --p128g-line
        ) !important;

    background:
        #080a0b !important;
}


.fleet-physical-data-rail-title {

    min-height:
        42px !important;

    display:
        flex !important;

    align-items:
        center !important;

    padding:
        8px
        14px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.09em !important;
}


.fleet-physical-data-rail
.fleet-selected-bottom-card,
.fleet-physical-data-rail
.fleet-ship-spec-grid {

    width:
        100% !important;

    max-width:
        none !important;
}


.fleet-physical-data-rail
.fleet-ship-spec-grid {

    display:
        grid !important;

    grid-template-columns:

        repeat(
            4,
            minmax(
                0,
                1fr
            )
        ) !important;

    gap:
        1px !important;
}


/* ==========================================================
   WIDE DESKTOP
   ========================================================== */


@media
(
    min-width:
        2200px
) {

    .fleet-hangar-cockpit {

        gap:
            12px !important;
    }


    .fleet-physical-stage {

        grid-template-columns:

            minmax(
                0,
                1.55fr
            )

            minmax(
                680px,
                0.95fr
            ) !important;

        gap:
            12px !important;
    }


    .fleet-physical-ship-pane,
    .fleet-cockpit-installed.fleet-physical-loadout-panel {

        min-height:
            690px !important;
    }


    .fleet-physical-media-host {

        min-height:
            595px !important;
    }


    .fleet-workbench-grid {

        grid-template-columns:

            minmax(
                250px,
                0.90fr
            )

            minmax(
                760px,
                2.60fr
            )

            minmax(
                280px,
                1fr
            )

            minmax(
                300px,
                1.05fr
            ) !important;
    }


    .fleet-workbench-grid
    > * {

        min-height:
            500px !important;
    }


    .fleet-compatible-table-body {

        max-height:
            640px !important;
    }
}


/* ==========================================================
   PRIMARY TARGET
   LG ULTRAWIDE 3440 x 1440
   ========================================================== */


@media
(
    min-width:
        2500px
)
and
(
    min-height:
        1050px
)
and
(
    min-aspect-ratio:
        21 / 10
) {

    .fleet-selected-workspace.fleet-full-workbench-mounted {

        width:
            100% !important;

        max-width:
            none !important;
    }


    .fleet-hangar-cockpit {

        gap:
            14px !important;
    }


    .fleet-p128f-command-strip {

        min-height:
            68px !important;

        grid-template-columns:

            minmax(
                340px,
                1.35fr
            )

            minmax(
                270px,
                0.95fr
            )

            minmax(
                240px,
                0.85fr
            )

            minmax(
                220px,
                0.75fr
            )

            minmax(
                300px,
                1fr
            ) !important;
    }


    .fleet-p128f-command-brand
    strong {

        font-size:
            16px !important;
    }


    .fleet-p128f-command-strip
    [class*="fleet-p128f-command-"]
    .fleet-p128f-command-value {

        font-size:
            12px !important;
    }


    .fleet-physical-command {

        min-height:
            80px !important;

        padding:
            12px
            18px !important;
    }


    .fleet-physical-stage {

        grid-template-columns:

            minmax(
                0,
                1.62fr
            )

            minmax(
                900px,
                1fr
            ) !important;

        gap:
            14px !important;
    }


    .fleet-physical-ship-pane,
    .fleet-cockpit-installed.fleet-physical-loadout-panel {

        min-height:
            780px !important;
    }


    .fleet-physical-media-host {

        min-height:
            680px !important;
    }


    .fleet-physical-pane-header,
    .fleet-physical-loadout-header {

        min-height:
            64px !important;

        padding:
            11px
            16px !important;
    }


    .fleet-physical-pane-header
    strong,
    .fleet-physical-loadout-heading
    h2 {

        font-size:
            17px !important;
    }


    .fleet-physical-loadout-tabs {

        min-height:
            48px !important;
    }


    .fleet-physical-loadout-tab {

        min-height:
            48px !important;

        font-size:
            10px !important;
    }


    .fleet-physical-loadout-groups {

        grid-template-columns:

            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;

        gap:
            12px !important;

        padding:
            12px !important;
    }


    .fleet-physical-workbench-header {

        min-height:
            66px !important;

        padding:
            12px
            16px !important;
    }


    .fleet-workbench-heading
    h3 {

        font-size:
            18px !important;
    }


    .fleet-workbench-grid {

        grid-template-columns:

            minmax(
                300px,
                0.88fr
            )

            minmax(
                1120px,
                2.72fr
            )

            minmax(
                350px,
                1.02fr
            )

            minmax(
                380px,
                1.08fr
            ) !important;
    }


    .fleet-workbench-grid
    > * {

        min-height:
            560px !important;

        padding:
            14px !important;
    }


    .fleet-workbench-column-title {

        min-height:
            44px !important;

        font-size:
            10px !important;
    }


    .fleet-workbench-component-name {

        font-size:
            18px !important;
    }


    .fleet-workbench-component-meta,
    .fleet-workbench-legacy-mirror,
    .fleet-build-impact-body {

        font-size:
            10px !important;
    }


    .fleet-compatible-search,
    .fleet-compatible-sort {

        min-height:
            40px !important;

        font-size:
            11px !important;
    }


    .fleet-compatible-table-body {

        min-height:
            380px !important;

        max-height:
            720px !important;
    }


    .fleet-plan-component-button {

        min-height:
            42px !important;

        font-size:
            11px !important;
    }


    .fleet-component-delta-band {

        grid-template-columns:

            minmax(
                240px,
                0.20fr
            )

            minmax(
                0,
                1.80fr
            ) !important;
    }


    .fleet-component-delta-title,
    .fleet-component-delta-body,
    .fleet-p128d-contract-notice,
    .fleet-physical-data-rail-title {

        font-size:
            10px !important;
    }


    .fleet-p128d-missile-body,
    .fleet-p128d-turret-mount {

        padding:
            14px !important;
    }


    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-child {

        min-height:
            42px !important;

        font-size:
            11px !important;
    }


    .fleet-physical-data-rail
    .fleet-ship-spec-grid {

        grid-template-columns:

            repeat(
                6,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }
}


/* ==========================================================
   STANDARD 1440P / LARGE DESKTOP
   ========================================================== */


@media
(
    min-width:
        1500px
)
and
(
    max-width:
        2199px
) {

    .fleet-physical-stage {

        grid-template-columns:

            minmax(
                0,
                1.30fr
            )

            minmax(
                520px,
                0.95fr
            ) !important;
    }


    .fleet-workbench-grid {

        grid-template-columns:

            minmax(
                190px,
                0.90fr
            )

            minmax(
                500px,
                2.30fr
            )

            minmax(
                200px,
                0.95fr
            )

            minmax(
                220px,
                1fr
            ) !important;
    }
}


/* ==========================================================
   COMPACT DESKTOP FALLBACK
   ========================================================== */


@media
(
    max-width:
        1499px
) {

    .fleet-p128f-command-strip {

        grid-template-columns:

            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .fleet-physical-stage {

        grid-template-columns:

            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-physical-ship-pane,
    .fleet-cockpit-installed.fleet-physical-loadout-panel {

        min-height:
            520px !important;
    }


    .fleet-physical-loadout-groups {

        grid-template-columns:

            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-workbench-grid {

        grid-template-columns:

            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .fleet-workbench-compatible {

        grid-column:
            1
            /
            -1 !important;

        grid-row:
            1 !important;
    }


    .fleet-physical-data-rail
    .fleet-ship-spec-grid {

        grid-template-columns:

            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }
}


/* ==========================================================
   NARROW FALLBACK
   ========================================================== */


@media
(
    max-width:
        900px
) {

    .fleet-p128f-command-strip,
    .fleet-workbench-grid,
    .fleet-compatible-tools,
    .fleet-component-delta-band {

        grid-template-columns:

            minmax(
                0,
                1fr
            ) !important;
    }


    .fleet-workbench-compatible {

        grid-column:
            auto !important;

        grid-row:
            auto !important;
    }


    .fleet-physical-loadout-tabs {

        grid-template-columns:

            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .fleet-physical-media-host {

        min-height:
            420px !important;
    }
}


/* D07_P128G2_ULTRAWIDE_SCALE_BEGIN */


/* ==========================================================
   P128G2 — ULTRAWIDE SCALE PASS
   PRIMARY TARGET: LG 3440 x 1440
   UI ONLY — NO GAME DATA / NO GEOMETRY / NO HOLOVIEWER CAMERA
   ========================================================== */


@media
(
    min-width:
        2500px
)
and
(
    min-height:
        1050px
)
and
(
    min-aspect-ratio:
        21 / 10
) {

    .fleet-hangar-cockpit,
    .fleet-full-workbench,
    .fleet-p128d-specialized-surface,
    .fleet-physical-data-rail {

        font-size:
            12px;
    }


    /* ------------------------------------------------------
       COMMAND / NAV SCALE
       ------------------------------------------------------ */

    .fleet-p128f-command-strip {

        min-height:
            72px !important;
    }


    .fleet-p128f-command-brand,
    .fleet-p128f-command-ship,
    .fleet-p128f-command-mode,
    .fleet-p128f-command-filter,
    .fleet-p128f-command-planned {

        padding:
            10px 14px !important;
    }


    .fleet-p128f-command-strip strong,
    .fleet-p128f-command-strip h3,
    .fleet-p128f-command-strip h4 {

        font-size:
            13px !important;
    }


    .fleet-p128f-command-strip span,
    .fleet-p128f-command-strip small,
    .fleet-p128f-command-strip label {

        font-size:
            9px !important;

        line-height:
            1.35 !important;
    }


    .fleet-physical-loadout-tabs {

        min-height:
            48px !important;
    }


    .fleet-physical-loadout-tab {

        min-height:
            46px !important;

        padding:
            8px 14px !important;

        font-size:
            11px !important;

        letter-spacing:
            0.075em !important;
    }


    /* ------------------------------------------------------
       LOADOUT SCALE
       ------------------------------------------------------ */

    .fleet-physical-loadout-panel {

        font-size:
            11px !important;
    }


    .fleet-physical-loadout-heading {

        font-size:
            15px !important;
    }


    .fleet-physical-loadout-summary {

        font-size:
            10px !important;
    }


    .fleet-physical-loadout-groups {

        gap:
            12px !important;

        padding:
            12px !important;
    }


    .fleet-physical-loadout-group-header {

        min-height:
            44px !important;

        padding:
            9px 12px !important;
    }


    .fleet-physical-loadout-group-header strong {

        font-size:
            12px !important;
    }


    .fleet-physical-loadout-group-header span {

        font-size:
            9px !important;
    }


    .fleet-physical-loadout-group article {

        min-height:
            58px !important;
    }


    .fleet-physical-loadout-group article strong {

        font-size:
            12px !important;
    }


    .fleet-physical-loadout-group article span,
    .fleet-physical-loadout-group article small {

        font-size:
            9px !important;

        line-height:
            1.4 !important;
    }


    /* ------------------------------------------------------
       WORKBENCH SCALE / BALANCE
       ------------------------------------------------------ */

    .fleet-workbench-grid {

        grid-template-columns:
            minmax(
                320px,
                0.95fr
            )
            minmax(
                1180px,
                2.70fr
            )
            minmax(
                390px,
                1.05fr
            )
            minmax(
                430px,
                1.15fr
            ) !important;

        min-height:
            620px !important;
    }


    .fleet-workbench-grid > * {

        padding:
            13px !important;
    }


    .fleet-workbench-column-title {

        min-height:
            42px !important;

        padding:
            0 12px !important;

        font-size:
            10px !important;
    }


    .fleet-workbench-column-body {

        padding:
            12px !important;
    }


    .fleet-workbench-component-name {

        font-size:
            17px !important;

        line-height:
            1.18 !important;
    }


    .fleet-workbench-component-meta {

        font-size:
            10px !important;

        line-height:
            1.55 !important;
    }


    .fleet-workbench-state-line {

        padding:
            4px 7px !important;

        font-size:
            9px !important;
    }


    .fleet-compatible-tools {

        min-height:
            48px !important;

        gap:
            10px !important;
    }


    .fleet-compatible-search,
    .fleet-compatible-sort,
    .fleet-compatible-tools input,
    .fleet-compatible-tools select,
    .fleet-compatible-tools button {

        min-height:
            38px !important;

        font-size:
            10px !important;
    }


    .fleet-compatible-table-body {

        max-height:
            760px !important;
    }


    .fleet-compatible-table-row,
    .fleet-p128f-compatible-row {

        min-height:
            48px !important;

        padding:
            8px 10px !important;

        font-size:
            10px !important;
    }


    .fleet-compatible-table-row strong,
    .fleet-p128f-compatible-row strong {

        font-size:
            12px !important;
    }


    .fleet-compatible-table-row span,
    .fleet-compatible-table-row small,
    .fleet-p128f-compatible-row span,
    .fleet-p128f-compatible-row small {

        font-size:
            9px !important;
    }


    .fleet-component-delta-band {

        min-height:
            92px !important;

        padding:
            10px 14px !important;
    }


    .fleet-component-delta-title {

        font-size:
            11px !important;
    }


    .fleet-component-delta-body {

        font-size:
            10px !important;

        line-height:
            1.5 !important;
    }


    /* ------------------------------------------------------
       MISSILES SCALE
       ------------------------------------------------------ */

    .fleet-p128d-specialized-header {

        min-height:
            60px !important;

        padding:
            10px 14px !important;
    }


    .fleet-p128d-specialized-heading h3 {

        font-size:
            15px !important;
    }


    .fleet-p128d-specialized-meta {

        font-size:
            9px !important;
    }


    .fleet-p128d-contract-notice {

        margin:
            10px !important;

        padding:
            10px 13px !important;
    }


    .fleet-p128d-contract-notice strong,
    .fleet-p128d-contract-notice span {

        font-size:
            10px !important;
    }


    .fleet-p128d-missile-body {

        padding:
            0 10px 12px !important;
    }


    .fleet-p128d-rack-grid {

        gap:
            10px !important;
    }


    .fleet-p128d-rack-card,
    .fleet-p128f-rack-card {

        min-height:
            118px !important;

        padding:
            12px !important;
    }


    .fleet-p128d-rack-position {

        font-size:
            9px !important;
    }


    .fleet-p128d-rack-name {

        font-size:
            15px !important;
    }


    .fleet-p128d-rack-meta,
    .fleet-p128d-logical-contract {

        font-size:
            9px !important;

        line-height:
            1.5 !important;
    }


    .fleet-p128d-payload-title {

        min-height:
            42px !important;

        padding:
            9px 11px !important;
    }


    .fleet-p128d-payload-title strong {

        font-size:
            11px !important;
    }


    .fleet-p128d-payload-title span {

        font-size:
            9px !important;
    }


    .fleet-p128d-payload-item {

        min-height:
            42px !important;

        font-size:
            10px !important;
    }


    /* ------------------------------------------------------
       TURRETS SCALE
       ------------------------------------------------------ */

    .fleet-p128d-turret-mount {

        padding:
            0 10px 12px !important;
    }


    .fleet-p128d-turret-mount
    .fleet-nested-hardpoints-tree {

        gap:
            10px !important;
    }


    .fleet-p128d-turret-root-contract {

        min-height:
            42px !important;

        padding:
            8px 10px !important;
    }


    .fleet-p128d-lock-badge,
    .fleet-p128d-turret-weapons-label {

        font-size:
            9px !important;
    }


    .fleet-p128d-turret-root
    .fleet-nested-hardpoint-child-list {

        gap:
            8px !important;

        padding:
            9px !important;
    }


    .fleet-p128d-turret-weapon-slot {

        min-height:
            68px !important;

        padding:
            9px 10px !important;

        font-size:
            10px !important;
    }


    .fleet-p128d-turret-weapon-slot strong {

        font-size:
            12px !important;
    }


    .fleet-p128d-turret-weapon-slot span,
    .fleet-p128d-turret-weapon-slot small,
    .fleet-p128d-nested-planned-badge {

        font-size:
            9px !important;
    }


    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-compatibility {

        margin-top:
            10px !important;
    }


    .fleet-p128d-turret-mount
    .fleet-nested-hardpoint-compatible-list {

        gap:
            7px !important;

        padding:
            9px !important;
    }


    /* ------------------------------------------------------
       SHIP DATA — REAL INFORMATION RAIL
       ------------------------------------------------------ */

    .fleet-physical-data-rail {

        min-height:
            190px !important;

        padding:
            12px 14px !important;

        font-size:
            11px !important;
    }


    .fleet-physical-data-rail-title {

        min-height:
            38px !important;

        font-size:
            12px !important;

        letter-spacing:
            0.08em !important;
    }


    .fleet-physical-data-rail strong {

        font-size:
            12px !important;
    }


    .fleet-physical-data-rail span,
    .fleet-physical-data-rail small {

        font-size:
            9px !important;

        line-height:
            1.45 !important;
    }


    /* ------------------------------------------------------
       PHYSICAL / 3D PANEL — LAYOUT ONLY
       CAMERA FRAMING IS HANDLED SEPARATELY
       ------------------------------------------------------ */

    .fleet-physical-ship-pane,
    .fleet-physical-loadout-panel {

        min-height:
            820px !important;
    }


    .fleet-physical-media-host {

        min-height:
            710px !important;
    }
}


/* D07_P128G2_ULTRAWIDE_SCALE_END */

/* D07_P128G4_UI_HIERARCHY_BEGIN */

/* D07_P128H_DESIGN_CONSOLIDATION_BEGIN */

/*
 * ================================================================
 * P128H — DESIGN CONSOLIDATION
 * ================================================================
 *
 * Lectura visual objetivo:
 *
 * SHIP / BUILD
 *      ↓
 * CATEGORY
 *      ↓
 * SLOT / HARDPOINT
 *      ↓
 * CURRENT → COMPATIBLE → SELECTED → IMPACT
 *      ↓
 * SHIP SUMMARY
 *
 * El objetivo no es construir nuevas superficies.
 * Es conseguir que las existentes se lean como una sola herramienta.
 * ================================================================
 */


/* ----------------------------------------------------------------
   01 — DESIGN TOKENS / SINGLE COCKPIT LANGUAGE
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final {
    --p128h-bg-0: #090b0c;
    --p128h-bg-1: #0d1011;
    --p128h-bg-2: #121617;
    --p128h-bg-3: #171b1c;
    --p128h-bg-4: #1c2021;

    --p128h-line-0: rgba(255, 255, 255, 0.055);
    --p128h-line-1: rgba(255, 255, 255, 0.09);
    --p128h-line-2: rgba(255, 255, 255, 0.14);

    --p128h-orange: #d86f1d;
    --p128h-orange-soft: rgba(216, 111, 29, 0.16);
    --p128h-orange-faint: rgba(216, 111, 29, 0.07);

    --p128h-amber: #c89239;
    --p128h-text-0: #f0eee8;
    --p128h-text-1: #c8c7c1;
    --p128h-text-2: #8e9291;
    --p128h-text-3: #666b6a;

    --p128h-radius: 2px;
    --p128h-gap: 10px;
    --p128h-section-gap: 12px;

    position: relative;
    isolation: isolate;
}


/* ----------------------------------------------------------------
   02 — COCKPIT ROOT
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-hangar-cockpit,
#view-fleet .fleet-p128f-final.fleet-hangar-cockpit {
    gap: var(--p128h-section-gap) !important;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            transparent 150px
        ) !important;
}


/* ----------------------------------------------------------------
   03 — COMMAND / BUILD STATE
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-p128f-command-strip {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;

    min-height: 58px !important;
    padding: 0 !important;

    overflow: hidden !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-left:
        3px solid var(--p128h-orange) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.025),
            rgba(255,255,255,0.005)
        ),
        var(--p128h-bg-1) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-command-strip > * {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;

    padding:
        9px 14px !important;

    border-left:
        1px solid var(--p128h-line-0) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-command-strip > *:first-child {
    border-left:
        0 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-command-planned {
    margin-left: auto !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--p128h-orange-faint)
        ) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-command-strip h4 {
    margin: 0 !important;

    color:
        var(--p128h-text-0) !important;

    font-size:
        13px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.075em !important;
    line-height:
        1.1 !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-command-strip label {
    color:
        var(--p128h-text-2) !important;

    font-size:
        10px !important;
    font-weight:
        650 !important;
    letter-spacing:
        0.08em !important;
    line-height:
        1.1 !important;

    text-transform:
        uppercase !important;
}


/* ----------------------------------------------------------------
   04 — TOP STAGE / SHIP + LOADOUT
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-physical-stage {
    position: relative !important;

    gap:
        var(--p128h-gap) !important;

    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-media-host,
#view-fleet .fleet-p128f-final .fleet-physical-loadout-panel {
    min-width: 0 !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.018),
            transparent 42%
        ),
        var(--p128h-bg-1) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-media-host {
    position: relative !important;

    overflow: hidden !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-media-host::before {
    content: "" !important;

    position: absolute !important;
    z-index: 4 !important;

    top: 0 !important;
    left: 0 !important;

    width: 72px !important;
    height: 3px !important;

    pointer-events: none !important;

    background:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-panel {
    position: relative !important;

    padding:
        0 12px 12px !important;

    overflow: hidden !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-panel::before {
    content: "" !important;

    position: absolute !important;
    z-index: 2 !important;

    top: 0 !important;
    left: 0 !important;

    width: 3px !important;
    height: 100% !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            180deg,
            var(--p128h-orange),
            rgba(216,111,29,0.18) 120px,
            transparent 75%
        ) !important;
}


/* ----------------------------------------------------------------
   05 — LOADOUT CATEGORY NAVIGATION
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;

    min-height: 46px !important;

    margin:
        0 -12px 10px !important;
    padding:
        0 12px !important;

    border-bottom:
        1px solid var(--p128h-line-1) !important;

    background:
        rgba(0,0,0,0.13) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab {
    position: relative !important;

    min-height: 45px !important;

    padding:
        0 12px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    color:
        var(--p128h-text-2) !important;

    font-size:
        10px !important;
    font-weight:
        720 !important;
    letter-spacing:
        0.07em !important;

    text-transform:
        uppercase !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab::after {
    content: "" !important;

    position: absolute !important;

    left: 12px !important;
    right: 12px !important;
    bottom: 0 !important;

    height: 2px !important;

    opacity: 0 !important;

    background:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab:hover {
    color:
        var(--p128h-text-0) !important;

    background:
        rgba(255,255,255,0.02) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab.active,
#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab.is-active,
#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab[aria-selected="true"] {
    color:
        var(--p128h-text-0) !important;

    background:
        linear-gradient(
            180deg,
            transparent,
            var(--p128h-orange-faint)
        ) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab.active::after,
#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab.is-active::after,
#view-fleet .fleet-p128f-final .fleet-physical-loadout-tab[aria-selected="true"]::after {
    opacity: 1 !important;
}


/* ----------------------------------------------------------------
   06 — LOADOUT GROUPS / FLAT TECHNICAL HIERARCHY
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-physical-loadout-groups {
    min-width: 0 !important;

    gap:
        8px 10px !important;

    padding: 0 !important;

    align-content: start !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group {
    position: relative !important;

    min-width: 0 !important;

    padding:
        0 0 5px !important;

    overflow: hidden !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-top:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        rgba(255,255,255,0.009) !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 42px !important;
    height: 2px !important;

    background:
        rgba(216,111,29,0.72) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    min-height:
        35px !important;

    margin: 0 !important;
    padding:
        7px 10px !important;

    border-bottom:
        1px solid var(--p128h-line-0) !important;

    background:
        rgba(0,0,0,0.12) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group-header strong {
    color:
        var(--p128h-text-0) !important;

    font-size:
        11px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.055em !important;
    line-height:
        1.15 !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group-header span {
    color:
        var(--p128h-text-3) !important;

    font-size:
        9px !important;
    font-weight:
        620 !important;
    letter-spacing:
        0.055em !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article {
    position: relative !important;

    min-width: 0 !important;
    min-height: 45px !important;

    margin: 0 !important;
    padding:
        7px 10px 7px 13px !important;

    border: 0 !important;
    border-bottom:
        1px solid var(--p128h-line-0) !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article:last-child {
    border-bottom:
        0 !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article::before {
    content: "" !important;

    position: absolute !important;

    top: 12px !important;
    bottom: 12px !important;
    left: 5px !important;

    width: 2px !important;

    opacity: 0.32 !important;

    background:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article:hover {
    background:
        linear-gradient(
            90deg,
            var(--p128h-orange-faint),
            transparent 72%
        ) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article:focus-within {
    outline:
        1px solid rgba(216,111,29,0.38) !important;
    outline-offset:
        -1px !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article strong {
    color:
        var(--p128h-text-1) !important;

    font-size:
        11px !important;
    font-weight:
        710 !important;
    line-height:
        1.2 !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-loadout-group article small {
    color:
        var(--p128h-text-3) !important;

    font-size:
        9px !important;
    font-weight:
        560 !important;
    line-height:
        1.15 !important;
}


/* ----------------------------------------------------------------
   07 — WORKBENCH / ONE CONTINUOUS EDITING SURFACE
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-p128f-workbench-surface {
    position: relative !important;

    overflow: hidden !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        var(--p128h-bg-1) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.018) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-workbench-header {
    position: relative !important;

    min-height: 48px !important;

    margin: 0 !important;
    padding:
        9px 14px !important;

    border-bottom:
        1px solid var(--p128h-line-1) !important;

    background:
        linear-gradient(
            90deg,
            rgba(216,111,29,0.08),
            transparent 36%
        ),
        rgba(0,0,0,0.12) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-workbench-header::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 80px !important;
    height: 2px !important;

    background:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-grid {
    counter-reset:
        p128h-workbench-step !important;

    display: grid !important;

    min-width: 0 !important;

    gap: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background:
        var(--p128h-line-0) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-grid > * {
    counter-increment:
        p128h-workbench-step !important;

    position: relative !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding:
        12px 13px !important;

    border: 0 !important;
    border-left:
        1px solid var(--p128h-line-1) !important;
    border-radius: 0 !important;

    background:
        var(--p128h-bg-1) !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-grid > *:first-child {
    border-left:
        0 !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-grid > *::after {
    content:
        counter(p128h-workbench-step, decimal-leading-zero) !important;

    position: absolute !important;

    top: 9px !important;
    right: 10px !important;

    color:
        rgba(255,255,255,0.19) !important;

    font-size:
        9px !important;
    font-weight:
        780 !important;
    letter-spacing:
        0.08em !important;

    pointer-events:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-compatible {
    background:
        linear-gradient(
            180deg,
            rgba(216,111,29,0.025),
            transparent 130px
        ),
        var(--p128h-bg-2) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-selected {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.014),
            transparent
        ),
        var(--p128h-bg-1) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-impact {
    background:
        linear-gradient(
            180deg,
            rgba(200,146,57,0.025),
            transparent 130px
        ),
        #0c0f10 !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-grid > *:focus-within {
    box-shadow:
        inset 0 2px 0 rgba(216,111,29,0.55) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-heading {
    min-height:
        28px !important;

    margin:
        0 0 9px !important;
    padding:
        0 26px 7px 0 !important;

    border-bottom:
        1px solid var(--p128h-line-0) !important;

    color:
        var(--p128h-text-2) !important;

    font-size:
        9px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.09em !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-compatible .fleet-workbench-heading {
    color:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-component-name {
    color:
        var(--p128h-text-0) !important;

    font-size:
        13px !important;
    font-weight:
        760 !important;
    line-height:
        1.18 !important;
}

#view-fleet .fleet-p128f-final .fleet-workbench-component-meta {
    margin-top:
        4px !important;

    color:
        var(--p128h-text-3) !important;

    font-size:
        9px !important;
    font-weight:
        580 !important;
    line-height:
        1.25 !important;
}


/* ----------------------------------------------------------------
   08 — COMPATIBLE AREA / PRIMARY WORK SURFACE
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-compatible-tools {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    margin:
        0 0 8px !important;
    padding:
        0 0 8px !important;

    border-bottom:
        1px solid var(--p128h-line-0) !important;

    background:
        transparent !important;
}

#view-fleet .fleet-p128f-final .fleet-compatible-tools button {
    min-height:
        30px !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        1px !important;

    background:
        rgba(255,255,255,0.018) !important;

    color:
        var(--p128h-text-2) !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-compatible-tools button:hover {
    border-color:
        rgba(216,111,29,0.42) !important;

    color:
        var(--p128h-text-0) !important;

    background:
        var(--p128h-orange-faint) !important;
}

#view-fleet .fleet-p128f-final .fleet-compatible-table-body {
    min-width:
        0 !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-radius:
        1px !important;

    background:
        rgba(0,0,0,0.10) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row {
    position: relative !important;

    min-height:
        42px !important;

    margin: 0 !important;
    padding:
        6px 9px 6px 12px !important;

    border: 0 !important;
    border-bottom:
        1px solid var(--p128h-line-0) !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row:last-child {
    border-bottom:
        0 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row::before {
    content: "" !important;

    position: absolute !important;

    top: 8px !important;
    bottom: 8px !important;
    left: 3px !important;

    width: 2px !important;

    opacity: 0 !important;

    background:
        var(--p128h-orange) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row:hover {
    background:
        linear-gradient(
            90deg,
            var(--p128h-orange-faint),
            transparent 62%
        ) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row:hover::before,
#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.active::before,
#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.selected::before,
#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.is-selected::before {
    opacity: 1 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.active,
#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.selected,
#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row.is-selected {
    background:
        linear-gradient(
            90deg,
            rgba(216,111,29,0.12),
            rgba(216,111,29,0.015) 70%
        ) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row strong {
    color:
        var(--p128h-text-1) !important;

    font-size:
        10px !important;
    font-weight:
        700 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-compatible-row small {
    color:
        var(--p128h-text-3) !important;

    font-size:
        8px !important;
    font-weight:
        560 !important;
}


/* ----------------------------------------------------------------
   09 — COMPONENT DELTA / CONNECTOR BAND
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-component-delta-band {
    position: relative !important;

    margin:
        0 !important;
    padding:
        8px 12px !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-top:
        2px solid rgba(216,111,29,0.34) !important;
    border-radius:
        0 0 var(--p128h-radius) var(--p128h-radius) !important;

    background:
        linear-gradient(
            90deg,
            rgba(216,111,29,0.055),
            transparent 42%
        ),
        var(--p128h-bg-1) !important;

    box-shadow:
        none !important;
}


/* ----------------------------------------------------------------
   10 — SPECIALIZED LOADOUT SURFACES
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-p128d-specialized-surface {
    position: relative !important;

    overflow: hidden !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        var(--p128h-bg-1) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.018) !important;
}


/* ----------------------------------------------------------------
   11 — MISSILES / RACKS AS ONE SUBSYSTEM
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-p128d-missile-body {
    min-width:
        0 !important;

    gap:
        10px !important;

    padding:
        10px !important;

    border: 0 !important;

    background:
        transparent !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-rack-grid {
    min-width:
        0 !important;

    gap:
        8px !important;

    padding: 0 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-rack-card {
    position: relative !important;

    min-width: 0 !important;

    padding:
        10px 10px 9px !important;

    overflow: hidden !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-top:
        1px solid var(--p128h-line-2) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.018),
            transparent
        ),
        var(--p128h-bg-2) !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-rack-card::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 46px !important;
    height: 2px !important;

    background:
        rgba(216,111,29,0.76) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-rack-name {
    color:
        var(--p128h-text-0) !important;

    font-size:
        11px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.035em !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-logical-contract {
    margin-top:
        7px !important;
    padding-top:
        7px !important;

    border-top:
        1px solid var(--p128h-line-0) !important;

    color:
        var(--p128h-text-3) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-payload-contract {
    position: relative !important;

    margin-top:
        2px !important;
    padding:
        10px !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-left:
        2px solid rgba(200,146,57,0.44) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        rgba(0,0,0,0.10) !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-payload-title {
    margin-bottom:
        7px !important;

    color:
        var(--p128h-amber) !important;

    font-size:
        9px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.075em !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-payload-item {
    margin: 0 !important;
    padding:
        6px 8px !important;

    border: 0 !important;
    border-bottom:
        1px solid var(--p128h-line-0) !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow: none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-payload-item:last-child {
    border-bottom:
        0 !important;
}


/* ----------------------------------------------------------------
   12 — TURRETS / ROOTS + NESTED WEAPONS
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-nested-hardpoints-layout {
    display:
        grid !important;

    grid-template-columns:
        minmax(0, 1fr) !important;

    gap:
        10px !important;

    min-width:
        0 !important;
    width:
        100% !important;
}

#view-fleet .fleet-p128f-final .fleet-nested-hardpoints-tree {
    display:
        grid !important;

    min-width:
        0 !important;
    width:
        100% !important;

    gap:
        8px !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-turret-root {
    position: relative !important;

    min-width:
        0 !important;
    width:
        100% !important;

    padding:
        10px !important;

    overflow:
        hidden !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-top:
        1px solid var(--p128h-line-2) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.018),
            transparent 100px
        ),
        var(--p128h-bg-2) !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128f-turret-root::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 52px !important;
    height: 2px !important;

    background:
        rgba(216,111,29,0.72) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-turret-root-contract {
    margin:
        0 0 8px !important;
    padding:
        0 0 8px !important;

    border-bottom:
        1px solid var(--p128h-line-0) !important;

    color:
        var(--p128h-text-3) !important;

    font-size:
        9px !important;
    line-height:
        1.25 !important;
}

#view-fleet .fleet-p128f-final .fleet-nested-hardpoint-child-list {
    display:
        grid !important;

    gap:
        6px !important;

    min-width:
        0 !important;

    padding:
        0 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-turret-weapon-slot {
    position: relative !important;

    min-width:
        0 !important;

    margin:
        0 !important;
    padding:
        8px 9px !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-radius:
        1px !important;

    background:
        rgba(0,0,0,0.12) !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-turret-weapon-slot:hover {
    border-color:
        rgba(216,111,29,0.33) !important;

    background:
        var(--p128h-orange-faint) !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-turret-weapon-slot strong {
    color:
        var(--p128h-text-1) !important;

    font-size:
        10px !important;
    font-weight:
        700 !important;
}

#view-fleet .fleet-p128f-final .fleet-p128d-nested-planned-badge {
    border:
        1px solid rgba(216,111,29,0.30) !important;
    border-radius:
        1px !important;

    background:
        rgba(216,111,29,0.09) !important;

    color:
        var(--p128h-orange) !important;

    box-shadow:
        none !important;
}


/* ----------------------------------------------------------------
   13 — TURRET COMPATIBILITY / FULL-WIDTH SECONDARY WORK AREA
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-nested-hardpoint-compatibility {
    min-width:
        0 !important;
    width:
        100% !important;

    margin:
        0 !important;
    padding:
        10px !important;

    border:
        1px solid var(--p128h-line-0) !important;
    border-top:
        2px solid rgba(216,111,29,0.30) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        rgba(0,0,0,0.11) !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-nested-hardpoint-compatible-list {
    display:
        grid !important;

    min-width:
        0 !important;

    gap:
        6px !important;

    padding:
        0 !important;
}


/* ----------------------------------------------------------------
   14 — SHIP DATA / LOWER TECHNICAL RAIL
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-physical-data-rail {
    position:
        relative !important;

    min-width:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    border:
        1px solid var(--p128h-line-1) !important;
    border-radius:
        var(--p128h-radius) !important;

    background:
        var(--p128h-bg-1) !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-data-rail::before {
    content: "" !important;

    position: absolute !important;
    z-index: 2 !important;

    top: 0 !important;
    left: 0 !important;

    width:
        86px !important;
    height:
        2px !important;

    background:
        rgba(216,111,29,0.72) !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-data-rail-title {
    min-height:
        35px !important;

    margin:
        0 !important;
    padding:
        8px 11px !important;

    border-bottom:
        1px solid var(--p128h-line-1) !important;

    background:
        rgba(0,0,0,0.12) !important;

    color:
        var(--p128h-text-2) !important;

    font-size:
        9px !important;
    font-weight:
        760 !important;
    letter-spacing:
        0.09em !important;

    text-transform:
        uppercase !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-data-rail [class*="stat"] {
    min-width:
        0 !important;

    border:
        0 !important;
    border-right:
        1px solid var(--p128h-line-0) !important;
    border-bottom:
        1px solid var(--p128h-line-0) !important;
    border-radius:
        0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-data-rail strong {
    color:
        var(--p128h-text-1) !important;

    font-size:
        11px !important;
    font-weight:
        710 !important;
}

#view-fleet .fleet-p128f-final .fleet-physical-data-rail small {
    color:
        var(--p128h-text-3) !important;

    font-size:
        9px !important;
    font-weight:
        560 !important;
}


/* ----------------------------------------------------------------
   15 — LOADOUT SURFACE / REMOVE "CARD ON CARD" FEEL
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final .fleet-p128f-loadout-surface {
    min-width:
        0 !important;

    border-radius:
        var(--p128h-radius) !important;

    box-shadow:
        none !important;
}


/* ----------------------------------------------------------------
   16 — PRIMARY ULTRAWIDE COMPOSITION
   REAL CSS VIEWPORT AUTHORITY:
   >= 2500 × 1050 AND 21:10+
   ---------------------------------------------------------------- */

@media
    (min-width: 2500px)
    and (min-height: 1050px)
    and (min-aspect-ratio: 21 / 10) {

    #view-fleet .fleet-p128f-final .fleet-hangar-cockpit,
    #view-fleet .fleet-p128f-final.fleet-hangar-cockpit {
        gap:
            10px !important;
    }

    #view-fleet .fleet-p128f-final .fleet-physical-stage {
        display:
            grid !important;

        grid-template-columns:
            minmax(0, 0.88fr)
            minmax(0, 1.12fr) !important;

        gap:
            10px !important;

        align-items:
            stretch !important;
    }

    #view-fleet .fleet-p128f-final .fleet-physical-loadout-groups {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            8px 10px !important;
    }

    #view-fleet .fleet-p128f-final .fleet-workbench-grid {
        display:
            grid !important;

        grid-template-columns:
            minmax(270px, 0.90fr)
            minmax(0, 2.35fr)
            minmax(290px, 0.92fr)
            minmax(340px, 1.05fr) !important;

        gap:
            0 !important;

        width:
            100% !important;

        max-width:
            100% !important;

        overflow:
            hidden !important;
    }

    #view-fleet .fleet-p128f-final .fleet-workbench-compatible {
        min-width:
            0 !important;
    }

    #view-fleet .fleet-p128f-final .fleet-p128d-rack-grid {
        display:
            grid !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap:
            8px !important;
    }

    #view-fleet .fleet-p128f-final .fleet-nested-hardpoints-tree {
        display:
            grid !important;

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap:
            8px !important;

        width:
            100% !important;
    }

    #view-fleet .fleet-p128f-final .fleet-nested-hardpoint-child-list {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            6px !important;
    }

    #view-fleet .fleet-p128f-final .fleet-nested-hardpoint-compatible-list {
        display:
            grid !important;

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap:
            6px !important;
    }

    #view-fleet .fleet-p128f-final .fleet-ship-spec-grid {
        display:
            grid !important;

        grid-template-columns:
            repeat(6, minmax(0, 1fr)) !important;
    }
}


/* ----------------------------------------------------------------
   17 — MEDIUM WIDTH SAFETY
   Do not force the ultrawide composition below the real breakpoint.
   ---------------------------------------------------------------- */

@media
    (min-width: 1500px)
    and (max-width: 2499px) {

    #view-fleet .fleet-p128f-final .fleet-workbench-grid {
        max-width:
            100% !important;
    }

    #view-fleet .fleet-p128f-final .fleet-p128d-rack-grid,
    #view-fleet .fleet-p128f-final .fleet-nested-hardpoints-tree,
    #view-fleet .fleet-p128f-final .fleet-nested-hardpoint-compatible-list {
        max-width:
            100% !important;
    }
}


/* ----------------------------------------------------------------
   18 — SMALL / FALLBACK SAFETY
   Preserve the existing responsive P128G infrastructure.
   Only remove unsafe visual assumptions.
   ---------------------------------------------------------------- */

@media
    (max-width: 1499px) {

    #view-fleet .fleet-p128f-final .fleet-p128f-command-strip {
        flex-wrap:
            wrap !important;
    }

    #view-fleet .fleet-p128f-final .fleet-p128f-command-planned {
        margin-left:
            0 !important;
    }

    #view-fleet .fleet-p128f-final .fleet-workbench-grid > *::after {
        display:
            none !important;
    }
}


/* ----------------------------------------------------------------
   19 — INTERACTION POLISH
   ---------------------------------------------------------------- */

#view-fleet .fleet-p128f-final button,
#view-fleet .fleet-p128f-final [role="button"] {
    transition:
        border-color 110ms ease,
        background-color 110ms ease,
        color 110ms ease,
        opacity 110ms ease !important;
}

#view-fleet .fleet-p128f-final button:focus-visible,
#view-fleet .fleet-p128f-final [role="button"]:focus-visible {
    outline:
        1px solid rgba(216,111,29,0.75) !important;
    outline-offset:
        2px !important;
}

@media (prefers-reduced-motion: reduce) {

    #view-fleet .fleet-p128f-final button,
    #view-fleet .fleet-p128f-final [role="button"] {
        transition:
            none !important;
    }
}

/* D07_P128H_DESIGN_CONSOLIDATION_END */

/* D07_P128G4_UI_HIERARCHY_END */

/* D07_P128G_GLOBAL_REFLOW_END */

/* ====================================================== */
/* D07_P129C18N16B_SAVED_BUILDS_MANAGER_CSS */
/* ====================================================== */

.fleet-saved-manager-trigger {
    cursor:
        pointer;

    user-select:
        none;
}


.fleet-saved-manager-trigger:hover,
.fleet-saved-manager-trigger:focus-visible {
    border-color:
        rgba(
            111,
            201,
            136,
            0.72
        );

    background:
        rgba(
            111,
            201,
            136,
            0.08
        );

    outline:
        none;
}


.fleet-saved-manager-overlay {
    position:
        fixed;

    inset:
        0;

    z-index:
        12000;

    display:
        grid;

    place-items:
        center;

    padding:
        28px;

    background:
        rgba(
            4,
            7,
            9,
            0.82
        );

    backdrop-filter:
        blur(
            7px
        );
}


.fleet-saved-manager-panel {
    width:
        min(
            820px,
            94vw
        );

    max-height:
        min(
            760px,
            86vh
        );

    display:
        grid;

    grid-template-rows:
        auto
        auto
        minmax(
            0,
            1fr
        );

    overflow:
        hidden;

    border:
        1px
        solid
        rgba(
            216,
            111,
            29,
            0.42
        );

    background:
        linear-gradient(
            180deg,
            rgba(
                28,
                31,
                33,
                0.98
            ),
            rgba(
                13,
                16,
                18,
                0.99
            )
        );

    box-shadow:
        0
        26px
        80px
        rgba(
            0,
            0,
            0,
            0.58
        );
}


.fleet-saved-manager-header {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        18px
        20px;

    border-bottom:
        1px
        solid
        rgba(
            255,
            255,
            255,
            0.08
        );
}


.fleet-saved-manager-heading-wrap {
    min-width:
        0;
}


.fleet-saved-manager-eyebrow {
    margin-bottom:
        5px;

    color:
        rgba(
            243,
            170,
            102,
            0.72
        );

    font-size:
        10px;

    letter-spacing:
        0.16em;
}


.fleet-saved-manager-title {
    color:
        #f0f1ed;

    font-size:
        18px;

    font-weight:
        800;

    letter-spacing:
        0.08em;
}


.fleet-saved-manager-close,
.fleet-saved-manager-delete,
.fleet-saved-manager-delete-all {
    border:
        1px
        solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    padding:
        8px
        12px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    color:
        rgba(
            236,
            238,
            232,
            0.84
        );

    font:
        inherit;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.10em;

    cursor:
        pointer;
}


.fleet-saved-manager-delete,
.fleet-saved-manager-delete-all {
    border-color:
        rgba(
            212,
            75,
            57,
            0.48
        );

    color:
        rgba(
            255,
            145,
            128,
            0.95
        );

    background:
        rgba(
            137,
            37,
            26,
            0.12
        );
}


.fleet-saved-manager-close:hover,
.fleet-saved-manager-delete:hover,
.fleet-saved-manager-delete-all:hover {
    filter:
        brightness(
            1.18
        );
}


.fleet-saved-manager-delete:disabled,
.fleet-saved-manager-delete-all:disabled {
    opacity:
        0.38;

    cursor:
        default;
}


.fleet-saved-manager-toolbar {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;

    padding:
        11px
        20px;

    border-bottom:
        1px
        solid
        rgba(
            255,
            255,
            255,
            0.06
        );

    background:
        rgba(
            0,
            0,
            0,
            0.16
        );
}


.fleet-saved-manager-status {
    color:
        rgba(
            195,
            201,
            194,
            0.72
        );

    font-size:
        10px;

    letter-spacing:
        0.10em;
}


.fleet-saved-manager-list {
    min-height:
        180px;

    overflow-y:
        auto;

    padding:
        10px;
}


.fleet-saved-manager-row {
    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        auto;

    align-items:
        center;

    gap:
        16px;

    padding:
        13px
        12px;

    border:
        1px
        solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );
}


.fleet-saved-manager-row
+
.fleet-saved-manager-row {
    margin-top:
        7px;
}


.fleet-saved-manager-row-info {
    min-width:
        0;
}


.fleet-saved-manager-row-name {
    overflow:
        hidden;

    color:
        rgba(
            239,
            240,
            235,
            0.94
        );

    font-size:
        12px;

    font-weight:
        750;

    letter-spacing:
        0.05em;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.fleet-saved-manager-row-meta {
    margin-top:
        5px;

    color:
        rgba(
            160,
            168,
            161,
            0.72
        );

    font-size:
        9px;

    letter-spacing:
        0.08em;
}


.fleet-saved-manager-empty {
    display:
        grid;

    min-height:
        160px;

    place-items:
        center;

    color:
        rgba(
            155,
            164,
            157,
            0.60
        );

    font-size:
        11px;

    letter-spacing:
        0.13em;
}


@media (
    max-width:
        760px
) {

    .fleet-saved-manager-overlay {
        padding:
            12px;
    }


    .fleet-saved-manager-toolbar {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .fleet-saved-manager-row {
        grid-template-columns:
            1fr;
    }


    .fleet-saved-manager-delete {
        width:
            100%;
    }
}


/* D07_P129C18N16B_SAVED_BUILDS_MANAGER_CSS_END */

/* D07_P129F271_CORSAIR_COMPARATOR_STYLE_BEGIN */

.fleet-p129f269-comparator {
  --p129f269-orange: #d87924;
  --p129f269-amber: #f0aa45;
  --p129f269-steel: #20262a;
  --p129f269-steel-deep: #111518;
  --p129f269-line: rgba(216, 121, 36, 0.42);
  --p129f269-text: #e8edf0;
  --p129f269-muted: #9aa6ad;
  --p129f269-positive: #72c59a;
  --p129f269-negative: #e27668;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--p129f269-line);
  border-left: 4px solid var(--p129f269-orange);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(216, 121, 36, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(35, 42, 46, 0.98), rgba(15, 19, 22, 0.99));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--p129f269-text);
}

.fleet-p129f269-comparator,
.fleet-p129f269-comparator * {
  box-sizing: border-box;
}

.fleet-p129f269-comparator::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--p129f269-orange) 0 24px,
    #171b1e 24px 40px
  );
  opacity: 0.78;
}

.fleet-p129f269-comparator .fleet-workbench-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(216, 121, 36, 0.24);
  background: linear-gradient(90deg, rgba(216, 121, 36, 0.09), transparent 55%);
}

.fleet-p129f269-kicker {
  margin: 0 0 5px;
  color: var(--p129f269-amber);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fleet-p129f269-title {
  margin: 0;
  color: #f4f6f7;
  font-size: clamp(1rem, 1.25vw, 1.32rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.fleet-p129f269-formula {
  max-width: 42rem;
  margin: 7px 0 0;
  color: var(--p129f269-muted);
  font-size: 0.73rem;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.fleet-p129f269-identities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 22px;
}

.fleet-p129f269-identity {
  min-width: 0;
  padding: 13px 14px 12px;
  border: 1px solid rgba(154, 166, 173, 0.2);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(42, 49, 53, 0.78), rgba(23, 28, 31, 0.84));
}

.fleet-p129f269-identity.selected {
  border-color: rgba(216, 121, 36, 0.68);
  background: linear-gradient(180deg, rgba(216, 121, 36, 0.16), rgba(34, 29, 24, 0.88));
  box-shadow: inset 3px 0 0 var(--p129f269-orange);
}

.fleet-p129f269-name {
  display: block;
  overflow: hidden;
  color: var(--p129f269-text);
  font-size: 0.91rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-p129f269-price {
  display: block;
  margin-top: 7px;
  color: var(--p129f269-amber);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 800;
}

.fleet-p129f269-source {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--p129f269-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.fleet-p129f269-table {
  width: calc(100% - 44px);
  margin: 0 22px 20px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(154, 166, 173, 0.16);
  table-layout: fixed;
  background: rgba(8, 11, 13, 0.36);
}

.fleet-p129f269-table th {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(216, 121, 36, 0.35);
  background: rgba(216, 121, 36, 0.1);
  color: #bdc6cb;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.fleet-p129f269-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(154, 166, 173, 0.1);
  color: #d8dee1;
  font-size: 0.73rem;
  line-height: 1.3;
  vertical-align: middle;
}

.fleet-p129f269-table th:not(:first-child),
.fleet-p129f269-table td:not(:first-child) {
  text-align: right;
}

.fleet-p129f269-table tbody tr:last-child td {
  border-bottom: 0;
}

.fleet-p129f269-stat {
  transition: background-color 140ms ease;
}

.fleet-p129f269-stat:hover {
  background: rgba(216, 121, 36, 0.055);
}

.fleet-p129f269-current-value,
.fleet-p129f269-selected-value,
.fleet-p129f269-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.fleet-p129f269-current-value {
  color: #c7d0d5;
}

.fleet-p129f269-selected-value {
  color: #f1f4f5;
}

.fleet-p129f269-delta {
  color: var(--p129f269-muted);
}

.fleet-p129f269-stat[data-delta-trend="positive"] .fleet-p129f269-delta,
.fleet-p129f269-stat[data-delta-trend="up"] .fleet-p129f269-delta,
.fleet-p129f269-stat[data-delta-trend="gain"] .fleet-p129f269-delta {
  color: var(--p129f269-positive);
}

.fleet-p129f269-stat[data-delta-trend="negative"] .fleet-p129f269-delta,
.fleet-p129f269-stat[data-delta-trend="down"] .fleet-p129f269-delta,
.fleet-p129f269-stat[data-delta-trend="loss"] .fleet-p129f269-delta {
  color: var(--p129f269-negative);
}

.fleet-p129f269-empty {
  margin: 0;
  padding: 18px 22px 21px;
  border-top: 1px solid rgba(154, 166, 173, 0.12);
  color: var(--p129f269-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .fleet-p129f269-comparator .fleet-workbench-card-heading {
    padding-inline: 16px;
  }

  .fleet-p129f269-identities {
    padding-inline: 16px;
  }

  .fleet-p129f269-table {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }
}

@media (max-width: 720px) {
  .fleet-p129f269-identities {
    grid-template-columns: 1fr;
  }

  .fleet-p129f269-name {
    white-space: normal;
  }

  .fleet-p129f269-table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .fleet-p129f269-table th,
  .fleet-p129f269-table td {
    min-width: 7.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-p129f269-stat {
    transition: none;
  }
}

/* D07_P129F271_CORSAIR_COMPARATOR_STYLE_END */
/* D07_P129F286_SAVED_BUILD_DETAILS_CSS_BEGIN */
.fleet-saved-manager-row[data-p129f286-expandable="1"] {
    flex-wrap: wrap;
}
.fleet-p129f286-details-toggle {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(216,111,29,.72);
    background: rgba(216,111,29,.1);
    color: #f2b36f;
    font: 800 10px/1.1 "Arial Narrow", "Roboto Condensed", sans-serif;
    letter-spacing: .09em;
    cursor: pointer;
}
.fleet-p129f286-details-toggle:hover,
.fleet-p129f286-details-toggle[aria-expanded="true"] {
    background: rgba(216,111,29,.22);
    color: #ffd3a0;
}
.fleet-p129f286-details-toggle:disabled {
    cursor: wait;
    opacity: .62;
}
.fleet-p129f286-details {
    flex: 1 0 100%;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(216,111,29,.28);
    background: rgba(7,9,10,.88);
    box-sizing: border-box;
}
.fleet-p129f286-details[hidden] {
    display: none !important;
}
.fleet-p129f286-details-title {
    margin-bottom: 8px;
    color: #d86f1d;
    font: 850 11px/1.2 "Arial Narrow", "Roboto Condensed", sans-serif;
    letter-spacing: .1em;
}
.fleet-p129f286-details-list {
    display: grid;
    gap: 5px;
}
.fleet-p129f286-entry {
    display: grid;
    grid-template-columns: 34px minmax(170px,.9fr) minmax(210px,1.1fr) 92px;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 8px;
    border-left: 2px solid rgba(216,111,29,.62);
    background: rgba(255,255,255,.025);
}
.fleet-p129f286-entry-index,
.fleet-p129f286-entry-state {
    color: rgba(255,255,255,.48);
    font: 750 9px/1.1 monospace;
    letter-spacing: .06em;
}
.fleet-p129f286-entry-slot {
    color: rgba(255,255,255,.68);
    font: 700 10px/1.25 "Arial Narrow", "Roboto Condensed", sans-serif;
}
.fleet-p129f286-entry-item {
    color: #f1f1ed;
    font: 800 11px/1.25 "Arial Narrow", "Roboto Condensed", sans-serif;
}
.fleet-p129f286-entry-state {
    text-align: right;
    color: #d86f1d;
}
.fleet-p129f286-details-loading,
.fleet-p129f286-details-empty,
.fleet-p129f286-details-error {
    padding: 8px;
    color: rgba(255,255,255,.66);
    font: 750 10px/1.3 monospace;
}
.fleet-p129f286-details-error {
    color: #ff9d7c;
}
@media (max-width: 1180px) {
    .fleet-p129f286-entry {
        grid-template-columns: 28px minmax(140px,1fr) minmax(170px,1fr);
    }
    .fleet-p129f286-entry-state {
        grid-column: 2 / -1;
        text-align: left;
    }
}
/* D07_P129F286_SAVED_BUILD_DETAILS_CSS_END */

/* D07_P129F310_MULTI_SHIP_HOLOVIEWER_FALLBACK_CSS_BEGIN */

.fleet-ship-media
> .fleet-p129f310-holoviewer-fallback {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-height: inherit;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(240, 163, 101, 0.055),
            transparent 50%
        ),
        #070a0b;
}

.fleet-ship-media
> .fleet-p129f310-holoviewer-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent 22%,
            transparent 78%,
            rgba(0, 0, 0, 0.28)
        );
}

.fleet-p129f310-holoviewer-fallback
> .fleet-ship-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.fleet-p129f310-holoviewer-fallback
> .fleet-ship-image-empty {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 300px;
    margin: 0;
    display: grid;
    place-items: center;
}

.fleet-p129f310-holoviewer-hud {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    max-width: calc(100% - 150px);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
    border-left:
        3px solid
        var(
            --accent-hot,
            #f0a365
        );
    background:
        rgba(
            4,
            7,
            8,
            0.82
        );
    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            0.32
        );
    backdrop-filter:
        blur(8px);
    pointer-events:
        none;
}

.fleet-p129f310-holoviewer-kicker {
    color:
        var(
            --accent-hot,
            #f0a365
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size:
        11px;
    font-weight:
        900;
    line-height:
        1.2;
    letter-spacing:
        0.12em;
}

.fleet-p129f310-holoviewer-state {
    color:
        rgba(
            226,
            232,
            234,
            0.76
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size:
        9px;
    font-weight:
        700;
    line-height:
        1.35;
    letter-spacing:
        0.07em;
}

.fleet-p129f310-holoviewer-fallback-empty
.fleet-p129f310-holoviewer-state {
    color:
        #d78b62;
}

@media (max-width: 720px) {
    .fleet-p129f310-holoviewer-hud {
        left: 10px;
        bottom: 10px;
        max-width:
            calc(
                100%
                -
                20px
            );
        padding:
            7px 8px;
    }

    .fleet-p129f310-holoviewer-state {
        white-space:
            normal;
    }
}

/* D07_P129F310_MULTI_SHIP_HOLOVIEWER_FALLBACK_CSS_END */

/* D07_P129F336_COMPLETE_METRICS_PANEL_UI_BEGIN */
.fleet-performance-model-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border:
        1px solid
        rgba(
            240,
            163,
            101,
            0.28
        );
    border-left:
        4px solid
        var(
            --accent-hot,
            #f0a365
        );
    background:
        linear-gradient(
            145deg,
            rgba(11, 15, 17, 0.98),
            rgba(5, 8, 9, 0.98)
        );
    box-shadow:
        0 16px 34px
        rgba(
            0,
            0,
            0,
            0.28
        );
    overflow: hidden;
}

.fleet-performance-model-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 3px;
    background:
        var(
            --accent-hot,
            #f0a365
        );
    opacity: 0.72;
}

.fleet-performance-model-header {
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );
    background:
        linear-gradient(
            90deg,
            rgba(240, 163, 101, 0.08),
            transparent 55%
        );
}

.fleet-performance-model-heading {
    min-width: 0;
}

.fleet-performance-model-heading h2 {
    margin: 4px 0 0;
    color: #eef2f3;
    font-size: clamp(17px, 1.4vw, 23px);
    line-height: 1.1;
    letter-spacing: 0.045em;
}

.fleet-performance-model-policy {
    margin: 7px 0 0;
    color: rgba(226, 232, 234, 0.58);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.075em;
}

.fleet-performance-model-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fleet-performance-model-status {
    padding: 7px 9px;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );
    color: rgba(226, 232, 234, 0.72);
    background: rgba(0, 0, 0, 0.26);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.fleet-performance-model-status[data-status="ready"] {
    border-color: rgba(240, 163, 101, 0.34);
    color:
        var(
            --accent-hot,
            #f0a365
        );
}

.fleet-performance-model-status[data-status="error"] {
    border-color: rgba(215, 139, 98, 0.48);
    color: #d78b62;
}

.fleet-performance-model-refresh {
    min-height: 32px;
    padding: 7px 11px;
    border:
        1px solid
        rgba(
            240,
            163,
            101,
            0.36
        );
    color:
        var(
            --accent-hot,
            #f0a365
        );
    background: rgba(240, 163, 101, 0.07);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.fleet-performance-model-refresh:hover,
.fleet-performance-model-refresh:focus-visible {
    background: rgba(240, 163, 101, 0.14);
    outline: none;
}

.fleet-performance-model-body {
    padding: 14px;
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 12px;
}

.fleet-performance-model-group {
    min-width: 0;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
    background: rgba(255, 255, 255, 0.018);
    overflow-x: auto;
}

.fleet-performance-model-group-signature {
    grid-column: 1 / -1;
}

.fleet-performance-model-group-title {
    margin: 0;
    padding: 9px 11px;
    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
    color:
        var(
            --accent-hot,
            #f0a365
        );
    background: rgba(240, 163, 101, 0.045);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.fleet-performance-model-table {
    min-width: 820px;
    display: grid;
    grid-template-columns:
        minmax(180px, 1.25fr)
        repeat(3, minmax(105px, 0.82fr))
        repeat(2, minmax(135px, 1fr));
}

.fleet-performance-model-column-heading,
.fleet-performance-model-metric-name,
.fleet-performance-model-cell {
    min-width: 0;
    padding: 8px 9px;
    box-sizing: border-box;
    border-right:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );
    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.045
        );
}

.fleet-performance-model-column-heading {
    color: rgba(226, 232, 234, 0.48);
    background: rgba(0, 0, 0, 0.2);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.fleet-performance-model-metric-name {
    color: rgba(226, 232, 234, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fleet-performance-model-cell {
    color: #e2e8ea;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.fleet-performance-model-cell.is-current,
.fleet-performance-model-cell.is-planned {
    background: rgba(255, 255, 255, 0.018);
}

.fleet-performance-model-cell[data-status="N_D"] {
    color: rgba(226, 232, 234, 0.38);
}

.fleet-performance-model-loading,
.fleet-performance-model-error {
    grid-column: 1 / -1;
    padding: 22px;
    border:
        1px dashed
        rgba(
            255,
            255,
            255,
            0.1
        );
    color: rgba(226, 232, 234, 0.52);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-align: center;
}

.fleet-performance-model-error {
    color: #d78b62;
}

@media (max-width: 1500px) {
    .fleet-performance-model-body {
        grid-template-columns: 1fr;
    }

    .fleet-performance-model-group-signature {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .fleet-performance-model-header {
        padding: 13px;
        flex-direction: column;
    }

    .fleet-performance-model-controls {
        width: 100%;
        justify-content: space-between;
    }

    .fleet-performance-model-status {
        white-space: normal;
    }

    .fleet-performance-model-body {
        padding: 10px;
    }
}
/* D07_P129F342_LOADOUT_LIFECYCLE_COMPLETION_CSS_BEGIN */

.fleet-saved-manager-toolbar[data-p129f342-lifecycle="1"] {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        auto
        auto;
}

.fleet-saved-manager-row[data-p129f342-lifecycle="1"] {
    grid-template-columns:
        minmax(0, 1fr)
        repeat(4, auto);
}

.fleet-p129f342-duplicate,
.fleet-p129f342-compare-toggle,
.fleet-p129f342-restore-factory {
    min-height: 34px;
    padding: 7px 12px;
    border:
        1px solid
        rgba(
            240,
            163,
            101,
            0.34
        );
    color:
        var(
            --accent-hot,
            #f0a365
        );
    background:
        rgba(
            240,
            163,
            101,
            0.07
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.fleet-p129f342-restore-factory {
    border-color:
        rgba(
            215,
            139,
            98,
            0.48
        );
    color: #d78b62;
}

.fleet-p129f342-duplicate:hover,
.fleet-p129f342-duplicate:focus-visible,
.fleet-p129f342-compare-toggle:hover,
.fleet-p129f342-compare-toggle:focus-visible,
.fleet-p129f342-compare-toggle[aria-expanded="true"],
.fleet-p129f342-restore-factory:hover,
.fleet-p129f342-restore-factory:focus-visible {
    color:
        var(
            --accent-hot,
            #f0a365
        );
    background:
        rgba(
            240,
            163,
            101,
            0.14
        );
    outline: none;
}

.fleet-p129f342-duplicate:disabled,
.fleet-p129f342-compare-toggle:disabled,
.fleet-p129f342-restore-factory:disabled {
    cursor: wait;
    opacity: 0.56;
}

.fleet-p129f342-compare {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border:
        1px solid
        rgba(
            240,
            163,
            101,
            0.34
        );
    background:
        linear-gradient(
            180deg,
            rgba(11, 15, 17, 0.98),
            rgba(5, 8, 9, 0.98)
        );
    box-sizing: border-box;
}

.fleet-p129f342-compare[hidden] {
    display: none !important;
}

.fleet-p129f342-compare-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color:
        var(
            --accent-hot,
            #f0a365
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.fleet-p129f342-compare-heading span {
    color:
        rgba(
            226,
            232,
            234,
            0.58
        );
    font-size: 9px;
    font-weight: 800;
}

.fleet-p129f342-matrix-viewport {
    width: 100%;
    overflow-x: auto;
}

.fleet-p129f342-matrix {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.fleet-p129f342-matrix th,
.fleet-p129f342-matrix td {
    padding: 8px;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
    text-align: left;
    vertical-align: top;
}

.fleet-p129f342-matrix thead th {
    color:
        var(
            --accent-hot,
            #f0a365
        );
    background:
        rgba(
            240,
            163,
            101,
            0.045
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.fleet-p129f342-matrix tbody tr:nth-child(even) {
    background:
        rgba(
            255,
            255,
            255,
            0.018
        );
}

.fleet-p129f342-position {
    color:
        rgba(
            226,
            232,
            234,
            0.72
        );
    font-size: 10px;
    font-weight: 800;
}

.fleet-p129f342-matrix-state {
    min-width: 150px;
}

.fleet-p129f342-matrix-name,
.fleet-p129f342-matrix-meta {
    display: block;
}

.fleet-p129f342-matrix-name {
    overflow: hidden;
    color: #e2e8ea;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.fleet-p129f342-matrix-meta {
    margin-top: 4px;
    color:
        rgba(
            226,
            232,
            234,
            0.48
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fleet-p129f342-loading,
.fleet-p129f342-empty,
.fleet-p129f342-error {
    padding: 10px;
    color:
        rgba(
            226,
            232,
            234,
            0.52
        );
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 800;
}

.fleet-p129f342-error {
    color: #d78b62;
}

@media (max-width: 1180px) {
    .fleet-saved-manager-toolbar[data-p129f342-lifecycle="1"],
    .fleet-saved-manager-row[data-p129f342-lifecycle="1"] {
        grid-template-columns:
            1fr
            1fr;
    }

    .fleet-saved-manager-row[data-p129f342-lifecycle="1"]
    > .fleet-saved-manager-row-info,
    .fleet-saved-manager-toolbar[data-p129f342-lifecycle="1"]
    > .fleet-saved-manager-status,
    .fleet-p129f342-compare,
    .fleet-p129f286-details {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .fleet-saved-manager-toolbar[data-p129f342-lifecycle="1"],
    .fleet-saved-manager-row[data-p129f342-lifecycle="1"] {
        grid-template-columns: 1fr;
    }

    .fleet-p129f342-duplicate,
    .fleet-p129f342-compare-toggle,
    .fleet-p129f342-restore-factory {
        width: 100%;
    }
}

/* D07_P129F342_LOADOUT_LIFECYCLE_COMPLETION_CSS_END */

/* D07_P129F336_COMPLETE_METRICS_PANEL_UI_END */


/* css/ship-holoviewer.css */
/* =========================================================
DESTROZADO07 // HANGAR V3 // SHIP HOLOVIEWER
========================================================= */

.ship-holoviewer {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.ship-holoviewer-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 420px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(215, 122, 36, 0.08),
            rgba(6, 8, 9, 0.96) 68%
        );
}

.ship-holoviewer-viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.012) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255,255,255,0.012) 1px,
            transparent 1px
        );
    background-size:
        34px 34px;
    opacity: 0.5;
}

.ship-holoviewer-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        inset 0 0 70px rgba(0,0,0,0.82),
        inset 0 0 1px rgba(215,122,36,0.34);
}

.ship-holoviewer-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: grab;
}

.ship-holoviewer-canvas:active {
    cursor: grabbing;
}


/* =========================================================
HUD
========================================================= */

.ship-holoviewer-hud {
    position: absolute;
    top: 36px;
    left: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    pointer-events: none;
}

.ship-holoviewer-hud-left,
.ship-holoviewer-hud-right {
    display: flex;
    flex-direction: column;
}

.ship-holoviewer-hud-left {
    align-items: flex-start;
}

.ship-holoviewer-hud-right {
    align-items: flex-end;
    gap: 4px;
}

.ship-holoviewer-title {
    color: var(--accent-hot);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow:
        0 0 12px rgba(215,122,36,0.28);
}

.ship-holoviewer-ship-name {
    margin-top: 4px;
    color: rgba(255,255,255,0.88);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ship-holoviewer-hint {
    color: rgba(255,255,255,0.48);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
STATUS
========================================================= */

.ship-holoviewer-status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    min-width: 260px;
    padding: 14px 18px;
    transform:
        translate(-50%, -50%);
    border:
        1px solid rgba(215,122,36,0.35);
    background:
        rgba(5,7,8,0.88);
    backdrop-filter:
        blur(8px);
    text-align:
        center;
    pointer-events:
        none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.ship-holoviewer-status-main {
    color:
        var(--accent-hot);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size:
        13px;
    font-weight:
        900;
    letter-spacing:
        0.12em;
    text-transform:
        uppercase;
}

.ship-holoviewer-status-detail {
    margin-top:
        6px;
    color:
        rgba(255,255,255,0.58);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size:
        11px;
    font-weight:
        700;
    letter-spacing:
        0.07em;
    text-transform:
        uppercase;
}

.ship-holoviewer-status-hidden {
    opacity:
        0;
    visibility:
        hidden;
}


/* =========================================================
CONTROLS
========================================================= */

.ship-holoviewer-controls {
    position:
        absolute;
    left:
        14px;
    bottom:
        14px;
    z-index:
        5;
    display:
        flex;
    align-items:
        center;
    gap:
        8px;
}

.ship-holoviewer-button {
    min-height:
        34px;
    padding:
        0 14px;
    border:
        1px solid rgba(215,122,36,0.40);
    background:
        rgba(10,12,13,0.78);
    color:
        rgba(255,255,255,0.78);
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size:
        11px;
    font-weight:
        900;
    letter-spacing:
        0.09em;
    text-transform:
        uppercase;
    cursor:
        pointer;
    backdrop-filter:
        blur(8px);
    transition:
        border-color 120ms ease,
        background 120ms ease,
        color 120ms ease;
}

.ship-holoviewer-button:hover {
    border-color:
        var(--accent-hot);
    background:
        rgba(215,122,36,0.12);
    color:
        #ffffff;
}


/* =========================================================
READY / ERROR STATES
========================================================= */

.ship-holoviewer-ready
.ship-holoviewer-viewport {
    border-color:
        rgba(215,122,36,0.18);
}

.ship-holoviewer-error
.ship-holoviewer-status {
    border-color:
        rgba(220,72,58,0.62);
}

.ship-holoviewer-error
.ship-holoviewer-status-main {
    color:
        #df5b4f;
}


/* =========================================================
FLEET MEDIA INTEGRATION
========================================================= */

.fleet-ship-media:has(.ship-holoviewer) {
    display:
        block;
    min-height:
        420px;
}

.fleet-ship-media:has(.ship-holoviewer)::before {
    content:
        "D07 // RSI HOLOVIEWER";
}

.fleet-ship-media
.ship-holoviewer {
    width:
        100%;
}

.fleet-ship-media
.ship-holoviewer-viewport {
    width:
        100%;
}

.fleet-ship-media
.fleet-rsi-link {
    z-index:
        10;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (
    max-width: 900px
) {

    .ship-holoviewer-viewport {
        height:
            420px;
        min-height:
            380px;
    }

    .ship-holoviewer-hud {
        top:
            34px;
        left:
            10px;
        right:
            10px;
    }

    .ship-holoviewer-hud-right {
        display:
            none;
    }

    .ship-holoviewer-controls {
        left:
            10px;
        bottom:
            10px;
    }
}


@media (
    max-width: 600px
) {

    .ship-holoviewer,
    .fleet-ship-media:has(.ship-holoviewer) {
        min-height:
            340px;
    }

    .ship-holoviewer-viewport {
        height:
            360px;
        min-height:
            340px;
    }

    .ship-holoviewer-ship-name {
        font-size:
            13px;
    }

    .ship-holoviewer-title {
        font-size:
            10px;
    }

    .ship-holoviewer-status {
        min-width:
            220px;
        max-width:
            calc(100% - 32px);
    }
}

/* css/d07-system.css */
:root{--d07-bg:#0b151d;--d07-panel:#11212c;--d07-border:#294451;--d07-text:#edf3f7;--d07-muted:#a9bbc6;--d07-accent:#ffb800;--d07-info:#4ed8f5;--bg-0:#0b151d;--bg-1:#0e1b24;--bg-2:#11212c;--bg-3:#172c38;--bg-4:#1d3442;--panel:#11212c;--panel-strong:#172c38;--line:#294451;--line-medium:#365665;--line-strong:#557888;--text:#edf3f7;--text-soft:#a9bbc6;--text-dim:#a9bbc6;--accent:#ffb800;--accent-strong:#ffcc48;--accent-soft:#ffb80018;--accent-medium:#ffb80035;--positive:#79dfab;--negative:#ff9292;--warning:#ffcc48;color-scheme:dark}
body,input,button,select,textarea{font-family:Inter,'Segoe UI',sans-serif}body{background:var(--d07-bg);color:var(--d07-text)}button,input,select,textarea{font-size:14px}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--d07-info)!important;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}button.primary,.btn-primary{background:var(--d07-accent);color:#101820;border-color:var(--d07-accent)}input,select,textarea{color:var(--d07-text);background:#0e1b24;border:1px solid var(--d07-border);border-radius:5px}option{background:#11212c;color:#edf3f7}dialog{color:var(--d07-text);background:var(--d07-panel);border:1px solid var(--d07-border);border-radius:10px}dialog::backdrop{background:#02080dcc}table{font-variant-numeric:tabular-nums}.d07-global-nav{display:flex;align-items:center;gap:8px;padding:12px 18px;background:#0e1b24;border-bottom:1px solid #294451;flex-wrap:wrap}.d07-global-nav .d07-brand{font-size:24px;font-weight:750;color:#edf3f7;text-decoration:none;margin-right:20px}.d07-global-nav a,.d07-global-nav button{border:0;border-bottom:2px solid transparent;background:transparent;color:#edf3f7;padding:10px 12px;text-decoration:none}.d07-global-nav a[aria-current=page]{color:#ffb800;border-bottom-color:#ffb800}.d07-global-nav details{position:relative}.d07-global-nav details>div{position:absolute;z-index:100;background:#11212c;border:1px solid #294451;padding:10px;min-width:230px;display:grid;box-shadow:0 8px 25px #0008}.d07-global-nav .d07-version{margin-left:auto;color:#a9bbc6;font-size:12px}.d07-skip{position:fixed;top:-80px;left:12px;z-index:10000;background:#ffb800;color:#101820;padding:12px}.d07-skip:focus{top:12px}.embedded .global{display:none}.d07-status-note{color:#a9bbc6}.table-scroll{max-width:100%;overflow-x:auto}img{max-width:100%}[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:700px){.d07-global-nav{padding:8px;gap:2px}.d07-global-nav .d07-brand{font-size:20px;margin-right:8px}.d07-global-nav a,.d07-global-nav button{padding:10px 8px}.d07-global-nav .d07-version{flex-basis:100%;margin-left:0}.main-content{min-width:0}button,input,select{min-height:40px}}

.d07-workspace{padding:20px;margin-bottom:20px;border:1px solid #294451;background:#11212c;border-radius:8px}.d07-workspace header{display:flex;align-items:start;justify-content:space-between;gap:16px}.d07-workspace h2{font-size:22px;margin:0 0 8px}.d07-workspace h3{margin:22px 0 12px}.d07-workspace p,.d07-workspace small{color:#a9bbc6}.d07-workspace table{width:100%;border-collapse:collapse}.d07-workspace td,.d07-workspace th{padding:12px;text-align:left;border-bottom:1px solid #294451}.d07-workspace th small{display:block}.d07-workspace label{display:grid;gap:6px;max-width:400px}.d07-workspace button,.d07-dialog button{padding:9px 12px;border:1px solid #294451;border-radius:5px;background:#172c38;color:#edf3f7}.d07-dialog{width:min(580px,90vw);max-height:90vh;overflow:auto;padding:24px}.d07-dialog label{display:grid;gap:8px;margin:12px 0}.d07-dialog input,.d07-dialog select{padding:10px}.d07-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.d07-dialog [role=alert]{color:#ff9292}.d07-workspace details{margin-top:20px}@media(max-width:700px){.d07-workspace{padding:12px}.d07-workspace header{flex-wrap:wrap}}

.view .panel,.view .metric-card,.view .data-card,.view article{background:#11212c;border-color:#294451;border-radius:8px}.view h2,.view h3{color:#edf3f7}.view .panel-header,.view .section-header{border-color:#294451}.view .data-row,.view .table-row{border-color:#294451}.view .panel-code{color:#4ed8f5}.view .empty-state{background:#0e1b24;color:#a9bbc6}.view input,.view select{padding:9px}.view .grid,.view .dashboard-grid{gap:16px}.view table{max-width:100%}.view .table-wrapper{overflow:auto}.d07-workspace details summary{padding:12px;border:1px solid #294451;cursor:pointer}

.d07-access{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;padding:8px 18px;background:#0b151d;color:#a9bbc6;font-size:12px}.d07-access button{padding:6px 10px;border:1px solid #294451;background:#172c38;color:#edf3f7;border-radius:5px}

.main-content{min-width:0}.main-content>.d07-global-nav{margin-bottom:16px}.panel,.metric-card{box-shadow:0 4px 16px #0002}.panel-header{background:#11212c}.view{color:#edf3f7}.view .metric-value{color:#ffb800}.view .section-kicker,.view .panel-code{color:#4ed8f5}.view a{color:#4ed8f5}.d07-workspace tbody tr:hover{background:#172c38}.d07-workspace button:disabled{cursor:not-allowed;opacity:.55}@media(min-width:2200px){.main-content{max-width:2400px;margin-inline:auto}}

/* Shared navigation and typography across the entire application. */
body,.sidebar,.topbar,.section-nav-shell,.view,.panel,.metric-card,.area-nav-item,.section-nav-item{background-image:none!important;font-family:Inter,'Segoe UI',sans-serif!important}.sidebar{background:#0e1b24;border-right:1px solid #294451}.sidebar::after,.brand::before,.brand::after,.topbar::before,.section-nav-shell::after{display:none}.brand{background:#0e1b24;border-bottom:1px solid #294451;padding:20px 14px}.brand-copy strong{font:700 15px Inter,'Segoe UI',sans-serif;letter-spacing:.5px}.brand-copy span{font-size:11px;letter-spacing:.5px;color:#a9bbc6}.brand-mark{background:#172c38;border:1px solid #294451;color:#ffb800;box-shadow:none}.sidebar-terminal-id{background:#0e1b24;color:#a9bbc6}.sidebar-terminal-id strong{color:#a9bbc6;font:12px Inter,'Segoe UI',sans-serif;letter-spacing:0}.area-nav-item{border:1px solid transparent;border-radius:6px;min-height:58px;margin:3px 8px;background:#0e1b24;box-shadow:none}.area-nav-item.active{background:#ffb80012;border-color:#ffb80066}.area-nav-copy strong{font:600 14px Inter,'Segoe UI',sans-serif;letter-spacing:.1px}.area-nav-copy small{font:12px Inter,'Segoe UI',sans-serif;letter-spacing:0;color:#a9bbc6}.area-nav-index{font:12px Inter,'Segoe UI',sans-serif;color:#a9bbc6}.topbar{position:static;background:#0b151d;min-height:80px;border:0;box-shadow:none}.topbar-title h1{font:650 25px Inter,'Segoe UI',sans-serif;letter-spacing:0}.topbar-pretitle{font-size:11px;letter-spacing:1px;color:#a9bbc6}.topbar-context{font:12px Inter,'Segoe UI',sans-serif;letter-spacing:0}.topbar-context strong{font:600 13px Inter,'Segoe UI',sans-serif}.section-nav-shell{position:static;background:#11212c;border:1px solid #294451;border-radius:6px;margin:0 18px 16px;box-shadow:none}.section-nav-item{font:500 14px Inter,'Segoe UI',sans-serif;letter-spacing:0;border-radius:4px;background:transparent;padding:12px}.section-nav-item.active{color:#ffb800;background:#ffb80012}.section-nav-ident{display:none}.panel h2,.panel h3,.metric-label,.metric-value,.panel-code,.dashboard-hero *{font-family:Inter,'Segoe UI',sans-serif!important;letter-spacing:normal}.view .panel-header,.view .metric-card,.view .data-card{background:#11212c;border-color:#294451}.view .panel-header::before,.view .panel-header::after,.view .dashboard-hero::before,.view .dashboard-hero::after{display:none}.view .panel{border-color:#294451;background:#11212c}.view .dashboard-hero{background:#0e1b24;border-color:#294451}.view .panel-code{color:#4ed8f5}.view .metric-value{color:#ffb800}.view input,.view select,.view textarea{color:#edf3f7;background:#0e1b24;border-color:#294451}.view .panel-body{min-width:0}
@media(max-width:700px){.topbar{flex-wrap:wrap;height:auto;padding:12px}.topbar-actions{flex-wrap:wrap}.section-nav-shell{margin:0 8px 12px}.section-nav{overflow-x:auto}.d07-global-nav{gap:0}.view{padding-inline:8px}.sidebar{position:static;width:auto;max-height:none}.app-shell{display:block}.main-nav{display:flex;overflow-x:auto}.area-nav-item{min-width:140px;margin:3px}.sidebar-footer,.sidebar-terminal-id{display:none}.brand{padding:10px}.main-content{margin-left:0;width:100%}}

body .area-nav-item *,body .section-nav-item *{font-family:Inter,'Segoe UI',sans-serif!important;letter-spacing:0!important;text-transform:none;font-weight:500}body .section-nav-item{flex:0 0 auto;min-width:110px;white-space:nowrap}body .section-nav{display:flex;grid-template-columns:none;overflow-x:auto;min-width:0}body .section-nav-shell::before,body .section-nav-shell::after{display:none}body .topbar-context span{font-size:11px;letter-spacing:.5px}body .area-nav-copy strong{font-weight:650!important}body::before,body::after{pointer-events:none}
@media(max-width:700px){body .sidebar{height:auto!important;min-height:0;max-height:none;overflow:visible;inset:auto;display:block}body .sidebar .brand{display:none}body .sidebar .main-nav{display:flex;gap:4px;overflow:auto;padding:4px}body .sidebar .area-nav-item{flex:0 0 auto;width:140px;min-width:140px;height:50px;padding:8px}body .sidebar .area-nav-copy{display:block}body .sidebar .area-nav-copy small{display:none}body .sidebar .area-nav-index{display:none}body .sidebar .nav-divider{display:none}body .section-nav-shell{display:block;height:auto;min-height:0;padding:4px}body .section-nav-status{display:none}body .section-nav{min-height:42px}body .section-nav-item{font-size:13px;min-width:110px;padding:10px}.d07-workspace .table-scroll{width:100%}}

@media(max-width:700px){.view .data-row{display:flex;flex-wrap:wrap;gap:6px}.view .data-row>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.view .data-row strong{flex:1 1 160px;text-align:left}.view .panel-body,.view article{min-width:0}.view select{max-width:100%}}

/* Hangar: recover the dedicated canvas width without removing navigation. */
.d07-sidebar-toggle{display:none}
body:has(#view-fleet.active) .d07-sidebar-toggle{display:inline-flex}
body:has(#view-fleet.active) .app-shell{grid-template-columns:minmax(0,1fr)}
body:has(#view-fleet.active) .sidebar{display:none}
body:has(#view-fleet.active) .main-content{width:100%;min-width:0;margin:0}
body:has(#view-fleet.active) .main-content>.workspace{padding:0;margin:0;max-width:none;width:100%}
body:has(#view-fleet.active) #view-fleet{padding:0;margin:0;width:100%;max-width:none}
body:has(#view-fleet.active) .topbar{display:none}
body:has(#view-fleet.active) .section-nav-shell{margin:0;padding:0 12px;border-radius:0}
body:has(#view-fleet.active) .d07-global-nav{padding-block:6px}
body:has(#view-fleet.active) iframe[data-hangar-nuevo]{height:calc(100dvh - 155px)!important;min-height:580px!important}
@media(min-width:701px){body.d07-sidebar-open:has(#view-fleet.active) .app-shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}body.d07-sidebar-open:has(#view-fleet.active) .sidebar{display:flex}}
@media(max-width:700px){body.d07-sidebar-open:has(#view-fleet.active) .sidebar{display:block}}
body:has(#view-fleet.active) .main-content{grid-column:1;grid-row:1}body.d07-sidebar-open:has(#view-fleet.active) .main-content{grid-column:2}@media(max-width:700px){body.d07-sidebar-open:has(#view-fleet.active) .main-content{grid-column:1}}
body:has(#view-fleet.active) .main-content .workspace{padding:0!important;margin:0!important;width:100%;max-width:none}

/* Unified navigation and expanded workspace · 2026-09-30 */
.d07-global-nav{display:flex!important;flex-wrap:wrap;gap:8px;padding:6px 18px!important;background:linear-gradient(100deg,#10232d,#0c171f);margin:0!important;min-height:64px}
.d07-global-nav .d07-brand{display:flex;align-items:center;gap:14px;margin-right:16px;padding:8px 0;border:0!important;flex-shrink:0}.d07-logo{font:800 30px/1 'Segoe UI',sans-serif;letter-spacing:-3px;color:#e5f1f8;text-shadow:0 0 12px #4ed8f533}.d07-logo>span{color:#ffbf3e}.d07-brand-name{font-size:14px;font-weight:500;letter-spacing:2.5px;color:#6ce1ff}.d07-brand-name small{display:block;font-size:9px;letter-spacing:1.7px;margin-top:4px}
.d07-area-links{display:flex;align-items:stretch;flex:1;overflow-x:auto;min-width:0;gap:0}.d07-area-links>a{display:flex;gap:9px;align-items:center;white-space:nowrap;font-size:14px;padding:16px 15px;border-left:1px solid #243c482f}.d07-area-links>a[aria-current=page]{color:#ffbe30;background:#ffb80008}.d07-icon{width:22px;height:22px;flex:0 0 22px;vertical-align:middle}.d07-global-nav .d07-icon{color:#a9cce3}.d07-global-nav a[aria-current=page] .d07-icon{color:inherit}
body:has(.d07-global-nav) .app-shell{grid-template-columns:minmax(0,1fr)!important}body:has(.d07-global-nav) .sidebar{display:none!important}body:has(.d07-global-nav) .main-content{grid-column:1!important;margin:0!important;width:100%;max-width:none;min-width:0}
body:is([data-active-view=components],[data-active-view=loadouts],[data-active-view=cargo]) .topbar{display:none!important}body:is([data-active-view=components],[data-active-view=loadouts],[data-active-view=cargo]) .workspace{width:100%;max-width:none!important;margin:0!important;padding:0 14px 20px!important}body:is([data-active-view=components],[data-active-view=loadouts],[data-active-view=cargo]) .section-nav-shell{margin:0 0 14px!important;padding:0 14px;border-radius:0}body:is([data-active-view=components],[data-active-view=loadouts],[data-active-view=cargo]) .view{width:100%;max-width:none;margin:0;padding:0}
.section-nav-item[data-view=cargo]::before{content:'';display:inline-block;width:23px;height:23px;background:currentColor;mask:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20d%3D%22m3%207%209-5%209%205v14H3zM3%207h18M8%207v14m8-14v14%22%2F%3E%3C%2Fsvg%3E') center/contain no-repeat}
#tree summary .d07-icon{margin-right:9px;display:inline-block}#tree details:has(>.slot.active)>summary{color:#ffbe30}#tree summary{align-items:center}
#materials-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;align-content:start}#materials-list .materials-list-item{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;overflow:hidden;padding:0 0 16px;background:linear-gradient(140deg,#102d39,#0e222c);border:1px solid #2a4c5b;border-radius:8px;min-width:0}#materials-list .materials-list-item>span:not(.d07-mineral-art){font-size:20px;font-weight:700;padding:0 18px}#materials-list .materials-list-item>strong{font-size:12px;font-weight:400;background:#174557;border-radius:20px;margin-left:18px;padding:5px 13px;align-self:flex-start}#materials-list .materials-list-item.emphasized{border-color:#31e9ed;box-shadow:inset 0 0 0 1px #31e9ed}.d07-mineral-art{display:block;width:100%;aspect-ratio:1.5;background-size:600% auto;background-repeat:no-repeat;background-position-y:0;overflow:hidden}.d07-mineral-art img{width:100%;height:100%;object-fit:contain}.d07-mineral-art.no-art{display:grid;place-items:center;color:#88a8b9;font-size:13px}
@media(max-width:1100px){.d07-area-links{flex-basis:100%}.d07-area-links>a{padding:12px}.d07-global-nav{gap:0}}@media(max-width:500px){#materials-list{grid-template-columns:repeat(2,minmax(0,1fr))}#materials-list .materials-list-item>span:not(.d07-mineral-art){font-size:16px;padding:0 10px}}

.d07-global-nav .d07-account-menu{margin-left:auto;position:relative;font-size:13px}.d07-account-menu summary{cursor:pointer;white-space:nowrap;padding:14px 8px;color:#bcd5e4}.d07-global-nav .d07-account-menu>#d07-access{position:absolute;right:0;top:100%;width:320px;max-width:85vw;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;padding:16px;background:#11212c;border:1px solid #294451;z-index:1000;box-shadow:0 12px 25px #0008}.d07-account-menu #d07-access>p{font-size:12px;line-height:1.5;text-align:left;margin:0}.d07-account-menu #d07-access button{border:1px solid #385363;border-radius:4px}.d07-mineral-art{background-size:630% auto;background-position-y:-5px;aspect-ratio:1.55}

body[data-d07-role=guest] .topbar,body[data-d07-role=guest] .workspace,body[data-d07-role=guest] .section-nav-shell{display:none!important}

/* Blueprints: use the whole workspace, without the legacy side/header rail. */
body[data-active-view=blueprints] .sidebar{display:none!important}
body[data-active-view=blueprints] .app-shell{grid-template-columns:minmax(0,1fr)!important}
body[data-active-view=blueprints] .main-content{grid-column:1!important;width:100%!important;max-width:none!important;margin:0!important;min-width:0}
body[data-active-view=blueprints] .topbar{display:none!important}
body[data-active-view=blueprints] .main-content .workspace{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0}
body[data-active-view=blueprints] #view-blueprints{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body[data-active-view=blueprints] .section-nav-shell{margin:0!important;padding:0 12px;border-radius:0}
body[data-active-view=blueprints] iframe[data-industry-integral]{display:block;width:100%!important;max-width:none!important;height:calc(100dvh - 130px)!important;min-height:580px!important;border:0}



.materials-geo-dialog{width:min(760px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #3d6878;border-radius:8px;background:#10232e;color:#e4f1f7;padding:22px}.materials-geo-dialog::backdrop{background:rgba(2,10,16,.78)}.materials-geo-close{float:right}.materials-geo-dialog>h2{font-size:20px;margin:8px 0 20px}.materials-geo-material{display:flex;align-items:center;justify-content:center;gap:20px;margin:12px 0 22px}.materials-geo-material img{width:110px;height:110px;object-fit:contain}.materials-geo-material h3{font-size:22px}.materials-geo-dialog .panel{margin:0}.materials-geo-dialog .data-row{gap:16px}.materials-geo-dialog .data-row>*{overflow-wrap:anywhere}

.materials-shops{margin:0 0 20px;padding:16px;border:1px solid #294957;border-radius:5px}.materials-shops>h3{margin:0 0 8px}.materials-shop-note{font-size:12px;color:#9db9c8}.materials-shop-row{padding:12px 0;border-top:1px solid #294957}.materials-shop-row h4{margin:0 0 6px;color:#e5f4fc}.materials-shop-row p{margin:0 0 6px;line-height:1.5}.materials-shop-type{font-size:11px;color:#73d6ed}
/* Materiales: acciones con los colores compartidos de D07. */
#view-materials .materials-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
#view-materials .materials-detail-actions button,#view-materials .materials-pagination button,.materials-geo-dialog button{appearance:none;background:var(--bg-3);color:var(--d07-info);border:1px solid var(--line-medium);border-radius:5px;padding:10px 16px;min-height:40px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
#view-materials .materials-detail-actions button:hover,#view-materials .materials-pagination button:not(:disabled):hover,.materials-geo-dialog button:hover{background:var(--accent-soft);border-color:var(--d07-accent);color:var(--d07-accent)}

#view-materials .materials-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
#view-materials .materials-detail-actions{align-items:stretch}
#view-materials .materials-detail-actions button{min-width:160px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;line-height:1.25}
@media(max-width:600px){#view-materials .materials-detail-actions button{flex:1 1 140px;min-width:0}}
/* Paginación en una fila independiente, dentro del espacio del panel. */
#view-materials .materials-list-panel{display:flex;flex-direction:column;min-width:0;height:auto}
#view-materials #materials-list{flex:1 0 auto}
#view-materials #materials-pagination{position:static;inset:auto;transform:none;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;width:auto;max-width:100%;margin:24px 20px 20px;padding:18px 0 0;border-top:1px solid var(--d07-border);flex-shrink:0}
#view-materials #materials-pagination>span{margin-right:auto;line-height:1.5;color:var(--d07-muted);white-space:normal}
#view-materials #materials-pagination>button{min-width:110px;min-height:44px;flex:0 0 auto}
@media(max-width:600px){#view-materials #materials-pagination{margin:20px 12px 16px}#view-materials #materials-pagination>span{flex-basis:100%;text-align:center}#view-materials #materials-pagination>button{flex:1}}


/* css/operations-design.css */
.od-screen{--od-bg:#0c151d;--od-panel:#172630;--od-line:#345364;--od-text:#f2f7fa;--od-sub:#b2cfdf;background:var(--od-bg);color:var(--od-text);padding:0 28px 28px;font:16px/1.5 system-ui,sans-serif;min-height:90vh;max-width:1800px;margin:auto}
.od-screen *,.od-modal *{box-sizing:border-box}.od-screen [hidden],.od-legacy[hidden]{display:none!important}
.od-screen h1{font-size:clamp(25px,2.4vw,38px);line-height:1.2;margin:0 0 8px}.od-screen h2{font-size:22px;margin:0 0 18px}.od-screen h3{font-size:18px;margin:0 0 10px}.od-screen p{color:var(--od-sub);margin:6px 0 18px}.od-screen a{color:#b9eafa;text-decoration:underline;text-underline-offset:4px}
.od-global,.od-tabs,.od-heading,.od-toolbar,.od-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.od-global{padding:20px 0;border-bottom:1px solid var(--od-line)}.od-global strong{font-size:26px;margin-right:24px}.od-global a{text-decoration:none;color:#f2f7fa}.od-tabs{padding:18px 0}.od-tabs a{padding:12px 22px;text-decoration:none;background:#172630;color:#eaf4fa;border-radius:6px}.od-tabs a[aria-current=page]{background:#214659;border-bottom:3px solid #84d8e3}.od-heading{justify-content:space-between;margin:18px 0 24px}.od-heading p{margin-bottom:0}.od-tag{font-size:13px;color:#b2cfdf;border:1px solid #456171;padding:5px 10px;border-radius:20px}
.od-screen button,.od-screen input,.od-screen select,.od-modal button,.od-modal input,.od-modal select{font:inherit;min-height:44px;border-radius:6px;border:1px solid #658499;padding:10px 14px;background:#10212d;color:#f2f7fa;max-width:100%}.od-screen button,.od-modal button{cursor:pointer}.od-screen .od-primary,.od-modal .od-primary{background:#ffbe23;color:#101820;border-color:#ffbe23;font-weight:700}.od-screen button:disabled{opacity:.55;cursor:not-allowed}.od-screen :focus-visible,.od-modal :focus-visible{outline:3px solid #b4f2ff;outline-offset:3px}.od-screen label{display:flex;flex-direction:column;gap:6px;font-size:14px}.od-screen small{display:block;color:#b2cfdf;margin-top:6px}.od-screen summary{cursor:pointer;padding:12px;min-height:44px}
.od-card{padding:24px;background:var(--od-panel);border:1px solid var(--od-line);border-radius:8px;min-width:0}.od-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:20px}.od-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.od-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.od-metrics strong{display:block;font-size:25px;margin-top:8px}.od-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--od-line)}.od-row:last-child{border-bottom:0}.od-row strong{display:block}.od-list{display:grid;gap:16px}.od-note{border-left:3px solid #84d8e3;padding:12px 16px;background:#12222e;color:#cce2ee;margin-top:18px}.od-warning{border-color:#ffbe23;color:#ffe09a}.od-error{border:1px solid #f8a3a3;color:#ffcece;padding:16px}.od-good{color:#78e4b5}.od-scroll{overflow:auto}.od-screen table{width:100%;border-collapse:collapse;color:inherit}.od-screen th,.od-screen td{padding:14px;text-align:left;border-bottom:1px solid var(--od-line)}.od-screen thead{background:#10212d}.od-screen progress{width:100%;height:18px;accent-color:#84d8e3}.od-screen .od-toolbar{padding:18px;margin-bottom:20px;background:var(--od-panel);border:1px solid var(--od-line);border-radius:8px}.od-screen .od-footer{margin-top:24px;color:#b2cfdf;font-size:14px}.od-span{grid-column:1/-1}.od-empty{padding:30px 12px;color:#bdd3e1}.od-hidden-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.od-modal{background:#12222e;color:#f2f7fa;border:1px solid #658499;border-radius:12px;width:min(920px,95vw);max-height:90vh;padding:24px}.od-modal::backdrop{background:#030a10c9}.od-modal .panel{margin:16px 0;background:#172630}.od-modal .od-actions{justify-content:flex-end;margin:16px 0}.od-modal .panel-body{padding:16px}.od-modal p{color:#c2d8e5}.od-modal .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.od-modal label{display:block}.od-modal label input,.od-modal label select{width:100%}
@media(max-width:800px){.od-screen{padding:0 14px 20px}.od-grid,.od-grid.equal{grid-template-columns:1fr}.od-metrics{grid-template-columns:1fr}.od-tabs{gap:6px}.od-tabs a{padding:10px;font-size:14px}.od-global{gap:15px}.od-row{flex-wrap:wrap}.od-toolbar label{width:100%}.od-toolbar input,.od-toolbar select{width:100%}.od-modal .form-grid{grid-template-columns:1fr}.od-screen h1{font-size:27px}.od-card{padding:18px}}


/* Operaciones hereda el marco y la navegación original de la web. */
.od-screen{--od-bg:var(--d07-bg);--od-panel:var(--d07-panel);--od-line:var(--d07-border);--od-text:var(--d07-text);--od-sub:var(--d07-muted);background:transparent;padding:0;min-height:0;max-width:none;margin:0;font:14px/1.5 Inter,'Segoe UI',sans-serif}
.od-screen .od-heading{margin:0 0 20px;min-height:0;align-items:center}
.od-screen .od-heading h2{font:650 22px/1.3 Inter,'Segoe UI',sans-serif;margin:0 0 6px}
.od-screen .od-card{padding:20px;border-radius:6px}.od-screen .od-card h2{font-size:18px}
.od-screen .od-toolbar{border-radius:6px}.od-screen .od-primary{background:var(--d07-accent);border-color:var(--d07-accent)}
.od-screen .od-metrics strong{color:var(--d07-accent);font-size:24px}.od-screen .od-footer{padding-top:12px}
.od-modal{font:14px/1.5 Inter,'Segoe UI',sans-serif;background:var(--d07-panel);color:var(--d07-text);border-color:var(--d07-border)}
@media(max-width:800px){.od-screen{padding:0}.od-screen .od-heading{align-items:flex-start}.od-screen .od-card{padding:16px}}

/* Mismo menú; espacio de trabajo amplio y escala original. */
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .d07-sidebar-toggle{display:inline-flex}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .app-shell{grid-template-columns:minmax(0,1fr);transition:none}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .sidebar{display:none}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .main-content{grid-column:1;grid-row:1;width:100%;min-width:0;margin:0}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .main-content>.workspace{width:100%;max-width:none;margin:0;padding:22px 26px 48px}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .view.active{width:100%;max-width:none;animation:none}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-screen{font-size:16px;width:100%;max-width:none}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-heading h2{font-size:clamp(25px,2.4vw,38px)}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-card{padding:24px}body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-card h2{font-size:22px}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-metrics strong{font-size:25px}
@media(min-width:701px){body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]).d07-sidebar-open .app-shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]).d07-sidebar-open .sidebar{display:flex}body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]).d07-sidebar-open .main-content{grid-column:2}}
@media(max-width:700px){body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]).d07-sidebar-open .sidebar{display:block}body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .main-content>.workspace{padding:14px 12px 28px}body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .od-card{padding:18px}}

/* Una sola cabecera de tarea, sin otra navegación dentro del módulo. */
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .topbar{display:none}
.oc-context,.oc-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:18px 20px;background:var(--od-panel);border:1px solid var(--od-line);border-radius:8px;margin-bottom:20px}
.oc-context .od-primary{margin-left:auto}.oc-summary{margin:22px 0 0}.oc-summary>span{flex:1 1 150px}.oc-summary strong{display:block;font-size:22px;margin-top:5px}
.oc-wide{margin-top:22px}.oc-plan{padding:20px;border:1px solid var(--od-line);border-radius:8px;margin:14px 0;display:flex;justify-content:space-between;gap:16px;align-items:center}.oc-plan>div:first-child{min-width:0}.oc-plan strong{font-size:19px}
.od-screen .oc-selected{outline:2px solid #69e3eb;outline-offset:-2px;background:#173744}
.oc-conditions details{padding:8px 0;border-bottom:1px solid var(--od-line)}.oc-conditions summary{font-weight:600}.oc-conditions p{padding:0 12px}
.od-screen .oc-check{display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px 0}.oc-check input{width:20px;min-height:20px}
.oc-timeline{display:flex;list-style:none;padding:0;gap:16px;justify-content:space-between;flex-wrap:wrap}.oc-timeline li{border-top:4px solid var(--od-line);padding:14px;flex:1 1 150px}.oc-timeline .oc-done{border-color:#5ee2d2}.oc-timeline [aria-current]{background:#193d48;font-weight:700}
.oc-events{padding-left:22px}.oc-events li{padding:12px 0;border-bottom:1px solid var(--od-line)}.oc-muted{color:var(--od-sub);font-size:14px}
.od-screen .od-toolbar label{flex:1 1 155px;min-width:0}.od-screen .od-toolbar>details{flex:1 1 150px}.od-screen .od-toolbar select{width:100%}.od-screen aside{min-width:0}.od-screen [data-history-list] button{border:0;background:transparent;text-align:left;color:#b9eafa;padding:4px;min-height:44px}
.od-screen .od-heading{margin:0 0 22px}.od-screen .od-grid{align-items:start}.od-screen .od-card{min-width:0}.od-screen .od-actions{row-gap:10px}
@media(max-width:1000px){.od-screen .od-grid:not(.equal){grid-template-columns:1fr}.oc-plan{flex-wrap:wrap}}
@media(max-width:700px){.oc-context,.oc-summary{padding:14px;gap:12px}.oc-plan{padding:14px}.oc-summary>span{flex-basis:100%}.od-screen .od-grid.equal{grid-template-columns:1fr}}
.oc-route-filters{margin:0 0 18px}.oc-route-filters>summary{display:inline-block;padding:10px 16px;border:1px solid var(--od-line);border-radius:6px;color:#b9eafa}.oc-route-filters[open]>.od-toolbar{margin-top:12px}

/* Proporciones de las cinco referencias dentro de la navegación existente. */
.ov-reference{--od-panel:#102631;--od-line:#2c4b59;--od-sub:#b8d2e1;font:16px/1.5 Inter,'Segoe UI',sans-serif!important;background:transparent}
.ov-reference .od-heading{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;align-items:center;margin:0 0 24px}
.ov-reference .od-heading>div:first-child{min-width:0}.ov-reference .od-heading h2{font-size:clamp(28px,2.65vw,44px)!important;font-weight:750;line-height:1.15;margin:0 0 8px;letter-spacing:-.6px}.ov-reference .od-heading p{font-size:18px;line-height:1.45;margin:0;color:#bdd7e8}
.ov-heading-context{min-width:0}.ov-heading-context .oc-context{margin:0;background:linear-gradient(115deg,#132c39,#0d202a);gap:14px;padding:16px;border-radius:7px}.ov-heading-context .oc-context>span{flex:1 1 145px}.ov-heading-context .oc-context strong{color:#f4f8fc}.ov-heading-context .oc-context label{flex:1 1 220px;min-width:0}.ov-heading-context .oc-context select{width:100%}
.ov-reference .od-card{background:linear-gradient(120deg,#122b36,#10232d);border:1px solid #2b4b59;border-radius:8px;padding:22px!important;box-shadow:inset 0 1px #ffffff03}
.ov-reference .od-card>h2{display:flex;gap:12px;align-items:center;font-size:24px!important;font-weight:700;line-height:1.25;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #294752}
.ov-icon{width:26px;height:26px;flex:0 0 26px;vertical-align:middle}.ov-reference .od-card>h2>.ov-icon{width:30px;height:30px;flex-basis:30px;color:#e5f3fb}.ov-reference h3>.ov-icon{margin-right:10px;color:#8be8d2}
.ov-reference .od-metrics{gap:18px;margin-bottom:22px}.ov-reference .ov-stat{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:15px;align-content:center;min-height:108px}.ov-stat-symbol{grid-row:1/3;align-self:center;color:#dceefa}.ov-stat-symbol .ov-icon{width:42px;height:42px}.ov-reference .ov-stat>span{font-size:16px}.ov-reference .ov-stat>strong{margin:3px 0 0;font-size:30px!important;color:#f4f8fc}.ov-reference .ov-result>strong,.ov-reference .ov-result-total strong{color:#78e9c6}.ov-reference .ov-negative>strong{color:#ffab92}
.ov-reference .od-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px}.ov-reference .od-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-reference .od-card .od-grid{gap:18px}
.ov-reference .oc-plan{background:#102631;border-color:#294855;gap:18px;padding:16px;min-height:122px;margin:12px 0}.ov-reference .oc-plan>div:nth-child(2){flex:1;min-width:0}.ov-reference .oc-plan strong{font-size:20px}.ov-reference .oc-plan p{font-size:15px;margin:10px 0 0}.ov-reference .oc-plan .od-actions{flex-direction:column;align-items:stretch;min-width:150px}.ov-art{height:88px;width:104px;flex:0 0 104px;display:grid;place-items:center;border:1px solid #395766;border-radius:5px;color:#b8d5e3;background:radial-gradient(ellipse at 40% 20%,#355566,#0a1821)}.ov-art .ov-icon{width:62px;height:62px;stroke-width:1}
.ov-reference button{min-height:44px;font-weight:550}.ov-reference .od-primary{background:linear-gradient(#ffc84b,#ffb522);border-color:#ffc452;color:#08121b;font-weight:700;box-shadow:inset 0 1px #ffffff40}.ov-reference .od-row{padding:16px 0}.ov-reference .od-row strong{font-size:18px}.ov-reference .od-toolbar{background:#102530;padding:14px;gap:12px}.ov-reference .od-toolbar label{font-size:14px}.ov-reference select,.ov-reference input{background:#102530;border-color:#365a6b}
.ov-reference .oc-summary{background:#132e3b;border-color:#335867;gap:18px}.ov-reference .oc-summary strong{font-size:24px}.ov-reference .oc-conditions details{background:#142e3a;border:1px solid #294b59;border-radius:5px;margin:8px 0}.ov-reference .oc-conditions summary{padding:12px 14px}.ov-reference .oc-selected{outline-color:#65edf0;background:linear-gradient(120deg,#10313d,#0e2530)}
.ov-reference .oc-timeline{gap:0;padding:6px 0}.ov-reference .oc-timeline li{border-top:0;text-align:center;position:relative;background:transparent;font-weight:600}.ov-reference .oc-timeline li:after{content:'';position:absolute;height:3px;background:#385967;left:calc(50% + 25px);right:calc(-50% + 25px);top:33px}.ov-reference .oc-timeline li:last-child:after{display:none}.ov-step{display:flex;width:38px;height:38px;margin:0 auto 14px;align-items:center;justify-content:center;border:2px solid #648897;border-radius:50%;background:#102935;color:#b9d4e2}.oc-done .ov-step{background:#56dfe5;color:#09252e;border-color:#56dfe5}.ov-reference .oc-timeline [aria-current]{color:#60e7ef}
.ov-reference .oc-events{list-style:none;margin:0;padding:0;display:flex;gap:20px;flex-wrap:wrap}.ov-reference .oc-events li{flex:1 1 150px;padding:14px 0;border-bottom:0;border-top:3px solid #3d8995}.ov-reference .ov-result-panel .od-row{gap:12px}.ov-reference .ov-result-total{border-top:1px solid #56717b;padding-top:20px}.ov-reference .od-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;font-size:13px}.ov-aux{margin-left:auto}.ov-aux button{font-size:13px;min-height:36px;padding:6px 10px}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .hazard-divider{display:none}
body:is([data-active-view="operations"],[data-active-view="trade"],[data-active-view="routes"],[data-active-view="logistics"],[data-active-view="history"]) .section-nav-index{display:none}
.ov-nav-icon{display:inline-flex;align-items:center;margin-right:10px}.ov-nav-icon .ov-icon{width:23px;height:23px}
@media(min-width:1100px){body[data-active-view="history"] .ov-reference .od-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}body[data-active-view="history"] .ov-reference .od-heading{grid-template-columns:1fr}body[data-active-view="operations"] .ov-reference .oc-wide>.od-row{display:inline-flex;width:33.333%;padding:12px 18px;vertical-align:top;border-bottom:0;border-right:1px solid #294752;flex-wrap:wrap}body[data-active-view="operations"] .ov-reference .oc-wide>.od-row:last-child{border:0}}
@media(max-width:1099px){.ov-reference .od-heading{grid-template-columns:1fr;gap:16px}.ov-reference .od-grid{grid-template-columns:1fr}.ov-reference .od-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-reference .oc-plan{flex-wrap:wrap}}
@media(max-width:700px){.ov-reference .od-grid.equal{grid-template-columns:1fr}.ov-reference .od-card{padding:16px!important}.ov-reference .od-card>h2{font-size:21px!important}.ov-reference .od-heading h2{font-size:29px!important}.ov-reference .od-heading p{font-size:16px}.ov-reference .ov-stat>strong{font-size:26px!important}.ov-art{width:64px;flex-basis:64px;height:64px}.ov-art .ov-icon{width:44px;height:44px}.ov-reference .oc-timeline{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ov-reference .oc-timeline li:after{display:none}.ov-reference .oc-plan .od-actions{width:100%}.ov-aux{margin-left:0}}
.ov-load-options{position:relative}.ov-load-options>summary{cursor:pointer;padding:10px 12px;border:1px solid #365a6b;border-radius:5px}.ov-load-options[open]{flex-basis:100%!important;order:5}.ov-load-fields{display:flex;gap:16px;flex-wrap:wrap;padding:14px 0}.ov-load-fields>label{flex:1 1 180px}.ov-material-symbol,.ov-terminal{display:inline-grid;place-items:center;width:68px;height:68px;flex:0 0 68px;border:1px solid #41616e;border-radius:5px;background:radial-gradient(ellipse at 40% 10%,#39535c,#0b1d27);color:#c2deec}.ov-material-symbol .ov-icon{width:46px;height:46px;color:#e3c491}.ov-terminal .ov-icon{width:38px;height:38px}.ov-reference .ov-terminal-row{justify-content:flex-start;gap:16px;align-items:flex-start}.ov-terminal-row>div{min-width:0}.ov-terminal-row strong{display:block}.ov-terminal-row small{font-size:13px}.ov-route-locations{display:flex;align-items:center;justify-content:space-around;gap:18px;padding:10px 0 24px;border-bottom:1px solid #294752}.ov-route-locations>span{text-align:center;min-width:0}.ov-route-locations>span>.ov-icon{display:block;margin:0 auto 8px;width:38px;height:38px;color:#95c6d9}.ov-route-locations strong{display:block;font-size:16px}
body[data-active-view="routes"] .ov-reference .od-grid.equal>.od-card>.od-row{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:25%;vertical-align:top;gap:8px;padding:16px 10px;border-right:1px solid #294752;border-bottom:0;font-size:14px;min-height:108px}body[data-active-view="routes"] .ov-reference .od-grid.equal>.od-card>.od-row strong{font-size:19px}body[data-active-view="routes"] .ov-reference .od-card:has(>.oc-conditions){display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px}body[data-active-view="routes"] .ov-reference .od-card:has(>.oc-conditions)>h2{border:0;align-self:start;margin:0}body[data-active-view="routes"] .ov-reference .oc-conditions details{margin-top:0}
@media(max-width:1000px){body[data-active-view="routes"] .ov-reference .od-grid.equal>.od-card>.od-row{width:50%}body[data-active-view="routes"] .ov-reference .od-card:has(>.oc-conditions){grid-template-columns:1fr}}
.ov-reference progress{height:30px;border-radius:6px;overflow:hidden;border:1px solid #385d70}.ov-reference progress::-webkit-progress-bar{background:#213e4b}.ov-reference progress::-webkit-progress-value{background:linear-gradient(90deg,#21c0df,#61e2ed)}body[data-active-view="logistics"] .ov-reference td{padding-block:24px}body[data-active-view="history"] .ov-reference td{padding-block:20px}
.ov-reference .od-grid>*{min-width:0}.ov-reference .od-scroll{max-width:100%}.ov-reference .oc-events li{min-width:0;overflow-wrap:anywhere}
@media(max-width:1099px){.ov-reference .od-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.ov-reference .od-grid.equal{grid-template-columns:minmax(0,1fr)}.ov-reference .od-metrics{grid-template-columns:minmax(0,1fr)}}


/* css/hangar-spec.css */
/* Hangar specification only: other areas retain their styles. */
body[data-active-area="hangar"]{background:#0b151d;color:#edf3f7;font-family:Inter,'Segoe UI',sans-serif}
body[data-active-area="hangar"] .main-content{max-width:none;width:100%;min-width:0}
body[data-active-area="hangar"] :is(.area-nav-item.active,.section-nav-item.active){color:#ffb800!important;background:#ffb80012!important;border-color:#ffb80066!important;box-shadow:inset 0 -2px #ffb800}
body[data-active-area="hangar"] :is(.area-nav-item.active,.section-nav-item.active) :is(strong,span){color:#ffb800!important}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts){font:16px/1.5 Inter,'Segoe UI',sans-serif;width:100%;max-width:none}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) :is(.panel,article,.metric-card){background:#11212c!important;border:1px solid #294451;border-radius:8px;min-width:0}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) :is(input,select,button){font-family:inherit;min-height:44px;background:#0e1b24;color:#edf3f7;border-color:#294451;border-radius:5px;max-width:100%}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) :is(h2,h3){font-family:inherit;color:#edf3f7;letter-spacing:normal}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) .data-row{overflow-wrap:anywhere;white-space:normal}
body[data-active-area="hangar"] #view-components [aria-pressed="true"]{color:#ffb800;background:#ffb80012!important}
body[data-active-area="hangar"] :focus-visible{outline:3px solid #4ed8f5!important;outline-offset:3px}
body[data-active-area="hangar"] img{object-fit:contain;max-width:100%}
@media(max-width:700px){body[data-active-area="hangar"] :is(#view-components,#view-loadouts) .dashboard-grid{grid-template-columns:minmax(0,1fr)!important}body[data-active-area="hangar"] .data-row{flex-wrap:wrap;gap:8px}body[data-active-area="hangar"] .data-row>*{min-width:0;max-width:100%}}

body[data-active-area="hangar"] .hangar-provenance{margin-top:20px;border:1px solid #294451;border-radius:8px;background:#11212c}body[data-active-area="hangar"] .hangar-provenance>summary{padding:16px;cursor:pointer;color:#a9bbc6}body[data-active-area="hangar"] .hangar-provenance .d07-workspace{border:0;margin:0}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) :is(input,select,button){background:#0e1b24!important;color:#edf3f7!important;border-color:#294451!important;font-size:14px!important}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) :is(.metric-label,.metric-meta,.section-kicker,.panel-code){font:500 12px/1.5 Inter,'Segoe UI',sans-serif!important;letter-spacing:.2px!important}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) p{font-size:16px;line-height:1.5;color:#a9bbc6}
body[data-active-area="hangar"] :is(#view-components,#view-loadouts) .dashboard-hero h2{font-size:25px!important}


/* css/d07-order.css */
/* One Hangar-style shell, compact readable workspaces. */
body:has(.d07-global-nav) .topbar,body:has(.d07-global-nav) .hazard-divider{display:none!important}
body:has(.d07-global-nav) .main-content>.workspace{padding:0!important;margin:0!important;max-width:none!important;width:100%;min-width:0}
body:has(.d07-global-nav) .workspace>.view:not(.active){display:none!important}
body:has(.d07-global-nav) .workspace>.view.active{max-width:none;width:100%;margin:0;padding:0;min-width:0}
body:has(.d07-global-nav) .section-nav-shell{display:block!important;margin:0!important;padding:0 16px!important;border-radius:0;border-width:0 0 1px;background:#11212c}
body:has(.d07-global-nav) .section-nav-shell:has(.section-nav-empty){display:none!important}
body:has(.d07-global-nav) .section-nav{min-height:42px;gap:2px}
body:has(.d07-global-nav) .section-nav-item{min-width:0;padding:10px 14px;font-size:14px;min-height:42px}
.section-nav-marker,.section-nav-status{display:none!important}
.wd-screen>.wd-nav{display:none!important}
.wd-screen,.od-screen{padding:18px!important;width:100%;max-width:none!important;min-width:0;min-height:0!important;font-size:14px!important;background:#0c171f}
.wd-screen .wd-heading,.ov-reference .od-heading{margin:0 0 16px;gap:16px}
.wd-screen h1,.ov-reference .od-heading h2{font-size:28px!important;line-height:1.2;letter-spacing:-.4px}
.wd-screen .wd-heading p,.ov-reference .od-heading p{font-size:14px;margin:4px 0 0}
.wd-screen .wd-panel,.ov-reference .od-card{padding:16px!important;margin-bottom:12px;border-radius:6px;background:#112630}
.wd-screen .wd-panel h2,.ov-reference .od-card>h2{font-size:17px!important;gap:8px;margin:0 0 12px;padding-bottom:10px}
.wd-screen .wd-icon,.ov-reference .od-card>h2>.ov-icon{width:21px;height:21px;flex-basis:21px}
.wd-screen .wd-grid,.ov-reference .od-grid{grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:16px}
.wd-screen .wd-row,.ov-reference .od-row{padding:9px 0;gap:12px}.wd-screen .wd-row strong,.ov-reference .od-row strong{font-size:14px;font-variant-numeric:tabular-nums}
.wd-screen .wd-empty,.ov-reference .od-empty{padding:18px 12px;font-size:13px}.wd-screen .wd-empty strong{font-size:16px}.wd-screen .wd-empty p{margin:5px 0 0}
.wd-screen button,.ov-reference button{font-size:13px;min-height:36px;padding:8px 12px}.wd-screen .wd-actions{margin-top:10px;gap:8px}.wd-screen .wd-actions>.wd-primary{flex:0 1 auto}
.wd-screen .wd-heading .wd-badge{font-size:11px}
.d07-next-action{display:flex;align-items:center;gap:12px}.d07-next-action>div{flex:1;min-width:0}.wd-screen .d07-next-action h3{font-size:16px;margin:0 0 4px}.d07-next-action>button{flex:0 0 auto}
.d07-operation-art,.wd-screen .wd-operation-art{display:block;width:52px;height:52px;flex:0 0 52px;object-fit:contain;border-radius:5px;background:#102832}
.d07-operation-fallback{display:grid;place-items:center;color:#9dbec7;font-size:12px;border:1px solid #294752}
.wd-screen .wd-operation-list{gap:6px;container-type:inline-size}
.wd-screen .wd-operation-columns,.wd-screen .wd-operation-item{grid-template-columns:minmax(0,1fr) 100px 78px 110px 105px;gap:12px;padding-inline:10px}
.wd-screen .wd-operation-item{padding-block:8px;min-height:68px}
.wd-screen .wd-operation-main{gap:10px;grid-column:auto}.wd-screen .wd-operation-main h3{font-size:14px;margin:0 0 3px}
.wd-screen .wd-operation-value{font-size:13px}.wd-screen .wd-operation-value:nth-child(3),.wd-screen .wd-operation-value:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.wd-screen .wd-operation-columns>span:nth-child(3),.wd-screen .wd-operation-columns>span:nth-child(4){text-align:right}
.wd-screen .wd-operation-value>span{display:none}.wd-screen .wd-operation-action{grid-column:auto;justify-self:end}.wd-screen .wd-operation-action button{font-size:12px;width:105px;padding:6px}
.wd-screen .wd-footer,.ov-reference .od-footer{font-size:12px;gap:10px;margin-top:14px;padding-top:12px}.wd-footer .wd-actions{margin:0}
.d07-tools{position:relative}.d07-tools summary{cursor:pointer;padding:8px 10px;border:1px solid #395b69;border-radius:5px}.d07-tools[open]>button{position:absolute;bottom:calc(100% + 6px);right:0;min-width:160px;background:#112630;z-index:3}
.ov-reference .od-metrics{gap:12px;margin-bottom:14px}.ov-reference .ov-stat{min-height:72px;grid-template-columns:32px minmax(0,1fr);gap:3px 10px}
.ov-reference .ov-stat>span{font-size:12px}.ov-reference .ov-stat>strong{font-size:22px!important}.ov-stat-symbol .ov-icon{width:27px;height:27px}
.ov-reference .oc-plan{padding:10px;min-height:76px;margin:7px 0;gap:12px;flex-wrap:nowrap}
.ov-reference .oc-plan strong{font-size:14px;line-height:1.35}.ov-reference .oc-plan small{font-size:12px}.ov-reference .oc-plan p{font-size:12px;margin:4px 0 0}
.ov-reference .ov-art{width:52px;height:52px;flex:0 0 52px;border:0;background:none}.ov-reference .ov-art img{width:52px;height:52px}
.ov-reference .oc-plan .od-actions{min-width:0;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:220px;gap:6px}
.ov-reference .ov-heading-context .oc-context{padding:10px;gap:8px}.ov-heading-context .oc-context>span{flex-basis:100px;font-size:13px}
body:has(.d07-global-nav) iframe[data-industry-integral]{display:block;width:100%!important;max-width:none!important;border:0;min-height:0!important}
@container(max-width:720px){.wd-screen .wd-operation-columns{display:none}.wd-screen .wd-operation-item{grid-template-columns:minmax(0,1fr) 105px;gap:6px 10px}.wd-screen .wd-operation-main{grid-column:1;grid-row:1/4}.wd-screen .wd-operation-value{grid-column:2;text-align:right;font-size:12px}.wd-screen .wd-operation-value>span{display:inline;color:#9fbac7;font-size:11px;margin-right:5px}.wd-screen .wd-operation-action{grid-column:2}.wd-screen .wd-operation-main h3{font-size:13px}}
@media(min-width:1800px){body[data-active-view=dashboard] .wd-grid{grid-template-columns:minmax(0,1fr) minmax(340px,420px)}body[data-active-view=dashboard] .wd-grid>div>.wd-panel,body[data-active-view=operations] .od-grid>.od-card:first-child{max-width:1300px}}
@media(max-width:1000px){.wd-screen .wd-grid,.ov-reference .od-grid{grid-template-columns:minmax(0,1fr)}.wd-screen .wd-grid>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ov-reference .od-heading{grid-template-columns:1fr}.wd-screen .wd-heading{flex-direction:row}.wd-screen .wd-heading .wd-badge{display:none}}
@media(max-width:600px){.wd-screen,.od-screen{padding:12px!important}.d07-global-nav{gap:8px;padding-inline:10px!important}.d07-brand-name{display:none}.d07-account-menu summary{max-width:145px}.wd-screen h1,.ov-reference .od-heading h2{font-size:24px!important}.wd-screen .wd-grid>aside{grid-template-columns:1fr}.d07-next-action{flex-wrap:wrap}.d07-next-action>button{margin-left:64px}.ov-reference .od-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ov-reference .ov-stat{padding:10px!important;display:block}.ov-stat-symbol{display:none}.ov-reference .ov-stat>strong{font-size:17px!important}.ov-reference .oc-plan{flex-wrap:wrap}.ov-reference .oc-plan>div:nth-child(2){flex-basis:calc(100% - 64px)}.ov-reference .oc-plan .od-actions{margin-left:64px;width:auto;max-width:none}.wd-screen .wd-panel,.ov-reference .od-card{padding:12px!important}.wd-screen .wd-operation-item{padding:8px}.wd-screen .wd-operation-art{width:48px;height:48px;flex-basis:48px}}

.section-nav-end{display:none!important}
body:has(.d07-global-nav) .section-nav-shell{min-height:0!important}

iframe[data-industry-integral]{overflow-anchor:none}
/* Narrow rows retain a readable title instead of squeezing it between controls. */
@container(max-width:420px){.wd-screen .wd-operation-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}.wd-screen .wd-operation-main{grid-column:1/-1;grid-row:auto}.wd-screen .wd-operation-value{grid-column:auto;text-align:left!important;font-size:12px}.wd-screen .wd-operation-value>span{display:block;margin:0 0 2px}.wd-screen .wd-operation-action{grid-column:2;align-self:end}.wd-screen .wd-operation-main h3{font-size:14px}}
@media(max-width:600px){.wd-screen .d07-next-action{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px}.wd-screen .d07-next-action>button{grid-column:2;margin:0;justify-self:start}.wd-screen .d07-next-action h3{font-size:15px}.wd-screen .d07-next-action small{font-size:12px}}
@media(min-width:1800px){body[data-active-view=dashboard] .wd-grid{grid-template-columns:minmax(0,1fr) 340px;max-width:1600px;margin-inline:auto}body[data-active-view=dashboard] .wd-heading,body[data-active-view=dashboard] .wd-footer{max-width:1600px;margin-inline:auto}body[data-active-view=dashboard] .wd-grid>div>.wd-panel,body[data-active-view=operations] .od-grid>.od-card:first-child{max-width:none}body[data-active-view=operations] .od-screen>[data-content],body[data-active-view=operations] .od-heading,body[data-active-view=operations] .od-footer{max-width:1600px;margin-inline:auto}}
.wd-screen .wd-operation-columns{border:1px solid transparent}
@container(min-width:601px) and (max-width:720px){.wd-screen .wd-operation-columns,.wd-screen .wd-operation-item{display:grid;grid-template-columns:minmax(0,1fr) 80px 60px 90px 88px;gap:8px}.wd-screen .wd-operation-main{grid-column:auto;grid-row:auto}.wd-screen .wd-operation-value{grid-column:auto}.wd-screen .wd-operation-value>span{display:none}.wd-screen .wd-operation-action{grid-column:auto}.wd-screen .wd-operation-action button{width:88px}}

.module-placeholder::after{content:none!important}


/* Restore the original visible area navigation. */
.d07-global-nav{flex-wrap:wrap!important;padding:6px 18px!important;gap:8px;min-height:64px}.d07-global-nav .d07-brand{margin-right:16px;padding:8px 0}.d07-global-nav .d07-area-links{position:static;display:flex;flex:1;align-items:stretch;overflow-x:auto;min-width:0;gap:0}.d07-area-links>a{padding:16px 15px;font-size:14px;border-radius:0}
@media(max-width:1100px){.d07-global-nav .d07-area-links{flex-basis:100%}.d07-global-nav .d07-area-links>a{padding:12px}.d07-global-nav{gap:0}}

/* All operation tabs own their icons, including Cargo. */
.section-nav-item[data-view=cargo]:has(.ov-nav-icon)::before{display:none}


/* css/fleet-section-backgrounds.css */
#view-components.active, #view-loadouts.active {
  min-height: calc(100vh - 112px);
  background-color: #0b171f;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed !important;
}
#view-components.active {
  background-image: linear-gradient(#0b171f55, #0b171f88), url('/optimized-backgrounds/7a1b70e3a72c986f747f.webp') !important;
}
#view-loadouts.active {
  background-image: linear-gradient(#0b171f55, #0b171f88), url('/optimized-backgrounds/c02e08a8a657ccdc3b8e.webp') !important;
}
#view-components .cc-header, #view-loadouts .loaner-intro {
  padding: 20px;
  border: 1px solid #294451;
  border-radius: 6px;
  background: #0b171fcc;
}
#view-components .cc-categories, #view-components .cc-card,
#view-loadouts .loaner-notes, #view-loadouts .loaner-panel,
#view-loadouts .loaner-card, #view-loadouts .loaner-list button {
  background-color: rgba(17,33,44,.88);
}
#view-components .cc-card[aria-pressed=true],
#view-loadouts .loaner-card[aria-pressed=true],
#view-loadouts .loaner-list button[aria-pressed=true] {
  background-color: rgba(58,48,20,.94);
}


/* css/commerce-backgrounds.css */
#view-operations.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/3edf16539d21721d9ac1.webp")!important}
#view-favorites.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/f36d4ed5267456f60aff.webp")!important}
#view-trade.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/37ef1c89d250231c979f.webp")!important}
#view-routes.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/ff2d8dc081c474acea3d.webp")!important}
#view-logistics.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/982facc6a9dc71cb0cd4.webp")!important}
#view-cargo.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/9c22ca5048011ec2a3a8.webp")!important}
#view-history.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/d361207c161ac17d3a9f.webp")!important}
:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history).active{min-height:calc(100vh - 112px);background-color:#0b171f;background-size:cover!important;background-position:center;background-repeat:no-repeat;background-attachment:fixed!important;padding:20px}
:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .od-screen{background:transparent}
:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .od-card,:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .od-toolbar,:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .panel,:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .oc-context{background:rgba(17,33,44,.9)!important}
:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .od-heading{background:rgba(11,23,31,.8);padding:20px;border:1px solid #294451;border-radius:6px}
:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history) .od-footer{background:rgba(11,23,31,.85);padding:12px;border-radius:6px}
@media(max-width:700px){:is(#view-operations,#view-favorites,#view-trade,#view-routes,#view-logistics,#view-cargo,#view-history).active{padding:12px}}


/* css/area-backgrounds.css */
#view-dashboard.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/7a6df0b3bd49ec12f4ce.webp")!important}
#view-alerts.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/6209236bf1c7fdbcf9c1.webp")!important}
#view-analytics.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/0e0a2403c69bd68f0fa6.webp")!important}
#view-universe.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/6ea38c91d4c410057635.webp")!important}
#view-intel.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/71ae9e4c8bfa1614f22e.webp")!important}
#view-search.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/dab4a4ed26d815fcb148.webp")!important}
#view-materials.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/5ba2df8dc34441b52a38.webp")!important}
#view-mining.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/a43947fb37543c52ee0b.webp")!important}
#view-refining.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/9c83a9f20561c75cf998.webp")!important}
#view-salvage.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/b2d191e4ad95ee4e7c52.webp")!important}
#view-inventory.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/1a6d742843aa0597b84e.webp")!important}
#view-production.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/cb2db048ed28c18fb00e.webp")!important}
#view-blueprints.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/086a6c59f61bb31a6e1f.webp")!important}
#view-recipes.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/d60cfbae6e05511968ad.webp")!important}
#view-crafting.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/8e7130ca63d41ac59407.webp")!important}
#view-crew.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/99b68cba45ee2151792d.webp")!important}
#view-organizations.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/de5ed679fc8ac235cf34.webp")!important}
#view-group-operations.active{background-image:linear-gradient(#0b171f55,#0b171f88),url("/optimized-backgrounds/28e3d6aef1ce398c2784.webp")!important}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations).active{min-height:calc(100vh - 112px);background-color:#0b171f;background-size:cover!important;background-position:center;background-repeat:no-repeat;background-attachment:fixed!important;padding:20px}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .panel,:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .metric-card{background:rgba(17,33,44,.9)!important}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .wd-screen{background:transparent!important}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .wd-panel{background:rgba(17,33,44,.9)!important}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .wd-heading{background:rgba(11,23,31,.8);padding:16px;border-radius:6px}
:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations) .dashboard-hero{background:rgba(11,23,31,.8)!important;padding:20px;border:1px solid #294451;border-radius:6px}
@media(max-width:700px){:is(#view-dashboard,#view-alerts,#view-analytics,#view-universe,#view-intel,#view-search,#view-materials,#view-mining,#view-refining,#view-salvage,#view-inventory,#view-production,#view-blueprints,#view-recipes,#view-crafting,#view-crew,#view-organizations,#view-group-operations).active{padding:12px}}


/* css/mobile-layout.css */
/* Shared small-screen layout. Desktop geometry is retained. */
.nd07-menu-toggle{display:none!important}
@media(max-width:760px){
 html{scroll-padding-top:12px}
 body .view.active,body .public-workspace,body .hangar-banner,body #hangar-main,body .nexo-entry{background-image:none!important;backdrop-filter:none!important}
body{background-attachment:scroll!important;font-size:15px;line-height:1.5}
 *,*::before,*::after{box-sizing:border-box}
 input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important;max-width:100%;min-height:44px}
 button,summary,.public-subnav a{min-height:44px;touch-action:manipulation}
 h1{font-size:24px!important;line-height:1.25}h2{line-height:1.3}p,small,label{overflow-wrap:anywhere}
 dialog{max-width:calc(100vw - 20px)!important;width:calc(100vw - 20px);max-height:90vh;max-height:90dvh;overflow:auto;padding:16px!important}
 .d07-global-nav{position:relative!important;gap:8px!important;padding:8px 12px!important;min-height:60px}
 .d07-global-nav .d07-brand{margin:0!important}.nd07-menu-toggle{display:block!important;margin-left:auto!important;border:1px solid #426575!important;border-radius:6px!important;font-size:15px!important}
 .d07-global-nav .d07-area-links{display:none!important;order:5;flex-basis:100%;overflow:visible;grid-template-columns:1fr 1fr;gap:5px}
 .d07-global-nav.nd07-menu-open .d07-area-links{display:grid!important}
 .d07-global-nav .d07-area-links>a{white-space:normal;font-size:14px;padding:12px 8px!important;border:1px solid #294451;border-radius:5px}
 .d07-account-menu{margin-left:0!important}.d07-global-nav details>div{right:0;max-width:calc(100vw - 24px)}
 .public-workspace{padding:12px!important}.public-notice{padding:10px!important;font-size:14px;gap:8px!important;flex-wrap:wrap}.public-notice p{margin:0}
 .public-home-grid,.public-home-grid>aside{display:block!important}.public-home-card{padding:14px!important;margin-bottom:12px}.public-subnav{gap:6px!important;margin-bottom:12px!important}
 .public-subnav a{padding:10px 12px!important}.view,.main-content,.public-workspace{min-width:0;max-width:100%}
 .table-scroll,.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .public-workspace iframe,iframe[data-hangar-nuevo]{display:block;width:100%!important;min-height:320px!important}
 #hangar-main{padding:10px!important;min-height:0!important}.context{grid-template-columns:minmax(0,1fr)!important;padding:12px!important;gap:12px!important}
 .workspace-head nav{display:flex!important;flex-wrap:wrap!important;gap:5px}.workspace-head nav button{flex:1 1 130px;min-height:44px!important;font-size:13px!important}
 #hangar-main #configure{display:flex!important;flex-direction:column!important;gap:14px!important}
 #configure>.nd-catalog,#configure>.nd-middle,#configure>.nd-visual{width:100%;min-width:0;order:initial;position:static}
 #configure .nd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:520px;min-height:0;overflow:auto;contain:none}
 #configure .nd-comparison{max-height:none!important;overflow:visible!important}#configure .nd-component strong{font-size:14px}#configure .nd-component small{font-size:12px}
 #configure .filters>*{min-height:44px;font-size:14px}.nd-paint-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .toolbar{flex-wrap:wrap}.toolbar>.actions{position:static!important;display:flex;flex-wrap:wrap;justify-content:flex-start;padding:8px 0!important;width:100%;gap:6px}.toolbar>.actions::before{display:none}.toolbar>.actions button{min-height:44px!important;font-size:13px!important}
 #configure .energy-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;max-width:100%}#configure .energy-column button{width:44px;height:44px}#configure .energy-column label{font-size:12px}.nd-visual #viewer{min-height:240px!important;height:300px!important}.nd-visual .viewer-panel footer{max-height:none!important;overflow:visible!important}
 .viewer-panel.enlarged{inset:0!important}.nd07-load-model{margin:20px;min-height:48px;padding:12px;font-size:16px}
 #sections{display:flex;flex-wrap:wrap}#sections a{padding:10px}.heading,.searchbar,.resultline{flex-wrap:wrap}.comparison-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:380px){.nd-component{padding:7px}.public-subnav a{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

@media(max-width:760px){.cd-scroll,.od-scroll,.table-scroll{max-width:100%;overflow-x:auto}.cd-scroll::before,.od-scroll::before{content:'Desliza la tabla hacia los lados para ver más datos';display:block;position:sticky;left:0;width:230px;max-width:90%;font-size:13px;color:#aad6e5;padding:8px 0;white-space:normal}.cd-scroll td,.cd-scroll th{font-size:14px}.cd-scroll button{min-width:44px}}

#catalog-back{display:none}
@media(max-width:760px){
 .catalog-dialog:has(#catalog-form)>header p{display:none}
 .catalog-dialog:has(#catalog-form):not(.catalog-confirming) #catalog-form{display:none}
 .catalog-dialog:has(#catalog-form) #catalog-list{max-height:45vh;max-height:min(400px,45dvh)}
 .catalog-dialog.catalog-confirming #catalog-list,.catalog-dialog.catalog-confirming #catalog-search,.catalog-dialog.catalog-confirming #catalog-count,.catalog-dialog.catalog-confirming>label[for=catalog-search]{display:none}
 .catalog-dialog.catalog-confirming #catalog-form{margin-top:10px;padding-top:0;border-top:0}
 .catalog-dialog.catalog-confirming #catalog-back{display:block;margin-bottom:10px}
 #catalog-form footer{position:sticky;bottom:-16px;background:#10212c;padding:12px 0;margin-bottom:0;z-index:2;gap:8px}
 #catalog-form footer button{min-height:48px;flex:1;font-size:14px}
 #catalog-selection{font-size:18px}#catalog-owned:empty,#catalog-error:empty{display:none}
}

.nd07-section-picker{display:none}
@media(max-width:760px){.nd07-section-picker{display:grid;gap:4px;margin:8px 12px;color:#afd3e3;font-size:13px}.nd07-section-picker select{width:100%;min-height:46px}.section-nav-shell:has(.nd07-section-picker) .section-nav{display:none!important}.section-nav-shell{height:auto!important;max-height:none!important}}

.nd07-mobile-filters>summary{display:none}
@media(max-width:760px){
 #view-military .nd07-mobile-filters>summary{display:block;border:1px solid #426575;border-radius:5px;padding:12px;cursor:pointer;background:#102734}
 #view-military .mh-left{display:grid;grid-template-columns:minmax(0,1fr)!important;margin-top:8px}#view-military #mh-factions{max-height:260px}
 #view-military .nd07-mobile-filters #mh-regions{display:block}
 #view-military .nd07-mobile-filters #mh-regions .mh-side-button{min-height:44px;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #view-military .mh-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}#view-military .mh-tabs button{white-space:normal;min-width:0}
 #view-military .mh-title-link{max-width:100%;overflow-wrap:anywhere;min-width:0}#view-military .mh-mission-text{min-width:0}
 #view-military .mh-hero,#view-military .mh-faction{background-image:none!important}
 .area-bar{flex-wrap:wrap}.area-bar .areas{flex-wrap:wrap;max-width:100%}.area-bar .areas a{white-space:normal;padding:10px}
 .journey{flex-wrap:wrap;max-width:100%}
}

@media(max-width:760px){body #view-mining-config .mc-bar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}body #view-mining-config .mc-bar label{min-width:0}body #view-mining-config .mc-bar>*{max-width:100%;min-width:0}body #view-mining-config .mc-bar .mc-patch{max-width:none}}@media(max-width:380px){body #view-mining-config .mc-bar{grid-template-columns:minmax(0,1fr)}}
/* ND07 adaptive desktop and ultrawide workspaces. No browser zoom or transforms. */
:root{--nd07-content-width:100%;--nd07-ui-size:14px;--nd07-control-height:40px;--nd07-page-gap:clamp(12px,1.4vw,28px)}
@media(min-width:1920px){:root{--nd07-ui-size:16px;--nd07-control-height:44px}}
@media(min-width:2560px){:root{--nd07-content-width:100%;--nd07-ui-size:18px;--nd07-control-height:46px}}
body .main-content{max-width:none;margin-inline:0}
body:has(.d07-global-nav) .main-content>.workspace,body:has(.d07-global-nav) .public-workspace{box-sizing:border-box;width:100%;max-width:var(--nd07-content-width)!important;margin-inline:auto!important;padding:var(--nd07-page-gap)!important;min-width:0}
body:has(.d07-global-nav) .workspace>.view.active{box-sizing:border-box;min-width:0;max-width:100%}
body .d07-global-nav{padding-inline:max(16px,calc((100% - var(--nd07-content-width))/2 + var(--nd07-page-gap)))!important}
body .d07-global-nav .d07-area-links>a,body .section-nav-item,body .commerce-navigation a{font-size:var(--nd07-ui-size)!important;min-height:var(--nd07-control-height);box-sizing:border-box;display:inline-flex;align-items:center;gap:8px}
body .section-nav,body .commerce-navigation{max-width:100%;scrollbar-width:thin}
body .wd-screen,body .od-screen,body .commerce-screen{box-sizing:border-box;max-width:100%!important;min-width:0;font-size:var(--nd07-ui-size)!important}
body :is(.wd-screen,.od-screen,.commerce-screen,.public-workspace) :is(input:not([type=checkbox]):not([type=radio]),select,textarea,button){font-size:var(--nd07-ui-size);min-height:var(--nd07-control-height);max-width:100%;box-sizing:border-box}
body :is(.wd-screen,.od-screen,.commerce-screen) :is(label,td,th,.wd-row,.od-row){font-size:var(--nd07-ui-size);line-height:1.45}
body :is(.wd-screen,.od-screen) :is(.wd-row strong,.od-row strong,.wd-operation-value){font-size:var(--nd07-ui-size)!important}
body :is(.wd-screen,.od-screen) :is(.wd-grid,.od-grid)>*{min-width:0}
body :is(.table-wrapper,.table-scroll,.commerce-table){max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
body dialog{box-sizing:border-box;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;overflow:auto}
body dialog :is(input,select,textarea,button){font-size:var(--nd07-ui-size);min-height:var(--nd07-control-height);box-sizing:border-box;max-width:100%}
body dialog :is(label,p,td,th){font-size:var(--nd07-ui-size);line-height:1.5}
body:has(>#hangar-main)>main,body:has(>#sections)>main,body:has(main>.area-bar)>main{box-sizing:border-box;width:100%;max-width:var(--nd07-content-width)!important;margin-inline:auto!important;padding-inline:var(--nd07-page-gap)}
body:has(>#hangar-main),body:has(>#sections),body:has(main>.area-bar){font-size:var(--nd07-ui-size)}
body:has(>#hangar-main) :is(input,select,button),body:has(>#sections) :is(input,select,button),body:has(main>.area-bar) :is(input,select,button){font-size:var(--nd07-ui-size);min-height:var(--nd07-control-height)}
body:has(>#hangar-main) :is(.context,.workspace,.editor,.left,.right){min-width:0}
body .commerce-screen .cp-workspace{font-size:var(--nd07-ui-size)}
body .commerce-screen .cp-workspace :is(input:not([type=checkbox]),select){height:var(--nd07-control-height)!important;min-height:var(--nd07-control-height)!important;font-size:var(--nd07-ui-size)!important}
body .commerce-screen .cp-workspace :is(label,.cp-note,[data-capacity],[data-source],[data-warning],.cp-tools small,.cp-metrics small){font-size:max(13px,calc(var(--nd07-ui-size) - 1px))!important;line-height:1.45}
body .commerce-screen .cp-workspace .cp-tools{flex-wrap:wrap;gap:12px}
body .commerce-screen .cp-workspace .cp-tools small{display:block;flex:1 1 260px;text-align:right}
body .commerce-screen .cp-workspace .cp-favorite-filter input{height:18px!important;min-height:18px!important;width:18px;flex:0 0 18px}
body .commerce-screen .cp-workspace .cp-ticker{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));height:clamp(280px,34vh,420px);min-height:280px;max-height:420px;grid-auto-rows:var(--nd07-control-height);gap:6px;margin-bottom:20px}
body .commerce-screen .cp-workspace .cp-ticker button{font-size:max(13px,calc(var(--nd07-ui-size) - 1px));height:var(--nd07-control-height);min-height:var(--nd07-control-height);padding-inline:8px}
body .commerce-screen .cp-workspace .cp-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body .commerce-screen .cp-workspace .cp-locations{grid-template-columns:repeat(2,minmax(0,1fr))}
body .commerce-screen .cp-workspace .cp-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body .commerce-screen .cp-workspace .cp-metrics strong{font-size:calc(var(--nd07-ui-size) + 2px)}
body .commerce-screen .cp-workspace .cp-profit strong{font-size:calc(var(--nd07-ui-size) + 6px)}
body .commerce-screen .cp-options [role=option]{font-size:var(--nd07-ui-size);min-height:var(--nd07-control-height);box-sizing:border-box}
@media(min-width:1800px){body .commerce-screen .cp-workspace .cp-fields:not(.cp-locations){grid-template-columns:1.4fr 1.2fr 1fr 1fr 1.4fr 1fr 1fr}body .commerce-screen .cp-workspace details .cp-fields{grid-template-columns:repeat(4,minmax(0,1fr))}body .commerce-screen .cp-workspace .cp-metrics{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:900px){body .commerce-screen .cp-workspace .cp-fields,body .commerce-screen .cp-workspace details .cp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body .commerce-screen .cp-workspace .cp-searchbar{grid-template-columns:minmax(0,1fr) 180px}body .commerce-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body .commerce-screen .cp-workspace .cp-locations,body .commerce-screen .cp-workspace .cp-searchbar{grid-template-columns:minmax(0,1fr)}body .commerce-screen .cp-workspace .cp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body .commerce-screen .cp-workspace .cp-ticker{grid-template-columns:repeat(2,minmax(0,1fr));height:280px}body .commerce-screen .cp-workspace .cp-tools small{text-align:left}body .commerce-screen .cp-actions>*{flex:1 1 140px}body dialog{max-width:calc(100vw - 16px)!important}}
/* Keep Hangar's full-width override inside the shared desktop workspace. */
html body #workspace.workspace{box-sizing:border-box;width:100%;max-width:var(--nd07-content-width)!important;margin-inline:auto!important;padding:var(--nd07-page-gap)!important}
html body #workspace:has(>#view-fleet.active){max-width:var(--nd07-content-width)!important;margin-inline:auto!important;padding-inline:var(--nd07-page-gap)!important}
body :is(.wd-screen,.od-screen,.public-workspace) p{font-size:var(--nd07-ui-size);line-height:1.5}
body :is(.wd-screen,.od-screen,.public-workspace) small{font-size:max(12px,calc(var(--nd07-ui-size) - 2px));line-height:1.4}


/* css/web-design.css */
.wd-screen{color:#eaf4fa;font:16px/1.5 system-ui,sans-serif;max-width:none;width:100%;padding:22px 24px;box-sizing:border-box;background:#0c151d;min-height:calc(100vh - 120px)}
.wd-screen *{box-sizing:border-box}.wd-screen [hidden]{display:none!important}.wd-screen h1{font-size:38px;line-height:1.15;margin:0 0 8px;font-weight:750;letter-spacing:-.7px}.wd-screen h2{font-size:23px;margin:0 0 20px;display:flex;align-items:center;gap:12px}.wd-screen h3{font-size:19px;margin:0 0 12px}.wd-screen p{color:#bdd0dc;margin:8px 0 16px}.wd-screen small{font-size:13px;color:#b8ccd7;display:block}.wd-screen a{color:#8ee9ee}.wd-screen button,.wd-screen input,.wd-screen select{font:inherit;color:inherit;background:#102631;border:1px solid #395b69;border-radius:6px;padding:11px 15px;min-height:44px}.wd-screen button{cursor:pointer}.wd-screen button:disabled{opacity:.5;cursor:not-allowed}.wd-screen .wd-primary{background:linear-gradient(#ffc343,#ffb71d);color:#101820;border-color:#ffc343;font-weight:700}.wd-screen :focus-visible{outline:3px solid #ffcf52;outline-offset:3px}.wd-screen button[aria-pressed=true]{border-color:#40dfe5;background:#123b49}.wd-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.wd-heading>div{min-width:0}.wd-heading p{font-size:19px;margin:0}.wd-nav{display:flex;flex-wrap:wrap;gap:0;margin-bottom:20px}.wd-nav button{border-radius:0;border-color:#223c48;padding:16px 23px;display:flex;gap:10px;align-items:center}.wd-nav button[aria-current=page]{background:#133847;border-bottom:3px solid #52dce6}.wd-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.wd-toolbar{display:flex;gap:14px;flex-wrap:wrap;background:#102630;border:1px solid #294650;border-radius:7px;padding:14px;margin-bottom:22px}.wd-toolbar label{display:flex;align-items:center;gap:10px;flex:1 1 180px}.wd-toolbar input,.wd-toolbar select{width:100%;min-width:0}.wd-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(320px,1fr);gap:20px;align-items:start}.wd-grid.three{grid-template-columns:minmax(220px,.9fr) minmax(0,1.5fr) minmax(250px,1fr)}.wd-grid>*{min-width:0}.wd-panel{border:1px solid #294752;background:linear-gradient(120deg,#122933,#0e212a);border-radius:8px;padding:22px;min-width:0;margin-bottom:18px}.wd-panel h2{padding-bottom:16px;border-bottom:1px solid #294752}.wd-stack{display:grid;gap:14px}.wd-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #294752}.wd-row:last-child{border:0}.wd-row strong{font-size:18px}.wd-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.wd-actions>.wd-primary{flex:1}.wd-note{background:#12303d;border:1px solid #2a596b;border-radius:6px;padding:13px 16px;color:#d6e7ed;margin:14px 0}.wd-error{border:1px solid #ffb39b;background:#442b28;padding:16px;border-radius:6px;margin-bottom:16px}.wd-empty{padding:40px 18px;text-align:center;color:#bcd0dd;border:1px dashed #395361;border-radius:6px}.wd-empty strong{display:block;font-size:20px;color:#edf6fb}.wd-symbol{display:inline-grid;place-items:center;width:66px;height:66px;background:radial-gradient(ellipse at top,#35525f,#101e27);border:1px solid #476574;border-radius:5px;flex:0 0 66px;color:#bdd8e5}.wd-symbol svg{width:40px;height:40px}.wd-icon{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;flex:0 0 26px}.wd-list{display:grid;gap:10px}.wd-list>button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px}.wd-list>button>span:last-child{flex:1;min-width:0}.wd-list strong{display:block;font-size:18px}.wd-scroll{overflow:auto;max-width:100%}.wd-screen table{width:100%;border-collapse:collapse;text-align:left}.wd-screen th,.wd-screen td{padding:16px 12px;border-bottom:1px solid #294752;vertical-align:middle;font-size:16px}.wd-screen th{color:#d9e9f0}.wd-screen table button{border-color:transparent;text-align:left;display:flex;align-items:center;gap:12px;padding:3px;max-width:100%}.wd-screen tr.selected{background:#123b49;outline:1px solid #41dfe8;outline-offset:-1px}.wd-screen table .wd-symbol{width:46px;height:46px;flex-basis:46px}.wd-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.wd-kpis>div{padding:15px;border:1px solid #294752;border-radius:5px}.wd-kpis strong{display:block;font-size:27px}.wd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.wd-cards>.wd-panel{padding:18px;display:flex;flex-direction:column}.wd-cards .wd-actions{margin-top:auto}.wd-hero{display:flex;gap:18px;align-items:center;margin-bottom:22px}.wd-hero h2{border:0;padding:0;margin:0}.wd-badge{border:1px solid #416979;border-radius:5px;padding:5px 10px;color:#b9e8ef;font-size:13px}.wd-footer{border-top:1px solid #294752;padding-top:16px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#b8cbd7}.wd-pager{display:flex;align-items:center;justify-content:space-between;margin-top:16px}.wd-dialog{background:#0c151d;color:#edf6fb;border:1px solid #476675;border-radius:8px;width:min(1400px,94vw);max-height:92vh;padding:24px}.wd-dialog::backdrop{background:#02090dcc}.wd-dialog>.wd-dialog-head{display:flex;justify-content:space-between;gap:20px;position:sticky;top:-24px;padding:16px;background:#0c151d;z-index:2}.wd-dialog .wd-legacy{display:block!important}.wd-dialog button{cursor:pointer}.wd-dialog .wd-legacy>*{max-width:100%}.wd-dialog .wd-legacy{min-width:0;overflow:auto}.wd-legacy[hidden]{display:none!important}
body:has(.view.active>.wd-screen) .app-shell{grid-template-columns:minmax(0,1fr)}body:has(.view.active>.wd-screen) .sidebar{display:none}body:has(.view.active>.wd-screen) .main-content{width:100%;max-width:none;margin:0;min-width:0;grid-column:1}body:has(.view.active>.wd-screen) .workspace{max-width:none;padding:0!important;margin:0!important;width:100%}body:has(.view.active>.wd-screen) .topbar,body:has(.view.active>.wd-screen) .section-nav-shell,body:has(.view.active>.wd-screen) .hazard-divider{display:none}body:has(.view.active>.wd-screen) .d07-sidebar-toggle{display:inline-flex}body:has(.view.active>.wd-screen) .view.active{padding:0;max-width:none;width:100%}body:has(.view.active>.wd-screen) .d07-global-nav{margin:0;border-radius:0}body.d07-sidebar-open:has(.view.active>.wd-screen) .app-shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}body.d07-sidebar-open:has(.view.active>.wd-screen) .sidebar{display:flex}body.d07-sidebar-open:has(.view.active>.wd-screen) .main-content{grid-column:2}
@media(min-width:1900px){.wd-screen{padding-inline:36px}.wd-grid{grid-template-columns:minmax(0,2fr) minmax(380px,1fr)}}@media(max-width:1100px){.wd-grid,.wd-grid.three{grid-template-columns:minmax(0,1fr)}.wd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-heading{align-items:flex-start;flex-direction:column}.wd-screen h1{font-size:31px}}@media(max-width:700px){.wd-screen{padding:16px 12px}.wd-screen h1{font-size:27px}.wd-panel{padding:16px}.wd-nav button{padding:11px;font-size:14px;flex:1 1 auto}.wd-kpis,.wd-cards{grid-template-columns:minmax(0,1fr)}.wd-toolbar label{flex-wrap:wrap}.wd-row{flex-wrap:wrap}.wd-screen table{min-width:540px}.wd-heading p{font-size:16px}.wd-dialog{padding:12px}.wd-screen .wd-hero{align-items:flex-start}body.d07-sidebar-open:has(.view.active>.wd-screen) .main-content{grid-column:1}.wd-screen{overflow-wrap:anywhere}}
.wd-panel .wd-list{max-height:440px;overflow:auto;padding:2px}.wd-screen>.wd-actions{margin-bottom:18px}.wd-screen>.wd-actions>.wd-primary{flex:0 1 auto;min-width:240px}.wd-screen .wd-panel{background:linear-gradient(130deg,#102c38,#10232d)}

/* Command: compact operation list, option B */
.wd-operation-list{display:grid;gap:8px}.wd-operation-columns,.wd-operation-item{display:grid;grid-template-columns:minmax(180px,2.5fr) minmax(70px,.8fr) minmax(65px,.6fr) minmax(90px,.9fr) auto;gap:14px;align-items:center}.wd-operation-columns{padding:0 12px;color:#9fbac7;font-size:12px;letter-spacing:.05em}.wd-operation-item{padding:10px 12px;border:1px solid #294752;border-radius:7px;background:#102630}.wd-operation-main{display:flex;align-items:center;gap:12px;min-width:0}.wd-operation-main>div{min-width:0}.wd-screen .wd-operation-main h3{font-size:16px;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere}.wd-operation-art{display:block;width:64px;height:64px;flex:0 0 64px;object-fit:contain;background:#102832;border-radius:5px}.wd-operation-value{font-size:14px;overflow-wrap:anywhere}.wd-operation-value>span{display:none}.wd-operation-action button{white-space:nowrap;padding:8px 12px;font-size:14px}.wd-operation-list{container-type:inline-size}@container(max-width:720px){.wd-operation-columns{display:none}.wd-operation-item{grid-template-columns:repeat(3,minmax(0,1fr))}.wd-operation-main{grid-column:1/-1}.wd-operation-value>span{display:block;color:#9fbac7;font-size:11px;margin-bottom:3px}.wd-operation-action{grid-column:1/-1;justify-self:end}}@media(max-width:480px){.wd-operation-item{gap:10px}.wd-operation-art{width:52px;height:52px;flex-basis:52px}}


/* css/commerce-selected.css */
/* Selected Commerce layouts: 09, 13, 14 and 15. Scoped to their four views. */
.cd-screen{color:#ecf5fa;background:#0b171f;font-size:14px;--cd-line:#294d5e;--cd-panel:#102630}
.cd-screen .od-heading{padding:20px 6px;margin:0 0 14px}.cd-screen .od-heading h2{font-size:30px;line-height:1.2;letter-spacing:-.5px}.cd-screen .od-heading p{font-size:15px;margin-top:8px}
.cd-screen .cd-panel{min-width:0;border:1px solid var(--cd-line);border-radius:6px;background:linear-gradient(115deg,#142b36,#0c202a);padding:16px;margin-bottom:14px}.cd-screen .cd-panel h2{font-size:18px;margin:0 0 14px}.cd-screen h3{font-size:17px;margin:8px 0}.cd-screen small{font-size:12px;color:#abc8d8;line-height:1.5;display:block}.cd-screen .cd-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.cd-screen .cd-panel-heading h2{margin:0}.cd-screen .cd-panel-heading>span{font-size:12px;color:#accbda}
.cd-screen button,.cd-screen select,.cd-screen input{min-height:40px;border:1px solid #366074;border-radius:4px;background:#0b202b;color:#dfeff7;padding:8px 12px;font:inherit}.cd-screen input,.cd-screen select{width:100%}.cd-screen label{display:flex;flex-direction:column;gap:6px;color:#b9d8e9;font-size:12px;min-width:0}.cd-screen button:hover{border-color:#65d8ed;background:#183b4b}.cd-screen button.od-primary{background:linear-gradient(#ffd76a,#f5b722);color:#10202b;border-color:#f5c343;font-weight:700}.cd-screen button.od-primary:hover{background:#ffe28c}.cd-screen :focus-visible{outline:2px solid #68dff4;outline-offset:3px}.cd-screen button:disabled{cursor:not-allowed;opacity:.5}
.cd-controls{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto;align-items:end;gap:12px;padding:15px;background:#142b36;border:1px solid #294d5e;border-radius:6px;margin-bottom:16px}.cd-split{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,1fr);gap:16px;align-items:start}.cd-screen .cd-scroll{overflow:auto}.cd-screen table{font-size:13px;width:100%;border-collapse:collapse}.cd-screen th{background:#0b202b;color:#a8d5e9;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.4px}.cd-screen td,.cd-screen th{padding:12px 9px;border-bottom:1px solid #294d5e;text-align:left}.cd-screen td strong{font-size:13px}.cd-screen .cd-selected{background:#4b45291f;outline:1px solid #e8b537;outline-offset:-1px}.cd-screen .cd-product{display:flex;align-items:center;gap:12px;min-width:150px}.cd-screen .cd-art{width:62px;height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:center;background:#091c26;border:1px solid #31566a;border-radius:4px;overflow:hidden}.cd-screen .cd-art img{height:100%;width:100%;object-fit:contain}.cd-screen .cd-art .d07-operation-fallback{color:#7297aa;font-size:16px;width:auto;height:auto}.cd-screen .cd-profit{color:#8aefb2}.cd-screen .cd-profit small{color:#b5d1db}.cd-screen .cd-star{padding:0;min-width:32px;min-height:32px;border:0;background:transparent;color:#ffcc40;font-size:23px}.cd-screen .cd-pagination{display:flex;gap:18px;align-items:center;justify-content:center;padding-top:14px}.cd-screen .cd-pagination span{font-size:12px;color:#a8c9db}.cd-screen .cd-empty{padding:32px 16px;color:#adc6d4;line-height:1.7;min-height:100px}.cd-screen .cd-selected-product{display:flex;gap:18px;align-items:center;margin:12px 0 20px}.cd-screen .cd-selected-product .cd-art{width:125px;height:115px;flex-basis:125px}.cd-screen .cd-selected-product h3{font-size:24px}.cd-builder-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;margin-bottom:16px}.cd-ship{display:flex;align-items:center;gap:16px;border:1px solid #294d5e;background:#0a1e29;margin:12px 0;padding:10px;min-width:0}.cd-ship>img,.cd-ship>.cd-image-empty{width:42%;height:115px;object-fit:contain}.cd-image-empty{display:grid;place-items:center;font-size:12px;color:#80a3b4;text-align:center;background:linear-gradient(145deg,#122d3c,#091924);padding:10px}.cd-screen .cd-ship p{font-size:12px;margin:5px 0}.cd-screen .cd-capacity{font-size:12px;margin-bottom:14px}.cd-screen progress{width:100%;height:10px;accent-color:#ffc52f}.cd-screen .cd-warning{display:block;color:#ffd17a;margin-top:7px}.cd-screen .cd-places{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.cd-place>img,.cd-place-blank{height:100px;width:100%;object-fit:cover;border:1px solid #315267;border-radius:4px}.cd-place-blank{display:grid;place-items:center;background:#102b37;color:#6c9bad;font-size:30px}.cd-screen .cd-place strong{display:block;font-size:13px;line-height:1.4}.cd-screen .cd-breakdown{margin:14px 0}.cd-screen .cd-breakdown>span{display:flex;gap:10px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #294d5e;color:#b9d4e3;font-size:13px}.cd-screen .cd-breakdown strong{color:#edf6fa;text-align:right}.cd-screen .cd-breakdown>.cd-profit,.cd-screen .cd-breakdown>.cd-profit strong{color:#91ebb0}.cd-screen .cd-save{width:100%;margin-top:18px}.cd-screen .cd-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.cd-screen .cd-note{font-size:12px;color:#a5c7d8}.cd-pins{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.cd-screen .cd-pin{position:relative}.cd-screen .cd-pin>.cd-star{position:absolute;right:16px;top:15px;z-index:1}.cd-screen .cd-pin .cd-art{width:100%;height:140px}.cd-screen .cd-pin>button:last-child{margin-top:12px;width:100%}.cd-screen .cd-pin>strong{font-size:17px}.cd-screen .cd-pin>small{margin-top:10px}.cd-screen .cd-chart{width:100%;min-height:230px}.cd-chart-controls{display:grid;grid-template-columns:2fr 1fr;gap:12px}.cd-history-product{display:flex;gap:24px;align-items:center}.cd-screen .cd-history-product .cd-art{width:150px;height:130px;flex-basis:150px}.cd-summary-top{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch;margin-bottom:18px}.cd-stat{border:1px solid #294d5e;background:#102b37;padding:16px;border-radius:5px}.cd-stat strong{font-size:22px;display:block;margin-top:5px}.cd-main-operation{padding:18px;border:1px solid #eebc33;border-radius:7px;background:linear-gradient(110deg,#142b36,#0a202a);margin-bottom:18px}.cd-three{display:grid;grid-template-columns:1.1fr 1fr .85fr;gap:20px}.cd-three>div+div{border-left:1px solid #294d5e;padding-left:20px}.cd-screen .cd-summary-material .cd-art{height:180px;width:100%}.cd-screen .cd-summary-material h3{font-size:20px}.cd-screen .cd-status{padding:5px 9px;border:1px solid #386377;color:#bddae8;background:#143342;border-radius:3px;font-size:12px}.cd-progress{list-style:none;padding:0;margin:14px 0}.cd-progress li{position:relative;border-left:2px solid #36566a;margin-left:12px;padding:0 0 24px 24px}.cd-progress li:before{content:'';position:absolute;left:-9px;top:2px;width:15px;height:15px;border:2px solid #7195a9;background:#102632;border-radius:50%}.cd-progress li.done:before{background:#4bcc9c;border-color:#77e5b5}.cd-progress li:last-child{border-left-color:transparent}.cd-operation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cd-operation-cards article>button{width:100%;margin-top:8px}.cd-success{padding:14px;border:1px solid #48b991;color:#8de1b4}
@media(min-width:2200px){.cd-screen{font-size:16px}.cd-screen table{font-size:15px}.cd-screen td,.cd-screen th{padding:17px 12px}.cd-screen .cd-art{width:78px;height:78px;flex-basis:78px}.cd-screen .cd-ship>img{height:160px}.cd-screen .cd-place>img{height:150px}.cd-screen .cd-summary-material .cd-art{height:240px}}
@media(max-width:1150px){.cd-split{grid-template-columns:1fr}.cd-pins{grid-template-columns:repeat(3,minmax(0,1fr))}.cd-three{grid-template-columns:1fr 1fr}.cd-three>div:last-child{grid-column:1/-1;border-left:0;padding-left:0}.cd-operation-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cd-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.cd-controls,.cd-builder-fields,.cd-summary-top,.cd-three,.cd-operation-cards{grid-template-columns:1fr}.cd-three>div+div{border-left:0;padding-left:0;border-top:1px solid #294d5e;padding-top:14px}.cd-pins{grid-template-columns:repeat(2,minmax(0,1fr))}.cd-screen .cd-panel{padding:12px}.cd-screen .od-heading h2{font-size:26px}.cd-screen .cd-selected-product .cd-art{width:90px;height:90px;flex-basis:90px}}


/* css/commerce-planner.css */
.cp-workspace{color:#e6edf4;font:13px/1.35 system-ui,sans-serif;background:#0c1b28;min-width:0}
.cp-workspace [hidden]{display:none!important}
.cp-searchbar{display:grid;grid-template-columns:1fr 190px;gap:10px}.cp-searchbar>label{font-size:12px}
.cp-workspace label{display:flex;flex-direction:column;gap:4px;min-width:0}
.cp-workspace input,.cp-workspace select{box-sizing:border-box;width:100%;min-width:0;height:35px;background:#172c3d;color:#edf4fa;border:1px solid #3c5264;border-radius:4px;padding:6px 8px;font:inherit}
.cp-workspace button{background:#192e3e;color:#edf4fa;border:1px solid #3c5264;border-radius:4px;padding:7px 10px;cursor:pointer;font:inherit;min-height:32px}
.cp-workspace button:disabled{opacity:.5;cursor:not-allowed}.cp-workspace .od-primary{background:#f2c655;color:#15212a;border-color:#f2c655;font-weight:700}
.cp-workspace :focus-visible{outline:2px solid #74dcf2;outline-offset:2px}.cp-workspace a{color:#91d9ec;text-decoration:none}
.cp-tools{display:flex;align-items:center;gap:14px;margin:8px 0}.cp-tools>label{flex-direction:row;align-items:center;white-space:nowrap;font-size:12px}.cp-tools select{width:auto;height:29px}.cp-tools small{margin-left:auto;color:#9eb7c8}.cp-favorite-filter input{width:15px;height:15px;accent-color:#f2c655}
.cp-ticker{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:4px;max-height:78px;overflow:auto;margin-bottom:12px;scrollbar-width:thin}.cp-ticker button{display:flex;justify-content:space-between;gap:6px;font-size:11px;padding:3px 6px;min-height:23px}.cp-ticker span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cp-ticker b{color:#8cd9e8}.cp-ticker [aria-pressed=true]{border-color:#f2c655;color:#f2c655;background:#323221}
.cp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.cp-heading h2{margin:0;font-size:20px}.cp-heading button{font-size:12px;background:none;min-height:28px}
.cp-workspace form[data-simulator]{padding:12px;background:#102330;border:1px solid #304354;border-radius:6px}
.cp-fields{display:grid;grid-template-columns:1.5fr 1.2fr 1fr 1fr 1.4fr 1fr 1fr;gap:10px}.cp-fields label{font-size:12px}.cp-locations{grid-template-columns:1fr 1fr;margin:10px 0}
.cp-workspace details{margin:8px 0}.cp-workspace summary{cursor:pointer;color:#9fdced}.cp-workspace details[open] summary{margin-bottom:8px}.cp-workspace details .cp-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.cp-workspace [data-capacity],.cp-workspace [data-source]{font-size:11px;color:#b0c6d5;margin:6px 0}.cp-workspace [data-warning]{font-size:12px;color:#f6ca75;margin:6px 0}.cp-workspace [data-warning]:empty{display:none}
.cp-metrics{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));background:#172f40;padding:12px 10px;gap:12px;border-radius:4px;margin-top:10px}.cp-metrics small{color:#b1c7d5;font-size:11px}.cp-metrics strong{display:block;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cp-profit strong{color:#89e2d8;font-size:18px}
.cp-note{font-size:11px;color:#9eb7c8;margin:8px 0}.cp-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cp-actions a{padding:6px}
.cp-compare{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cp-compare article{padding:12px;border:1px solid #3c5264;border-radius:6px}.cp-compare h3{margin:0 0 8px}.cp-compare p{font-size:12px}
[data-search-results]{max-height:180px;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px;background:#152a3a}[data-search-results] button{text-align:left;display:flex;justify-content:space-between;gap:8px}[data-search-results] small{color:#9eb7c8}
@media(max-width:1050px){.cp-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.cp-locations{grid-template-columns:1fr 1fr}.cp-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.cp-tools small{display:none}}
@media(max-width:650px){.cp-searchbar{grid-template-columns:1fr}.cp-fields,.cp-locations,.cp-workspace details .cp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-compare,[data-search-results]{grid-template-columns:1fr}.cp-tools{flex-wrap:wrap;gap:8px}.cp-workspace input,.cp-workspace select,.cp-workspace button{min-height:40px}.cp-ticker button{min-height:32px}.cp-ticker{max-height:104px}.cp-actions>*{flex:1}.cp-workspace form[data-simulator]{padding:8px}}
.commerce-screen .cp-ticker{max-height:52px}.commerce-screen .cp-workspace .cp-heading{margin-bottom:8px}.commerce-screen .cp-workspace [data-capacity],.commerce-screen .cp-workspace [data-source]{font-size:11px;margin:3px 0}
@media(max-width:650px){.commerce-screen .cp-ticker{max-height:72px}}
.cp-combobox{display:block;position:relative;min-width:0}.cp-combobox>input{width:100%;box-sizing:border-box}.cp-options{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:30;display:block;max-height:230px;overflow:auto;background:#122b3b;border:1px solid #54788e;border-radius:5px;box-shadow:0 8px 24px #0008}.cp-options[hidden]{display:none!important}.cp-options [role=option],.cp-no-options{display:block;padding:9px 11px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;cursor:pointer}.cp-options [role=option]:hover,.cp-options [role=option][aria-selected=true]{background:#254b60;color:#fff}.cp-no-options{color:#b9cbd6;cursor:default}.cp-combobox>input:focus{outline:2px solid #63d2e9;outline-offset:1px}


/* css/commerce-layout.css */
/* One shared commerce shell; selectors are limited to its seven existing views. */
/* Restore readable icons in all commerce subcategories. */
.commerce-navigation a{display:inline-flex;align-items:center;gap:7px;min-height:42px;font-size:14px!important;padding:9px 12px}
.commerce-navigation .d07-icon{display:inline-block!important;width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.7}
.d07-global-nav .d07-icon{display:inline-block!important;width:20px;height:20px;flex-shrink:0}

body:has(.commerce-screen) .d07-global-nav{min-height:60px;padding-block:4px}
body:has(.commerce-screen) .d07-global-nav .d07-brand img{height:44px!important}
body:is([data-active-view=trade],[data-active-view=routes],[data-active-view=operations],[data-active-view=inventory],[data-active-view=history],[data-active-view=favorites],[data-active-view=logistics]) #section-nav{display:none!important}
body:has(.commerce-screen) .public-workspace{max-width:1600px;padding:10px 20px}
body:has(.commerce-screen) .public-notice{padding:5px 10px;margin-bottom:6px;font-size:12px;border:0;background:transparent}
body:has(.commerce-screen) .public-notice button{padding:5px 9px;min-height:30px}
.commerce-screen{max-width:1600px;margin:auto;background:#0c1b28;color:#e6edf4;padding:12px!important;border-radius:6px}
.commerce-navigation{display:flex;gap:2px;overflow:auto;border-bottom:1px solid #304354;margin:0 0 12px;padding:0 0 4px;scrollbar-width:thin}
.commerce-navigation a{flex-shrink:0;color:#b9ccd8;text-decoration:none;font:500 13px/1.4 system-ui,sans-serif;padding:10px 14px;border-bottom:2px solid transparent}
.commerce-navigation a[aria-current]{color:#f3c95c;border-bottom-color:#f3c95c}
.commerce-navigation a:hover{background:#152a3a;color:#fff}
.commerce-navigation a:focus-visible{outline:2px solid #79d8e9;outline-offset:-2px}
.commerce-screen>.od-heading,.commerce-screen>.wd-heading{margin:0 0 12px!important;padding:4px 0 8px!important;background:none!important;min-height:0!important;border:0!important;box-shadow:none!important}
.commerce-screen>.od-heading h2,.commerce-screen>.wd-heading h1{font-size:22px!important;margin:0!important}
.commerce-screen>.od-heading p,.commerce-screen>.wd-heading p{font-size:13px;margin:4px 0!important}
#view-trade .commerce-screen>.od-heading{display:none!important}
.commerce-screen .od-footer,.commerce-screen .wd-footer{font-size:12px;padding:8px 0!important;margin:8px 0 0!important;background:none!important}
.commerce-screen .od-footer .od-actions{display:inline-flex;gap:6px}
.commerce-screen .cd-art,.commerce-screen .cd-summary-material .cd-art,.commerce-screen .ov-art{display:none}
.commerce-screen .cd-ship img{width:80px;max-height:60px;object-fit:contain}
.commerce-screen .cd-place img{display:none}
.commerce-screen .cd-place{min-height:0;padding:8px}
.commerce-screen .cd-main-operation,.commerce-screen .cd-panel,.commerce-screen .od-card{box-shadow:none;border:1px solid #304354;border-radius:5px;background:#102330}
.commerce-screen .cd-operation-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.commerce-screen .wd-toolbar{gap:10px}
@media(max-width:650px){body:has(.commerce-screen) .public-workspace{padding:8px}.commerce-screen{padding:8px!important}.commerce-navigation a{padding:9px 11px}.public-notice span{font-size:11px}}
body:has(.commerce-screen) .public-notice{margin:0!important;padding:4px 10px!important;min-height:22px}
body:has(.commerce-screen) .public-notice button{display:none}
.commerce-navigation a{padding:8px 10px;font-size:12px}
.commerce-screen .cp-workspace input,.commerce-screen .cp-workspace select{height:32px!important;min-height:32px;padding:5px 8px!important}
.commerce-screen .cp-workspace .cp-tools select{height:27px!important;min-height:27px}
.cp-ticker{max-height:52px}.cp-workspace .cp-tools{margin:5px 0}.cp-workspace .cp-locations{margin:8px 0}.cp-workspace [data-capacity],.cp-workspace [data-source]{margin:3px 0}
.commerce-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.commerce-filters label{display:grid;gap:5px}.commerce-directory h2{font-size:22px;margin:8px 0}.commerce-directory p{color:#a9bdce;font-size:13px}.commerce-directory input,.commerce-directory select,.commerce-directory button,.inventory-inline-entry input,.inventory-inline-entry select,.inventory-inline-entry textarea,.inventory-inline-entry button{background:#172c3d;color:#edf4fa;border:1px solid #3c5264;border-radius:4px;padding:8px;min-width:0;box-sizing:border-box}.commerce-directory button{cursor:pointer}.commerce-directory button:disabled{opacity:.5}.commerce-table{overflow:auto;margin:16px 0}.commerce-table table{width:100%;border-collapse:collapse;font-size:13px}.commerce-table th,.commerce-table td{text-align:left;padding:10px;border-bottom:1px solid #304354}.commerce-table small{display:block;color:#a9bdce}.commerce-table a{color:#91d9ec}.commerce-empty{padding:24px;background:#102330}.commerce-statistics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.commerce-statistics>div{padding:16px;background:#172f40;border-radius:5px}.commerce-statistics strong{display:block;font-size:22px;margin-top:6px}
.inventory-inline-entry{padding:14px;background:#102330;border:1px solid #304354;margin-bottom:16px;border-radius:5px}.inventory-inline-entry form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.inventory-inline-entry label{display:grid;gap:4px;font-size:13px}.inventory-inline-entry h2,.inventory-inline-entry p,.inventory-inline-entry footer,.inventory-inline-entry small{grid-column:1/-1;margin:3px 0}.inventory-inline-entry label:has([name=id]){grid-column:span 2}.inventory-inline-entry [name=id]{min-height:110px}.inventory-inline-entry footer{display:flex;justify-content:flex-end;gap:8px}.inventory-inline-entry [type=submit]{background:#f2c655;color:#15212a}.inventory-inline-entry [data-message]{color:#8cddcf}
@media(max-width:650px){.commerce-filters,.commerce-statistics,.inventory-inline-entry form{grid-template-columns:1fr 1fr}.cp-ticker{max-height:72px}.commerce-filters>label:first-child{grid-column:1/-1}.commerce-screen .cp-workspace input,.commerce-screen .cp-workspace select{min-height:40px}.inventory-inline-entry label:has([name=id]){grid-column:1/-1}}
body:is([data-active-view=trade],[data-active-view=routes],[data-active-view=operations],[data-active-view=inventory],[data-active-view=history],[data-active-view=favorites],[data-active-view=logistics]) .commerce-screen{background:#0c1b28!important;padding:8px!important}
.commerce-screen>.commerce-navigation{margin-bottom:6px}.commerce-screen .cp-workspace form[data-simulator]{padding:10px}.commerce-screen .cp-note{margin:4px 0}.commerce-screen .cp-metrics{padding:10px}.commerce-screen .cp-ticker{max-height:48px}

/* Keep the simulator anchored while the commodity grid is filtered. */
.commerce-screen .cp-ticker{height:48px;min-height:48px;align-content:start}
.commerce-screen .cp-workspace [data-source]{min-height:2.8em;line-height:1.4}
.commerce-screen .cp-workspace [data-warning]{display:block;min-height:1.4em;line-height:1.4}
.commerce-screen .cp-metrics>div{min-height:52px}
@media(max-width:650px){.commerce-screen .cp-ticker{height:72px;min-height:72px;max-height:72px}}
/* Keep the market grid above the simulator with enough room to compare rows. */
.commerce-screen .cp-workspace .cp-ticker{height:clamp(360px,52vh,480px);min-height:360px;max-height:480px;grid-auto-rows:28px;align-content:start;margin-bottom:20px}
.commerce-screen .cp-workspace .cp-ticker button{min-height:28px;height:28px;align-items:center}
@media(max-width:650px){.commerce-screen .cp-workspace .cp-ticker{height:320px;min-height:320px;max-height:320px;grid-auto-rows:36px}.commerce-screen .cp-workspace .cp-ticker button{height:36px;min-height:36px}}

/* Scoped current prices layout. */
.current-price-directory .commerce-filters{padding:16px;background:#102733;border:1px solid #304c5c;border-radius:6px;align-items:end}
.current-price-directory .commerce-filters label{font-size:13px;color:#bdd5e2;min-width:0}
.current-price-directory .commerce-filters input,.current-price-directory .commerce-filters select,.current-price-directory .commerce-filters button{height:40px;width:100%}
.current-price-directory [data-prices-reload]{background:#ffce32;color:#10212d;font-weight:700}
.current-price-directory .commerce-table{border:1px solid #304c5c;border-radius:6px;max-height:65vh;scrollbar-width:thin}
.current-price-directory thead th{position:sticky;top:0;background:#123346;z-index:1;white-space:nowrap;text-transform:none}
.current-price-directory tbody tr:hover{background:#153344}
.current-price-directory td,.current-price-directory tbody th{vertical-align:middle;line-height:1.5}
.current-price-directory td:nth-child(2){min-width:210px;max-width:320px}
.current-price-value{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.current-price-side{display:inline-block;white-space:nowrap;padding:4px 8px;border:1px solid currentColor;border-radius:4px;font-size:12px}
.current-price-side.is-buy{color:#ffcf32;background:#3a3215}
.current-price-side.is-sell{color:#41d9ef;background:#103441}
.current-price-directory .commerce-table a{display:inline-block;border:1px solid #3c6174;border-radius:4px;padding:6px 10px;text-decoration:none}
.current-price-directory .cp-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px}
@media(max-width:1100px){.current-price-directory .commerce-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.current-price-directory .commerce-filters>label:first-child{grid-column:1/-1}}
@media(max-width:550px){.current-price-directory .commerce-filters{grid-template-columns:1fr}}

/* Stable price columns: room for terminal names and aligned numeric values. */
.current-price-directory .commerce-table table{table-layout:fixed;min-width:1080px;font-size:13px}
.current-price-directory .commerce-table th,.current-price-directory .commerce-table td{padding:10px 12px;box-sizing:border-box;overflow-wrap:break-word}
.current-price-directory .commerce-table thead th{white-space:normal;line-height:1.35;font-size:12px;color:#bad6e5;height:48px}
.current-price-directory .commerce-table th:nth-child(1){width:13%}
.current-price-directory .commerce-table th:nth-child(2){width:27%}
.current-price-directory .commerce-table th:nth-child(3){width:12%}
.current-price-directory .commerce-table th:nth-child(4){width:13%;text-align:right}
.current-price-directory .commerce-table th:nth-child(5){width:11%;text-align:right}
.current-price-directory .commerce-table th:nth-child(6){width:10%}
.current-price-directory .commerce-table th:nth-child(7){width:7%;text-align:center}
.current-price-directory .commerce-table th:nth-child(8){width:7%;text-align:center}
.current-price-directory .commerce-table td:nth-child(4),.current-price-directory .commerce-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
.current-price-directory .commerce-table td:nth-child(7),.current-price-directory .commerce-table td:nth-child(8){text-align:center}
.current-price-directory .commerce-table tbody th{font-weight:600}
.current-price-directory .commerce-table tbody tr:nth-child(even){background:#102330}
.current-price-directory .commerce-table tbody tr:hover{background:#193748}
.current-price-directory .commerce-table small{font-size:11px;margin-top:3px;line-height:1.35}
.current-price-directory .commerce-table time{white-space:nowrap;font-variant-numeric:tabular-nums}
.current-price-directory .commerce-table a{padding:6px 8px;white-space:nowrap}
.current-price-directory .commerce-table td:nth-child(2){min-width:0;max-width:none}

/* Short pages instead of a long independently scrolling list. */
.current-price-directory .commerce-table{max-height:none;overflow-x:auto}
.current-price-directory .price-page-size{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:13px;color:#bad6e5}
.current-price-directory .cp-actions{flex-wrap:wrap;padding:8px 0}
.current-price-directory .commerce-table th,.current-price-directory .commerce-table td{padding-top:8px;padding-bottom:8px}


/* css/mobile-experience.css */
/* NexoD07 mobile workspace. Loaded after the existing section styles. */
.nd07-mobile-nav-select{display:none}

@media(min-width:761px){
  .nd07-mobile-filter-panel,.nd07-mobile-filter-fields,.nd07-mobile-catalog{display:contents}
  .nd07-mobile-filter-panel>summary,.nd07-mobile-catalog>summary{display:none}
}

@media(max-width:760px){
  html body #workspace>.view.active{background-image:none!important;background-attachment:scroll!important}
  :root{
    --nd07-ui-size:16px;
    --nd07-control-height:44px;
    --nd07-page-gap:12px;
  }
  body{font-size:15px;line-height:1.5;background-attachment:scroll}
  body .app-shell{display:block;min-width:0}
  body .main-content,body .view,body .workspace{min-width:0;max-width:100%}
  html body #workspace.workspace{padding:12px!important}
  html body .view.active{padding-inline:0}
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{
    font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box;
  }
  button,summary{min-height:44px;touch-action:manipulation}
  button{white-space:normal}
  a,button,input,select,textarea,summary{-webkit-tap-highlight-color:#4ed8f52b}
  :focus-visible{outline-offset:3px}

  /* The main menu remains available behind its existing accessible toggle. */
  html body .d07-global-nav{
    gap:6px!important;min-height:64px;padding:6px 12px!important;
    align-items:center;box-shadow:none;background:#0e1b24;
  }
  .d07-global-nav .d07-brand{margin:0!important;padding:0!important;gap:6px}
  .d07-global-nav .d07-brand img{width:96px!important;height:48px!important}
  .d07-global-nav .d07-logo{font-size:26px}
  .d07-global-nav .d07-brand-name{font-size:12px;letter-spacing:1px}
  .d07-global-nav .d07-brand-name small{font-size:9px;letter-spacing:.5px}
  .d07-global-nav .nd07-menu-toggle{padding:8px 10px!important;min-height:44px}
  .d07-global-nav .d07-account-menu{margin-left:0!important;min-width:0}
  .d07-global-nav .d07-account-menu>summary{padding:8px!important}
  html body .d07-global-nav .d07-account-menu{flex:0 0 44px;min-width:44px;margin:0!important}
  html body .d07-global-nav .nc-account-trigger{width:44px;min-width:44px;padding:4px!important;justify-content:center}
  .d07-global-nav .nc-account-trigger .nc-trigger-label,.d07-global-nav .nc-account-trigger .nc-trigger-chevron{display:none!important}
  .d07-global-nav.nd07-menu-open .d07-area-links{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  }
  .d07-global-nav .d07-area-links>a{min-height:48px;padding:10px!important}
  .d07-global-nav details>div{max-width:calc(100vw - 24px);box-sizing:border-box}
  .d07-global-nav .d07-version{flex-basis:auto;font-size:11px}
  html body:has(.d07-global-nav):not([data-d07-role="guest"]) .d07-global-nav{
    height:auto!important;min-height:64px!important;padding-block:6px!important;
  }
  html body:has(.d07-global-nav):not([data-d07-role="guest"]) .d07-brand img{height:48px!important}

  /* A select only replaces a navigation after JavaScript has built it. */
  .nd07-mobile-nav-select{
    display:block;width:100%;min-width:0;margin:8px 0 12px;
    color:#bdd0dc;font-size:13px;line-height:1.4;
  }
  select.nd07-mobile-nav-select,.nd07-mobile-nav-select select{
    display:block;width:100%;margin-top:5px;min-height:44px;padding:10px;
    color:#edf3f7;background:#102631;border:1px solid #395b69;border-radius:6px;
  }
  .nd07-mobile-nav-ready{display:none!important}
  html body #hangar-main .workspace-head nav.nd07-mobile-nav-ready,
  html body #sections.nd07-mobile-nav-ready{display:none!important}
  html body:has(.d07-global-nav) #section-nav.nd07-mobile-nav-ready,
  html body:has(.d07-global-nav) .view.active>[data-evolution]>.evo-nav.nd07-mobile-nav-ready{display:none!important}
  .section-nav-shell:has(.nd07-mobile-nav-select) .nd07-section-picker{display:none!important}
  .section-nav-shell:has(.nd07-mobile-nav-select){padding:8px!important;margin:0 12px 8px!important}
  .section-nav-shell .nd07-mobile-nav-select{margin:0}
  .wd-screen .wd-nav:not(.nd07-mobile-nav-ready),.commerce-navigation:not(.nd07-mobile-nav-ready){
    flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:4px;
  }
  .wd-screen .wd-nav:not(.nd07-mobile-nav-ready)>*,.commerce-navigation:not(.nd07-mobile-nav-ready)>*{
    flex:0 0 auto;min-height:44px;
  }

  html body :is(.wd-screen,.od-screen,.commerce-screen){
    padding:0!important;min-width:0;background-image:none!important;background-color:#0b151d!important;
  }
  html body .view.active :is(.wd-screen,.od-screen,.commerce-screen){
    background-image:none!important;background-color:#0b151d!important;
  }
  .wd-screen .wd-heading,.od-screen .od-heading{gap:8px;margin:12px 0 16px}
  .wd-screen h1,.od-screen h1{font-size:25px!important;line-height:1.25;letter-spacing:0}
  .wd-screen .wd-heading p,.od-screen .od-heading p{font-size:15px;line-height:1.45;margin:6px 0 0}
  .wd-screen .wd-heading .wd-badge{font-size:11px;padding:3px 7px}
  .wd-screen :is(.wd-grid,.wd-grid.three,.wd-cards),.od-screen :is(.od-grid,.od-grid.equal){
    grid-template-columns:minmax(0,1fr)!important;gap:12px;
  }
  .wd-screen :is(.wd-panel,.wd-card),.od-screen .od-card{
    padding:12px!important;margin-bottom:12px;border-radius:7px;box-shadow:none;
  }
  .wd-screen h2,.od-screen .od-card>h2{font-size:19px!important;margin-bottom:12px;padding-bottom:10px}
  .wd-screen h3{font-size:17px}
  .wd-screen .wd-row,.od-screen .od-row{padding:10px 0;gap:8px;flex-wrap:wrap}
  .wd-screen .wd-row>*,.od-screen .od-row>*{min-width:0;max-width:100%}
  .wd-screen .wd-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}
  .wd-screen .wd-kpis>div{padding:9px 6px;font-size:12px;overflow-wrap:anywhere}
  .wd-screen .wd-kpis strong{font-size:20px;line-height:1.35}
  .wd-screen .wd-actions,.od-screen .od-actions{gap:8px;margin-top:12px}
  .wd-screen .wd-actions>*,.od-screen .od-actions>*{min-height:44px;max-width:100%}
  .wd-screen [data-wd-body]>.wd-actions>button{flex:1 1 140px;min-width:0;font-size:14px!important}
  .wd-screen .wd-tabs,.evo-nav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}
  .wd-screen .wd-tabs>*,.evo-nav>*{flex:0 0 auto;min-height:44px}
  .wd-screen .wd-panel .wd-list{max-height:none;overflow:visible;padding:0}
  .wd-screen .wd-list>button{padding:10px;gap:10px}
  .wd-screen .wd-list strong{font-size:16px}
  .wd-screen .wd-footer{align-items:flex-start;font-size:12px;gap:8px;margin-top:16px}
  .wd-screen .wd-footer .wd-actions{margin:0}
  .wd-screen .wd-note{padding:10px 12px;font-size:13px;line-height:1.5}
  #view-inventory .wd-hero .ind-inventory-art.large{width:72px;max-width:72px;flex:0 0 72px}
  #view-inventory .wd-hero .ind-inventory-art.large img{width:72px;height:72px}
  #view-inventory .wd-hero .ind-inventory-art figcaption{max-width:72px;font-size:11px;overflow-wrap:anywhere}
  #view-inventory .wd-hero>div{min-width:0;flex:1}
  #view-inventory .ind-inventory-identity{align-items:flex-start;min-width:0}
  #view-inventory .ind-inventory-identity>button{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}

  /* Search stays outside the disclosure; the section owns the filter controls. */
  .nd07-mobile-filter-panel,.nd07-mobile-catalog{
    display:block;width:100%;min-width:0;box-sizing:border-box;
    border:1px solid #294752;border-radius:7px;background:#10232d;margin:8px 0 12px;
  }
  .nd07-mobile-filter-panel>summary,.nd07-mobile-catalog>summary{
    display:list-item;padding:11px 12px;color:#d7e7ef;cursor:pointer;
    font-size:14px;line-height:1.5;overflow-wrap:anywhere;
  }
  .nd07-mobile-filter-panel[open]>summary,.nd07-mobile-catalog[open]>summary{border-bottom:1px solid #294752}
  html body .industry-layout.industrial{grid-template-columns:minmax(0,1fr)!important;gap:12px}
  .nd07-mobile-category-panel .industry-sidebar{border:0;border-radius:0}
  .nd07-mobile-category-panel .industry-sidebar>h2,.nd07-mobile-category-panel .industry-sidebar>h3,.nd07-mobile-category-panel .industry-cover{display:none}
  .nd07-mobile-filter-panel :is(.wd-toolbar,.od-toolbar,.commerce-filters,.bp-toolbar){
    display:grid;grid-template-columns:minmax(0,1fr)!important;padding:12px;margin:0;border:0;background:transparent;gap:10px;
  }
  .nd07-mobile-filter-panel label{min-width:0;width:100%;max-width:none;flex-direction:column;align-items:stretch}
  .nd07-mobile-filter-panel :is(input,select,button){width:100%;min-width:0}
  .nd07-mobile-filter-panel .wd-toolbar>button{justify-self:start}
  .wd-toolbar,.od-toolbar{gap:10px;padding:10px;margin-bottom:12px}
  .wd-toolbar>label,.od-toolbar>label{min-width:0;max-width:100%;flex-basis:100%}
  .wd-toolbar:has(>.nd07-mobile-filter-panel),.bp-toolbar:has(>.nd07-mobile-filter-panel){
    display:grid;grid-template-columns:minmax(0,1fr);gap:8px;
    padding:0;border:0;background:transparent;
  }
  .wd-toolbar>.nd07-mobile-filter-panel,.bp-toolbar>.nd07-mobile-filter-panel{margin:0}
  .nd07-mobile-filter-panel .nd07-mobile-filter-fields{
    display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px;padding:12px;margin:0;
  }

  /* Opt-in records retain their column controls and every cell/action. */
  .nd07-mobile-records{max-width:100%;overflow:visible!important}
  .nd07-mobile-records table,.nd07-mobile-records tbody{
    display:block;width:100%;min-width:0!important;max-width:100%;table-layout:auto;
  }
  .nd07-mobile-records thead,.nd07-mobile-records thead tr{display:flex;flex-wrap:wrap;width:100%;gap:6px}
  .nd07-mobile-records thead{margin-bottom:10px}
  .nd07-mobile-records thead th{display:block;max-width:100%;padding:0;border:0;background:transparent;font-size:12px}
  .nd07-mobile-records thead button{padding:8px!important;font-size:12px!important;border:1px solid #395b69!important;border-radius:5px}
  .nd07-mobile-records tbody tr{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;
    margin-bottom:10px;padding:12px;border:1px solid #294752;border-radius:7px;background:#102631;
  }
  .nd07-mobile-records tbody tr.selected{border-color:#4ed8f5;outline:1px solid #4ed8f5;outline-offset:-1px}
  .nd07-mobile-records tbody :is(th,td){
    display:block;min-width:0;max-width:none!important;width:auto!important;
    padding:0!important;border:0!important;text-align:left!important;white-space:normal;overflow-wrap:anywhere;font-size:14px!important;
  }
  .nd07-mobile-records tbody th,.nd07-mobile-records tbody tr>td:first-child{grid-column:1/-1}
  .nd07-mobile-records tbody td[data-label]::before{
    content:attr(data-label);display:block;color:#a9bbc6;font-size:12px;line-height:1.4;margin-bottom:2px;
  }
  .nd07-mobile-records tbody button{max-width:100%;white-space:normal}
  .nd07-mobile-records tbody small{font-size:12px;line-height:1.4}

  /* A compact item still shows its canonical name, state and variant. */
  .bp-library .bp-toolbar{gap:8px;margin:12px 0}
  .bp-library .bp-toolbar>label{min-width:0;flex:1 1 100%}
  .bp-library .bp-toolbar input{width:100%;min-width:0}
  .bp-library .bp-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .bp-grid>.bp-card{flex-direction:row;align-items:stretch;min-width:0}
  .bp-grid>.bp-card>img,.bp-grid>.bp-card>.bp-art{
    width:88px;height:88px;min-width:88px;flex:0 0 88px;align-self:center;margin:8px;padding:6px;border-radius:5px;
  }
  .bp-grid>.bp-card>div:last-child{min-width:0;padding:10px 10px 10px 0;gap:6px}
  .bp-grid .bp-card h3{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
  /* Recipe identifiers and counts remain in the full item detail. */
  .bp-grid>.bp-card .bp-status+small{display:none}
  .bp-grid .bp-card button{padding:8px;min-height:44px;align-self:stretch}
  .bp-library footer{gap:8px;flex-wrap:wrap;font-size:13px}
  .bp-dialog .bp-hero{gap:12px;align-items:flex-start;flex-wrap:wrap}
  .bp-dialog .bp-hero img{width:96px;height:96px}
  .bp-dialog .bp-review-row{grid-template-columns:minmax(0,1fr)}
  .bp-match-grid{grid-template-columns:minmax(0,1fr)}
  .bp-geometry-options{grid-template-columns:minmax(0,1fr)}

  .commerce-screen .cp-workspace :is(.cp-fields,.cp-locations,.cp-searchbar){grid-template-columns:minmax(0,1fr)!important;gap:10px}
  .commerce-screen .cp-workspace .cp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;padding:10px}
  body .commerce-screen .cp-workspace .cp-ticker{height:auto!important;min-height:0!important;max-height:176px!important;grid-auto-rows:44px}
  body .nd07-mobile-catalog .cp-workspace .cp-ticker,body .commerce-screen .nd07-mobile-catalog .cp-ticker{max-height:320px!important;margin:0!important;padding:10px}
  .commerce-screen .cp-workspace .cp-tools small{text-align:left}
  .commerce-screen .cp-workspace .cp-actions{gap:8px;flex-wrap:wrap}

  html body dialog{
    width:calc(100vw - 16px);max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 24px)!important;padding:12px!important;overflow:auto;box-sizing:border-box;
  }
  dialog :is(header,footer,.wd-dialog-head,.bp-actions){gap:8px;flex-wrap:wrap;min-width:0}
  dialog :is(input,select,textarea){min-width:0;max-width:100%}
  dialog :is(form,fieldset,.form-grid,.wd-legacy,.bp-actions){min-width:0;max-width:100%;box-sizing:border-box}
  .bp-dialog [data-modal-body]{max-height:none;overflow:visible;padding:8px 0}
  .wd-dialog>.wd-dialog-head{top:-12px;padding:10px 0}
  body:has(#view-fleet.active) iframe[data-hangar-nuevo]{min-height:320px!important}
  html body #workspace>.view.active iframe[data-nd07-original-height],
  html body .public-workspace iframe[data-nd07-original-height]{height:var(--nd07-mobile-content-height,auto)!important;max-height:none!important}
}

