:root {
    --bg: #07111f;
    --bg-alt: #0d1d31;
    --panel: rgba(12, 23, 38, 0.86);
    --panel-soft: rgba(20, 36, 58, 0.78);
    --line: rgba(112, 169, 255, 0.18);
    --text: #edf4ff;
    --muted: #9eb0c9;
    --accent: #7fd5ff;
    --accent-strong: #5ba7ff;
    --warning: #ffbf6b;
    --success: #62d9a5;
    --danger: #ff7e88;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1440px;
    --font-display: "Eurostile", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(91, 167, 255, 0.16), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(255, 191, 107, 0.12), transparent 22%),
        linear-gradient(180deg, #020712 0%, #06101d 45%, #040b14 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.space-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.75;
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 10;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0 32px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(4, 10, 20, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 320px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(127, 213, 255, 0.45);
    background: radial-gradient(circle at 30% 30%, rgba(127, 213, 255, 0.55), rgba(22, 42, 71, 0.55));
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-tagline {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.topbar-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    white-space: nowrap;
    transition: 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(127, 213, 255, 0.12);
}

.page-main {
    padding-bottom: 48px;
}

.page-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    min-height: auto;
    padding: 12px 0 24px;
}

.page-hero-compact {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 6px;
}

.page-hero-home,
.page-hero-portal {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 34px;
    min-height: 54vh;
}

.hero-copy,
.hero-visual,
.feature-card,
.panel,
.stat-card {
    opacity: 1;
    transform: none;
    transition: none;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
}

h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.35rem, 1.7vw, 2rem);
}

h3 {
    font-size: 1.05rem;
}

.hero-text,
.feature-card p,
.panel p,
.site-footer p,
.legal-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.page-hero-compact .hero-copy {
    max-width: 860px;
}

.page-hero-compact h1 {
    max-width: 18ch;
    font-size: clamp(1.7rem, 2.35vw, 2.7rem);
}

.page-hero-compact .hero-text {
    max-width: 68ch;
}

.page-hero-onboarding {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
    align-items: start;
}

.page-hero-home h1,
.page-hero-portal h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 4.2vw, 4.4rem);
}

.hero-cosmos {
    position: relative;
}

.marketing-dual-view {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.marketing-viewer {
    min-height: 420px;
}

.marketing-strip {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.marketing-chip {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.marketing-chip span {
    color: var(--muted);
    line-height: 1.5;
}

.onboarding-hero-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.onboarding-hero-card img {
    width: 100%;
    max-height: 228px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(127, 213, 255, 0.12);
}

.onboarding-hero-card-copy {
    display: grid;
    gap: 12px;
}

.hero-brief-list li {
    color: var(--muted);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-compact {
    min-height: 40px;
    padding: 0 16px;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #02101d;
    font-weight: 700;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.button-danger {
    background: rgba(255, 126, 136, 0.14);
    border-color: rgba(255, 126, 136, 0.26);
    color: #ffdbe0;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    max-width: 132px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planet-card,
.panel,
.stat-card,
.feature-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.planet-card {
    padding: 28px;
    min-height: 360px;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 210, 120, 0.16), transparent 20%),
        radial-gradient(circle at 20% 20%, rgba(127, 213, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(15, 29, 48, 0.95), rgba(8, 15, 26, 0.95));
}

.metric-list,
.detail-list,
.resource-list,
.queue-list,
.event-list,
.message-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.metric-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.metric-list li,
.detail-list li,
.resource-list li,
.queue-list li,
.event-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(158, 176, 201, 0.12);
}

.metric-list li:last-child,
.detail-list li:last-child,
.resource-list li:last-child,
.queue-list li:last-child,
.event-list li:last-child {
    border-bottom: none;
}

.metric-list span,
.detail-list span,
.muted-label,
.panel-note {
    color: var(--muted);
}

.detail-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.22);
    color: var(--accent);
    background: rgba(127, 213, 255, 0.08);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-pill-soft {
    color: var(--warning);
    border-color: rgba(255, 191, 107, 0.22);
    background: rgba(255, 191, 107, 0.08);
}

.content-section {
    padding: 30px 0 44px;
}

.section-heading {
    margin-bottom: 24px;
}

.grid-cards {
    display: grid;
    gap: 18px;
}

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

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

.feature-card,
.panel {
    padding: 24px;
}

.panel-muted {
    background: rgba(20, 36, 58, 0.78);
}

.panel-heading,
.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.panel-step-intro {
    margin: -8px 0 20px;
    max-width: 76ch;
    color: var(--muted);
    line-height: 1.7;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
}

.overview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card-compact strong {
    font-size: 1.35rem;
}

.stat-card-compact small,
.orbit-copy span,
.orbit-copy small,
.fleet-card p,
.fleet-card small,
.blueprint-card small,
.planet-archetype-card small,
.asset-chip small {
    color: var(--muted);
}

.planet-stage canvas {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.viewer-frame {
    position: relative;
    isolation: isolate;
    min-height: 320px;
    border-radius: calc(var(--radius-xl) - 8px);
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        radial-gradient(circle at 30% 22%, rgba(127, 213, 255, 0.12), transparent 24%),
        radial-gradient(circle at 72% 18%, rgba(255, 191, 107, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(3, 9, 18, 0.92), rgba(7, 17, 31, 0.86));
    overflow: hidden;
    cursor: grab;
}

.viewer-frame::before,
.viewer-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.viewer-frame::before {
    background:
        radial-gradient(circle at 22% 18%, rgba(127, 213, 255, 0.12), transparent 18%),
        radial-gradient(circle at 78% 20%, rgba(255, 191, 107, 0.18), transparent 16%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
    mix-blend-mode: screen;
}

.viewer-frame::after {
    background-image:
        linear-gradient(0deg, rgba(127, 213, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 213, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 42px, 42px 100%;
    opacity: 0.26;
}

.viewer-frame canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}

.viewer-frame.is-dragging {
    cursor: grabbing;
}

.viewer-interaction-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.18);
    background: rgba(3, 10, 19, 0.72);
    color: #d7ebff;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.viewer-frame-planet {
    min-height: 560px;
}

.viewer-frame-planet::before {
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 219, 163, 0.28), transparent 18%),
        radial-gradient(circle at 20% 84%, rgba(127, 213, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.viewer-frame-ship {
    min-height: 460px;
}

.viewer-frame-ship::before {
    background:
        radial-gradient(circle at 50% 84%, rgba(127, 213, 255, 0.22), transparent 24%),
        radial-gradient(circle at 78% 16%, rgba(255, 191, 107, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.viewer-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: inherit;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-stack,
.slider-stack {
    display: grid;
    gap: 18px;
}

.trait-columns,
.command-grid,
.system-grid,
.fleet-grid,
.planet-archetype-grid,
.blueprint-grid {
    display: grid;
    gap: 18px;
}

.trait-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

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

.stage-meta-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.stage-meta-card span,
.stage-meta-card small {
    color: var(--muted);
}

.stage-meta-card strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-stack {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.trend-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    cursor: help;
}

.trend-chip-up {
    background: rgba(98, 217, 165, 0.12);
    color: #c8ffe5;
}

.trend-chip-down {
    background: rgba(255, 126, 136, 0.12);
    color: #ffd7dc;
}

.trend-chip-neutral {
    background: rgba(127, 213, 255, 0.12);
    color: #d4f1ff;
}

.hangar-panel {
    margin-top: 22px;
}

.game-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
}

.game-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    cursor: pointer;
    transition: 160ms ease;
}

.game-tab:hover,
.game-tab.is-active {
    color: var(--text);
    border-color: rgba(127, 213, 255, 0.34);
    background: rgba(127, 213, 255, 0.1);
}

.game-panel-section {
    display: none;
}

.game-panel-section.is-active {
    display: block;
}

.hangar-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
    gap: 20px;
}

.ship-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.ship-card,
.fleet-card-action {
    cursor: pointer;
}

.ship-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ship-card:hover,
.fleet-card-action:hover {
    transform: translateY(-1px);
}

.ship-card.is-selected {
    border-color: rgba(127, 213, 255, 0.42);
    background: rgba(127, 213, 255, 0.08);
}

.ship-card-class {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.ship-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.stat-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.ship-focus-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(260px, 0.85fr);
    gap: 18px;
}

.ship-detail-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: calc(var(--radius-xl) - 6px);
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.03);
}

.ship-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.system-grid,
.planet-archetype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
}

.tag-list li,
.blueprint-relations {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    color: var(--muted);
}

.has-tooltip {
    position: relative;
    cursor: help;
}

.info-dot {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(127, 213, 255, 0.28);
    background: rgba(127, 213, 255, 0.1);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: min(280px, calc(100vw - 40px));
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(4, 10, 20, 0.96);
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.55;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 6;
}

.has-tooltip:hover::after,
.has-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tag-list-positive li {
    border-color: rgba(98, 217, 165, 0.22);
    background: rgba(98, 217, 165, 0.08);
    color: #d3ffea;
}

.tag-list-warning li {
    border-color: rgba(255, 191, 107, 0.22);
    background: rgba(255, 191, 107, 0.08);
    color: #ffe3bf;
}

.orbit-card,
.planet-archetype-card,
.blueprint-card,
.fleet-card {
    border: 1px solid rgba(158, 176, 201, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
}

.orbit-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    color: var(--text);
    text-align: left;
}

.orbit-card img,
.planet-archetype-card img {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    object-fit: contain;
}

.orbit-card.is-selected {
    border-color: rgba(127, 213, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(127, 213, 255, 0.18);
}

.orbit-copy {
    display: grid;
    gap: 4px;
}

.fleet-grid {
    gap: 12px;
}

.fleet-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.fleet-emblem {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(127, 213, 255, 0.26);
    background: radial-gradient(circle at 30% 30%, rgba(127, 213, 255, 0.32), rgba(36, 54, 81, 0.72));
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}

.fleet-card img,
.asset-chip img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.fleet-card p,
.fleet-card small,
.asset-chip {
    margin: 0;
}

.asset-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-list-compact li {
    padding: 8px 0;
}

.encounter-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(7, 17, 31, 0.42);
    margin-bottom: 16px;
}

.encounter-card .eyebrow {
    margin-bottom: 10px;
}

.timeline-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-entry {
    display: grid;
    gap: 4px;
}

.timeline-entry span,
.timeline-entry small {
    color: var(--muted);
}

.market-trend {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.market-trend-up {
    background: rgba(98, 217, 165, 0.1);
    color: var(--success);
}

.market-trend-down {
    background: rgba(255, 126, 136, 0.1);
    color: var(--danger);
}

.resource-list li,
.queue-list li,
.event-list li {
    align-items: flex-start;
}

.resource-meta,
.queue-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.queue-bar {
    width: 120px;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.queue-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warning));
}

.inventory-card-grid,
.mini-stat-grid,
.research-lane-grid,
.notification-stack,
.journal-list,
.analytics-grid,
.brief-grid {
    display: grid;
    gap: 14px;
}

.inventory-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inventory-card,
.journal-entry,
.notification-card,
.analytics-card,
.brief-card,
.leader-card,
.species-card,
.starter-ship-card {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.inventory-card,
.journal-entry,
.leader-card,
.species-card,
.starter-ship-card {
    cursor: pointer;
}

.inventory-card:hover,
.journal-entry:hover,
.notification-card:hover,
.leader-card:hover,
.species-card:hover,
.starter-ship-card:hover {
    transform: translateY(-1px);
}

.inventory-card.is-selected,
.journal-entry.is-selected,
.leader-card.is-selected,
.species-card.is-selected,
.starter-ship-card.is-selected,
.fleet-card.is-selected {
    border-color: rgba(127, 213, 255, 0.42);
    background: rgba(127, 213, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(127, 213, 255, 0.14);
}

.inventory-card strong,
.journal-entry strong,
.analytics-card strong,
.brief-card strong {
    font-size: 1rem;
}

.inventory-card p,
.journal-entry small,
.analytics-card small,
.brief-card p,
.leader-card small,
.species-card p,
.starter-ship-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.inventory-card-kicker,
.leader-card-title {
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inventory-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

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

.mini-stat-card,
.analytics-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.mini-stat-card span,
.mini-stat-card small,
.analytics-card span,
.analytics-card small {
    color: var(--muted);
}

.mini-stat-card strong,
.analytics-card strong {
    font-size: 1.28rem;
    font-family: var(--font-display);
}

.timeline-item-criticality-2::before {
    background: var(--warning);
}

.timeline-item-criticality-3::before {
    background: var(--danger);
}

.research-lane {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.research-node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.research-node {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(4, 10, 20, 0.68);
}

.research-node strong,
.research-node span,
.research-node em {
    display: block;
}

.research-node small,
.research-node em {
    color: var(--muted);
}

.research-node em {
    font-style: normal;
}

.research-node-unlocked {
    border-color: rgba(98, 217, 165, 0.24);
    background: rgba(98, 217, 165, 0.08);
}

.research-node-available {
    border-color: rgba(127, 213, 255, 0.24);
    background: rgba(127, 213, 255, 0.08);
}

.research-node-locked {
    opacity: 0.78;
}

.journal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(280px, 0.9fr) minmax(360px, 1.24fr);
    gap: 18px;
}

.notification-card {
    gap: 8px;
}

.notification-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-card p,
.notification-card small {
    margin: 0;
    color: var(--muted);
}

.notification-card-1 {
    border-color: rgba(127, 213, 255, 0.14);
}

.notification-card-2 {
    border-color: rgba(255, 191, 107, 0.22);
    background: rgba(255, 191, 107, 0.08);
}

.notification-card-3 {
    border-color: rgba(255, 126, 136, 0.24);
    background: rgba(255, 126, 136, 0.08);
}

.journal-hero-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(127, 213, 255, 0.12);
    margin-bottom: 16px;
}

.journal-article p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.onboarding-shell,
.onboarding-form,
.onboarding-grid,
.onboarding-ship-layout,
.scan-report,
.scan-sequence,
.onboarding-name-box {
    display: grid;
    gap: 18px;
}

.onboarding-grid {
    grid-template-columns: 1fr;
}

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

.onboarding-panel-ship .onboarding-ship-layout {
    grid-template-columns: minmax(300px, 0.76fr) minmax(420px, 1.24fr);
    align-items: start;
}

.onboarding-panel-ship .ship-choice-grid {
    align-content: start;
}

.onboarding-panel-ship .ship-focus-panel {
    grid-template-columns: minmax(320px, 0.98fr) minmax(300px, 1.02fr);
    align-items: stretch;
}

.onboarding-panel-ship .viewer-frame-ship {
    min-height: 380px;
}

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

.species-grid,
.ship-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.species-card-header {
    display: grid;
    gap: 4px;
}

.modifier-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.modifier-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(158, 176, 201, 0.12);
}

.modifier-list li:last-child {
    border-bottom: none;
}

.scan-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.04fr) minmax(320px, 0.96fr);
    gap: 18px;
    align-items: start;
}

.scan-viewer-shell {
    position: relative;
}

.scan-viewer-placeholder {
    position: absolute;
    inset: 24px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 20px;
    border-radius: calc(var(--radius-xl) - 10px);
    border: 1px solid rgba(127, 213, 255, 0.14);
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.08) 0%, rgba(5, 12, 22, 0.76) 100%);
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.scan-viewer-placeholder strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: 0.05em;
}

.scan-viewer-placeholder p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.scan-viewer-placeholder.is-hidden {
    opacity: 0;
    transform: translateY(12px);
}

.scan-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.scan-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warning));
    transition: width 220ms ease;
}

.scan-report-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.scan-report {
    align-content: start;
}

.onboarding-actions {
    margin-top: 0;
}

.suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.is-hidden {
    display: none !important;
}

.notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    appearance: none;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.notification-button:hover {
    transform: translateY(-1px);
    border-color: rgba(127, 213, 255, 0.32);
}

.notification-button-label {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notification-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(127, 213, 255, 0.16);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.notification-button.is-empty .notification-count {
    background: rgba(158, 176, 201, 0.16);
    color: var(--muted);
}

.notification-button.has-urgent {
    border-color: rgba(255, 126, 136, 0.36);
    background: rgba(255, 126, 136, 0.08);
    animation: urgentPulse 1.2s ease-in-out infinite;
}

.notification-shell {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(420px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(4, 10, 20, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.notification-panel.is-open {
    display: grid;
    gap: 14px;
}

.notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-panel-header small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.5;
}

.notification-panel-list {
    display: grid;
    gap: 10px;
}

.notification-panel-item,
.notification-panel-empty {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.notification-panel-item span,
.notification-panel-item small,
.notification-panel-empty {
    color: var(--muted);
    line-height: 1.55;
}

.notification-panel-item-2 {
    border-color: rgba(255, 191, 107, 0.22);
    background: rgba(255, 191, 107, 0.08);
}

.notification-panel-item-3 {
    border-color: rgba(255, 126, 136, 0.24);
    background: rgba(255, 126, 136, 0.08);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    width: min(calc(100% - 24px), 1080px);
    transform: translate(-50%, 24px);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background: rgba(4, 10, 20, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.cookie-banner-content p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

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

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

.brief-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.brief-card-meta,
.analytics-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.ip-log-list {
    display: grid;
    gap: 12px;
}

.ip-log-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(158, 176, 201, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.ip-log-item strong,
.ip-log-item span,
.ip-log-item small {
    display: block;
}

.ip-log-item small,
.brief-card small {
    color: var(--muted);
}

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

@media (max-width: 1180px) {
    .topbar {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand-lockup {
        max-width: 260px;
    }

    .brand-tagline,
    .notification-button-label {
        display: none;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.94rem;
    }

    .user-chip {
        max-width: 116px;
    }
}

@keyframes urgentPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 136, 0.18);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 126, 136, 0);
    }
}

.admin-layout,
.form-layout,
.legal-grid,
.admin-grid {
    display: grid;
    gap: 18px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 2rem;
    font-family: var(--font-display);
}

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

.form-layout {
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.6fr);
}

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

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form label,
.slider-field {
    display: grid;
    gap: 8px;
}

.stack-form input,
.slider-field input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(4, 10, 20, 0.72);
    color: var(--text);
}

.message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
}

.message-success {
    background: rgba(98, 217, 165, 0.12);
    border: 1px solid rgba(98, 217, 165, 0.3);
}

.message-error {
    background: rgba(255, 126, 136, 0.12);
    border: 1px solid rgba(255, 126, 136, 0.3);
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
}

.panel-table th,
.panel-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgba(158, 176, 201, 0.12);
}

.panel-table th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-table .action-row {
    margin-top: 0;
    gap: 8px;
}

.planet-archetype-card,
.blueprint-card {
    padding: 16px;
}

.concept-showcase {
    display: grid;
    gap: 18px;
}

.concept-showcase-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
}

.concept-card img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
}

.concept-card p {
    margin: 8px 0 0;
}

.planet-archetype-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.planet-archetype-card p,
.blueprint-card p {
    margin: 8px 0;
}

.blueprint-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
}

.status-online {
    background: var(--success);
}

.status-alert {
    background: var(--warning);
}

.slider-field output {
    color: var(--accent);
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 52px;
    border-top: 1px solid rgba(158, 176, 201, 0.12);
}

.footer-title {
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .page-hero,
    .site-footer {
        flex-direction: column;
    }

    .topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero,
    .game-layout,
    .overview-strip,
    .command-grid,
    .stage-meta-grid,
    .hangar-layout,
    .ship-focus-panel,
    .marketing-dual-view,
    .concept-showcase-compact,
    .form-layout,
    .admin-grid,
    .legal-grid,
    .grid-cards-2,
    .grid-cards-3,
    .admin-stats,
    .analytics-grid,
    .brief-grid,
    .system-grid,
    .planet-archetype-grid,
    .trait-columns,
    .ship-catalog-grid,
    .mini-stat-grid,
    .research-node-grid,
    .journal-layout,
    .leader-grid,
    .species-grid,
    .ship-choice-grid,
    .scan-layout,
    .onboarding-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-onboarding {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: none;
    }

    .topbar-auth {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .concept-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .topbar {
        margin-top: 14px;
        padding: 14px;
        border-radius: 28px;
    }

    .main-nav {
        gap: 4px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .feature-card,
    .panel,
    .stat-card,
    .planet-card {
        padding: 18px;
    }

    .planet-stage canvas {
        max-width: 100%;
    }

    .fleet-card {
        grid-template-columns: 1fr;
    }

    .viewer-frame-planet {
        min-height: 360px;
    }

    .viewer-frame-ship {
        min-height: 320px;
    }

    .cookie-banner-content,
    .topbar-auth {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar {
        display: flex;
    }

    .main-nav {
        flex-wrap: wrap;
    }
}

.cockpit-page {
    padding-top: 12px;
}

.cockpit-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-card-hud {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 107, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(127, 213, 255, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(11, 24, 39, 0.96), rgba(7, 16, 28, 0.96));
}

.stat-card-hud::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(127, 213, 255, 0.14), transparent 30%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.stat-card-hud strong,
.stat-card-hud small,
.stat-card-hud span {
    position: relative;
    z-index: 1;
}

.stat-card-hud strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.4rem, 2vw, 2.15rem);
    line-height: 1.06;
}

.stat-card-hud small {
    display: block;
    max-width: 22ch;
    line-height: 1.6;
}

.cockpit-shell {
    display: grid;
    grid-template-columns: minmax(210px, 0.56fr) minmax(0, 1.92fr) minmax(220px, 0.62fr);
    gap: 20px;
    align-items: start;
}

.cockpit-rail,
.cockpit-core {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.cockpit-rail {
    position: sticky;
    top: 116px;
}

.cockpit-nav-card,
.rail-card {
    padding: 20px;
}

.game-tab-bar-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.game-tab-bar-rail .game-tab {
    width: 100%;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.035);
}

.inventory-card-grid-rail,
.system-grid-rail {
    grid-template-columns: 1fr;
}

.inventory-card-world,
.inventory-card-ship {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
}

.inventory-card-visual {
    display: grid;
    place-items: center;
    width: 72px;
    min-height: 72px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 191, 107, 0.12), transparent 24%),
        rgba(255, 255, 255, 0.035);
}

.inventory-card-visual-ship {
    background:
        radial-gradient(circle at 18% 80%, rgba(127, 213, 255, 0.16), transparent 26%),
        rgba(255, 255, 255, 0.035);
}

.inventory-card-visual img {
    width: 100%;
    height: 52px;
    object-fit: contain;
}

.inventory-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.inventory-card-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.orbit-cinema {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: auto;
    background:
        linear-gradient(135deg, rgba(12, 25, 41, 0.98), rgba(5, 12, 22, 0.98));
}

.orbit-cinema-backdrop {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    opacity: 0.26;
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.06);
}

.orbit-cinema::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.12) 0%, rgba(3, 9, 18, 0.68) 100%),
        radial-gradient(circle at 24% 34%, rgba(255, 191, 107, 0.14), transparent 22%),
        radial-gradient(circle at 74% 18%, rgba(127, 213, 255, 0.1), transparent 28%);
    pointer-events: none;
}

.orbit-cinema-stage {
    position: relative;
    min-height: 520px;
    padding: 18px 18px 0;
}

.orbit-cinema-overlay {
    position: absolute;
    left: 38px;
    top: 34px;
    z-index: 3;
    display: grid;
    gap: 16px;
    width: min(520px, calc(100% - 76px));
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(4, 10, 20, 0.48);
    backdrop-filter: blur(12px);
}

.orbit-cinema-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.orbit-cinema-heading h1 {
    max-width: 9ch;
    font-size: clamp(2.35rem, 4vw, 4.4rem);
    line-height: 0.92;
}

.orbit-cinema-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    color: #d7ebff;
    line-height: 1.5;
}

.orbit-cinema-dot {
    color: rgba(255, 255, 255, 0.46);
}

.orbit-cinema-summary {
    margin: 0;
    color: #d9e9ff;
    font-size: 1.02rem;
    line-height: 1.8;
}

.orbit-cinema-dashboard {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: 18px;
    padding: 18px 24px 24px;
}

.orbit-cinema-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.orbit-cinema-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.orbit-metric-card {
    display: grid;
    gap: 4px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(6, 14, 24, 0.54);
    backdrop-filter: blur(14px);
}

.orbit-metric-card span,
.orbit-metric-card small {
    color: var(--muted);
}

.orbit-metric-card strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.orbit-cinema-actions {
    margin-top: 0;
}

.viewer-frame-planet-cinematic {
    min-height: 500px;
    border-color: rgba(127, 213, 255, 0.2);
    background:
        radial-gradient(circle at 22% 72%, rgba(127, 213, 255, 0.08), transparent 20%),
        radial-gradient(circle at 16% 22%, rgba(255, 191, 107, 0.14), transparent 20%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.08), rgba(4, 10, 20, 0.02));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 32px 90px rgba(0, 0, 0, 0.34);
}

.viewer-frame-planet-cinematic::before {
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 235, 191, 0.42), transparent 18%),
        radial-gradient(circle at 16% 84%, rgba(127, 213, 255, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%);
}

.viewer-frame-planet-cinematic::after {
    opacity: 0;
}

.cockpit-panel-grid {
    display: grid;
    gap: 18px;
}

.cockpit-panel-grid-empire,
.cockpit-panel-grid-worlds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cockpit-panel-grid-fleets {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.cockpit-panel-grid-fleets > :last-child {
    grid-column: 1 / -1;
}

.cockpit-panel-grid-research {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.cockpit-panel-grid-research > :first-child {
    grid-row: span 2;
}

.panel-immersive {
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(16, 30, 48, 0.9), rgba(10, 19, 32, 0.92));
}

.panel-immersive-art {
    position: relative;
    overflow: hidden;
}

.panel-immersive-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.82), rgba(3, 9, 18, 0.94)),
        var(--panel-art) center / cover no-repeat;
    opacity: 0.26;
    pointer-events: none;
}

.panel-immersive-art > * {
    position: relative;
    z-index: 1;
}

.action-row-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
}

.orbit-card-vertical {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.orbit-card-vertical img {
    width: 58px;
    height: 58px;
}

.fleet-card {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.03);
}

.fleet-visual-shell {
    display: grid;
    place-items: center;
    width: 80px;
    min-height: 80px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        radial-gradient(circle at 16% 80%, rgba(127, 213, 255, 0.16), transparent 24%),
        rgba(255, 255, 255, 0.03);
}

.fleet-visual-shell img {
    width: 100%;
    height: 56px;
    object-fit: contain;
}

.fleet-copy {
    display: grid;
    gap: 6px;
}

.fleet-copy p,
.fleet-copy small {
    margin: 0;
    line-height: 1.55;
}

.panel-table-compact th,
.panel-table-compact td {
    padding: 10px 0;
}

.panel-table-compact th:last-child,
.panel-table-compact td:last-child {
    text-align: right;
}

.cockpit-page .journal-layout {
    grid-template-columns: minmax(260px, 0.82fr) minmax(260px, 0.94fr) minmax(360px, 1.24fr);
}

.bridge-hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}

.bridge-hud-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 20px 22px;
    background:
        linear-gradient(180deg, rgba(9, 19, 33, 0.98), rgba(5, 11, 20, 0.98));
}

.bridge-hud-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
}

.bridge-hud-card-identity::before {
    background:
        radial-gradient(circle at 12% 16%, rgba(127, 213, 255, 0.26), transparent 30%),
        linear-gradient(125deg, rgba(127, 213, 255, 0.08), transparent 44%);
}

.bridge-hud-card-species::before {
    background:
        radial-gradient(circle at 78% 18%, rgba(123, 213, 255, 0.18), transparent 28%),
        linear-gradient(125deg, rgba(84, 134, 255, 0.08), transparent 52%);
}

.bridge-hud-card-credits::before {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 191, 107, 0.22), transparent 28%),
        linear-gradient(125deg, rgba(255, 191, 107, 0.08), transparent 44%);
}

.bridge-hud-card-alerts::before {
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 126, 136, 0.22), transparent 30%),
        linear-gradient(125deg, rgba(255, 126, 136, 0.08), transparent 44%);
}

.bridge-hud-card span,
.bridge-hud-card small {
    position: relative;
    z-index: 1;
}

.bridge-hud-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2.3rem);
    letter-spacing: 0.03em;
}

.resource-topbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
    background:
        linear-gradient(180deg, rgba(11, 21, 35, 0.94), rgba(7, 13, 24, 0.94));
}

.resource-chip {
    display: grid;
    gap: 4px;
    position: relative;
    overflow: visible;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.resource-chip span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resource-chip strong {
    font-size: 1.18rem;
    letter-spacing: 0.03em;
}

.resource-chip small {
    color: var(--muted);
}

.resource-chip-credit {
    border-color: rgba(255, 191, 107, 0.22);
    background: linear-gradient(180deg, rgba(255, 191, 107, 0.12), rgba(255, 191, 107, 0.04));
}

.resource-chip-energy {
    border-color: rgba(127, 213, 255, 0.24);
    background: linear-gradient(180deg, rgba(127, 213, 255, 0.12), rgba(127, 213, 255, 0.04));
}

.resource-chip-civil {
    border-color: rgba(137, 206, 255, 0.18);
    background: linear-gradient(180deg, rgba(137, 206, 255, 0.1), rgba(137, 206, 255, 0.03));
}

.resource-chip-bio {
    border-color: rgba(98, 217, 165, 0.22);
    background: linear-gradient(180deg, rgba(98, 217, 165, 0.12), rgba(98, 217, 165, 0.04));
}

.resource-chip-mineral {
    border-color: rgba(210, 151, 103, 0.22);
    background: linear-gradient(180deg, rgba(210, 151, 103, 0.12), rgba(210, 151, 103, 0.04));
}

.command-bridge {
    display: grid;
    grid-template-columns: minmax(0, 1.78fr) minmax(260px, 0.86fr);
    gap: 18px;
    align-items: start;
}

.bridge-sidebar,
.bridge-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.bridge-module {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(5, 10, 18, 0.96));
}

.bridge-module::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
    pointer-events: none;
}

.bridge-module-heading,
.bridge-scene-head,
.bridge-scene-foot {
    position: relative;
    z-index: 3;
}

.bridge-module-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.bridge-module-heading h2 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
}

.bridge-menu {
    background:
        radial-gradient(circle at 10% 10%, rgba(127, 213, 255, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(11, 24, 39, 0.98), rgba(7, 15, 27, 0.98));
}

.game-tab-bar-bridge {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.game-tab-bar-bridge .game-tab {
    width: 100%;
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 16px;
    border-color: rgba(134, 171, 222, 0.16);
    background:
        linear-gradient(180deg, rgba(22, 38, 59, 0.9), rgba(10, 20, 33, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-tab-bar-bridge .game-tab:hover,
.game-tab-bar-bridge .game-tab.is-active {
    border-color: rgba(127, 213, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(37, 68, 100, 0.96), rgba(15, 31, 52, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(127, 213, 255, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.22);
}

.bridge-scene {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(6, 13, 24, 0.98), rgba(5, 10, 18, 0.98));
}

.bridge-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.6)),
        radial-gradient(circle at 18% 22%, rgba(255, 191, 107, 0.08), transparent 20%),
        radial-gradient(circle at 82% 14%, rgba(127, 213, 255, 0.08), transparent 24%);
    pointer-events: none;
}

.bridge-scene-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.2;
    filter: saturate(1.08) blur(1px);
    transform: scale(1.05);
}

.bridge-scene-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 26px 10px;
}

.bridge-scene-title {
    max-width: 460px;
}

.bridge-scene-title h1 {
    max-width: none;
    font-size: clamp(2.8rem, 4vw, 4.9rem);
    line-height: 0.9;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
}

.bridge-scene-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    color: #d8ebff;
    line-height: 1.5;
}

.bridge-scene-dot {
    color: rgba(255, 255, 255, 0.4);
}

.bridge-scene-status {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.bridge-scene-status-copy {
    display: grid;
    justify-items: end;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(4, 10, 20, 0.46);
    backdrop-filter: blur(12px);
    color: #d8ebff;
}

.bridge-scene-status-copy small {
    color: var(--muted);
}

.bridge-system-viewer {
    position: relative;
    z-index: 2;
    min-height: 500px;
    margin: 0 18px;
    border-color: rgba(127, 213, 255, 0.18);
    background: #02050c;
}

.bridge-system-viewer::before {
    opacity: 0;
}

.bridge-system-viewer::after {
    opacity: 0;
}

.bridge-scene-foot {
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    padding: 14px 20px 18px;
}

.bridge-scene-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.bridge-scene-summary {
    margin: 0;
    color: #dbeaff;
    line-height: 1.62;
}

.bridge-scene-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bridge-metric-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(10, 20, 33, 0.92), rgba(5, 10, 17, 0.94));
}

.bridge-metric-card span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bridge-metric-card strong {
    font-size: 1.35rem;
    letter-spacing: 0.03em;
}

.bridge-section-grid {
    display: grid;
    gap: 18px;
}

.bridge-section-grid-empire,
.bridge-section-grid-worlds {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: start;
}

.bridge-section-grid-fleets,
.bridge-section-grid-research {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.bridge-section-grid-journal {
    grid-template-columns: minmax(260px, 0.76fr) minmax(260px, 0.84fr) minmax(320px, 1.1fr);
}

.bridge-section-grid-worlds > :first-child,
.bridge-section-grid-research > :first-child {
    grid-column: 1 / -1;
}

.bridge-section-grid-research > :nth-child(2) {
    grid-column: 1 / -1;
}

.bridge-module-feature {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 107, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(127, 213, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(13, 25, 40, 0.98), rgba(7, 14, 23, 0.98));
}

.bridge-module-mission {
    background:
        linear-gradient(180deg, rgba(11, 19, 31, 0.98), rgba(6, 11, 20, 0.98));
}

.bridge-module-art {
    background:
        linear-gradient(180deg, rgba(5, 10, 18, 0.3), rgba(5, 10, 18, 0.9)),
        var(--panel-art) center/cover no-repeat;
}

.bridge-module-art .bridge-module-heading,
.bridge-module-art .detail-list,
.bridge-module-art .trait-columns {
    position: relative;
    z-index: 1;
}

.bridge-module-art .detail-list,
.bridge-module-art .trait-columns,
.world-reading-list {
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.1);
    background: rgba(4, 10, 20, 0.58);
    backdrop-filter: blur(10px);
}

.bridge-module-art .detail-list {
    margin-top: 4px;
}

.bridge-module-art .detail-list li {
    padding: 9px 0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.bridge-module-art .detail-list strong,
.bridge-module-art .detail-list span,
.bridge-module-art .trait-columns strong,
.bridge-module-art .trait-columns span {
    color: #f1f8ff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.bridge-module-art .muted-label,
.bridge-module-art p,
.bridge-module-art small {
    color: #d5e7fb;
}

.world-reading-list {
    margin: 0;
}

.world-reading-list li {
    align-items: start;
}

.bridge-module-system {
    background:
        radial-gradient(circle at 78% 16%, rgba(255, 191, 107, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(10, 20, 35, 0.98), rgba(5, 10, 18, 0.98));
}

.bridge-module-market {
    background:
        radial-gradient(circle at 22% 14%, rgba(98, 217, 165, 0.1), transparent 20%),
        linear-gradient(180deg, rgba(10, 20, 35, 0.98), rgba(5, 10, 18, 0.98));
}

.bridge-sidebar .inventory-card,
.bridge-sidebar .orbit-card,
.bridge-sidebar .fleet-card,
.bridge-sidebar .notification-card,
.bridge-sidebar .journal-entry {
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
}

.bridge-sidebar .orbit-card-vertical {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 12px;
}

.bridge-sidebar .orbit-card-vertical img {
    width: 54px;
    height: 54px;
}

.bridge-sidebar .timeline-list li {
    padding-left: 18px;
}

.bridge-sidebar-right .panel-table {
    margin-top: 6px;
}

.bridge-sidebar-right .panel-table thead th {
    color: #c9def6;
}

.bridge-sidebar-right .panel-table tbody tr {
    border-bottom-color: rgba(127, 213, 255, 0.08);
}

.bridge-summary-row {
    display: grid;
    grid-template-columns: minmax(380px, 0.84fr) minmax(0, 1.16fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.empire-identity-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 156px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at 12% 16%, rgba(127, 213, 255, 0.14), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(255, 191, 107, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(11, 21, 35, 0.98), rgba(5, 10, 18, 0.98));
}

.empire-identity-avatar {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 28px;
    border: 1px solid rgba(127, 213, 255, 0.28);
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(145deg, rgba(73, 126, 176, 0.94), rgba(16, 38, 67, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 18px 34px rgba(0, 0, 0, 0.24);
    color: #f4fbff;
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.empire-identity-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.empire-identity-copy .bridge-module-heading {
    margin-bottom: 0;
}

.empire-identity-copy h2 {
    font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.empire-identity-rank {
    margin: -4px 0 0;
    color: #dbeaff;
    line-height: 1.5;
}

.empire-identity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.empire-identity-meta article {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.empire-identity-meta span,
.empire-identity-foot small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.empire-identity-meta strong {
    font-size: 1rem;
    line-height: 1.3;
}

.empire-identity-foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.empire-resource-board {
    overflow: visible;
    padding: 16px 18px 18px;
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 191, 107, 0.12), transparent 22%),
        radial-gradient(circle at 18% 24%, rgba(127, 213, 255, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(11, 21, 35, 0.98), rgba(5, 10, 18, 0.98));
}

.empire-resource-topbar {
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
}

.resource-topbar-shell {
    display: grid;
    gap: 10px;
}

.resource-topbar-primary,
.resource-topbar-secondary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.resource-topbar-drawer {
    display: grid;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.resource-topbar-overflow:hover .resource-topbar-drawer,
.resource-topbar-overflow:focus-within .resource-topbar-drawer {
    max-height: 520px;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
}

.resource-topbar-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.resource-topbar-drawer-head span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.resource-topbar-drawer-head strong {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.resource-chip-compact {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
}

.resource-chip-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    color: #f1f8ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-chip-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.resource-chip-copy span {
    font-size: 0.64rem;
}

.resource-chip-copy strong {
    font-size: 0.92rem;
}

.resource-chip-copy small {
    font-size: 0.68rem;
}

.resource-chip-hover {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.resource-chip-info {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dcecff;
    font-size: 0.62rem;
    line-height: 1;
}

.resource-chip-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 16;
    width: min(320px, calc(100vw - 40px));
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(4, 10, 20, 0.98));
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.resource-chip-hover:hover .resource-chip-tooltip,
.resource-chip-hover:focus-within .resource-chip-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.resource-chip-tooltip strong {
    font-size: 0.92rem;
}

.resource-chip-tooltip p,
.resource-chip-tooltip-empty {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.resource-chip-breakdown {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.resource-chip-breakdown li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-chip-breakdown li strong,
.resource-chip-breakdown li small {
    justify-self: end;
}

.resource-chip-breakdown li span {
    color: #eff7ff;
    font-size: 0.84rem;
    letter-spacing: normal;
    text-transform: none;
}

.bridge-command-strip {
    grid-column: 1 / -1;
    padding: 14px 18px;
    background:
        radial-gradient(circle at 12% 18%, rgba(127, 213, 255, 0.08), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(255, 191, 107, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(5, 10, 18, 0.96));
}

.game-tab-bar-command {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.game-tab-bar-command .game-tab {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    padding: 0 16px;
    border-color: rgba(134, 171, 222, 0.16);
    background:
        linear-gradient(180deg, rgba(22, 38, 59, 0.9), rgba(10, 20, 33, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-tab-bar-command .game-tab:hover,
.game-tab-bar-command .game-tab.is-active {
    border-color: rgba(127, 213, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(37, 68, 100, 0.96), rgba(15, 31, 52, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(127, 213, 255, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.22);
}

.resource-chip-command {
    border-color: rgba(255, 191, 107, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 191, 107, 0.16), rgba(255, 191, 107, 0.05));
}

.resource-chip-command .resource-chip-icon {
    border-color: rgba(255, 224, 173, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 232, 184, 0.16), rgba(255, 191, 107, 0.07));
}

.bridge-main .game-panel-section.is-active {
    display: grid;
    gap: 18px;
}

.bridge-overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    gap: 18px;
    padding: 24px;
    min-height: 220px;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 191, 107, 0.12), transparent 18%),
        radial-gradient(circle at 18% 78%, rgba(127, 213, 255, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(5, 10, 18, 0.98));
}

.bridge-overview-hero-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    max-width: 760px;
}

.bridge-overview-hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    line-height: 0.92;
}

.bridge-overview-hero-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.bridge-overview-callout {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(22, 38, 59, 0.84), rgba(8, 15, 26, 0.9));
}

.bridge-overview-callout span {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bridge-overview-callout strong {
    font-size: 1.08rem;
    line-height: 1.4;
}

.bridge-overview-callout small {
    color: var(--muted);
    line-height: 1.7;
}

.bridge-overview-hero-side .detail-list {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
}

.system-orbit-map {
    position: relative;
    min-height: 320px;
    margin-top: 6px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 48%),
        linear-gradient(180deg, rgba(4, 9, 18, 0.98), rgba(2, 6, 12, 0.98));
    overflow: hidden;
}

.system-orbit-stage {
    position: relative;
    min-height: 292px;
}

.system-orbit-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 64%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.5px),
        radial-gradient(circle at 26% 78%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.5px);
    opacity: 0.9;
    pointer-events: none;
}

.system-orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--orbit-size);
    height: var(--orbit-size);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(127, 213, 255, 0.16);
    box-shadow: inset 0 0 40px rgba(127, 213, 255, 0.02);
}

.system-orbit-star {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.98), rgba(255, 223, 140, 0.92) 34%, rgba(255, 155, 57, 0.84) 68%, rgba(255, 116, 23, 0.2));
    box-shadow:
        0 0 0 12px rgba(255, 188, 94, 0.06),
        0 0 50px rgba(255, 188, 94, 0.26),
        0 0 120px rgba(255, 188, 94, 0.12);
}

.system-orbit-star span {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-orbit-node {
    position: absolute;
    display: grid;
    gap: 4px;
    justify-items: center;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.system-orbit-node-visual {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.88), rgba(7, 14, 23, 0.94));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.system-orbit-node-visual img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.system-orbit-node-label {
    color: var(--muted);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-orbit-node:hover .system-orbit-node-visual,
.system-orbit-node.is-selected .system-orbit-node-visual {
    border-color: rgba(127, 213, 255, 0.38);
    box-shadow:
        0 0 0 2px rgba(127, 213, 255, 0.12),
        0 14px 28px rgba(0, 0, 0, 0.24);
}

.system-orbit-selection {
    margin-top: 14px;
}

.system-selection-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
}

.system-selection-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.system-selection-head img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.system-selection-head strong {
    display: block;
    font-size: 1.02rem;
}

.system-selection-head span,
.system-selection-card small {
    color: var(--muted);
    line-height: 1.5;
}

.button-full {
    width: 100%;
    justify-content: center;
}

.button-inline {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.76rem;
    white-space: nowrap;
}

.cockpit-page {
    padding: 18px 0 36px;
}

.cockpit-page .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
}

.cockpit-page .muted-label {
    font-size: 0.78rem;
}

.cockpit-page .bridge-module-heading h2 {
    font-size: clamp(1.08rem, 1.35vw, 1.42rem);
}

.is-hidden-by-tab {
    display: none !important;
}

.is-emphasized {
    box-shadow: 0 0 0 1px rgba(127, 213, 255, 0.24), 0 0 0 8px rgba(127, 213, 255, 0.05);
}

.context-card-stack {
    display: grid;
    gap: 10px;
}

.context-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
}

.context-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%);
    pointer-events: none;
}

.context-card > * {
    position: relative;
    z-index: 1;
}

.context-card-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.context-card-title-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.context-card-title-copy {
    display: grid;
    gap: 4px;
}

.context-card-icon {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 191, 107, 0.24);
    background: linear-gradient(180deg, rgba(255, 191, 107, 0.14), rgba(127, 213, 255, 0.08));
    color: #fff3d5;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.context-card-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.context-card strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.context-card p,
.context-card small {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.context-progress {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.context-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 191, 107, 0.9), rgba(127, 213, 255, 0.9));
    box-shadow: 0 0 16px rgba(127, 213, 255, 0.24);
}

.build-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bridge-module-world-dossier {
    grid-column: 1;
}

.bridge-build-panel {
    grid-column: 2;
    align-self: start;
}

.bridge-module-world-stock {
    grid-column: 1;
}

.bridge-module-world-infra {
    grid-column: 2;
}

.bridge-module-world-queue {
    grid-column: 1 / -1;
}

.build-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.build-card:hover,
.build-card.is-emphasized {
    border-color: rgba(127, 213, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.build-card-insufficient {
    border-color: rgba(255, 140, 140, 0.18);
}

.build-card-locked {
    border-color: rgba(255, 191, 107, 0.16);
    background:
        linear-gradient(180deg, rgba(33, 30, 25, 0.86), rgba(13, 13, 16, 0.92));
}

.build-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.build-card-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.build-card-icon {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 191, 107, 0.16), rgba(127, 213, 255, 0.08));
    color: #fff4d9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.build-card-kicker {
    display: block;
    color: var(--accent);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.build-card-head strong {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.build-card-level {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.build-card p,
.build-card-lock {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.build-cost-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.build-cost {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px solid rgba(127, 213, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.build-cost-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #edf7ff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.build-cost-copy {
    display: grid;
    gap: 2px;
}

.build-cost-copy strong {
    font-size: 0.82rem;
}

.build-cost-copy small {
    color: var(--muted);
}

.build-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.76rem;
}

.cockpit-page .bridge-summary-row {
    grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1.16fr);
    gap: 14px;
    margin-bottom: 14px;
}

.cockpit-page .empire-identity-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    min-height: 148px;
    padding: 16px 18px;
}

.cockpit-page .empire-identity-avatar {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    font-size: 1.5rem;
}

.cockpit-page .empire-identity-copy {
    gap: 10px;
}

.cockpit-page .empire-identity-copy h2 {
    font-size: clamp(1.36rem, 1.75vw, 1.92rem);
}

.cockpit-page .empire-identity-rank {
    line-height: 1.35;
}

.cockpit-page .empire-identity-meta article {
    gap: 4px;
    padding: 11px 12px;
}

.cockpit-page .empire-identity-meta strong {
    font-size: 0.94rem;
}

.cockpit-page .empire-resource-board {
    padding: 14px 16px 16px;
    overflow: visible;
    z-index: 4;
}

.cockpit-page .resource-topbar-primary,
.cockpit-page .resource-topbar-secondary {
    gap: 8px;
}

.cockpit-page .resource-chip-compact {
    gap: 8px;
    min-height: 60px;
    padding: 8px 10px;
}

.cockpit-page .resource-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.68rem;
}

.cockpit-page .resource-chip-copy span {
    font-size: 0.6rem;
}

.cockpit-page .resource-chip-copy strong {
    font-size: 0.88rem;
}

.cockpit-page .resource-chip-copy small {
    font-size: 0.64rem;
}

.cockpit-page .bridge-command-strip {
    padding: 12px 14px;
}

.cockpit-page .game-tab-bar-command {
    gap: 10px;
}

.cockpit-page .game-tab-bar-command .game-tab {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.95rem;
}

.cockpit-page .command-bridge {
    grid-template-columns: minmax(0, 1.9fr) minmax(238px, 0.82fr);
    gap: 14px;
}

.cockpit-page .bridge-sidebar,
.cockpit-page .bridge-main,
.cockpit-page .bridge-section-grid,
.cockpit-page .inventory-card-grid,
.cockpit-page .mini-stat-grid,
.cockpit-page .research-lane-grid,
.cockpit-page .notification-stack,
.cockpit-page .journal-list,
.cockpit-page .analytics-grid,
.cockpit-page .brief-grid {
    gap: 10px;
}

.cockpit-page .bridge-module {
    padding: 16px;
}

.cockpit-page .bridge-module-heading {
    gap: 10px;
    margin-bottom: 12px;
}

.cockpit-page .bridge-main .game-panel-section.is-active {
    gap: 14px;
}

.bridge-activity-strip {
    grid-column: 1 / -1;
}

.activity-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.activity-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(20, 36, 58, 0.84), rgba(8, 15, 26, 0.9));
}

.activity-card-neutral {
    border-color: rgba(127, 213, 255, 0.14);
}

.activity-card-warm {
    border-color: rgba(255, 191, 107, 0.24);
    background:
        linear-gradient(180deg, rgba(45, 36, 23, 0.84), rgba(16, 13, 9, 0.9));
}

.activity-card-critical {
    border-color: rgba(255, 126, 136, 0.24);
    background:
        linear-gradient(180deg, rgba(48, 24, 28, 0.88), rgba(18, 9, 12, 0.92));
}

.activity-card-head,
.activity-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.activity-card-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.activity-card-title > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.activity-card-title strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.activity-card-title small,
.activity-card-meta span {
    color: var(--muted);
    line-height: 1.45;
}

.activity-card-percent {
    color: #eff7ff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-progress {
    height: 8px;
}

.activity-progress span,
.queue-bar span {
    background:
        linear-gradient(90deg, rgba(255, 191, 107, 0.95), rgba(127, 213, 255, 0.95));
    background-size: 180px 100%;
    animation: activityFlow 1.8s linear infinite;
}

.activity-card-meta strong {
    font-size: 0.86rem;
}

.resource-topbar-overflow {
    position: relative;
    min-width: 0;
}

.resource-chip-overflow {
    cursor: pointer;
    min-height: 60px;
    border-style: dashed;
}

.resource-chip-overflow .resource-chip-icon {
    font-size: 1rem;
}

.resource-topbar-overflow .resource-topbar-drawer {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 12;
    width: min(760px, calc(100vw - 120px));
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(4, 10, 20, 0.98));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.context-card-stack-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.world-focus-note {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.1);
    background: rgba(4, 10, 20, 0.46);
    backdrop-filter: blur(10px);
}

.world-focus-note p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.bridge-section-grid-fleets {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.bridge-module-fleet-encounter {
    grid-column: 1 / -1;
}

.research-node-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.research-node-state {
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.research-node-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.84rem;
}

.research-node-queue {
    min-height: 34px;
}

.bridge-sidebar-right .timeline-list .timeline-entry {
    gap: 4px;
}

.resource-line-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bridge-section-grid-fleets {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
        "cards hangar"
        "orders hangar"
        "encounter encounter";
    align-items: start;
}

.bridge-module-fleet-cards {
    grid-area: cards;
}

.bridge-module-fleet-hangar {
    grid-area: hangar;
}

.bridge-module-fleet-orders {
    grid-area: orders;
}

.bridge-module-fleet-encounter {
    grid-area: encounter;
}

.bridge-module-fleet-hangar .ship-focus-panel {
    grid-template-columns: 1fr;
}

.bridge-module-fleet-hangar .viewer-frame-ship {
    min-height: 340px;
}

.research-lane-head {
    align-items: center;
}

.research-node-title {
    display: grid;
    gap: 4px;
}

.research-node-benefit {
    color: #dbeeff;
    line-height: 1.45;
}

.research-node-costs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-cost-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(127, 213, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.74rem;
    color: #dbeeff;
}

.research-cost-pill span {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.context-progress-research {
    margin-top: 2px;
}

.research-node-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

.research-node .button-inline {
    width: 100%;
    justify-content: center;
}

@keyframes activityFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 180px 0;
    }
}

.cockpit-page .bridge-overview-hero {
    gap: 16px;
    padding: 20px;
    min-height: 200px;
}

.cockpit-page .bridge-overview-hero h1 {
    font-size: clamp(2.45rem, 3.4vw, 3.9rem);
}

.cockpit-page .bridge-overview-hero-side {
    gap: 12px;
}

.cockpit-page .bridge-overview-callout {
    gap: 6px;
    padding: 14px;
}

.cockpit-page .bridge-overview-callout strong {
    font-size: 0.98rem;
}

.cockpit-page .bridge-overview-hero-side .detail-list {
    padding: 14px 16px;
}

.cockpit-page .bridge-scene-title h1 {
    font-size: clamp(2.35rem, 3.4vw, 4rem);
}

.cockpit-page .bridge-scene-summary {
    line-height: 1.65;
}

.cockpit-page .bridge-system-viewer {
    min-height: 470px;
    margin: 0 14px;
}

.cockpit-page .bridge-scene-foot {
    gap: 14px;
    padding: 16px 20px 20px;
}

.cockpit-page .system-orbit-map {
    min-height: 300px;
    margin-top: 4px;
    padding: 12px;
}

.cockpit-page .system-orbit-stage {
    min-height: 270px;
}

.cockpit-page .system-orbit-star {
    width: 70px;
    height: 70px;
}

.cockpit-page .system-orbit-node-visual {
    width: 44px;
    height: 44px;
}

.cockpit-page .system-orbit-node-label {
    font-size: 0.6rem;
}

.cockpit-page .inventory-card,
.cockpit-page .journal-entry,
.cockpit-page .notification-card,
.cockpit-page .analytics-card,
.cockpit-page .brief-card {
    padding: 13px;
}

.cockpit-page .inventory-card strong,
.cockpit-page .journal-entry strong,
.cockpit-page .analytics-card strong,
.cockpit-page .brief-card strong {
    font-size: 0.95rem;
}

.cockpit-page .inventory-card-meta {
    gap: 6px;
    font-size: 0.78rem;
}

.cockpit-page .mini-stat-card,
.cockpit-page .analytics-card {
    padding: 14px;
}

.cockpit-page .mini-stat-card strong,
.cockpit-page .analytics-card strong {
    font-size: 1.15rem;
}

.cockpit-page .bridge-overview-hero-premium {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
    background:
        radial-gradient(circle at 16% 16%, rgba(70, 224, 255, 0.12), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(255, 191, 107, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(11, 18, 31, 0.96), rgba(7, 12, 24, 0.96));
}

.cockpit-page .bridge-overview-hero-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 50%, rgba(80, 170, 255, 0.14), transparent 26%),
        url('/assets/img/references/asteria-system-reference.jpg') center right / cover no-repeat;
    opacity: 0.22;
    pointer-events: none;
}

.cockpit-page .bridge-overview-hero-premium > * {
    position: relative;
    z-index: 1;
}

.bridge-section-grid-empire-premium {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bridge-module-overview-stock,
.bridge-module-overview-worlds,
.bridge-module-mission,
.bridge-module-overview-state {
    min-height: 260px;
}

.bridge-module-overview-fleet,
.bridge-module-overview-brief {
    grid-column: span 2;
}

.resource-list-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.resource-list-visual li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.resource-reserve-tile .resource-reserve-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f7fbff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-reserve-copy {
    display: grid;
    gap: 2px;
}

.resource-reserve-copy strong {
    font-size: 0.86rem;
}

.resource-reserve-copy span {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
}

.resource-reserve-copy small {
    color: var(--muted);
    font-size: 0.72rem;
}

.context-card-stack-overview {
    gap: 12px;
}

.bridge-world-screen {
    display: grid;
    gap: 14px;
}

.bridge-world-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.66fr);
    gap: 14px;
}

.bridge-world-console {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.06fr) minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 14px;
    align-items: start;
}

.bridge-scene-premium {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(6, 10, 19, 0.92), rgba(4, 9, 18, 0.98));
}

.bridge-scene-premium .bridge-scene-head {
    padding-bottom: 6px;
}

.viewer-frame-planet-premium {
    min-height: 540px;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 201, 120, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(2, 6, 14, 0.84), rgba(1, 4, 10, 0.96));
}

.viewer-frame-planet-premium::after {
    opacity: 0.08;
}

.viewer-frame-planet-premium .viewer-interaction-hint {
    bottom: 18px;
    left: 18px;
}

.planet-system-panel {
    min-height: 100%;
}

.planet-system-panel .system-orbit-map {
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.92), rgba(7, 16, 29, 0.86));
}

.planet-dossier-panel {
    display: grid;
    gap: 12px;
    min-height: 100%;
}

.planet-dossier-panel::before {
    opacity: 0.28;
}

.detail-list-world li {
    padding: 9px 0;
}

.planet-dossier-resource-strip {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(4, 10, 20, 0.46);
    backdrop-filter: blur(10px);
}

.resource-list-compact {
    display: grid;
    gap: 8px;
}

.resource-mini-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(127, 213, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.resource-mini-copy {
    display: grid;
    gap: 2px;
}

.resource-mini-copy small,
.resource-meta-compact small {
    color: var(--muted);
    font-size: 0.7rem;
}

.planet-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.planet-action-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 14, 24, 0.96));
}

.planet-action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.18), rgba(4, 10, 20, 0.92)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.94;
}

.planet-action-card > * {
    position: relative;
    z-index: 1;
}

.planet-action-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at top right, rgba(98, 241, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0));
}

.planet-action-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.planet-action-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(98, 241, 255, 0.26);
    background: rgba(3, 10, 19, 0.56);
    color: #e7fbff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.planet-action-card-kicker {
    color: #9cefff;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: right;
}

.planet-action-card-copy {
    display: grid;
    gap: 8px;
}

.planet-action-card-copy strong {
    font-size: 1rem;
    line-height: 1.25;
}

.planet-action-card-copy p {
    margin: 0;
    color: rgba(233, 243, 255, 0.88);
    line-height: 1.55;
    font-size: 0.84rem;
}

.planet-action-card-foot {
    display: flex;
    justify-content: flex-start;
}

.build-catalog-grid-premium {
    grid-template-columns: 1fr;
}

.construction-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 18, 30, 0.96), rgba(7, 13, 24, 0.98));
}

.construction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.26), rgba(3, 9, 18, 0.94)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.92;
}

.construction-card > * {
    position: relative;
    z-index: 1;
}

.construction-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

.construction-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.construction-card-title-block {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.construction-card-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 12, 22, 0.62);
    color: #fff6df;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.construction-card-kicker {
    display: block;
    color: #9cefff;
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.construction-card-title-block strong {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
}

.construction-card-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(3, 10, 19, 0.58);
    border: 1px solid rgba(127, 213, 255, 0.18);
    color: #dff7ff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.construction-card-available .construction-card-state {
    border-color: rgba(98, 217, 165, 0.24);
    color: #d8ffe8;
}

.construction-card-queued .construction-card-state {
    border-color: rgba(255, 191, 107, 0.24);
    color: #ffe8bb;
}

.construction-card-copy p {
    margin: 0;
    color: rgba(238, 246, 255, 0.9);
    line-height: 1.55;
    font-size: 0.84rem;
}

.construction-card-level {
    color: var(--muted);
}

.build-cost-list-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.construction-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.76rem;
}

.construction-card-meta strong {
    color: #eff8ff;
    font-size: 0.8rem;
}

.planet-admin-panel {
    display: grid;
    gap: 14px;
}

.context-card-stack-admin {
    gap: 10px;
}

.governance-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(18, 28, 46, 0.84), rgba(9, 15, 26, 0.94));
}

.governance-card-head,
.governance-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.governance-card-title {
    justify-content: flex-start;
}

.governance-card-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(127, 213, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e9fbff;
    font-size: 0.68rem;
    font-weight: 700;
}

.governance-card-kicker {
    display: block;
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.governance-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.planet-admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.planet-admin-subpanel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.1);
    background: rgba(5, 11, 20, 0.42);
}

.bridge-module-heading-sub {
    margin-bottom: 0;
}

.bridge-section-grid-fleets-premium {
    display: grid;
    grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.08fr) minmax(260px, 0.72fr);
    grid-template-areas:
        "roster stage profile"
        "orders orders encounter";
    gap: 14px;
    align-items: start;
}

.fleet-roster-panel {
    grid-area: roster;
}

.fleet-stage-panel {
    grid-area: stage;
}

.fleet-profile-panel {
    grid-area: profile;
}

.fleet-orders-panel {
    grid-area: orders;
}

.fleet-encounter-panel {
    grid-area: encounter;
}

.fleet-card-roster {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 118px;
    background:
        linear-gradient(180deg, rgba(13, 20, 33, 0.96), rgba(7, 12, 22, 0.96));
}

.fleet-visual-shell-roster {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        radial-gradient(circle at top, rgba(127, 213, 255, 0.18), transparent 46%),
        rgba(255, 255, 255, 0.03);
}

.fleet-card-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fleet-roster-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.fleet-roster-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(98, 217, 165, 0.22);
    background: rgba(98, 217, 165, 0.12);
    color: #d8ffe8;
    font-size: 0.72rem;
}

.fleet-stage-viewer-shell {
    border-radius: 20px;
    overflow: hidden;
}

.viewer-frame-ship-premium {
    min-height: 430px;
    background:
        radial-gradient(circle at 24% 18%, rgba(127, 213, 255, 0.18), transparent 24%),
        radial-gradient(circle at 74% 20%, rgba(255, 191, 107, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(6, 12, 23, 0.98), rgba(3, 7, 14, 0.98));
}

.viewer-frame-ship-premium::after {
    opacity: 0.06;
}

.ship-detail-card-premium {
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(127, 213, 255, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 39, 0.94), rgba(7, 12, 22, 0.98));
}

.detail-list-ship {
    display: grid;
    gap: 8px;
}

.detail-list-ship li {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.ship-stat-line-class {
    grid-template-columns: 1fr auto !important;
}

.ship-stat-meter {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.ship-stat-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(94, 244, 255, 0.95), rgba(91, 167, 255, 0.95));
    box-shadow: 0 0 16px rgba(91, 167, 255, 0.28);
}

.detail-list-ship-meta li {
    padding: 7px 0;
}

.fleet-mission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fleet-mission-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    min-height: 152px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(7, 13, 24, 0.98));
}

.fleet-mission-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.24), rgba(3, 9, 18, 0.94)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.95;
}

.fleet-mission-card > * {
    position: relative;
    z-index: 1;
}

.fleet-mission-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fleet-mission-card-cyan .fleet-mission-card-overlay {
    background: radial-gradient(circle at top right, rgba(98, 241, 255, 0.18), transparent 26%);
}

.fleet-mission-card-blue .fleet-mission-card-overlay {
    background: radial-gradient(circle at top right, rgba(91, 167, 255, 0.18), transparent 26%);
}

.fleet-mission-card-teal .fleet-mission-card-overlay {
    background: radial-gradient(circle at top right, rgba(98, 217, 165, 0.18), transparent 26%);
}

.fleet-mission-card-amber .fleet-mission-card-overlay {
    background: radial-gradient(circle at top right, rgba(255, 191, 107, 0.18), transparent 26%);
}

.fleet-mission-card-copy {
    display: grid;
    gap: 6px;
}

.fleet-mission-kicker {
    color: #b6f7ff;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fleet-mission-card-copy strong {
    font-size: 1rem;
}

.fleet-mission-card-copy p {
    margin: 0;
    color: rgba(236, 244, 255, 0.9);
    line-height: 1.55;
    font-size: 0.84rem;
}

.bridge-section-grid-research-premium {
    display: grid;
    gap: 14px;
}

.research-active-shell {
    min-height: 0;
}

.research-current-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(14, 21, 35, 0.96), rgba(7, 12, 24, 0.98));
}

.research-current-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.24), rgba(3, 9, 18, 0.92)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.96;
}

.research-current-card > * {
    position: relative;
    z-index: 1;
}

.research-current-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, rgba(98, 241, 255, 0.16), transparent 26%);
}

.research-current-card-head,
.research-current-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.research-current-kicker {
    display: block;
    color: #b6f7ff;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.research-current-card-head strong {
    font-size: 1.08rem;
}

.research-current-eta {
    color: #f4fbff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.research-current-card p,
.research-current-meta small {
    margin: 0;
    color: rgba(236, 244, 255, 0.9);
    line-height: 1.6;
}

.research-domain-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.research-domain-tab {
    display: inline-grid;
    gap: 4px;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}

.research-domain-tab span {
    color: var(--text);
}

.research-domain-tab small {
    color: var(--muted);
}

.research-domain-tab.is-active {
    border-color: rgba(98, 241, 255, 0.24);
    background: rgba(98, 241, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(98, 241, 255, 0.08);
}

.research-lane-premium {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 21, 35, 0.96), rgba(7, 12, 24, 0.98));
}

.research-lane-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.24), rgba(3, 9, 18, 0.92)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.22;
}

.research-lane-premium > * {
    position: relative;
    z-index: 1;
}

.research-node-grid-premium {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.research-showcase-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    min-height: 290px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(7, 13, 24, 0.98));
}

.research-showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 18, 0.14), rgba(3, 9, 18, 0.92)),
        var(--card-art, none) center / cover no-repeat;
    opacity: 0.96;
}

.research-showcase-card > * {
    position: relative;
    z-index: 1;
}

.research-showcase-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, rgba(98, 241, 255, 0.12), transparent 24%);
}

.research-showcase-status,
.research-showcase-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.research-showcase-state,
.research-showcase-eta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(3, 10, 19, 0.58);
    border: 1px solid rgba(127, 213, 255, 0.16);
    color: #e9fbff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.research-showcase-copy {
    display: grid;
    gap: 6px;
}

.research-showcase-copy strong {
    font-size: 1rem;
    line-height: 1.28;
}

.research-showcase-copy p,
.research-showcase-copy small {
    margin: 0;
    color: rgba(236, 244, 255, 0.92);
    line-height: 1.55;
}

.research-showcase-foot small {
    color: var(--muted);
}

.research-history-card {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(127, 213, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.research-history-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.research-history-card p,
.research-history-card small {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.cockpit-page .bridge-overview-hero-premium {
    min-height: 250px;
    border-color: rgba(98, 241, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 26px 68px rgba(0, 0, 0, 0.34);
}

.bridge-overview-hero-copy {
    display: grid;
    align-content: end;
    gap: 12px;
}

.bridge-overview-hero-copy .bridge-scene-summary {
    max-width: 58ch;
    color: rgba(234, 244, 255, 0.9);
}

.bridge-overview-hero-side {
    display: grid;
    gap: 14px;
    align-content: space-between;
}

.bridge-overview-callout {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(98, 241, 255, 0.18);
    background:
        radial-gradient(circle at top right, rgba(98, 241, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(7, 14, 24, 0.92), rgba(5, 10, 18, 0.94));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.bridge-overview-callout span {
    color: #9befff;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bridge-overview-callout strong {
    font-size: 1.08rem;
    line-height: 1.3;
}

.bridge-overview-callout small {
    color: var(--muted);
    line-height: 1.55;
}

.bridge-overview-hero-premium .detail-list {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 213, 255, 0.1);
    background: rgba(4, 9, 17, 0.48);
    backdrop-filter: blur(12px);
}

.bridge-overview-hero-premium .detail-list li {
    padding: 10px 0;
}

.bridge-module-overview-stock,
.bridge-module-overview-worlds,
.bridge-module-mission,
.bridge-module-overview-state,
.bridge-module-overview-fleet,
.bridge-module-overview-brief,
.planet-system-panel,
.planet-dossier-panel,
.planet-action-panel,
.planet-build-panel,
.planet-admin-panel,
.fleet-roster-panel,
.fleet-stage-panel,
.fleet-profile-panel,
.fleet-orders-panel,
.fleet-encounter-panel,
.research-active-panel,
.research-main-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(127, 213, 255, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 20px 54px rgba(0, 0, 0, 0.26);
}

.bridge-module-overview-stock::before,
.bridge-module-overview-worlds::before,
.bridge-module-mission::before,
.bridge-module-overview-state::before,
.bridge-module-overview-fleet::before,
.bridge-module-overview-brief::before,
.planet-system-panel::before,
.planet-dossier-panel::before,
.planet-action-panel::before,
.planet-build-panel::before,
.planet-admin-panel::before,
.fleet-roster-panel::before,
.fleet-stage-panel::before,
.fleet-profile-panel::before,
.fleet-orders-panel::before,
.fleet-encounter-panel::before,
.research-active-panel::before,
.research-main-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
}

.bridge-module-overview-stock::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(98, 241, 255, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 46%);
}

.bridge-module-overview-worlds::before {
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.28), rgba(4, 9, 18, 0.88)),
        url('/assets/img/references/asteria-system-reference.jpg') center / cover no-repeat;
    opacity: 0.18;
}

.bridge-module-mission::before {
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.4), rgba(4, 9, 18, 0.9)),
        url('/assets/img/references/planet-desert-reference.jpg') center / cover no-repeat;
    opacity: 0.14;
}

.bridge-module-overview-state::before {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 191, 107, 0.18), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.bridge-module-overview-fleet::before,
.fleet-roster-panel::before,
.fleet-profile-panel::before,
.fleet-orders-panel::before,
.fleet-encounter-panel::before {
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.34), rgba(4, 9, 18, 0.92)),
        url('/assets/img/references/ship-dreadnought-reference.jpg') center / cover no-repeat;
    opacity: 0.12;
}

.bridge-module-overview-brief::before,
.research-main-panel::before,
.research-active-panel::before {
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.3), rgba(4, 9, 18, 0.92)),
        url('/assets/img/references/asteria-system-reference.jpg') center / cover no-repeat;
    opacity: 0.12;
}

.planet-system-panel::before,
.planet-dossier-panel::before,
.planet-action-panel::before,
.planet-build-panel::before,
.planet-admin-panel::before {
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.24), rgba(4, 9, 18, 0.88)),
        url('/assets/img/references/planet-desert-reference.jpg') center / cover no-repeat;
    opacity: 0.12;
}

.bridge-module-overview-stock > *,
.bridge-module-overview-worlds > *,
.bridge-module-mission > *,
.bridge-module-overview-state > *,
.bridge-module-overview-fleet > *,
.bridge-module-overview-brief > *,
.planet-system-panel > *,
.planet-dossier-panel > *,
.planet-action-panel > *,
.planet-build-panel > *,
.planet-admin-panel > *,
.fleet-roster-panel > *,
.fleet-stage-panel > *,
.fleet-profile-panel > *,
.fleet-orders-panel > *,
.fleet-encounter-panel > *,
.research-active-panel > *,
.research-main-panel > * {
    position: relative;
    z-index: 1;
}

.resource-list-visual li,
.resource-reserve-tile {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.resource-list-visual li::after,
.resource-reserve-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
    opacity: 0.7;
    pointer-events: none;
}

.inventory-card-grid-rail {
    gap: 12px;
}

.inventory-card-world,
.inventory-card-ship {
    position: relative;
    overflow: hidden;
    border-color: rgba(127, 213, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(7, 12, 22, 0.96));
}

.inventory-card-world::before,
.inventory-card-ship::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.28), rgba(4, 9, 18, 0.86)),
        radial-gradient(circle at top right, rgba(98, 241, 255, 0.12), transparent 24%);
    pointer-events: none;
}

.inventory-card-world > *,
.inventory-card-ship > * {
    position: relative;
    z-index: 1;
}

.bridge-scene-premium {
    border-color: rgba(98, 241, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 28px 80px rgba(0, 0, 0, 0.34);
}

.bridge-scene-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 191, 107, 0.14), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(98, 241, 255, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
    z-index: 0;
    pointer-events: none;
}

.bridge-scene-backdrop {
    opacity: 0.3;
    filter: saturate(1.15) blur(0.5px);
}

.bridge-scene-title h1 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.bridge-scene-subtitle,
.bridge-scene-summary {
    color: rgba(236, 244, 255, 0.9);
}

.bridge-scene-status,
.bridge-scene-metrics,
.bridge-scene-copy {
    position: relative;
    z-index: 1;
}

.bridge-metric-card {
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 14px 34px rgba(0, 0, 0, 0.2);
}

.viewer-frame-planet-premium {
    border: 1px solid rgba(127, 213, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 28px 74px rgba(0, 0, 0, 0.3);
}

.viewer-frame-planet-premium::before {
    background:
        radial-gradient(circle at 78% 16%, rgba(255, 230, 180, 0.24), transparent 18%),
        radial-gradient(circle at 18% 86%, rgba(98, 241, 255, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 44%);
}

.planet-system-panel .system-orbit-map,
.planet-system-panel .system-orbit-selection {
    backdrop-filter: blur(12px);
}

.planet-action-card {
    min-height: 196px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 44px rgba(0, 0, 0, 0.24);
}

.planet-action-card-copy strong,
.construction-card-title-block strong,
.research-showcase-copy strong,
.fleet-mission-card-copy strong {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.planet-action-card .button-inline,
.construction-card .button-inline,
.fleet-mission-card .button-inline,
.research-showcase-foot .button-inline {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-color: rgba(98, 241, 255, 0.24);
    background: linear-gradient(135deg, #62f1ff 0%, #57b7ff 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 26px rgba(76, 178, 255, 0.2);
}

.planet-action-card .button-inline:hover,
.construction-card .button-inline:hover,
.fleet-mission-card .button-inline:hover,
.research-showcase-foot .button-inline:hover {
    transform: translateY(-1px);
}

.construction-card {
    min-height: 240px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 44px rgba(0, 0, 0, 0.24);
}

.build-cost-list-premium .cost-pill {
    backdrop-filter: blur(10px);
}

.governance-card,
.planet-admin-subpanel {
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.fleet-stage-panel {
    background:
        radial-gradient(circle at top left, rgba(98, 241, 255, 0.1), transparent 22%),
        radial-gradient(circle at 80% 14%, rgba(255, 191, 107, 0.1), transparent 18%),
        linear-gradient(180deg, rgba(10, 17, 28, 0.96), rgba(5, 10, 18, 0.98));
}

.fleet-stage-viewer-shell {
    position: relative;
    border: 1px solid rgba(127, 213, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.fleet-stage-viewer-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.2), rgba(4, 9, 18, 0)),
        radial-gradient(circle at top, rgba(98, 241, 255, 0.14), transparent 24%);
    z-index: 0;
    pointer-events: none;
}

.viewer-frame-ship-premium {
    min-height: 470px;
    border: 1px solid rgba(127, 213, 255, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 22px 54px rgba(0, 0, 0, 0.3);
}

.viewer-frame-ship-premium::before {
    background:
        radial-gradient(circle at 50% 14%, rgba(127, 213, 255, 0.18), transparent 18%),
        radial-gradient(circle at 14% 86%, rgba(127, 213, 255, 0.1), transparent 22%),
        radial-gradient(circle at 82% 18%, rgba(255, 191, 107, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
}

.ship-detail-card-premium {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 44px rgba(0, 0, 0, 0.26);
}

.detail-list-ship li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-list-ship li:last-child {
    border-bottom: 0;
}

.fleet-mission-card {
    min-height: 176px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 42px rgba(0, 0, 0, 0.24);
}

.encounter-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(5, 10, 18, 0.96));
}

.encounter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.3), rgba(4, 9, 18, 0.92)),
        url('/assets/img/references/ship-dreadnought-reference.jpg') center / cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.encounter-card > * {
    position: relative;
    z-index: 1;
}

.research-active-panel,
.research-main-panel {
    background:
        linear-gradient(180deg, rgba(10, 17, 29, 0.96), rgba(5, 10, 18, 0.98));
}

.research-current-card,
.research-showcase-card,
.research-history-card {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 42px rgba(0, 0, 0, 0.24);
}

.research-domain-tab {
    transition: 160ms ease;
}

.research-domain-tab.is-active {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(98, 241, 255, 0.12),
        0 12px 30px rgba(72, 186, 255, 0.16);
}

.research-showcase-card-unlocked .research-showcase-state,
.research-showcase-card-available .research-showcase-state {
    border-color: rgba(98, 217, 165, 0.28);
    color: #d8ffe8;
}

.research-showcase-card-queued .research-showcase-state {
    border-color: rgba(255, 191, 107, 0.28);
    color: #ffe8bb;
}

.research-showcase-card-locked .research-showcase-state {
    border-color: rgba(255, 126, 136, 0.22);
    color: #ffdbe0;
}

@media (max-width: 1320px) {
    .bridge-section-grid-empire-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bridge-world-stage-grid,
    .bridge-world-console,
    .bridge-section-grid-fleets-premium,
    .bridge-section-grid-research-premium {
        grid-template-columns: 1fr;
    }

    .bridge-section-grid-fleets-premium {
        grid-template-areas:
            "roster"
            "stage"
            "profile"
            "orders"
            "encounter";
    }

    .research-node-grid-premium,
    .fleet-mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cockpit-page .bridge-overview-hero-premium,
    .bridge-section-grid-empire-premium,
    .planet-admin-columns,
    .research-node-grid-premium,
    .fleet-mission-grid {
        grid-template-columns: 1fr;
    }

    .bridge-overview-hero-side {
        align-content: start;
    }
}

@media (max-width: 1320px) {
    .bridge-summary-row {
        grid-template-columns: 1fr;
    }

    .command-bridge {
        grid-template-columns: minmax(0, 1fr);
    }

    .bridge-sidebar-right {
        position: static;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .resource-topbar-primary,
    .resource-topbar-secondary,
    .activity-strip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-tab-bar-command {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .bridge-hud,
    .bridge-summary-row,
    .command-bridge,
    .bridge-scene-foot,
    .bridge-section-grid-empire,
    .bridge-section-grid-worlds,
    .bridge-section-grid-fleets,
    .bridge-section-grid-research,
    .bridge-section-grid-journal,
    .bridge-sidebar-right,
    .resource-topbar-primary,
    .resource-topbar-secondary,
    .activity-strip-grid,
    .context-card-stack-tiles,
    .build-catalog-grid {
        grid-template-columns: 1fr;
    }

    .bridge-sidebar {
        position: static;
    }

    .empire-identity-card,
    .bridge-overview-hero {
        grid-template-columns: 1fr;
    }

    .game-tab-bar-command {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bridge-section-grid-research > :first-child,
    .bridge-section-grid-worlds > :first-child {
        grid-row: auto;
        grid-column: auto;
    }

    .bridge-module-world-dossier,
    .bridge-build-panel,
    .bridge-module-world-stock,
    .bridge-module-world-infra,
    .bridge-module-world-queue,
    .bridge-module-fleet-cards,
    .bridge-module-fleet-hangar,
    .bridge-module-fleet-orders,
    .bridge-module-fleet-encounter {
        grid-column: auto;
        grid-area: auto;
    }

    .bridge-module-fleet-hangar .ship-focus-panel {
        grid-template-columns: 1fr;
    }

    .bridge-scene-status {
        align-items: flex-start;
        justify-items: start;
    }

    .bridge-scene-status-copy {
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .bridge-hud {
        grid-template-columns: 1fr;
    }

    .resource-topbar {
        padding: 12px;
    }

    .resource-topbar-primary,
    .resource-topbar-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
    }

    .resource-topbar-overflow .resource-topbar-drawer {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .empire-identity-card {
        grid-template-columns: 1fr;
    }

    .empire-identity-avatar {
        width: 76px;
        height: 76px;
    }

    .empire-identity-meta {
        grid-template-columns: 1fr;
    }

    .game-tab-bar-command {
        grid-template-columns: 1fr;
    }

    .bridge-scene-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px 8px;
    }

    .bridge-system-viewer {
        min-height: 420px;
        margin: 0 12px;
    }

    .bridge-scene-title h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .bridge-scene-foot,
    .bridge-scene-metrics,
    .inventory-card-world,
    .inventory-card-ship {
        grid-template-columns: 1fr;
    }

    .inventory-card-visual {
        width: 100%;
    }
}

/* Cockpit Grok Reset */
.theme-game-cockpit {
    --cockpit-bg-0: #060b15;
    --cockpit-bg-1: #0a1220;
    --cockpit-bg-2: #101a2b;
    --cockpit-panel: rgba(12, 20, 34, 0.88);
    --cockpit-panel-strong: rgba(10, 17, 29, 0.96);
    --cockpit-border: rgba(116, 212, 255, 0.16);
    --cockpit-border-strong: rgba(110, 255, 244, 0.38);
    --cockpit-text: #eef7ff;
    --cockpit-muted: #95a9c5;
    --cockpit-soft: #6d7f98;
    --cockpit-cyan: #43f2ff;
    --cockpit-teal: #1fd8ca;
    --cockpit-gold: #ffb85c;
    --cockpit-red: #ff6875;
    --cockpit-green: #63f4a8;
    --cockpit-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.theme-game-cockpit .page-shell {
    width: min(1880px, calc(100% - 18px));
}

.theme-game-cockpit .page-main {
    padding-top: 8px;
    padding-bottom: 28px;
}

.theme-game-cockpit .site-footer {
    display: none;
}

.theme-game-cockpit .cockpit-redesign {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 8px 4px 28px;
    color: var(--cockpit-text);
}

.theme-game-cockpit .cockpit-redesign::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 14% 10%, rgba(70, 130, 255, 0.18), transparent 26%),
        radial-gradient(circle at 82% 14%, rgba(67, 242, 255, 0.1), transparent 22%),
        linear-gradient(180deg, #060a13 0%, #091120 40%, #060b15 100%);
}

.theme-game-cockpit .cockpit-redesign::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
        radial-gradient(circle at 34% 71%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 31%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
        radial-gradient(circle at 89% 57%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
        radial-gradient(circle at 57% 86%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px);
    opacity: 0.45;
    pointer-events: none;
}

.theme-game-cockpit .cockpit-redesign,
.theme-game-cockpit .cockpit-redesign * {
    box-sizing: border-box;
}

.theme-game-cockpit .cockpit-redesign .panel,
.theme-game-cockpit .cockpit-redesign .cockpit-card-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-scene-card-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-world-system-card-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-world-dossier-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-world-actions-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-world-builds-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-world-admin-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-roster-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-stage-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-profile-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-orders-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-sidebar-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-encounter-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-research-active-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-research-tree-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-research-history-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-research-modifiers-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-research-expansion-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-message-inbox-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-notification-stack-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-list-v2,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-focus-v2 {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 24, 40, 0.94), rgba(8, 14, 25, 0.98));
    border: 1px solid var(--cockpit-border);
    border-radius: 24px;
    box-shadow: var(--cockpit-shadow);
    isolation: isolate;
}

.theme-game-cockpit .cockpit-redesign .panel::before,
.theme-game-cockpit .cockpit-redesign .cockpit-card-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-scene-card-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-world-system-card-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-world-dossier-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-world-actions-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-world-builds-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-world-admin-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-roster-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-stage-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-profile-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-orders-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-sidebar-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-encounter-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-research-active-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-research-tree-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-research-history-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-research-modifiers-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-research-expansion-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-message-inbox-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-notification-stack-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-list-v2::before,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-focus-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(71, 239, 255, 0.07), transparent 18%),
        radial-gradient(circle at top right, rgba(85, 190, 255, 0.12), transparent 28%);
    pointer-events: none;
}

.theme-game-cockpit .cockpit-redesign .panel > *,
.theme-game-cockpit .cockpit-redesign .cockpit-card-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-scene-card-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-world-system-card-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-world-dossier-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-world-actions-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-world-builds-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-world-admin-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-roster-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-stage-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-profile-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-orders-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-sidebar-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-fleet-encounter-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-research-active-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-research-tree-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-research-history-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-research-modifiers-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-research-expansion-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-message-inbox-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-notification-stack-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-list-v2 > *,
.theme-game-cockpit .cockpit-redesign .cockpit-journal-focus-v2 > * {
    position: relative;
    z-index: 1;
}

.theme-game-cockpit .cockpit-redesign .eyebrow,
.theme-game-cockpit .cockpit-redesign .muted-label,
.theme-game-cockpit .cockpit-redesign .context-card-kicker,
.theme-game-cockpit .cockpit-redesign .inventory-card-kicker,
.theme-game-cockpit .cockpit-redesign .planet-action-card-kicker,
.theme-game-cockpit .cockpit-redesign .construction-card-kicker,
.theme-game-cockpit .cockpit-redesign .fleet-card-kicker,
.theme-game-cockpit .cockpit-redesign .research-current-kicker,
.theme-game-cockpit .cockpit-redesign .fleet-mission-kicker,
.theme-game-cockpit .cockpit-redesign .governance-card-kicker,
.theme-game-cockpit .cockpit-redesign .cockpit-commander-species {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #78dfff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-redesign .muted-label {
    color: var(--cockpit-muted);
    letter-spacing: 0.14em;
}

.theme-game-cockpit .cockpit-redesign p,
.theme-game-cockpit .cockpit-redesign li,
.theme-game-cockpit .cockpit-redesign small,
.theme-game-cockpit .cockpit-redesign span {
    color: inherit;
}

.theme-game-cockpit .cockpit-redesign h1,
.theme-game-cockpit .cockpit-redesign h2,
.theme-game-cockpit .cockpit-redesign h3,
.theme-game-cockpit .cockpit-redesign h4,
.theme-game-cockpit .cockpit-redesign p {
    margin: 0;
}

.theme-game-cockpit .cockpit-redesign .button,
.theme-game-cockpit .cockpit-redesign button {
    font-family: inherit;
}

.theme-game-cockpit .cockpit-redesign .button {
    border-radius: 14px;
    border: 1px solid rgba(97, 203, 255, 0.22);
    transition: 160ms ease;
}

.theme-game-cockpit .cockpit-redesign .button:hover,
.theme-game-cockpit .cockpit-redesign .button:focus-visible {
    transform: translateY(-1px);
}

.theme-game-cockpit .cockpit-redesign .button-primary {
    background: linear-gradient(90deg, #22ebef, #5fd0ff);
    color: #041018;
    border-color: rgba(106, 255, 249, 0.48);
    box-shadow: 0 10px 26px rgba(40, 207, 255, 0.22);
}

.theme-game-cockpit .cockpit-redesign .button-ghost {
    background: rgba(10, 16, 26, 0.72);
    color: var(--cockpit-text);
}

.theme-game-cockpit .cockpit-redesign .button-inline {
    padding: 8px 14px;
    font-size: 0.82rem;
}

.theme-game-cockpit .cockpit-redesign .button-full {
    width: 100%;
    justify-content: center;
}

.theme-game-cockpit .cockpit-redesign .status-pill,
.theme-game-cockpit .cockpit-redesign .status-pill-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(108, 190, 255, 0.18);
    background: rgba(10, 18, 30, 0.7);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d7f8ff;
}

.theme-game-cockpit .cockpit-hud-v2 {
    position: sticky;
    top: 8px;
    z-index: 1200;
    display: grid;
    gap: 14px;
    overflow: visible;
    isolation: isolate;
    padding: 16px 20px;
    border-radius: 26px;
    border: 1px solid rgba(104, 192, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(7, 12, 22, 0.98));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    overflow: visible;
}

.theme-game-cockpit .cockpit-hud-v2::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67, 242, 255, 0.32), transparent);
}

.theme-game-cockpit .cockpit-hud-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.theme-game-cockpit .cockpit-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.theme-game-cockpit .cockpit-menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(114, 212, 255, 0.18);
    background: rgba(8, 15, 26, 0.9);
    place-items: center;
}

.theme-game-cockpit .cockpit-menu-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #c8f3ff;
}

.theme-game-cockpit .cockpit-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(96, 220, 255, 0.28);
    background:
        radial-gradient(circle at 30% 25%, rgba(214, 245, 255, 0.34), transparent 42%),
        linear-gradient(135deg, rgba(43, 95, 162, 0.9), rgba(17, 179, 201, 0.48));
    color: #ecfbff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.theme-game-cockpit .cockpit-brand-copy {
    display: grid;
    gap: 4px;
}

.theme-game-cockpit .cockpit-brand-copy strong {
    font-size: 1.55rem;
    letter-spacing: 0.08em;
}

.theme-game-cockpit .cockpit-brand-copy small {
    color: var(--cockpit-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-top-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.theme-game-cockpit .cockpit-top-tab {
    position: relative;
    min-width: 124px;
    padding: 14px 18px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #b8c7db;
    font-size: 1rem;
    font-weight: 600;
}

.theme-game-cockpit .cockpit-top-tab::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(67, 242, 255, 0.9), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.theme-game-cockpit .cockpit-top-tab:hover,
.theme-game-cockpit .cockpit-top-tab.is-active {
    color: #f5fdff;
}

.theme-game-cockpit .cockpit-top-tab.is-active::after,
.theme-game-cockpit .cockpit-top-tab:hover::after {
    transform: scaleX(1);
}

.theme-game-cockpit .cockpit-hud-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-game-cockpit .notification-shell {
    position: relative;
}

.theme-game-cockpit .cockpit-notification-button,
.theme-game-cockpit .cockpit-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(106, 192, 255, 0.16);
    background: rgba(9, 16, 26, 0.76);
    color: var(--cockpit-text);
    text-decoration: none;
}

.theme-game-cockpit .cockpit-notification-button {
    padding-right: 14px;
}

.theme-game-cockpit .cockpit-notification-count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(115, 176, 255, 0.24);
    color: #e8f7ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.theme-game-cockpit .cockpit-commander-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 290px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(110, 196, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(11, 18, 31, 0.94), rgba(16, 28, 48, 0.86));
}

.theme-game-cockpit .cockpit-commander-avatar {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(135deg, rgba(66, 98, 214, 0.86), rgba(53, 227, 219, 0.48));
    color: #effaff;
    font-size: 1.25rem;
    font-weight: 700;
}

.theme-game-cockpit .cockpit-commander-copy {
    display: grid;
    gap: 4px;
}

.theme-game-cockpit .cockpit-commander-copy strong {
    font-size: 1rem;
}

.theme-game-cockpit .cockpit-commander-copy small {
    color: var(--cockpit-muted);
}

.theme-game-cockpit .cockpit-commander-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.theme-game-cockpit .cockpit-commander-meta span {
    color: #b7cce0;
    font-size: 0.8rem;
}

.theme-game-cockpit .cockpit-commander-meta strong {
    font-size: 1.4rem;
    color: var(--cockpit-cyan);
}

.theme-game-cockpit .cockpit-notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 30px));
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--cockpit-border-strong);
    background: linear-gradient(180deg, rgba(9, 14, 24, 0.98), rgba(8, 12, 20, 0.98));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.theme-game-cockpit .cockpit-hud-ledger {
    position: relative;
    z-index: 1260;
    overflow: visible;
}

.theme-game-cockpit .resource-topbar {
    overflow: visible;
}

.theme-game-cockpit .resource-topbar-shell {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1270;
    isolation: isolate;
    overflow: visible;
}

.theme-game-cockpit .resource-topbar-primary,
.theme-game-cockpit .resource-topbar-secondary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    align-items: start;
}

.theme-game-cockpit .resource-topbar-secondary {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    grid-auto-rows: minmax(76px, auto);
    align-content: start;
}

.theme-game-cockpit .resource-topbar-overflow {
    position: relative;
    overflow: visible;
    isolation: isolate;
    align-self: stretch;
}

.theme-game-cockpit .resource-topbar-overflow:hover,
.theme-game-cockpit .resource-topbar-overflow:focus-within {
    z-index: 1420;
}

.theme-game-cockpit .resource-topbar-overflow.is-locked {
    z-index: 1440;
}

.theme-game-cockpit .resource-topbar-drawer {
    display: grid;
    gap: 14px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(980px, calc(100vw - 48px));
    max-width: min(980px, calc(100vw - 48px));
    min-height: 180px;
    max-height: min(68vh, 620px);
    padding: 16px 16px 20px;
    border-radius: 22px;
    border: 1px solid rgba(94, 214, 255, 0.18);
    background: linear-gradient(180deg, rgba(9, 15, 25, 0.98), rgba(7, 11, 19, 0.98));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 140ms ease;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    z-index: 1450;
}

.theme-game-cockpit .resource-topbar-overflow:hover .resource-topbar-drawer,
.theme-game-cockpit .resource-topbar-overflow:focus-within .resource-topbar-drawer {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: min(68vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
}

.theme-game-cockpit .resource-topbar-overflow.is-locked .resource-topbar-drawer {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: min(68vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
}

.theme-game-cockpit .resource-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(106, 189, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(14, 23, 38, 0.95), rgba(10, 16, 27, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: visible;
    isolation: isolate;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip {
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 16px;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 12px;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-copy span {
    font-size: 0.64rem;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-copy strong {
    font-size: 0.94rem;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-copy small {
    font-size: 0.68rem;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-info {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
}

.theme-game-cockpit .resource-chip:hover,
.theme-game-cockpit .resource-chip:focus-within {
    z-index: 1460;
}

.theme-game-cockpit .resource-chip-icon,
.theme-game-cockpit .resource-reserve-icon,
.theme-game-cockpit .build-cost-icon,
.theme-game-cockpit .planet-action-card-icon,
.theme-game-cockpit .construction-card-icon,
.theme-game-cockpit .context-card-icon,
.theme-game-cockpit .governance-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: #eaf8ff;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    padding: 0;
}

.theme-game-cockpit .resource-chip-icon svg,
.theme-game-cockpit .resource-reserve-icon svg,
.theme-game-cockpit .build-cost-icon svg {
    display: block;
    width: 86%;
    height: 86%;
    margin: auto;
}

.theme-game-cockpit .resource-chip-copy,
.theme-game-cockpit .resource-reserve-copy,
.theme-game-cockpit .resource-mini-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.theme-game-cockpit .resource-chip-copy span,
.theme-game-cockpit .resource-reserve-copy strong,
.theme-game-cockpit .resource-mini-copy strong {
    color: #b9c9dd;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-game-cockpit .resource-topbar-drawer .resource-chip-copy span {
    white-space: normal;
    line-height: 1.12;
}

.theme-game-cockpit .resource-chip-copy strong,
.theme-game-cockpit .resource-reserve-copy span,
.theme-game-cockpit .resource-line-title strong {
    color: #fbfeff;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.theme-game-cockpit .resource-chip-copy small,
.theme-game-cockpit .resource-reserve-copy small,
.theme-game-cockpit .resource-mini-copy small {
    color: var(--cockpit-muted);
    font-size: 0.76rem;
}

.theme-game-cockpit .resource-chip-info {
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(113, 195, 255, 0.2);
    color: #9fdef7;
    font-size: 0.7rem;
    font-weight: 700;
}

.theme-game-cockpit .resource-chip-command {
    border-color: rgba(255, 188, 96, 0.24);
    background: linear-gradient(180deg, rgba(27, 22, 18, 0.96), rgba(16, 13, 10, 0.92));
}

.theme-game-cockpit .resource-chip-credit {
    border-color: rgba(255, 190, 103, 0.24);
}

.theme-game-cockpit .resource-chip-energy {
    border-color: rgba(67, 242, 255, 0.28);
}

.theme-game-cockpit .resource-chip-civil {
    border-color: rgba(104, 193, 255, 0.22);
}

.theme-game-cockpit .resource-chip-bio {
    border-color: rgba(105, 244, 168, 0.22);
}

.theme-game-cockpit .resource-chip-overflow {
    background: linear-gradient(135deg, rgba(17, 31, 49, 0.96), rgba(9, 16, 26, 0.92));
    cursor: pointer;
}

.theme-game-cockpit .resource-topbar-overflow.is-locked .resource-chip-overflow {
    border-color: rgba(255, 191, 107, 0.28);
    background: linear-gradient(135deg, rgba(45, 31, 17, 0.96), rgba(20, 14, 8, 0.94));
}

.theme-game-cockpit .resource-topbar-overflow.is-locked .resource-chip-overflow .resource-chip-icon {
    border-color: rgba(255, 205, 128, 0.36);
    color: #ffd897;
    background: linear-gradient(180deg, rgba(255, 205, 128, 0.2), rgba(70, 44, 10, 0.22));
}

.theme-game-cockpit .resource-topbar-overflow.is-locked .resource-chip-overflow .resource-chip-copy span,
.theme-game-cockpit .resource-topbar-overflow.is-locked .resource-chip-overflow .resource-chip-copy strong {
    color: #fff2cf;
}

.theme-game-cockpit .resource-chip-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(392px, calc(100vw - 40px));
    min-height: 268px;
    height: auto;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 18px;
    border: 1px solid rgba(114, 212, 255, 0.18);
    background: linear-gradient(180deg, rgba(8, 15, 27, 0.98), rgba(8, 13, 22, 0.98));
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 140ms ease;
    z-index: 1500;
    box-sizing: border-box;
    overflow: visible;
}

.theme-game-cockpit .resource-chip:hover .resource-chip-tooltip,
.theme-game-cockpit .resource-chip:focus-within .resource-chip-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-game-cockpit .resource-chip-tooltip strong {
    display: block;
    margin-bottom: 4px;
}

.theme-game-cockpit .resource-chip-tooltip p,
.theme-game-cockpit .resource-chip-tooltip-empty {
    margin: 0;
    line-height: 1.55;
}

.theme-game-cockpit .resource-chip-chart {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    min-height: 128px;
    border-radius: 14px;
    border: 1px solid rgba(114, 212, 255, 0.12);
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.9), rgba(7, 13, 24, 0.92));
}

.theme-game-cockpit .resource-chip-chart-values,
.theme-game-cockpit .resource-chip-chart-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(212, 231, 249, 0.8);
}

.theme-game-cockpit .resource-chip-chart-values span:last-child,
.theme-game-cockpit .resource-chip-chart-axis span:last-child {
    text-align: right;
}

.theme-game-cockpit .resource-chip-chart-shell {
    border-radius: 12px;
    background: rgba(4, 10, 18, 0.74);
    min-height: 76px;
    overflow: hidden;
}

.theme-game-cockpit .resource-chip-chart-svg {
    display: block;
    width: 100%;
    height: 76px;
}

.theme-game-cockpit .resource-chip-chart-grid {
    stroke: rgba(188, 214, 236, 0.14);
    stroke-width: 1;
}

.theme-game-cockpit .resource-chip-chart-area {
    fill: rgba(94, 217, 255, 0.14);
}

.theme-game-cockpit .resource-chip-chart-line {
    fill: none;
    stroke: #65e8ff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-game-cockpit .resource-chip-chart-point {
    fill: #fff5cf;
    stroke: rgba(101, 232, 255, 0.42);
    stroke-width: 2;
}

.theme-game-cockpit .resource-chip-breakdown {
    display: grid;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(114, 212, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 18, 31, 0.9), rgba(6, 11, 20, 0.94));
}

.theme-game-cockpit .resource-chip-breakdown li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label amount"
        "label rate";
    gap: 2px 14px;
    align-items: center;
    color: var(--cockpit-muted);
    font-size: 0.84rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-game-cockpit .resource-chip-breakdown li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.theme-game-cockpit .resource-chip-breakdown li span {
    grid-area: label;
    min-width: 0;
    color: #eff7ff;
}

.theme-game-cockpit .resource-chip-breakdown li strong {
    grid-area: amount;
    justify-self: end;
}

.theme-game-cockpit .resource-chip-breakdown li small {
    grid-area: rate;
    justify-self: end;
}

.theme-game-cockpit .cockpit-live-strip {
    padding: 0 2px;
}

.theme-game-cockpit .activity-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.theme-game-cockpit .activity-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(102, 188, 255, 0.14);
    background: linear-gradient(180deg, rgba(12, 20, 34, 0.92), rgba(8, 14, 25, 0.96));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.theme-game-cockpit .activity-card-critical {
    border-color: rgba(255, 106, 122, 0.22);
}

.theme-game-cockpit .activity-card-warm {
    border-color: rgba(255, 187, 103, 0.22);
}

.theme-game-cockpit .activity-card-head,
.theme-game-cockpit .activity-card-meta,
.theme-game-cockpit .context-card-head-row,
.theme-game-cockpit .system-selection-head,
.theme-game-cockpit .notification-card-header,
.theme-game-cockpit .ship-stat-line,
.theme-game-cockpit .construction-card-meta,
.theme-game-cockpit .research-showcase-status,
.theme-game-cockpit .research-showcase-foot,
.theme-game-cockpit .research-current-card-head,
.theme-game-cockpit .research-current-meta,
.theme-game-cockpit .governance-card-head,
.theme-game-cockpit .planet-action-card-head,
.theme-game-cockpit .construction-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.theme-game-cockpit .activity-card-title,
.theme-game-cockpit .context-card-title-block,
.theme-game-cockpit .planet-action-card-copy,
.theme-game-cockpit .fleet-copy,
.theme-game-cockpit .construction-card-copy,
.theme-game-cockpit .research-showcase-copy {
    min-width: 0;
}

.theme-game-cockpit .context-progress,
.theme-game-cockpit .queue-bar,
.theme-game-cockpit .ship-stat-meter {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.theme-game-cockpit .context-progress span,
.theme-game-cockpit .queue-bar span,
.theme-game-cockpit .ship-stat-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2cf0ef, #62c9ff);
}

.theme-game-cockpit .cockpit-shell-v2 {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.theme-game-cockpit .cockpit-side-rail-v2 {
    position: sticky;
    top: 174px;
    display: grid;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 24px;
    border: 1px solid rgba(110, 192, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(8, 13, 22, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.theme-game-cockpit .cockpit-side-rail-head {
    display: none;
}

.theme-game-cockpit .cockpit-side-rail-head strong {
    font-size: 1.1rem;
    line-height: 1.05;
}

.theme-game-cockpit .cockpit-side-rail-head small {
    color: var(--cockpit-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.theme-game-cockpit .cockpit-side-rail-menu {
    display: grid;
    gap: 10px;
}

.theme-game-cockpit .cockpit-subtab {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    width: 100%;
    min-height: 86px;
    padding: 12px 8px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: #a8bfd8;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
}

.theme-game-cockpit .cockpit-subtab-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.theme-game-cockpit .cockpit-subtab-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    justify-items: center;
}

.theme-game-cockpit .cockpit-subtab-copy strong {
    font-size: 0.72rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.theme-game-cockpit .cockpit-subtab-copy small {
    display: none;
}

.theme-game-cockpit .cockpit-subtab.is-active {
    border-color: rgba(86, 226, 255, 0.32);
    background: linear-gradient(180deg, rgba(25, 65, 102, 0.76), rgba(10, 18, 31, 0.88));
    color: #f3feff;
}

.theme-game-cockpit .cockpit-subtab.is-active .cockpit-subtab-icon {
    border-color: rgba(94, 223, 255, 0.24);
    background: linear-gradient(180deg, rgba(74, 187, 255, 0.26), rgba(8, 20, 35, 0.6));
}

.theme-game-cockpit .cockpit-subtab.is-active .cockpit-subtab-copy small {
    color: #d6f7ff;
}

.theme-game-cockpit .cockpit-main-v2 {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.theme-game-cockpit .cockpit-panel-v2 {
    display: none;
}

.theme-game-cockpit .cockpit-panel-v2.is-active {
    display: block;
    animation: cockpit-fade-in 180ms ease;
}

@keyframes cockpit-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-game-cockpit .cockpit-overview-hero-v2 {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 18px;
    margin-bottom: 16px;
}

.theme-game-cockpit .cockpit-overview-story,
.theme-game-cockpit .cockpit-overview-focus {
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid var(--cockpit-border);
    background: linear-gradient(180deg, rgba(12, 20, 34, 0.94), rgba(8, 13, 22, 0.98));
    box-shadow: var(--cockpit-shadow);
}

.theme-game-cockpit .cockpit-overview-story {
    display: grid;
    gap: 18px;
    min-height: 250px;
    background:
        linear-gradient(90deg, rgba(6, 12, 22, 0.94), rgba(6, 12, 22, 0.66)),
        url('/assets/img/ui/grok/system-oceanic-sun.jpg') center right / cover no-repeat;
}

.theme-game-cockpit .cockpit-overview-story h1 {
    margin: 0;
    font-size: clamp(2.55rem, 4vw, 4.2rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.theme-game-cockpit .cockpit-overview-biography {
    max-width: 64ch;
    margin: 0;
    color: #d6e4f2;
    font-size: 1rem;
    line-height: 1.6;
}

.theme-game-cockpit .cockpit-profile-modifiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-game-cockpit .cockpit-profile-modifiers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 9, 18, 0.38);
}

.theme-game-cockpit .cockpit-overview-focus {
    display: grid;
    gap: 14px;
}

.theme-game-cockpit .cockpit-focus-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(99, 200, 255, 0.14);
    background: linear-gradient(180deg, rgba(15, 24, 40, 0.9), rgba(9, 15, 25, 0.95));
}

.theme-game-cockpit .cockpit-focus-card span {
    display: block;
    color: #7be3ff;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-focus-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.72rem;
}

.theme-game-cockpit .cockpit-focus-card small {
    display: block;
    margin-top: 8px;
    color: var(--cockpit-muted);
    line-height: 1.45;
}

.theme-game-cockpit .cockpit-focus-card-art {
    background:
        linear-gradient(180deg, rgba(9, 13, 23, 0.86), rgba(8, 12, 21, 0.98)),
        url('/assets/img/ui/grok/planet-desert-landscape.jpg') center / cover no-repeat;
}

.theme-game-cockpit .cockpit-overview-grid-v2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.92fr;
    grid-template-areas:
        "stock worlds missions state"
        "analytics operations fleets market";
    gap: 18px;
    align-items: start;
}

.theme-game-cockpit .cockpit-overview-grid-v2[data-subnav-layout="empire-overview"] {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas: "stock state";
}

.theme-game-cockpit .cockpit-overview-grid-v2[data-subnav-layout="empire-worlds"] {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "worlds fleets";
}

.theme-game-cockpit .cockpit-overview-grid-v2[data-subnav-layout="empire-operations"] {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "missions operations";
}

.theme-game-cockpit .cockpit-overview-grid-v2[data-subnav-layout="empire-market"] {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "fleets market";
}

.theme-game-cockpit .cockpit-card-stock { grid-area: stock; }
.theme-game-cockpit .cockpit-card-worlds { grid-area: worlds; }
.theme-game-cockpit .cockpit-card-missions { grid-area: missions; }
.theme-game-cockpit .cockpit-card-state { grid-area: state; }
.theme-game-cockpit .cockpit-card-analytics { grid-area: analytics; }
.theme-game-cockpit .cockpit-card-operations { grid-area: operations; }
.theme-game-cockpit .cockpit-card-fleets { grid-area: fleets; }
.theme-game-cockpit .cockpit-card-market { grid-area: market; }

.theme-game-cockpit .cockpit-card-worlds {
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.88), rgba(8, 13, 22, 0.98)),
        url('/assets/img/ui/grok/system-oceanic-sun.jpg') center / cover no-repeat;
}

.theme-game-cockpit .cockpit-card-fleets {
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.9), rgba(8, 13, 22, 0.98)),
        url('/assets/img/ui/grok/ship-capital-orbit.jpg') center / cover no-repeat;
}

.theme-game-cockpit .cockpit-card-market {
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(8, 13, 22, 0.98)),
        url('/assets/img/ui/grok/station-landing-docks.jpg') center / cover no-repeat;
}

.theme-game-cockpit .cockpit-card-analytics {
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.9), rgba(8, 13, 22, 0.98)),
        url('/assets/img/ui/grok/tech-reactor-core.jpg') center / cover no-repeat;
}

.theme-game-cockpit .cockpit-card-head,
.theme-game-cockpit .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 0;
}

.theme-game-cockpit .cockpit-card-head h2,
.theme-game-cockpit .panel-heading h3,
.theme-game-cockpit .cockpit-redesign h3 {
    margin: 4px 0 0;
    font-size: 1.65rem;
    line-height: 1.04;
}

.theme-game-cockpit .notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.theme-game-cockpit .notification-panel-header small {
    color: var(--cockpit-muted);
}

.theme-game-cockpit .resource-list-visual-overview,
.theme-game-cockpit .inventory-card-grid-overview,
.theme-game-cockpit .cockpit-mission-stack,
.theme-game-cockpit .mini-stat-grid-overview,
.theme-game-cockpit .cockpit-timeline-list,
.theme-game-cockpit .inventory-card-grid-fleet,
.theme-game-cockpit .cockpit-market-table,
.theme-game-cockpit .context-card-stack,
.theme-game-cockpit .timeline-list {
    padding: 18px 22px 22px;
}

.theme-game-cockpit .mini-stat-grid,
.theme-game-cockpit .mini-stat-grid-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-game-cockpit .mini-stat-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(7, 12, 21, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-game-cockpit .mini-stat-card span {
    display: block;
    color: var(--cockpit-muted);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-game-cockpit .mini-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.45rem;
}

.theme-game-cockpit .mini-stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--cockpit-muted);
}

.theme-game-cockpit .resource-list,
.theme-game-cockpit .detail-list,
.theme-game-cockpit .tag-list,
.theme-game-cockpit .queue-list,
.theme-game-cockpit .timeline-list,
.theme-game-cockpit .journal-list,
.theme-game-cockpit .notification-stack {
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-game-cockpit .resource-list-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.theme-game-cockpit .resource-reserve-tile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.72);
}

.theme-game-cockpit .inventory-card-grid,
.theme-game-cockpit .fleet-grid,
.theme-game-cockpit .planet-action-grid,
.theme-game-cockpit .build-catalog-grid,
.theme-game-cockpit .fleet-mission-grid,
.theme-game-cockpit .research-node-grid {
    display: grid;
    gap: 12px;
}

.theme-game-cockpit .inventory-card-grid-rail {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.theme-game-cockpit .inventory-card,
.theme-game-cockpit .fleet-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.72);
    text-align: left;
    color: var(--cockpit-text);
}

.theme-game-cockpit .inventory-card.is-selected,
.theme-game-cockpit .fleet-card.is-selected {
    border-color: rgba(88, 239, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(88, 239, 255, 0.08);
}

.theme-game-cockpit .inventory-card-visual,
.theme-game-cockpit .fleet-visual-shell-roster {
    overflow: hidden;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.theme-game-cockpit .inventory-card-visual img,
.theme-game-cockpit .fleet-visual-shell-roster img,
.theme-game-cockpit .system-orbit-node-visual img,
.theme-game-cockpit .system-selection-head img,
.theme-game-cockpit .journal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-game-cockpit .inventory-card-meta,
.theme-game-cockpit .fleet-roster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--cockpit-muted);
    font-size: 0.78rem;
}

.theme-game-cockpit .fleet-roster-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(67, 242, 255, 0.12);
    color: #b9fbff;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-worlds-shell-v2 {
    display: grid;
    grid-template-columns: 1.02fr 1.24fr 1.24fr 0.92fr;
    grid-template-areas:
        "scene scene scene system"
        "dossier actions builds admin";
    gap: 18px;
    align-items: start;
}

.theme-game-cockpit .cockpit-worlds-shell-v2[data-subnav-layout="worlds-overview"] {
    grid-template-columns: 1.35fr 0.92fr;
    grid-template-areas:
        "scene dossier";
}

.theme-game-cockpit .cockpit-worlds-shell-v2[data-subnav-layout="worlds-builds"] {
    grid-template-columns: 0.96fr 1.04fr;
    grid-template-areas:
        "actions builds";
}

.theme-game-cockpit .cockpit-worlds-shell-v2[data-subnav-layout="worlds-system"] {
    grid-template-columns: 1.28fr 0.9fr;
    grid-template-areas:
        "scene system";
}

.theme-game-cockpit .cockpit-worlds-shell-v2[data-subnav-layout="worlds-admin"] {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas:
        "scene admin"
        "dossier admin";
}

.theme-game-cockpit .cockpit-scene-card-v2 { grid-area: scene; }
.theme-game-cockpit .cockpit-world-system-card-v2 { grid-area: system; }
.theme-game-cockpit .cockpit-world-dossier-v2 { grid-area: dossier; }
.theme-game-cockpit .cockpit-world-actions-v2 { grid-area: actions; }
.theme-game-cockpit .cockpit-world-builds-v2 { grid-area: builds; }
.theme-game-cockpit .cockpit-world-admin-v2 { grid-area: admin; }

.theme-game-cockpit .cockpit-scene-card-v2 {
    padding: 0 0 22px;
    min-height: 690px;
    align-self: start;
}

.theme-game-cockpit .cockpit-scene-backdrop-v2 {
    position: absolute;
    inset: 0 0 auto;
    height: 55%;
    background:
        linear-gradient(180deg, rgba(6, 10, 18, 0.08), rgba(6, 10, 18, 0.88));
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.theme-game-cockpit .cockpit-scene-header-v2,
.theme-game-cockpit .cockpit-scene-footer-v2 {
    padding: 24px 24px 0;
}

.theme-game-cockpit .cockpit-scene-header-v2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.theme-game-cockpit .cockpit-scene-title-v2 h1 {
    margin: 4px 0 10px;
    font-size: clamp(3.1rem, 5vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.theme-game-cockpit .cockpit-scene-subtitle-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #d8e6f5;
    margin: 0;
}

.theme-game-cockpit .cockpit-scene-badges-v2 {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.theme-game-cockpit .cockpit-orbit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(105, 190, 255, 0.18);
    background: rgba(8, 14, 24, 0.74);
}

.theme-game-cockpit .cockpit-planet-viewer-v2,
.theme-game-cockpit .cockpit-ship-viewer-v2 {
    min-height: 450px;
    margin: 0 24px;
    border-radius: 26px;
    border: 1px solid rgba(112, 196, 255, 0.14);
    background: linear-gradient(180deg, rgba(2, 7, 15, 0.96), rgba(3, 9, 17, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.theme-game-cockpit .cockpit-planet-viewer-v2 canvas,
.theme-game-cockpit .cockpit-ship-viewer-v2 canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.theme-game-cockpit .cockpit-scene-footer-v2 {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
}

.theme-game-cockpit .cockpit-scene-summary-v2 p {
    margin: 0;
    color: #d7e5f3;
    line-height: 1.6;
}

.theme-game-cockpit .cockpit-scene-metrics-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.theme-game-cockpit .cockpit-metric-tile {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.78);
}

.theme-game-cockpit .cockpit-metric-tile span {
    display: block;
    color: var(--cockpit-muted);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-metric-tile strong {
    display: block;
    margin-top: 8px;
    font-size: 1.5rem;
}

.theme-game-cockpit .cockpit-metric-tile small {
    display: block;
    margin-top: 8px;
    color: var(--cockpit-muted);
}

.theme-game-cockpit .cockpit-world-system-card-v2,
.theme-game-cockpit .cockpit-world-dossier-v2,
.theme-game-cockpit .cockpit-world-actions-v2,
.theme-game-cockpit .cockpit-world-builds-v2,
.theme-game-cockpit .cockpit-world-admin-v2 {
    padding-bottom: 22px;
    align-self: start;
}

.theme-game-cockpit .cockpit-system-map-v2 {
    padding: 18px 22px 10px;
}

.theme-game-cockpit .system-orbit-stage {
    position: relative;
    min-height: 300px;
    border-radius: 22px;
    border: 1px solid rgba(94, 170, 255, 0.14);
    background:
        radial-gradient(circle at center, rgba(255, 182, 84, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(3, 8, 16, 0.96), rgba(5, 11, 20, 0.98));
    overflow: hidden;
}

.theme-game-cockpit .system-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orbit-size);
    height: var(--orbit-size);
    border-radius: 999px;
    border: 1px solid rgba(111, 197, 255, 0.12);
    transform: translate(-50%, -50%);
}

.theme-game-cockpit .system-orbit-star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff4c8 0%, #f8c96b 45%, #e78b32 100%);
    box-shadow: 0 0 30px rgba(255, 183, 81, 0.52);
}

.theme-game-cockpit .system-orbit-star span {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    color: #ffe7bf;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-game-cockpit .system-orbit-node {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d9f4ff;
    transform: translate(-50%, -50%);
}

.theme-game-cockpit .system-orbit-node-visual {
    overflow: hidden;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.theme-game-cockpit .system-orbit-node.is-selected .system-orbit-node-visual {
    border-color: rgba(88, 239, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(71, 242, 255, 0.14);
}

.theme-game-cockpit .system-orbit-selection-v2 {
    padding: 12px 22px 0;
}

.theme-game-cockpit .system-selection-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(6, 12, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-game-cockpit .system-selection-head img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.theme-game-cockpit .cockpit-detail-grid,
.theme-game-cockpit .detail-list-world {
    display: grid;
    gap: 0;
    padding: 18px 22px 0;
}

.theme-game-cockpit .detail-list-world li,
.theme-game-cockpit .detail-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-game-cockpit .detail-list-world li:last-child,
.theme-game-cockpit .detail-list li:last-child {
    border-bottom: 0;
}

.theme-game-cockpit .stat-stack {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.theme-game-cockpit .trend-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.theme-game-cockpit .trend-chip-up {
    background: rgba(99, 244, 168, 0.14);
    color: #b7ffd5;
}

.theme-game-cockpit .trend-chip-down {
    background: rgba(255, 104, 117, 0.14);
    color: #ffd3d8;
}

.theme-game-cockpit .trend-chip-neutral {
    background: rgba(107, 146, 194, 0.18);
    color: #d9e8ff;
}

.theme-game-cockpit .cockpit-world-resource-strip,
.theme-game-cockpit .cockpit-trait-columns-v2,
.theme-game-cockpit .cockpit-admin-columns-v2 {
    padding: 16px 22px 0;
}

.theme-game-cockpit .resource-list-compact {
    display: grid;
    gap: 10px;
}

.theme-game-cockpit .resource-mini-card,
.theme-game-cockpit .context-card,
.theme-game-cockpit .governance-card,
.theme-game-cockpit .notification-card,
.theme-game-cockpit .journal-entry {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.72);
}

.theme-game-cockpit .resource-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.theme-game-cockpit .resource-line-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-game-cockpit .cockpit-trait-columns-v2,
.theme-game-cockpit .cockpit-admin-columns-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.theme-game-cockpit .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-game-cockpit .tag-list li {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(110, 194, 255, 0.16);
    background: rgba(9, 15, 24, 0.68);
    color: #d7ebf7;
    font-size: 0.84rem;
}

.theme-game-cockpit .tag-list-positive li {
    border-color: rgba(99, 244, 168, 0.18);
}

.theme-game-cockpit .tag-list-warning li {
    border-color: rgba(255, 184, 92, 0.18);
}

.theme-game-cockpit .cockpit-action-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 22px 0;
}

.theme-game-cockpit .planet-action-card,
.theme-game-cockpit .construction-card,
.theme-game-cockpit .fleet-mission-card,
.theme-game-cockpit .research-showcase-card,
.theme-game-cockpit .research-lane-premium,
.theme-game-cockpit .research-current-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(102, 194, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 12, 22, 0.74), rgba(7, 12, 22, 0.94)),
        var(--card-art) center / cover no-repeat;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.theme-game-cockpit .planet-action-card-overlay,
.theme-game-cockpit .construction-card-overlay,
.theme-game-cockpit .fleet-mission-card-overlay,
.theme-game-cockpit .research-showcase-card-overlay,
.theme-game-cockpit .research-lane-overlay,
.theme-game-cockpit .research-current-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 9, 18, 0.36), rgba(4, 9, 18, 0.96));
    backdrop-filter: blur(8px) saturate(0.9);
    pointer-events: none;
}

.theme-game-cockpit .planet-action-card > *,
.theme-game-cockpit .construction-card > *,
.theme-game-cockpit .fleet-mission-card > *,
.theme-game-cockpit .research-showcase-card > *,
.theme-game-cockpit .research-lane-premium > *,
.theme-game-cockpit .research-current-card > * {
    position: relative;
    z-index: 1;
}

.theme-game-cockpit .planet-action-card {
    display: grid;
    gap: 16px;
    min-height: 218px;
    padding: 18px;
}

.theme-game-cockpit .planet-action-card strong,
.theme-game-cockpit .construction-card strong,
.theme-game-cockpit .fleet-mission-card strong,
.theme-game-cockpit .research-showcase-card strong {
    font-size: 1.2rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.theme-game-cockpit .research-showcase-card p,
.theme-game-cockpit .research-showcase-card small,
.theme-game-cockpit .research-lane-premium .muted-label,
.theme-game-cockpit .research-current-card p,
.theme-game-cockpit .research-current-card small {
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.theme-game-cockpit .construction-card {
    display: grid;
    gap: 16px;
    min-height: 320px;
    padding: 18px;
}

.theme-game-cockpit .cockpit-build-grid-v2,
.theme-game-cockpit .build-catalog-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 22px 0;
}

.theme-game-cockpit .build-cost-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-game-cockpit .build-cost {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.theme-game-cockpit .build-card-lock {
    color: #ffcf8e;
}

.theme-game-cockpit .governance-card,
.theme-game-cockpit .context-card,
.theme-game-cockpit .notification-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.theme-game-cockpit .context-card-stack,
.theme-game-cockpit .notification-stack,
.theme-game-cockpit .journal-list,
.theme-game-cockpit .cockpit-journal-channel-stack {
    display: grid;
    gap: 12px;
}

.theme-game-cockpit .cockpit-admin-block-v2 {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.72);
}

.theme-game-cockpit .cockpit-fleet-shell-v2 {
    display: grid;
    grid-template-columns: 0.95fr 1.28fr 0.92fr;
    grid-template-areas:
        "roster stage profile"
        "roster orders encounter"
        "sidebar sidebar encounter";
    gap: 18px;
    align-items: start;
}

.theme-game-cockpit .cockpit-fleet-shell-v2[data-subnav-layout="fleets-overview"] {
    grid-template-columns: 0.94fr 1.2fr 0.86fr;
    grid-template-areas: "roster stage profile";
}

.theme-game-cockpit .cockpit-fleet-shell-v2[data-subnav-layout="fleets-orders"] {
    grid-template-columns: 0.96fr 1.08fr 0.96fr;
    grid-template-areas:
        "roster orders sidebar";
}

.theme-game-cockpit .cockpit-fleet-shell-v2[data-subnav-layout="fleets-encounters"] {
    grid-template-columns: 0.94fr 1.18fr 0.88fr;
    grid-template-areas:
        "roster encounter sidebar";
}

.theme-game-cockpit .cockpit-fleet-roster-v2 { grid-area: roster; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-fleet-stage-v2 { grid-area: stage; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-fleet-profile-v2 { grid-area: profile; padding: 22px; }
.theme-game-cockpit .cockpit-fleet-orders-v2 { grid-area: orders; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-fleet-sidebar-v2 { grid-area: sidebar; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-fleet-encounter-v2 { grid-area: encounter; padding-bottom: 22px; }

.theme-game-cockpit .cockpit-fleet-grid-v2,
.theme-game-cockpit .cockpit-fleet-mission-grid-v2 {
    padding: 18px 22px 0;
}

.theme-game-cockpit .cockpit-fleet-mission-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-game-cockpit .cockpit-fleet-viewer-shell-v2 {
    padding: 18px 22px 0;
}

.theme-game-cockpit .cockpit-ship-card-v2 {
    display: grid;
    gap: 16px;
}

.theme-game-cockpit .ship-stat-line {
    align-items: center;
}

.theme-game-cockpit .ship-stat-line strong:first-child {
    min-width: 88px;
}

.theme-game-cockpit .fleet-mission-card {
    display: grid;
    gap: 16px;
    min-height: 214px;
    padding: 18px;
}

.theme-game-cockpit .cockpit-encounter-card-v2 {
    min-height: 260px;
    margin: 18px 22px 0;
    padding: 18px;
}

.theme-game-cockpit .cockpit-encounter-actions-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px 0;
}

.theme-game-cockpit .cockpit-research-shell-v2 {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 0.92fr;
    grid-template-areas:
        "active active history"
        "tree tree history"
        "tree tree modifiers"
        "tree tree expansion";
    gap: 18px;
    align-items: start;
}

.theme-game-cockpit .cockpit-research-shell-v2[data-subnav-layout="research-overview"] {
    grid-template-columns: 1.18fr 0.82fr;
    grid-template-areas:
        "active history"
        "modifiers history";
}

.theme-game-cockpit .cockpit-research-shell-v2[data-subnav-layout="research-tree"] {
    grid-template-columns: 1.24fr 0.76fr;
    grid-template-areas:
        "tree expansion";
}

.theme-game-cockpit .cockpit-research-shell-v2[data-subnav-layout="research-history"] {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "history modifiers"
        "history expansion";
}

.theme-game-cockpit .cockpit-research-active-v2 { grid-area: active; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-research-tree-v2 { grid-area: tree; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-research-history-v2 { grid-area: history; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-research-modifiers-v2 { grid-area: modifiers; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-research-expansion-v2 { grid-area: expansion; padding-bottom: 22px; }

.theme-game-cockpit .research-active-shell,
.theme-game-cockpit .research-lane-grid-premium,
.theme-game-cockpit .cockpit-research-highlights {
    padding: 18px 22px 0;
}

.theme-game-cockpit .research-domain-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 18px;
}

.theme-game-cockpit .research-domain-tab {
    min-width: 154px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 12, 22, 0.7);
    color: #d8edf6;
    text-align: left;
}

.theme-game-cockpit .research-domain-tab small {
    display: block;
    margin-top: 4px;
    color: var(--cockpit-muted);
}

.theme-game-cockpit .research-domain-tab.is-active {
    border-color: rgba(87, 238, 255, 0.32);
    background: linear-gradient(180deg, rgba(18, 55, 78, 0.86), rgba(9, 16, 27, 0.92));
}

.theme-game-cockpit .research-lane-premium,
.theme-game-cockpit .research-current-card {
    padding: 18px;
}

.theme-game-cockpit .research-node-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-game-cockpit .research-showcase-card {
    display: grid;
    gap: 14px;
    min-height: 328px;
    padding: 16px;
}

.theme-game-cockpit .construction-card,
.theme-game-cockpit .research-showcase-card {
    display: grid;
    grid-template-rows: minmax(182px, 46%) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(8, 13, 24, 0.96), rgba(5, 10, 20, 0.99));
}

.theme-game-cockpit .construction-card::before,
.theme-game-cockpit .research-showcase-card::before,
.theme-game-cockpit .construction-card-overlay,
.theme-game-cockpit .research-showcase-card-overlay {
    display: none;
}

.theme-game-cockpit .construction-card-media,
.theme-game-cockpit .research-showcase-media {
    min-height: 182px;
    background: var(--card-art) center / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-game-cockpit .construction-card-body,
.theme-game-cockpit .research-showcase-body {
    display: grid;
    gap: 12px;
    padding: 16px 18px 18px;
    background:
        linear-gradient(180deg, rgba(7, 12, 22, 0.88), rgba(4, 9, 18, 0.96));
}

.theme-game-cockpit .construction-card-head,
.theme-game-cockpit .research-showcase-status {
    align-items: flex-start;
}

.theme-game-cockpit .construction-card-copy,
.theme-game-cockpit .research-showcase-copy {
    gap: 8px;
}

.theme-game-cockpit .construction-card-copy p,
.theme-game-cockpit .research-showcase-copy p {
    color: rgba(232, 240, 250, 0.88);
}

.theme-game-cockpit .construction-card-level,
.theme-game-cockpit .research-showcase-level {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(98, 241, 255, 0.2);
    background: rgba(10, 18, 30, 0.82);
    color: #d8f7ff;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-game-cockpit .construction-card-meta {
    padding-top: 2px;
}

.theme-game-cockpit .research-showcase-foot {
    align-items: stretch;
    gap: 12px;
}

.theme-game-cockpit .research-showcase-foot small {
    display: block;
    flex: 1 1 auto;
    color: rgba(215, 228, 241, 0.8);
    line-height: 1.45;
}

.theme-game-cockpit .research-node-costs,
.theme-game-cockpit .build-cost-list-premium {
    align-content: start;
}

.theme-game-cockpit .research-cost-pill {
    display: inline-grid;
    gap: 2px;
    min-width: 54px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 11, 19, 0.62);
    text-align: center;
}

.theme-game-cockpit .research-node-costs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-game-cockpit .research-history-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 13, 23, 0.72);
}

.theme-game-cockpit .cockpit-journal-shell-v2 {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr 1.2fr;
    grid-template-areas:
        "messages list focus"
        "notifications list focus";
    gap: 18px;
    align-items: start;
}

.theme-game-cockpit .cockpit-journal-shell-v2[data-subnav-layout="journal-inbox"] {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "messages notifications";
}

.theme-game-cockpit .cockpit-journal-shell-v2[data-subnav-layout="journal-briefings"] {
    grid-template-columns: 1fr;
    grid-template-areas: "list";
}

.theme-game-cockpit .cockpit-journal-shell-v2[data-subnav-layout="journal-focus"] {
    grid-template-columns: 0.92fr 1.08fr;
    grid-template-areas:
        "list focus";
}

.theme-game-cockpit .cockpit-message-inbox-v2 { grid-area: messages; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-notification-stack-v2 { grid-area: notifications; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-journal-list-v2 { grid-area: list; padding-bottom: 22px; }
.theme-game-cockpit .cockpit-journal-focus-v2 { grid-area: focus; padding: 22px; }

.theme-game-cockpit .notification-panel-list,
.theme-game-cockpit .notification-stack,
.theme-game-cockpit .journal-list,
.theme-game-cockpit .cockpit-journal-channel-stack {
    display: grid;
    gap: 12px;
}

.theme-game-cockpit .journal-entry {
    display: grid;
    gap: 10px;
    padding: 16px;
    text-align: left;
    color: var(--cockpit-text);
}

.theme-game-cockpit .journal-entry.is-selected {
    border-color: rgba(87, 238, 255, 0.32);
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.92), rgba(8, 13, 23, 0.92));
}

.theme-game-cockpit .notification-panel-list .notification-card,
.theme-game-cockpit .notification-stack .notification-card {
    padding: 16px;
}

.theme-game-cockpit .cockpit-journal-hero-v2 {
    width: 100%;
    height: 320px;
    margin: 12px 0 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-game-cockpit .cockpit-journal-article-v2 {
    display: grid;
    gap: 14px;
    color: #d7e5f2;
    line-height: 1.7;
}

.theme-game-cockpit .cockpit-redesign .panel-table {
    width: calc(100% - 44px);
    margin: 18px 22px 0;
    border-collapse: collapse;
}

.theme-game-cockpit .cockpit-redesign .panel-table th,
.theme-game-cockpit .cockpit-redesign .panel-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.theme-game-cockpit .cockpit-redesign .panel-table th {
    color: var(--cockpit-muted);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-game-cockpit .cockpit-redesign .panel-table td {
    color: #e9f6ff;
}

.theme-game-cockpit .cockpit-redesign .market-trend-up {
    color: var(--cockpit-green);
}

.theme-game-cockpit .cockpit-redesign .market-trend-down {
    color: #ff9ba3;
}

.theme-game-cockpit .cockpit-redesign .notification-card-1 {
    border-color: rgba(95, 195, 255, 0.14);
}

.theme-game-cockpit .cockpit-redesign .notification-card-2 {
    border-color: rgba(255, 184, 92, 0.18);
}

.theme-game-cockpit .cockpit-redesign .notification-card-3 {
    border-color: rgba(255, 104, 117, 0.26);
}

.theme-game-cockpit .cockpit-redesign [hidden] {
    display: none !important;
}

@media (max-width: 1680px) {
    .theme-game-cockpit .resource-topbar-primary,
    .theme-game-cockpit .resource-topbar-secondary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .theme-game-cockpit .cockpit-overview-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "stock worlds"
            "missions state"
            "analytics operations"
            "fleets market";
    }

    .theme-game-cockpit .cockpit-worlds-shell-v2,
    .theme-game-cockpit .cockpit-fleet-shell-v2,
    .theme-game-cockpit .cockpit-research-shell-v2,
    .theme-game-cockpit .cockpit-journal-shell-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-game-cockpit .cockpit-worlds-shell-v2 {
        grid-template-areas:
            "scene scene"
            "system dossier"
            "actions builds"
            "admin admin";
    }

    .theme-game-cockpit .cockpit-fleet-shell-v2 {
        grid-template-areas:
            "roster stage"
            "profile orders"
            "sidebar encounter";
    }

    .theme-game-cockpit .cockpit-research-shell-v2 {
        grid-template-areas:
            "active history"
            "tree tree"
            "modifiers expansion";
    }

    .theme-game-cockpit .cockpit-journal-shell-v2 {
        grid-template-areas:
            "messages notifications"
            "list list"
            "focus focus";
    }
}

@media (max-width: 1280px) {
    .theme-game-cockpit .cockpit-hud-main {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .theme-game-cockpit .cockpit-top-tabs {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .theme-game-cockpit .cockpit-hud-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .theme-game-cockpit .activity-strip-grid,
    .theme-game-cockpit .cockpit-scene-footer-v2,
    .theme-game-cockpit .cockpit-scene-metrics-v2,
    .theme-game-cockpit .cockpit-trait-columns-v2,
    .theme-game-cockpit .cockpit-admin-columns-v2,
    .theme-game-cockpit .mini-stat-grid-overview,
    .theme-game-cockpit .cockpit-action-grid-v2,
    .theme-game-cockpit .cockpit-build-grid-v2,
    .theme-game-cockpit .build-catalog-grid-premium,
    .theme-game-cockpit .cockpit-fleet-mission-grid-v2,
    .theme-game-cockpit .research-node-grid-premium,
    .theme-game-cockpit .resource-list-visual {
        grid-template-columns: 1fr;
    }

    .theme-game-cockpit .cockpit-shell-v2 {
        grid-template-columns: 1fr;
    }

    .theme-game-cockpit .cockpit-side-rail-v2 {
        position: static;
        grid-template-columns: 1fr;
    }

    .theme-game-cockpit .cockpit-side-rail-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .theme-game-cockpit .cockpit-subtab {
        min-height: 100%;
    }

    .theme-game-cockpit .cockpit-overview-hero-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .theme-game-cockpit .page-shell {
        width: min(100%, calc(100% - 10px));
    }

    .theme-game-cockpit .cockpit-redesign {
        padding-inline: 0;
    }

    .theme-game-cockpit .cockpit-hud-v2 {
        top: 0;
        border-radius: 22px;
        padding: 14px;
    }

    .theme-game-cockpit .cockpit-commander-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .theme-game-cockpit .cockpit-commander-meta {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }

    .theme-game-cockpit .resource-topbar-primary,
    .theme-game-cockpit .resource-topbar-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-game-cockpit .resource-topbar-drawer {
        position: static;
        width: 100%;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .theme-game-cockpit .cockpit-side-rail-v2,
    .theme-game-cockpit .cockpit-overview-grid-v2,
    .theme-game-cockpit .cockpit-worlds-shell-v2,
    .theme-game-cockpit .cockpit-fleet-shell-v2,
    .theme-game-cockpit .cockpit-research-shell-v2,
    .theme-game-cockpit .cockpit-journal-shell-v2 {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .theme-game-cockpit .cockpit-worlds-shell-v2 > *,
    .theme-game-cockpit .cockpit-fleet-shell-v2 > *,
    .theme-game-cockpit .cockpit-research-shell-v2 > *,
    .theme-game-cockpit .cockpit-journal-shell-v2 > * {
        grid-area: auto !important;
    }

    .theme-game-cockpit .cockpit-side-rail-v2 {
        gap: 10px;
    }

    .theme-game-cockpit .cockpit-side-rail-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-game-cockpit .cockpit-top-tab {
        min-width: 0;
        flex: 1 1 140px;
    }

    .theme-game-cockpit .cockpit-planet-viewer-v2,
    .theme-game-cockpit .cockpit-ship-viewer-v2 {
        min-height: 360px;
        margin-inline: 16px;
    }

    .theme-game-cockpit .cockpit-scene-header-v2,
    .theme-game-cockpit .cockpit-scene-footer-v2,
    .theme-game-cockpit .cockpit-card-head,
    .theme-game-cockpit .panel-heading,
    .theme-game-cockpit .resource-list-visual-overview,
    .theme-game-cockpit .inventory-card-grid-overview,
    .theme-game-cockpit .cockpit-mission-stack,
    .theme-game-cockpit .mini-stat-grid-overview,
    .theme-game-cockpit .cockpit-timeline-list,
    .theme-game-cockpit .inventory-card-grid-fleet,
    .theme-game-cockpit .cockpit-market-table,
    .theme-game-cockpit .context-card-stack,
    .theme-game-cockpit .cockpit-system-map-v2,
    .theme-game-cockpit .cockpit-system-selection-v2,
    .theme-game-cockpit .cockpit-detail-grid,
    .theme-game-cockpit .cockpit-world-resource-strip,
    .theme-game-cockpit .cockpit-trait-columns-v2,
    .theme-game-cockpit .cockpit-action-grid-v2,
    .theme-game-cockpit .cockpit-build-grid-v2,
    .theme-game-cockpit .cockpit-admin-columns-v2,
    .theme-game-cockpit .cockpit-fleet-grid-v2,
    .theme-game-cockpit .cockpit-fleet-viewer-shell-v2,
    .theme-game-cockpit .cockpit-fleet-mission-grid-v2,
    .theme-game-cockpit .research-active-shell,
    .theme-game-cockpit .research-lane-grid-premium,
    .theme-game-cockpit .cockpit-research-highlights {
        padding-left: 16px;
        padding-right: 16px;
    }
}
