:root {
    color-scheme: light;
    --terrain-olive: #7f7e1f;
    --terrain-moss: #6f7324;
    --terrain-dust: #988a2a;
    --hud-dark: #0b2c2d;
    --hud-deep: #0f3436;
    --hud-mid: #1e5f61;
    --hud-line: #4f9ea0;
    --panel: #eef3e2;
    --panel-strong: #e2ebd2;
    --text: #1a2c2e;
    --muted: #36595b;
    --accent: #2d9498;
    --accent-strong: #1f6f72;
    --danger: #8f1020;
    --success: #0f6b2e;
    --warning: #8f6a10;
    --white: #ffffff;
    --hex-line: rgba(54, 141, 62, 0.46);
    --hex-fill: rgba(146, 207, 137, 0.08);
}

.system-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.system-admin-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
}

.system-admin-update-form {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(118, 247, 214, 0.35);
}

.system-admin-upload-form {
    margin-top: 0.42rem;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.5rem;
}

.system-admin-upload-form label {
    min-width: 260px;
    flex: 1;
}

.planet-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(118, 247, 214, 0.35);
    background: rgba(4, 14, 18, 0.75);
}

@media (max-width: 760px) {
    .system-admin-grid {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Verdana, Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px),
        radial-gradient(circle at 84% 74%, rgba(0, 0, 0, 0.08) 0 1.5px, transparent 2.5px),
        linear-gradient(145deg, var(--terrain-olive), var(--terrain-dust));
    background-size: auto, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.38;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='68' viewBox='0 0 78 68'%3E%3Cpath d='M19.5 1h39L78 34 58.5 67h-39L0 34Z' fill='%2392cf89' fill-opacity='0.08' stroke='%233b9342' stroke-opacity='0.48' stroke-width='2'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='68' viewBox='0 0 78 68'%3E%3Cpath d='M19.5 1h39L78 34 58.5 67h-39L0 34Z' fill='%2392cf89' fill-opacity='0.05' stroke='%233b9342' stroke-opacity='0.32' stroke-width='1.6'/%3E%3C/svg%3E");
    background-size: 78px 68px, 78px 68px;
    background-position: 0 0, 39px 34px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.26;
    background:
        radial-gradient(circle at 26% 34%, rgba(50, 138, 59, 0.22), transparent 34%),
        radial-gradient(circle at 68% 62%, rgba(26, 112, 58, 0.18), transparent 32%);
}

.hud-scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 2px,
        transparent 4px
    );
    z-index: 3;
}

.container {
    width: min(1220px, 94vw);
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(180deg, #153f42 0%, #0f3033 100%);
    color: #eaffff;
    border-bottom: 1px solid #2f7d80;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0;
    z-index: 12;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.64rem 0;
    gap: 0.72rem;
}

.topbar-frame {
    border: 1px solid rgba(121, 200, 203, 0.52);
    border-top: none;
    border-radius: 0 0 6px 6px;
    background:
        linear-gradient(180deg, rgba(41, 116, 120, 0.85), rgba(21, 75, 79, 0.92)),
        repeating-linear-gradient(
            90deg,
            rgba(203, 247, 244, 0.08) 0,
            rgba(203, 247, 244, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(157, 229, 232, 0.22);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    gap: 0.18rem;
}

.brand-title {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1rem;
}

.brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.86;
    color: #b2ecef;
}

.brand-leds {
    display: flex;
    gap: 0.2rem;
}

.brand-led {
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid #2a6f70;
    background: radial-gradient(circle at 35% 35%, #f4ffad, #a6a943 58%, #6a6a1f 100%);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-console {
    justify-content: flex-end;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    text-decoration: none;
    border: 1px solid rgba(146, 228, 232, 0.56);
    background:
        linear-gradient(180deg, rgba(66, 145, 150, 0.92), rgba(35, 95, 100, 0.94)),
        repeating-linear-gradient(
            0deg,
            rgba(196, 248, 245, 0.08) 0,
            rgba(196, 248, 245, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    color: #e8fffe;
    border-radius: 3px;
    padding: 0.26rem 0.48rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(201, 252, 249, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(180deg, rgba(86, 168, 173, 0.95), rgba(46, 111, 116, 0.96));
}

.nav-btn-mark {
    width: 0.66rem;
    height: 0.66rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: linear-gradient(180deg, #f9ea94, #bca339);
    border: 1px solid rgba(90, 76, 28, 0.78);
}

.status-strip {
    background: linear-gradient(180deg, rgba(12, 50, 52, 0.94), rgba(8, 35, 37, 0.95));
    border-top: 1px solid rgba(99, 172, 176, 0.35);
    border-bottom: 1px solid rgba(98, 175, 178, 0.32);
    box-shadow: inset 0 -1px 0 rgba(152, 228, 232, 0.18);
    position: relative;
    z-index: 10;
}

.status-inner {
    padding: 0.34rem 0;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.34rem;
}

.status-cell {
    display: grid;
    grid-template-columns: 0.6rem auto 1fr;
    align-items: center;
    gap: 0.34rem;
    border: 1px solid rgba(114, 198, 201, 0.45);
    background: rgba(16, 70, 73, 0.55);
    border-radius: 3px;
    padding: 0.16rem 0.38rem;
}

.status-blink {
    width: 0.44rem;
    height: 0.44rem;
    border: 1px solid #3d7779;
    background: radial-gradient(circle at 35% 35%, #f5ffaf, #a4ac43 63%, #687125 100%);
}

.status-key {
    color: #98dfe1;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-value {
    color: #defdf8;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-shell {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    gap: 0.8rem;
    padding: 1rem 0 2rem;
    position: relative;
    z-index: 4;
}

body.page-research-rail-factions .main-shell {
    grid-template-columns: 220px minmax(0, 1fr);
}

body.page-research-rail-factions .rail-right {
    display: none;
}

.hud-rail {
    background:
        linear-gradient(180deg, rgba(13, 64, 66, 0.92), rgba(8, 40, 42, 0.94)),
        repeating-linear-gradient(
            0deg,
            rgba(187, 241, 236, 0.06) 0,
            rgba(187, 241, 236, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
    border: 1px solid #4da3a6;
    border-radius: 6px;
    color: #d4fbfc;
    padding: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(146, 225, 228, 0.2), 0 5px 14px rgba(0, 0, 0, 0.24);
}

.hud-rail h3 {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d5fff9;
    border-bottom: 1px solid rgba(120, 204, 207, 0.46);
    padding-bottom: 0.2rem;
}

.hud-rail p {
    margin: 0 0 0.36rem;
    color: #bceef0;
    font-size: 0.74rem;
    line-height: 1.25;
}

.rail-stack {
    display: grid;
    gap: 0.52rem;
}

.rail-module {
    border: 1px solid rgba(112, 190, 194, 0.55);
    background:
        linear-gradient(180deg, rgba(17, 77, 79, 0.88), rgba(12, 57, 59, 0.92)),
        repeating-linear-gradient(
            90deg,
            rgba(193, 247, 243, 0.07) 0,
            rgba(193, 247, 243, 0.07) 2px,
            transparent 3px,
            transparent 6px
        );
    box-shadow: inset 0 0 0 1px rgba(171, 236, 231, 0.2);
    padding: 0.45rem;
}

.rail-ops-suite {
    border-color: rgba(164, 195, 116, 0.64);
    background:
        linear-gradient(180deg, rgba(37, 60, 31, 0.9), rgba(23, 43, 24, 0.94)),
        repeating-linear-gradient(
            90deg,
            rgba(223, 238, 173, 0.08) 0,
            rgba(223, 238, 173, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(188, 220, 143, 0.22);
}

.rail-ops-suite h3 {
    color: #f2e8b8;
    border-bottom-color: rgba(183, 209, 136, 0.48);
}

.rail-ops-suite-grid {
    display: grid;
    gap: 0.28rem;
}

.rail-ops-block {
    border: 1px solid rgba(139, 189, 135, 0.54);
    background: rgba(20, 53, 32, 0.72);
    padding: 0.26rem 0.3rem 0.3rem;
}

.rail-ops-label {
    margin: 0 0 0.22rem;
    color: #cdeec7;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rail-ops-signal-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 0.18rem;
    height: 2.7rem;
}

.rail-ops-signal-bar {
    display: block;
    min-height: 0.35rem;
    height: var(--bar-level, 42%);
    border: 1px solid rgba(162, 215, 128, 0.78);
    background:
        linear-gradient(180deg, rgba(219, 255, 165, 0.92), rgba(103, 152, 68, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(242, 255, 217, 0.24) 0,
            rgba(242, 255, 217, 0.24) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: 0 0 6px rgba(174, 223, 120, 0.3);
    animation: railOpsSignalPulse 2.2s ease-in-out infinite;
    animation-delay: var(--bar-delay, 0s);
}

.rail-ops-threat-line {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
}

.rail-ops-threat-line span {
    color: #bfdfc3;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.rail-ops-threat-state {
    border: 1px solid rgba(173, 198, 138, 0.68);
    padding: 0.03rem 0.24rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f2f7cb;
    background: rgba(74, 95, 39, 0.48);
}

.rail-ops-threat-state-low {
    color: #dcffcd;
    border-color: rgba(117, 197, 121, 0.72);
    background: rgba(43, 109, 46, 0.44);
}

.rail-ops-threat-state-medium {
    color: #ffecc0;
    border-color: rgba(205, 176, 93, 0.78);
    background: rgba(113, 88, 28, 0.5);
}

.rail-ops-threat-state-high {
    color: #ffd9c3;
    border-color: rgba(222, 131, 84, 0.78);
    background: rgba(124, 63, 33, 0.56);
}

.rail-ops-threat-state-critical {
    color: #ffd8d8;
    border-color: rgba(223, 101, 101, 0.82);
    background: rgba(133, 37, 37, 0.58);
}

.rail-ops-threat-meter {
    display: block;
    height: 0.38rem;
    margin-top: 0.16rem;
    border: 1px solid rgba(138, 188, 134, 0.72);
    background: rgba(9, 29, 13, 0.86);
    box-shadow: inset 0 0 0 1px rgba(94, 141, 88, 0.3);
}

.rail-ops-threat-meter > span {
    display: block;
    height: 100%;
    background:
        linear-gradient(90deg, #7fc66a 0%, #cab055 50%, #d95d4c 100%),
        repeating-linear-gradient(
            90deg,
            rgba(239, 247, 216, 0.22) 0,
            rgba(239, 247, 216, 0.22) 1px,
            transparent 2px,
            transparent 4px
        );
}

.rail-ops-intel {
    margin-top: 0.32rem;
    min-height: 1.46rem;
    border: 1px solid rgba(151, 189, 113, 0.56);
    background: rgba(18, 41, 22, 0.72);
    padding: 0.2rem 0.28rem;
    display: grid;
    align-items: center;
}

.rail-ops-intel-line {
    margin: 0;
    display: none;
    color: #d0f4ca;
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rail-ops-intel-line.is-active {
    display: block;
    animation: railOpsIntelPulse 0.34s ease-out 1;
}

.rail-meter-list {
    display: grid;
    gap: 0.25rem;
}

.rail-meter-row {
    display: grid;
    grid-template-columns: 0.64rem auto auto;
    align-items: center;
    gap: 0.24rem 0.32rem;
}

.rail-meter-icon {
    width: 0.58rem;
    height: 0.58rem;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    border: 1px solid #4f762a;
    background: linear-gradient(180deg, #f4e887, #9a8c25);
}

.rail-meter-key {
    color: #c9fff8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rail-meter-val {
    justify-self: end;
    color: #fff9c5;
    font-size: 0.72rem;
    font-weight: 700;
}

.rail-meter-track {
    grid-column: 2 / 4;
    height: 0.44rem;
    border: 1px solid rgba(114, 195, 198, 0.65);
    background: rgba(6, 30, 32, 0.88);
}

.rail-meter-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #89d978 0,
            #89d978 4px,
            #4e9c44 5px,
            #4e9c44 6px
        );
}

.rail-callsign {
    display: grid;
    justify-items: center;
    gap: 0.18rem;
}

.rail-callsign strong {
    color: #f3fff8;
    font-size: 0.82rem;
}

.rail-callsign span {
    color: #ace8e2;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.rail-emblem {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #d53a3b;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.rail-switches label {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    margin-bottom: 0.26rem;
    color: #d0fbf5;
    font-size: 0.72rem;
    font-weight: 400;
}

.rail-switches input[type="checkbox"] {
    width: 0.74rem;
    height: 0.74rem;
    accent-color: #9bdb76;
}

.rail-radar {
    width: 76px;
    height: 76px;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    border: 2px solid #79c6c0;
    background:
        conic-gradient(from 0deg, rgba(155, 236, 223, 0.85) 0 14deg, rgba(16, 66, 69, 0.9) 15deg 360deg),
        radial-gradient(circle, rgba(46, 128, 119, 0.45), rgba(16, 54, 57, 0.92));
    position: relative;
}

.rail-radar::before,
.rail-radar::after {
    content: "";
    position: absolute;
    background: rgba(193, 253, 248, 0.45);
}

.rail-radar::before {
    width: 2px;
    height: 100%;
    left: calc(50% - 1px);
    top: 0;
}

.rail-radar::after {
    height: 2px;
    width: 100%;
    top: calc(50% - 1px);
    left: 0;
}

.rail-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.22rem;
    margin-bottom: 0.3rem;
}

.rail-quick-grid span {
    display: block;
    height: 1rem;
    border: 1px solid rgba(115, 194, 197, 0.58);
    background:
        linear-gradient(180deg, rgba(100, 169, 160, 0.9), rgba(49, 96, 98, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(231, 251, 249, 0.11) 0,
            rgba(231, 251, 249, 0.11) 1px,
            transparent 2px,
            transparent 4px
        );
}

.rail-quick-grid-active span {
    animation: railQuickPulse 1.05s steps(2, end) infinite;
}

.rail-quick-grid-active span:nth-child(2) {
    animation-delay: 0.08s;
}

.rail-quick-grid-active span:nth-child(3) {
    animation-delay: 0.16s;
}

.rail-quick-grid-active span:nth-child(4) {
    animation-delay: 0.24s;
}

.rail-quick-grid-active span:nth-child(5) {
    animation-delay: 0.32s;
}

.rail-quick-grid-active span:nth-child(6) {
    animation-delay: 0.4s;
}

.rail-action-status-list {
    display: grid;
    gap: 0.2rem;
}

.rail-action-line {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    margin: 0;
}

.rail-action-led {
    width: 0.58rem;
    height: 0.58rem;
    border: 1px solid rgba(151, 205, 205, 0.88);
    background: radial-gradient(circle at 35% 35%, #efffbe, #99aa3f 60%, #5c6a1a 100%);
    box-shadow: 0 0 0 1px rgba(25, 60, 59, 0.75) inset;
}

.rail-actions-busy #rail-upload-line .rail-action-led {
    animation: railLedBlink 0.62s steps(2, end) infinite;
}

.rail-actions-analyzing #rail-analysis-line .rail-action-led {
    animation: railLedBlink 0.54s steps(2, end) infinite;
}

.rail-feed p:last-child {
    margin-bottom: 0;
}

.rail-kpi-grid {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 0.35rem;
}

.rail-kpi-grid p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    color: #d3fcf7;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rail-kpi-grid p strong {
    color: #f9ffcd;
    font-size: 0.74rem;
}

.rail-terminal-list {
    display: grid;
    gap: 0.24rem;
}

.rail-terminal-item {
    border: 1px solid rgba(116, 194, 198, 0.5);
    background: rgba(10, 56, 59, 0.62);
    padding: 0.22rem 0.28rem;
}

.rail-terminal-row {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.rail-terminal-main {
    min-width: 0;
    color: #e6fffb;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-terminal-eta {
    color: #f4ffbb;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rail-terminal-sub {
    margin: 0.1rem 0 0;
    color: #9ad8d9;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.22rem;
}

.rail-terminal-state {
    border: 1px solid rgba(159, 219, 224, 0.52);
    border-radius: 2px;
    padding: 0.02rem 0.2rem;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
}

.rail-state-overdue {
    color: #ffd5d5;
    border-color: rgba(224, 106, 106, 0.72);
    background: rgba(149, 37, 37, 0.44);
}

.rail-state-critical {
    color: #ffe8ba;
    border-color: rgba(228, 172, 84, 0.72);
    background: rgba(137, 98, 20, 0.42);
}

.rail-state-ok {
    color: #ddffd1;
    border-color: rgba(117, 198, 121, 0.72);
    background: rgba(49, 110, 44, 0.4);
}

.rail-state-no_timer {
    color: #d7f7ff;
    border-color: rgba(130, 184, 201, 0.72);
    background: rgba(45, 86, 100, 0.42);
}

@keyframes railOpsSignalPulse {
    0%,
    100% {
        filter: brightness(0.88);
    }

    50% {
        filter: brightness(1.18);
    }
}

@keyframes railOpsIntelPulse {
    0% {
        opacity: 0.3;
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-stage {
    min-width: 0;
}

.ops-stage-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.34rem;
    margin-bottom: 0.78rem;
    padding: 0.36rem 0.42rem;
    border: 1px solid rgba(120, 194, 161, 0.64);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(11, 46, 33, 0.94), rgba(8, 32, 23, 0.97)),
        repeating-linear-gradient(
            90deg,
            rgba(184, 245, 204, 0.08) 0,
            rgba(184, 245, 204, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(161, 227, 184, 0.18), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.ops-stage-led {
    width: 0.52rem;
    height: 0.52rem;
    border: 1px solid rgba(103, 143, 61, 0.82);
    background: radial-gradient(circle at 35% 35%, #f5ffc5, #a3bc47 62%, #617626 100%);
    box-shadow: 0 0 8px rgba(212, 249, 118, 0.45);
    animation: opsSignalPulse 0.9s steps(2, end) infinite;
}

.ops-stage-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border: 1px solid rgba(124, 191, 156, 0.54);
    background: rgba(12, 51, 35, 0.76);
    color: #d9ffe8;
    padding: 0.16rem 0.34rem;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-stage-key {
    color: #98dcb4;
}

.ops-stage-chip strong {
    color: #f1e3a6;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
}

@keyframes opsSignalPulse {
    0%,
    45% {
        filter: brightness(1.2);
        box-shadow: 0 0 8px rgba(212, 249, 118, 0.5);
    }
    46%,
    100% {
        filter: brightness(0.82);
        box-shadow: 0 0 2px rgba(212, 249, 118, 0.22);
    }
}

.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-strong));
    border: 2px solid var(--hud-line);
    border-radius: 6px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.card + .card {
    margin-top: 1rem;
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) {
    position: relative;
    overflow: hidden;
    border-color: #5d9a82;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(217, 228, 199, 0.95), rgba(199, 214, 179, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(33, 81, 62, 0.06) 0,
            rgba(33, 81, 62, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow:
        inset 0 0 0 1px rgba(239, 249, 220, 0.55),
        0 8px 18px rgba(7, 24, 16, 0.22);
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell)::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(82, 140, 101, 0.22), rgba(82, 140, 101, 0) 22%),
        radial-gradient(circle at 86% 18%, rgba(186, 170, 88, 0.18), transparent 28%);
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell)::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0.22rem;
    border: 1px dashed rgba(74, 122, 95, 0.34);
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) > * {
    position: relative;
    z-index: 1;
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) > h1,
.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) > h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.62rem;
    border: 1px solid rgba(69, 114, 90, 0.5);
    background: rgba(219, 230, 201, 0.84);
    color: #1b4741;
    padding: 0.22rem 0.54rem 0.24rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 1rem;
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) > h1::before,
.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) > h2::before {
    content: ">";
    color: #365f32;
    font-size: 0.88em;
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) .action-link,
.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) button,
.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) .button-compact {
    border-radius: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: "Lucida Console", "Courier New", monospace;
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) input,
.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) select {
    border-radius: 0;
    border-color: rgba(74, 118, 95, 0.54);
    background: rgba(239, 247, 227, 0.94);
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) .data-table:not(.data-table-terminal) {
    background: rgba(233, 243, 220, 0.9);
}

.content-stage > .card:not(.command-card):not(.guide-console-card):not(.guide-console-shell) .data-table:not(.data-table-terminal) th {
    background:
        linear-gradient(180deg, rgba(49, 109, 85, 0.94), rgba(31, 77, 59, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(193, 246, 207, 0.08) 0,
            rgba(193, 246, 207, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    color: #e6ffe9;
}

.narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stack {
    display: grid;
    gap: 0.8rem;
}

.form-section-title {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #215457;
    border-top: 1px solid rgba(92, 148, 152, 0.35);
    padding-top: 0.45rem;
}

.form-hint {
    margin: 0;
    font-size: 0.74rem;
    color: #376264;
}

.notify-terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.55rem;
}

.notify-terminal-panel {
    border: 1px solid #6bbdbe;
    border-radius: 4px;
    padding: 0.45rem 0.5rem;
    background:
        linear-gradient(180deg, rgba(20, 86, 88, 0.92), rgba(13, 63, 65, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(184, 244, 238, 0.08) 0,
            rgba(184, 244, 238, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
    box-shadow: inset 0 0 0 1px rgba(163, 233, 227, 0.24);
}

.notify-terminal-panel h3 {
    margin: 0 0 0.38rem;
    color: #dcfff8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(125, 206, 209, 0.52);
    padding-bottom: 0.2rem;
}

.notify-terminal-list {
    display: grid;
    gap: 0.35rem;
}

label.notify-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    font-weight: 600;
    color: #d6fbf5;
    font-size: 0.74rem;
    line-height: 1.2;
}

label.notify-toggle input[type="checkbox"] {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.06rem;
    flex: 0 0 auto;
    accent-color: #80d660;
}

label {
    display: grid;
    gap: 0.28rem;
    font-weight: 700;
    color: #254144;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid #94b4b6;
    border-radius: 4px;
    padding: 0.48rem 0.55rem;
    background: #ffffff;
}

input:focus,
select:focus {
    outline: 2px solid rgba(45, 148, 152, 0.45);
    outline-offset: 1px;
}

button {
    border: 1px solid #0b4f52;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    color: var(--white);
    border-radius: 4px;
    padding: 0.46rem 0.78rem;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    filter: brightness(1.08);
}

.inline-form {
    margin: 0;
}

.inline-form button {
    padding: 0.32rem 0.6rem;
}

.inline-form .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid rgba(229, 152, 152, 0.6);
    background: linear-gradient(180deg, rgba(151, 77, 77, 0.9), rgba(109, 45, 45, 0.92));
    color: #ffecec;
    border-radius: 3px;
    padding: 0.26rem 0.48rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(245, 202, 202, 0.2);
}

.inline-form .nav-btn:hover {
    filter: none;
    background: linear-gradient(180deg, rgba(170, 88, 88, 0.93), rgba(124, 52, 52, 0.95));
}

.alert {
    border-radius: 0;
    border: 1px solid;
    padding: 0.58rem 0.72rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.alert-error {
    color: #ffd8da;
    border-color: #d58b96;
    background:
        linear-gradient(180deg, rgba(106, 34, 39, 0.9), rgba(78, 24, 29, 0.92)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 218, 222, 0.08) 0,
            rgba(255, 218, 222, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
}

.alert-success {
    color: #d8ffe1;
    border-color: #8fc79f;
    background:
        linear-gradient(180deg, rgba(24, 87, 50, 0.9), rgba(17, 66, 37, 0.92)),
        repeating-linear-gradient(
            90deg,
            rgba(214, 255, 225, 0.08) 0,
            rgba(214, 255, 225, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.hud-panel {
    background: rgba(250, 254, 246, 0.72);
    border: 1px solid #99b8b9;
    border-radius: 4px;
    padding: 0.55rem 0.65rem;
}

.tactical-grid-shell {
    position: relative;
    overflow: hidden;
}

.tactical-grid-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(158, 230, 176, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 230, 176, 0.08) 1px, transparent 1px);
    background-size: 22px 22px, 22px 22px;
}

.tactical-grid-shell > * {
    position: relative;
    z-index: 1;
}

.tactical-corners {
    position: relative;
}

.tactical-corners::before,
.tactical-corners::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    border-color: rgba(188, 222, 140, 0.76);
    z-index: 1;
}

.tactical-corners::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.tactical-corners::after {
    right: -1px;
    bottom: -1px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.command-card {
    position: relative;
    overflow: hidden;
    border-color: #4a9799;
    background:
        linear-gradient(180deg, rgba(31, 98, 98, 0.92), rgba(19, 72, 74, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(187, 240, 232, 0.06) 0,
            rgba(187, 240, 232, 0.06) 1px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0) 4px
        );
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(149, 214, 216, 0.36);
}

.command-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(174, 236, 221, 0.18), transparent 34%),
        radial-gradient(circle at 82% 74%, rgba(140, 211, 193, 0.1), transparent 36%);
}

.command-card h1,
.command-card h2,
.command-card p {
    position: relative;
    color: #e2fff8;
}

.command-card > p {
    color: #c0ece6;
}

.control-grid {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0.78rem;
}

.control-column {
    display: grid;
    gap: 0.58rem;
}

.control-module {
    border: 1px solid #6bc2c0;
    background:
        linear-gradient(180deg, rgba(21, 82, 84, 0.94), rgba(18, 66, 68, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(174, 233, 227, 0.08) 0,
            rgba(174, 233, 227, 0.08) 2px,
            rgba(0, 0, 0, 0) 3px,
            rgba(0, 0, 0, 0) 6px
        );
    box-shadow: inset 0 0 0 1px rgba(162, 228, 223, 0.25);
    padding: 0.55rem;
}

.control-metrics {
    display: grid;
    gap: 0.35rem;
}

.meter-row {
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr) auto;
    gap: 0.35rem 0.42rem;
    align-items: center;
}

.meter-alert {
    width: 0.72rem;
    height: 0.72rem;
    clip-path: polygon(50% 0, 100% 55%, 78% 100%, 22% 100%, 0 55%);
    background: linear-gradient(180deg, #ffe978, #b9a014);
    border: 1px solid #584f13;
}

.meter-label {
    font-size: 0.74rem;
    color: #d5fff5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meter-value {
    color: #fff9b8;
    font-weight: 700;
    font-size: 0.82rem;
}

.meter-track {
    grid-column: 2 / 4;
    display: block;
    height: 0.56rem;
    border: 1px solid #7bc6c2;
    background: rgba(8, 37, 39, 0.85);
    box-shadow: inset 0 0 0 1px rgba(99, 194, 190, 0.2);
}

.meter-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #86dc71 0,
            #86dc71 6px,
            #56a84b 7px,
            #56a84b 8px
        );
}

.control-callsign {
    text-align: center;
}

.callsign-emblem {
    width: 0;
    height: 0;
    margin: 0 auto 0.42rem;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-bottom: 30px solid #d63839;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}

.callsign-title {
    margin-bottom: 0.2rem;
    color: #a7ddd8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.control-callsign strong {
    display: block;
    margin-bottom: 0.18rem;
    color: #ffffff;
}

.control-radar {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.52rem;
    align-items: center;
}

.radar-dial {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #90d4a9;
    background:
        radial-gradient(circle at 50% 50%, rgba(95, 175, 111, 0.16) 0 35%, rgba(18, 64, 45, 0.9) 100%),
        linear-gradient(180deg, rgba(27, 81, 57, 0.9), rgba(14, 48, 33, 0.95));
    box-shadow:
        inset 0 0 0 1px rgba(177, 234, 195, 0.28),
        0 0 10px rgba(109, 189, 130, 0.2);
    position: relative;
    overflow: hidden;
}

.radar-dial::before,
.radar-dial::after {
    content: "";
    position: absolute;
    background: rgba(170, 229, 188, 0.4);
    z-index: 1;
}

.radar-dial::before {
    width: 2px;
    height: 100%;
    left: calc(50% - 1px);
    top: 0;
}

.radar-dial::after {
    height: 2px;
    width: 100%;
    top: calc(50% - 1px);
    left: 0;
}

.radar-sweep {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            rgba(186, 250, 199, 0.66) 0deg,
            rgba(155, 226, 176, 0.26) 26deg,
            rgba(39, 101, 68, 0.08) 48deg,
            rgba(13, 43, 29, 0) 120deg
        );
    transform-origin: 50% 50%;
    animation: radarSweep 4.4s linear infinite;
    z-index: 0;
}

.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(162, 224, 182, 0.26);
    z-index: 1;
}

.radar-ring-inner {
    inset: 20px;
}

.radar-ring-mid {
    inset: 12px;
}

.radar-ring-outer {
    inset: 4px;
}

.radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f8ffcb, #b9db79 60%, #648f3c 100%);
    box-shadow: 0 0 0 2px rgba(168, 227, 120, 0.2), 0 0 8px rgba(191, 244, 131, 0.45);
    z-index: 2;
    animation: radarBlipPulse 2.4s ease-in-out infinite;
}

.radar-blip-a {
    top: 16px;
    left: 44px;
    animation-delay: 0.2s;
}

.radar-blip-b {
    top: 41px;
    left: 20px;
    animation-delay: 0.9s;
}

.radar-blip-c {
    top: 27px;
    left: 31px;
    animation-delay: 1.6s;
}

.radar-readout span {
    display: block;
    color: #b6e6c4;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.radar-readout strong {
    color: #f3ffbf;
    font-size: 0.88rem;
}

.radar-readout .radar-mode {
    margin-top: 0.16rem;
    color: #f3d99c;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
}

.control-toggles p {
    margin-bottom: 0.3rem;
    color: #d9fff8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.control-toggles label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.26rem;
    color: #d2faf3;
    font-weight: 400;
    font-size: 0.82rem;
}

.control-toggles input[type="checkbox"] {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #a3df80;
}

.control-main {
    display: grid;
    gap: 0.68rem;
}

.control-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.52rem;
}

.control-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 1px solid #78c9c4;
    color: #e8fffb;
    background:
        linear-gradient(180deg, rgba(79, 147, 143, 0.88), rgba(49, 104, 105, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(200, 245, 239, 0.08) 0,
            rgba(200, 245, 239, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: inset 0 0 0 1px rgba(179, 237, 233, 0.25);
    padding: 0.58rem 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 0.83rem;
}

.control-button:hover {
    background: linear-gradient(180deg, rgba(102, 173, 169, 0.92), rgba(59, 118, 119, 0.95));
}

.control-button-mark {
    width: 0.95rem;
    height: 0.75rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: linear-gradient(180deg, #f8ec8d, #baa934);
    border: 1px solid rgba(74, 64, 23, 0.72);
}

.control-info {
    background: rgba(17, 77, 79, 0.68);
    border-color: #6abdb9;
    color: #dffef8;
}

.control-info p {
    color: #cbf8f1;
}

.control-terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.58rem;
}

.control-terminal {
    display: grid;
    gap: 0.34rem;
    align-content: start;
}

.control-terminal-title {
    margin: 0;
    color: #d6fff8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(141, 220, 221, 0.52);
    padding-bottom: 0.2rem;
}

.control-terminal-list {
    display: grid;
    gap: 0.28rem;
}

.control-terminal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.2rem 0.38rem;
}

.control-terminal-key {
    min-width: 0;
    color: #b9ece6;
    font-size: 0.69rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-terminal-value {
    color: #f8ffcb;
    font-weight: 700;
    font-size: 0.78rem;
}

.control-terminal-track {
    grid-column: 1 / -1;
    display: block;
    height: 0.42rem;
    border: 1px solid rgba(135, 207, 205, 0.75);
    background: rgba(10, 44, 47, 0.86);
    box-shadow: inset 0 0 0 1px rgba(92, 178, 175, 0.24);
}

.control-terminal-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #8adf73 0,
            #8adf73 6px,
            #5aa44c 7px,
            #5aa44c 8px
        );
}

.control-terminal-row-project {
    border: 1px solid rgba(114, 192, 194, 0.4);
    background: rgba(9, 50, 52, 0.48);
    padding: 0.18rem 0.24rem 0.22rem;
}

.control-terminal-project-name {
    color: #defffa;
}

.control-terminal-flag {
    grid-column: 1 / -1;
    justify-self: start;
    border: 1px solid rgba(230, 179, 90, 0.68);
    background: rgba(122, 86, 21, 0.42);
    color: #ffefbe;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.04rem 0.28rem;
}

.control-terminal-empty {
    margin: 0;
    color: #b8e3dc;
    font-size: 0.74rem;
}

.ops-aux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.58rem;
}

.ops-panel-subline {
    margin: 0;
    color: #a9dcc8;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-signal-bars {
    height: 4.8rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 0.28rem;
    margin-top: 0.2rem;
}

.ops-signal-bar {
    display: block;
    height: var(--bar-level, 40%);
    min-height: 0.5rem;
    border: 1px solid rgba(143, 223, 171, 0.72);
    background:
        linear-gradient(180deg, rgba(160, 255, 191, 0.85), rgba(57, 139, 82, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(218, 255, 230, 0.22) 0,
            rgba(218, 255, 230, 0.22) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: 0 0 6px rgba(112, 201, 136, 0.18);
    transition: height 0.65s ease;
    animation: opsSignalBarPulse 2.1s ease-in-out infinite;
    animation-delay: var(--bar-delay, 0s);
}

@keyframes opsSignalBarPulse {
    0%,
    100% {
        filter: brightness(0.9);
    }
    50% {
        filter: brightness(1.18);
    }
}

.ops-threat-state {
    margin: 0.16rem 0 0.26rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    color: #abdcc8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ops-threat-band {
    border: 1px solid rgba(170, 220, 168, 0.62);
    padding: 0.06rem 0.3rem;
    font-size: 0.68rem;
}

.ops-threat-band-low {
    color: #c8ffd6;
    border-color: rgba(114, 206, 139, 0.72);
    background: rgba(23, 89, 54, 0.44);
}

.ops-threat-band-medium {
    color: #ffeab6;
    border-color: rgba(209, 179, 92, 0.72);
    background: rgba(88, 70, 24, 0.44);
}

.ops-threat-band-high {
    color: #ffd4a6;
    border-color: rgba(212, 132, 82, 0.72);
    background: rgba(93, 51, 28, 0.44);
}

.ops-threat-band-critical {
    color: #ffd1d1;
    border-color: rgba(216, 102, 102, 0.76);
    background: rgba(101, 34, 34, 0.5);
}

.ops-threat-meter {
    height: 0.66rem;
    border: 1px solid rgba(127, 197, 158, 0.72);
    background: rgba(9, 39, 28, 0.86);
}

.ops-threat-fill {
    display: block;
    height: 100%;
    background:
        linear-gradient(90deg, #4fb36d, #bba946, #d56e51, #c14444);
    box-shadow: 0 0 8px rgba(220, 140, 106, 0.24);
}

.ops-threat-readout {
    margin: 0.26rem 0 0;
    color: #d6ffe3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.ops-power-track {
    height: 0.9rem;
    border: 1px solid rgba(194, 171, 96, 0.74);
    background: rgba(40, 34, 16, 0.84);
    margin-top: 0.24rem;
}

.ops-power-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #f5d77e 0,
            #f5d77e 7px,
            #bd9f46 8px,
            #bd9f46 10px
        );
    box-shadow: 0 0 10px rgba(247, 210, 118, 0.28);
}

.ops-power-readout {
    margin: 0.3rem 0 0;
    color: #f4e4a5;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-resource-list {
    display: grid;
    gap: 0.3rem;
}

.ops-resource-row {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.18rem 0.42rem;
    align-items: center;
}

.ops-resource-key {
    color: #b4ead3;
    font-size: 0.71rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-resource-val {
    justify-self: end;
    color: #f4e3a8;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.ops-resource-track {
    grid-column: 1 / -1;
    height: 0.44rem;
    border: 1px solid rgba(125, 194, 155, 0.68);
    background: rgba(10, 41, 28, 0.84);
}

.ops-resource-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #88de74 0,
            #88de74 5px,
            #5da74d 6px,
            #5da74d 7px
        );
}

.ops-ai-module {
    min-height: 9rem;
}

.ops-ai-boot,
.ops-ai-line,
.ops-ai-confidence {
    margin: 0;
    font-family: "Lucida Console", "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ops-ai-boot {
    color: #e6f1b8;
    font-size: 0.7rem;
}

.ops-ai-cursor {
    animation: opsAICursorBlink 0.85s steps(2, end) infinite;
}

@keyframes opsAICursorBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0.2;
    }
}

.ops-ai-line {
    min-height: 2.1em;
    margin-top: 0.36rem;
    color: #c5f7d8;
    font-size: 0.72rem;
    line-height: 1.38;
}

.ops-ai-confidence {
    margin-top: 0.46rem;
    color: #b8e8ce;
    font-size: 0.7rem;
}

.ops-ai-confidence strong {
    color: #f8e6ac;
    font-size: 0.76rem;
}

.ops-live-intel-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0.55rem;
    margin-bottom: 0.76rem;
    border: 1px solid rgba(89, 151, 121, 0.62);
    background:
        linear-gradient(180deg, rgba(13, 48, 35, 0.86), rgba(9, 34, 24, 0.9)),
        repeating-linear-gradient(
            0deg,
            rgba(175, 238, 195, 0.08) 0,
            rgba(175, 238, 195, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    padding: 0.44rem;
}

.ops-live-intel-head {
    grid-column: 1 / 2;
    color: #f2e1a8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-family: "Lucida Console", "Courier New", monospace;
}

.ops-live-intel-track {
    grid-column: 1 / 2;
    overflow: hidden;
    border: 1px solid rgba(114, 191, 151, 0.64);
    background: rgba(7, 30, 21, 0.84);
    height: 1.86rem;
}

.ops-live-intel-mover {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 0.6rem;
    height: 100%;
    animation: opsIntelTicker 34s linear infinite;
}

.ops-live-intel-mover span {
    color: #c5f2d6;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes opsIntelTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ops-live-intel-side {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    display: grid;
    gap: 0.42rem;
}

.ops-turn-timer {
    border: 1px solid rgba(127, 197, 158, 0.66);
    background: rgba(8, 34, 24, 0.88);
    padding: 0.28rem 0.36rem;
    display: grid;
    gap: 0.2rem;
}

.ops-turn-timer-key,
.ops-turn-timer-label {
    color: #afdfc8;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-turn-timer strong {
    color: #f8e7ad;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.ops-satellite-box {
    border: 1px solid rgba(121, 193, 154, 0.64);
    background: rgba(8, 31, 22, 0.86);
    min-height: 6rem;
    position: relative;
    display: grid;
    place-items: center;
}

.ops-satellite-title {
    position: absolute;
    top: 0.26rem;
    left: 0.34rem;
    color: #aeddc6;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-satellite-orbit {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(132, 206, 167, 0.58);
    box-shadow: inset 0 0 0 1px rgba(91, 163, 126, 0.26);
}

.ops-satellite-core {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f3ffc6, #8eb64f 64%, #587129 100%);
}

.ops-satellite-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(183, 228, 197, 0.8);
    background: radial-gradient(circle at 35% 35%, #e7ffe8, #6dc993 68%, #2f7d55 100%);
    transform-origin: center center;
    animation: opsSatelliteOrbit 5.6s linear infinite;
}

@keyframes opsSatelliteOrbit {
    0% {
        transform: rotate(0deg) translateX(32px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(32px) rotate(-360deg);
    }
}

.ops-target-lock-module {
    min-height: 9rem;
}

.ops-target-lock-box {
    width: 96px;
    height: 96px;
    margin: 0.18rem auto 0.32rem;
    border: 1px solid rgba(134, 206, 166, 0.74);
    position: relative;
    background: rgba(8, 34, 23, 0.76);
    box-shadow: inset 0 0 0 1px rgba(105, 171, 133, 0.2);
    animation: opsTargetLockPulse 2.8s ease-in-out infinite;
}

.ops-target-lock-ring {
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(144, 214, 173, 0.58);
    border-radius: 50%;
}

.ops-target-lock-cross {
    position: absolute;
    background: rgba(153, 222, 181, 0.5);
}

.ops-target-lock-cross-x {
    left: 50%;
    top: 8px;
    width: 1px;
    height: calc(100% - 16px);
    transform: translateX(-50%);
}

.ops-target-lock-cross-y {
    top: 50%;
    left: 8px;
    height: 1px;
    width: calc(100% - 16px);
    transform: translateY(-50%);
}

.ops-target-lock-blip {
    position: absolute;
    top: calc(50% - 4px);
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 235, 184, 0.92);
    background: radial-gradient(circle at 35% 35%, #fffdcf, #d4b857 65%, #7e6b2a 100%);
    box-shadow: 0 0 8px rgba(248, 223, 130, 0.5);
    transition: transform 0.7s ease-in-out;
}

@keyframes opsTargetLockPulse {
    0%,
    100% {
        box-shadow: inset 0 0 0 1px rgba(105, 171, 133, 0.2), 0 0 0 rgba(212, 236, 145, 0);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(134, 210, 163, 0.3), 0 0 12px rgba(212, 236, 145, 0.24);
    }
}

.ops-target-lock-state {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.ops-target-lock-state-locked {
    color: #fbe7a9;
}

.ops-target-lock-state-tracking {
    color: #bdeece;
}

.ops-decrypt-boot,
.ops-decrypt-readout,
.ops-decrypt-hash {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: "Lucida Console", "Courier New", monospace;
}

.ops-decrypt-boot {
    color: #e4f6b9;
    font-size: 0.7rem;
}

.ops-decrypt-track {
    margin-top: 0.26rem;
    height: 0.78rem;
    border: 1px solid rgba(178, 160, 94, 0.74);
    background: rgba(43, 35, 15, 0.82);
}

.ops-decrypt-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            #e6d27f 0,
            #e6d27f 7px,
            #a28c43 8px,
            #a28c43 10px
        );
    box-shadow: 0 0 8px rgba(236, 212, 133, 0.3);
    transition: width 0.4s linear;
}

.ops-decrypt-readout {
    margin-top: 0.26rem;
    color: #f6e6ac;
    font-size: 0.72rem;
}

.ops-decrypt-hash {
    margin-top: 0.18rem;
    color: #b5e8ce;
    font-size: 0.66rem;
}

.ops-decrypt-hash span {
    color: #e2ffd9;
}

.ops-nation-list {
    display: grid;
    gap: 0.16rem;
}

.ops-nation-list p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    color: #bcead0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.ops-nation-list p strong {
    color: #f3e2a8;
    font-size: 0.72rem;
}

.ops-diplomatic-line,
.ops-diplomatic-score {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ops-diplomatic-line {
    color: #caefd9;
    font-size: 0.7rem;
}

.ops-diplomatic-meter {
    margin-top: 0.26rem;
    height: 0.64rem;
    border: 1px solid rgba(130, 197, 160, 0.68);
    background: rgba(10, 37, 26, 0.84);
}

.ops-diplomatic-fill {
    display: block;
    height: 100%;
}

.ops-diplomatic-fill-low {
    background: linear-gradient(90deg, #5ab578, #4d9a63);
}

.ops-diplomatic-fill-medium {
    background: linear-gradient(90deg, #d4b45d, #b08e3f);
}

.ops-diplomatic-fill-high {
    background: linear-gradient(90deg, #d58a56, #b1663f);
}

.ops-diplomatic-fill-critical {
    background: linear-gradient(90deg, #cf6767, #aa4242);
}

.ops-diplomatic-score {
    margin-top: 0.24rem;
    color: #f4e1a3;
    font-size: 0.7rem;
}

.ops-movement-count,
.ops-movement-label {
    margin: 0;
    text-transform: uppercase;
}

.ops-movement-count {
    font-family: "Lucida Console", "Courier New", monospace;
    letter-spacing: 0.1em;
    font-size: 1.52rem;
    line-height: 1.05;
}

.ops-movement-count-low {
    color: #bdeec9;
}

.ops-movement-count-medium {
    color: #ffe0a1;
}

.ops-movement-count-high {
    color: #ffd0a6;
    animation: opsMovementPulse 1.6s ease-in-out infinite;
}

@keyframes opsMovementPulse {
    0%,
    100% {
        filter: brightness(0.92);
    }
    50% {
        filter: brightness(1.18);
    }
}

.ops-movement-label {
    margin-top: 0.16rem;
    color: #b9e8ce;
    letter-spacing: 0.06em;
    font-size: 0.69rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-top: 0.65rem;
}

.action-link {
    display: inline-block;
    text-decoration: none;
    border: 1px solid #0b4f52;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    color: var(--white);
    border-radius: 4px;
    padding: 0.38rem 0.62rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.action-link-small {
    padding: 0.24rem 0.52rem;
    font-size: 0.8rem;
}

.action-link:hover {
    filter: brightness(1.08);
}

.action-link-danger {
    border-color: #7f261f;
    background: linear-gradient(180deg, #b64f45, #8f342b);
}

.button-compact {
    padding: 0.28rem 0.5rem;
    font-size: 0.78rem;
}

.meta-links {
    margin-top: 0.7rem;
}

.meta-links a,
.inline-link {
    color: #0f5558;
    font-weight: 700;
}

.games-filter-note {
    margin-bottom: 0.48rem;
}

.supervisor-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin: 0.38rem 0 0.15rem;
}

.supervisor-action-row {
    margin-top: 0.75rem;
}

.games-filter-toggle {
    display: inline-flex;
    border: 1px solid #4a9fa1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(197, 250, 248, 0.2);
}

.games-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.65rem;
    text-decoration: none;
    color: #c8f6f2;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background:
        linear-gradient(180deg, rgba(43, 118, 122, 0.95), rgba(22, 73, 77, 0.96)),
        repeating-linear-gradient(
            90deg,
            rgba(198, 249, 245, 0.08) 0,
            rgba(198, 249, 245, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
    border-right: 1px solid rgba(106, 185, 189, 0.5);
}

.games-filter-btn:last-child {
    border-right: none;
}

.games-filter-btn:hover {
    filter: brightness(1.08);
}

.games-filter-btn.is-active {
    color: #243f1f;
    background:
        linear-gradient(180deg, rgba(171, 214, 111, 0.96), rgba(130, 174, 72, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(246, 255, 211, 0.1) 0,
            rgba(246, 255, 211, 0.1) 1px,
            transparent 2px,
            transparent 4px
        );
}

.games-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 0.75rem;
}

.supervisor-command-grid {
    margin-top: 0.2rem;
}

.game-command-card {
    border: 1px solid #66adb0;
    border-radius: 5px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(229, 244, 226, 0.98), rgba(213, 234, 206, 0.96));
    box-shadow: 0 5px 13px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.game-command-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.58rem 0.68rem 0.5rem;
    border-bottom: 1px solid rgba(88, 149, 151, 0.5);
    background:
        linear-gradient(180deg, rgba(202, 232, 209, 0.55), rgba(217, 238, 205, 0.38));
}

.game-command-head h2 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.15;
}

.game-command-subline {
    margin: 0.18rem 0 0;
    font-size: 0.76rem;
    color: #396365;
}

.game-command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.7rem;
    padding: 0.62rem 0.68rem;
}

.game-command-item {
    min-width: 0;
}

.game-command-key {
    display: block;
    margin-bottom: 0.15rem;
    color: #2d5b5d;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.game-command-item strong,
.game-command-item span {
    font-size: 0.86rem;
}

.game-command-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(98, 159, 160, 0.46);
    padding: 0.5rem 0.68rem 0.58rem;
    background: rgba(235, 247, 235, 0.76);
}

.games-command-grid.games-command-grid-terminal {
    gap: 0.82rem;
}

.games-command-grid-terminal .game-command-card {
    font-family: "Consolas", "Lucida Console", "Courier New", monospace;
    border: 1px solid #438f66;
    border-radius: 0;
    color: #b9ffd4;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(157, 255, 198, 0.045) 0,
            rgba(157, 255, 198, 0.045) 1px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, rgba(9, 34, 23, 0.97), rgba(8, 26, 19, 0.98));
    box-shadow: inset 0 0 0 1px rgba(121, 235, 169, 0.16), 0 8px 18px rgba(2, 13, 9, 0.36);
}

.games-command-grid-terminal .game-command-head {
    border-bottom: 1px solid rgba(89, 164, 119, 0.72);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(180, 255, 214, 0.05) 0,
            rgba(180, 255, 214, 0.05) 2px,
            transparent 3px,
            transparent 6px
        ),
        linear-gradient(180deg, rgba(17, 56, 39, 0.95), rgba(11, 38, 28, 0.98));
}

.games-command-grid-terminal .game-command-head h2 {
    font-size: 1rem;
    letter-spacing: 0.015em;
}

.games-command-grid-terminal .inline-link {
    color: #d5ffe8;
    text-decoration-color: #8ae4b4;
    text-decoration-thickness: 1px;
}

.games-command-grid-terminal .game-command-subline {
    color: #8adfb1;
    font-size: 0.78rem;
}

.games-command-grid-terminal .game-command-grid {
    border-top: 1px solid rgba(26, 76, 50, 0.42);
    border-bottom: 1px solid rgba(26, 76, 50, 0.36);
}

.games-command-grid-terminal .game-command-key {
    color: #86e5b0;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
}

.games-command-grid-terminal .game-command-item strong {
    color: #e3ffef;
}

.games-command-grid-terminal .game-command-item span {
    color: #c4f9da;
}

.games-command-grid-terminal .slot-color-red {
    color: #ff7a7a;
}

.games-command-grid-terminal .slot-color-lightblue {
    color: #8bcfff;
}

.games-command-grid-terminal .slot-color-yellow {
    color: #f7e78b;
}

.games-command-grid-terminal .slot-color-green {
    color: #84f6ab;
}

.games-command-grid-terminal .slot-color-magenta {
    color: #f2a3ff;
}

.games-command-grid-terminal .slot-color-darkblue {
    color: #8eb4ff;
}

.games-command-grid-terminal .slot-color-orange {
    color: #ffc68b;
}

.games-command-grid-terminal .slot-color-neutral {
    color: #ccd7df;
}

.games-command-grid-terminal .game-command-foot {
    border-top: 1px solid rgba(90, 160, 116, 0.7);
    background: linear-gradient(180deg, rgba(10, 38, 27, 0.95), rgba(8, 27, 19, 0.98));
}

.games-command-grid-terminal .status-chip,
.games-command-grid-terminal .deadline-chip {
    border-radius: 2px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.games-command-grid-terminal .status-chip {
    border-color: #4ea878;
    background: #103524;
    color: #9cf5c2;
}

.games-command-grid-terminal .status-active {
    border-color: #69d497;
    background: #114a30;
    color: #c0ffdb;
}

.games-command-grid-terminal .status-paused {
    border-color: #d0b062;
    background: #433717;
    color: #fce8af;
}

.games-command-grid-terminal .status-finished,
.games-command-grid-terminal .status-archived {
    border-color: #88a599;
    background: #283930;
    color: #d5e6dc;
}

.games-command-grid-terminal .deadline-chip {
    border-color: #4f9872;
    background: #123425;
    color: #a8f6c9;
}

.games-command-grid-terminal .deadline-ok {
    border-color: #5cc58a;
    background: #10402b;
    color: #bdfdda;
}

.games-command-grid-terminal .deadline-soon {
    border-color: #cfaf5f;
    background: #3f3314;
    color: #ffe7a5;
}

.games-command-grid-terminal .deadline-overdue {
    border-color: #ce7070;
    background: #431f1f;
    color: #ffc6c6;
}

.games-command-grid-terminal .deadline-none {
    border-color: #759286;
    background: #24372e;
    color: #cbddd5;
}

.games-command-grid-terminal .action-link.action-link-small {
    border-radius: 0;
    border-color: #438f66;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(186, 255, 220, 0.08) 0,
            rgba(186, 255, 220, 0.08) 2px,
            transparent 3px,
            transparent 6px
        ),
        linear-gradient(180deg, #17543a, #0f3927);
    color: #d7ffea;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.games-command-grid-terminal .action-link.action-link-small:hover {
    filter: none;
    background: linear-gradient(180deg, #1d6647, #13482f);
}

.supervisor-game-card .game-command-foot .action-row {
    margin-top: 0;
}

.deadline-chip {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid #779899;
    padding: 0.1rem 0.44rem;
    font-size: 0.76rem;
    font-weight: 700;
    background: #eef6f6;
    color: #274f51;
}

.deadline-ok {
    border-color: #5e9f6d;
    background: #e2f5e5;
    color: #1b5e2f;
}

.deadline-soon {
    border-color: #b19556;
    background: #fff6dd;
    color: #7c5e14;
}

.deadline-overdue {
    border-color: #ad5e5e;
    background: #ffe8e8;
    color: #8b1b1b;
}

.deadline-none {
    border-color: #8a9ca7;
    background: #edf2f4;
    color: #536570;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    background: rgba(255, 255, 255, 0.62);
}

.table-wrap-fit {
    overflow-x: visible;
}

.data-table.data-table-fit {
    table-layout: fixed;
    font-size: 0.86rem;
}

.data-table.data-table-fit th,
.data-table.data-table-fit td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    overflow: hidden;
    line-height: 1.2;
    padding: 0.34rem 0.4rem;
    vertical-align: top;
}

.data-table.data-table-fit .action-link {
    white-space: nowrap;
}

.games-table td:nth-child(3),
.games-table td:nth-child(4),
.games-table td:nth-child(7) {
    text-align: center;
}

.games-table .action-link-small {
    padding: 0.2rem 0.42rem;
    font-size: 0.76rem;
}

.data-table th,
.data-table td {
    border: 1px solid #84abad;
    padding: 0.42rem 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    background: linear-gradient(180deg, #1f6f72, #165458);
    color: #e8feff;
    letter-spacing: 0.02em;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(215, 233, 220, 0.65);
}

.data-table tbody tr:hover {
    background: rgba(122, 188, 161, 0.22);
}

.data-table.data-table-terminal {
    font-family: "Consolas", "Lucida Console", "Courier New", monospace;
    font-size: 0.9rem;
    color: #9dfcc0;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(146, 255, 186, 0.04) 0,
            rgba(146, 255, 186, 0.04) 1px,
            transparent 2px,
            transparent 4px
        ),
        #071711;
    border: 1px solid #2f7f54;
    box-shadow: inset 0 0 0 1px rgba(141, 255, 182, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.data-table.data-table-terminal th,
.data-table.data-table-terminal td {
    border-color: #2f7f54;
}

.data-table.data-table-terminal th {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(154, 255, 193, 0.08) 0,
            rgba(154, 255, 193, 0.08) 2px,
            transparent 3px,
            transparent 6px
        ),
        linear-gradient(180deg, #113827, #0a2318);
    color: #b4ffd1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.data-table.data-table-terminal tbody tr {
    background: rgba(7, 24, 17, 0.9);
}

.data-table.data-table-terminal tbody tr:nth-child(even) {
    background: rgba(12, 35, 24, 0.92);
}

.data-table.data-table-terminal tbody tr:hover {
    background: rgba(23, 66, 45, 0.94);
}

.data-table.data-table-terminal strong {
    color: #dcffe9;
}

.data-table.data-table-terminal td:last-child {
    font-variant-numeric: tabular-nums;
}

.data-table.data-table-terminal .status-chip {
    border-radius: 2px;
    border-color: #3c9768;
    background: #0b2d1e;
    color: #9cf8be;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table.data-table-terminal .status-active {
    border-color: #5ecf8c;
    background: #0d3f2a;
    color: #b6ffd3;
}

.data-table.data-table-terminal .status-paused {
    border-color: #d5b75a;
    background: #3d3314;
    color: #ffe8a7;
}

.data-table.data-table-terminal .status-finished,
.data-table.data-table-terminal .status-archived {
    border-color: #8fa69a;
    background: #1f2f27;
    color: #d4e5dc;
}

.data-table.data-table-terminal .turn-analysis-note {
    color: #7dcfa3;
}

.data-table.data-table-terminal.slot-roster-table td {
    vertical-align: middle;
}

.data-table.data-table-terminal.slot-roster-table .slot-label {
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-red {
    color: #ff8383;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-lightblue {
    color: #8dcfff;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-yellow {
    color: #f5e28a;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-green {
    color: #8af5b2;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-magenta {
    color: #f0a1ff;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-darkblue {
    color: #97b7ff;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-orange {
    color: #ffc48a;
}

.data-table.data-table-terminal.slot-roster-table .slot-color-neutral {
    color: #d2dde5;
}

.data-table.data-table-terminal.slot-roster-table .slot-standin-form select {
    min-width: 190px;
    font-family: inherit;
    color: #d6ffe8;
    border: 1px solid #3f9368;
    border-radius: 2px;
    background: #0e2e20;
}

.data-table.data-table-terminal.slot-roster-table .slot-standin-form .button-compact {
    border: 1px solid #438f66;
    border-radius: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(186, 255, 220, 0.08) 0,
            rgba(186, 255, 220, 0.08) 2px,
            transparent 3px,
            transparent 6px
        ),
        linear-gradient(180deg, #17543a, #0f3927);
    color: #d7ffea;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-table.data-table-terminal.slot-roster-table .slot-standin-form .button-compact:hover {
    filter: none;
    background: linear-gradient(180deg, #1d6647, #13482f);
}

.table-wrap.table-wrap-terminal-scroll {
    max-height: min(72vh, 900px);
    overflow: auto;
    border: 1px solid #2f7f54;
    box-shadow: inset 0 0 0 1px rgba(141, 255, 182, 0.12);
}

.table-wrap.table-wrap-terminal-scroll .data-table.data-table-terminal {
    border: none;
    box-shadow: none;
    min-width: 860px;
}

.table-wrap.table-wrap-terminal-scroll .data-table.data-table-terminal thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-terminal-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 0.45rem;
    font-family: "Consolas", "Lucida Console", "Courier New", monospace;
}

.table-terminal-counter {
    display: inline-block;
    padding: 0.14rem 0.38rem;
    border: 1px solid #3b8e61;
    background: #0a2418;
    color: #8ee8b4;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-chip {
    display: inline-block;
    border: 1px solid #699091;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    background: rgba(236, 248, 248, 0.88);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1c4749;
}

.status-active {
    border-color: #6ba17a;
    color: #145f2f;
    background: #e7f7eb;
}

.status-paused {
    border-color: #b19352;
    color: #775b11;
    background: #fff7df;
}

.status-finished,
.status-archived {
    border-color: #8d9aa7;
    color: #465666;
    background: #ecf2f7;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.hex-panel {
    position: relative;
    overflow: hidden;
}

.hex-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='46' viewBox='0 0 52 46'%3E%3Cpath d='M13 1h26l12 22-12 22H13L1 23Z' fill='%2379bd76' fill-opacity='0.07' stroke='%233f8f46' stroke-opacity='0.35' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 52px 46px;
    background-position: 0 0;
}

.meta-list p {
    margin: 0.2rem 0;
    position: relative;
    z-index: 1;
}

.table-row-current {
    background: rgba(107, 185, 102, 0.26) !important;
}

.turn-upload-form {
    max-width: 520px;
}

.turn-upload-live-status {
    margin: 0;
    font-size: 0.84rem;
    color: #205254;
    font-weight: 700;
}

.turn-upload-live-status-busy {
    color: #0f6f72;
    animation: uploadStatePulse 0.8s steps(2, end) infinite;
}

.button-busy {
    opacity: 0.85;
    cursor: progress;
}

.turn-note {
    margin-top: 0.55rem;
    font-size: 0.9rem;
}

.turn-analysis-note {
    margin-top: 0.2rem;
    margin-bottom: 0.12rem;
    font-size: 0.74rem;
    color: #315f61;
}

.turn-delete-form {
    margin-top: 0.3rem;
}

.incoming-window {
    border: 1px solid #80bfc2;
    background: linear-gradient(180deg, rgba(80, 158, 156, 0.92), rgba(74, 150, 149, 0.9));
    box-shadow: inset 0 0 0 1px rgba(176, 221, 222, 0.45);
    color: #fff3a6;
}

.incoming-window-head {
    background: linear-gradient(180deg, rgba(216, 221, 220, 0.9), rgba(170, 176, 175, 0.9));
    color: #2f3939;
    border-bottom: 1px solid rgba(120, 128, 128, 0.85);
    padding: 0.2rem 0.55rem;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 700;
}

.incoming-window-body {
    padding: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.28;
    text-shadow: 0 1px 0 rgba(24, 60, 60, 0.45);
}

.incoming-window-body p {
    color: #fff3a6;
    margin-bottom: 0.8rem;
}

.incoming-window-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 0.7rem 0.65rem;
}

.incoming-ok {
    min-width: 92px;
    text-align: center;
}

.incoming-window-compact {
    margin-top: 0.7rem;
}

.slot-hidden-cell {
    text-align: center;
}

.slot-hidden-cell input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
}

.set-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.set-card {
    border: 1px solid #86aeb0;
    background: linear-gradient(180deg, rgba(241, 248, 233, 0.96), rgba(226, 239, 214, 0.95));
    clip-path: polygon(3% 0, 97% 0, 100% 14%, 100% 86%, 97% 100%, 3% 100%, 0 86%, 0 14%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.set-card-favorite {
    border-color: #3d9f58;
    box-shadow: 0 0 0 2px rgba(66, 162, 84, 0.35), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.set-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #9bbec0;
    background: #c6d6c7;
}

.set-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5a5d;
    font-size: 0.9rem;
}

.set-body {
    padding: 0.6rem 0.7rem 0.72rem;
}

.set-body h3 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.set-style {
    color: #234f51;
    font-weight: 700;
}

.slot-standin-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.slot-standin-form select {
    min-width: 180px;
    width: auto;
    max-width: 100%;
}

.admin-create-user-form {
    max-width: 680px;
}

.admin-role-fieldset {
    border: 1px solid #7eaeb0;
    border-radius: 5px;
    padding: 0.5rem 0.65rem;
    background: rgba(232, 246, 234, 0.7);
}

.admin-role-fieldset legend {
    font-weight: 700;
    color: #244e50;
    padding: 0 0.2rem;
}

.admin-role-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
}

.admin-role-grid-compact {
    gap: 0.32rem 0.6rem;
    margin-bottom: 0.32rem;
}

.admin-role-option {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.84rem;
}

.admin-user-row-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 290px;
    width: min(460px, 100%);
}

.admin-user-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
}

.admin-inline-field {
    font-size: 0.74rem;
    gap: 0.18rem;
}

.admin-user-row-form .action-link {
    align-self: flex-start;
}

.admin-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.82rem;
}

.research-layout-card {
    padding: 0.72rem 0.78rem;
}

.research-layout {
    display: grid;
    grid-template-columns: minmax(150px, 196px) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.research-layout-rail-mode {
    grid-template-columns: minmax(0, 1fr);
}

.research-factions {
    border: 1px solid #5f9875;
    border-radius: 5px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(23, 80, 73, 0.94), rgba(14, 56, 56, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(218, 252, 220, 0.06) 0,
            rgba(218, 252, 220, 0.06) 2px,
            transparent 3px,
            transparent 6px
        );
    box-shadow: inset 0 0 0 1px rgba(168, 231, 189, 0.16);
    align-self: start;
    position: sticky;
    top: 0.8rem;
}

.research-factions-inline-fallback {
    display: none;
    position: static;
    top: auto;
}

.research-factions h2 {
    margin: 0;
    padding: 0.46rem 0.55rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #effff9;
    background:
        linear-gradient(180deg, #1f6d72, #194f54),
        repeating-linear-gradient(
            90deg,
            rgba(226, 255, 239, 0.1) 0,
            rgba(226, 255, 239, 0.1) 2px,
            transparent 3px,
            transparent 6px
        );
    border-bottom: 1px solid rgba(164, 225, 193, 0.4);
}

.research-faction-list {
    display: flex;
    flex-direction: column;
}

.research-faction-list-rail {
    border: 1px solid #5f9875;
    border-radius: 5px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(23, 80, 73, 0.94), rgba(14, 56, 56, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(218, 252, 220, 0.06) 0,
            rgba(218, 252, 220, 0.06) 2px,
            transparent 3px,
            transparent 6px
        );
}

.research-faction-link {
    display: block;
    padding: 0.42rem 0.55rem;
    border-top: 1px solid rgba(128, 192, 168, 0.34);
    color: #ddfff2;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.research-faction-link:hover {
    background: rgba(119, 190, 150, 0.25);
}

.research-faction-link.is-active {
    color: #0f3f4a;
    background: linear-gradient(180deg, rgba(166, 226, 151, 0.95), rgba(128, 187, 104, 0.92));
    box-shadow: inset 4px 0 0 #f3ffb1;
}

.research-main {
    min-width: 0;
    display: grid;
    gap: 0.62rem;
}

.research-header-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #5f9da2;
    border-radius: 5px;
    padding: 0.62rem 0.72rem;
    background:
        linear-gradient(180deg, rgba(23, 84, 88, 0.94), rgba(14, 62, 66, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(190, 246, 242, 0.06) 0,
            rgba(190, 246, 242, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: inset 0 0 0 1px rgba(148, 217, 219, 0.16);
}

.research-header-panel h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #e2fffb;
}

.research-header-panel p {
    margin: 0.16rem 0 0;
    color: #b6eaec;
}

.research-faction-image {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #72a5a9;
    background: #c4d6c8;
}

.research-section-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.research-sections-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d8ffff;
}

.research-section-tab {
    display: inline-block;
    text-decoration: none;
    border: 1px solid rgba(112, 189, 193, 0.72);
    border-radius: 4px;
    padding: 0.22rem 0.48rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #dffffd;
    background:
        linear-gradient(180deg, rgba(54, 129, 132, 0.92), rgba(31, 93, 97, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(205, 250, 247, 0.08) 0,
            rgba(205, 250, 247, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
}

.research-section-tab:hover {
    filter: brightness(1.04);
}

.research-section-tab.is-active {
    color: #24421c;
    border-color: #7ca44f;
    background: linear-gradient(180deg, #c7e57b, #97b74a);
}

.research-native-wrap {
    display: grid;
    gap: 0.68rem;
}

.research-planner {
    border: 1px solid #5c9ca2;
    border-radius: 5px;
    padding: 0.58rem 0.66rem;
    background:
        linear-gradient(180deg, rgba(15, 74, 79, 0.94), rgba(10, 56, 60, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(199, 251, 245, 0.06) 0,
            rgba(199, 251, 245, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
}

.research-planner label {
    display: block;
    color: #dcfffd;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.74rem;
}

.research-planner-row {
    margin-top: 0.34rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.36rem;
}

.research-planner-select {
    border: 1px solid #6fb6ba;
    background: rgba(236, 251, 249, 0.95);
    color: #174d55;
    font-weight: 700;
    font-size: 0.86rem;
}

.research-planner-reset {
    padding: 0.36rem 0.56rem;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.research-planner-output {
    margin: 0.36rem 0 0;
    color: #c8f5f2;
    font-size: 0.8rem;
}

.research-planner.is-active .research-planner-output {
    color: #f0ffbd;
}

.research-map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.research-map-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.research-map-mode-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.research-map-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 121;
    background: rgba(4, 22, 25, 0.74);
    backdrop-filter: blur(1.5px);
}

.research-map-overlay-backdrop[hidden] {
    display: none;
}

.research-map-frame {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.research-map-frame.is-overlay-open {
    position: fixed;
    inset: clamp(0.45rem, 1.8vw, 1rem);
    z-index: 122;
    border: 1px solid rgba(114, 188, 195, 0.62);
    border-radius: 10px;
    padding: 0.54rem;
    background:
        linear-gradient(180deg, rgba(10, 53, 57, 0.96), rgba(7, 38, 42, 0.98)),
        radial-gradient(circle at 24% 16%, rgba(214, 255, 252, 0.08), transparent 46%);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(198, 246, 248, 0.16);
    grid-template-rows: auto minmax(0, 1fr);
}

body.research-map-overlay-open {
    overflow: hidden;
}

body.research-map-overlay-open .main-shell {
    z-index: 120;
}

.research-map-btn {
    border: 1px solid #67aeb3;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(25, 100, 106, 0.96), rgba(14, 73, 77, 0.98)),
        repeating-linear-gradient(
            90deg,
            rgba(208, 252, 250, 0.08) 0,
            rgba(208, 252, 250, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
    color: #defffc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.26rem 0.48rem;
    cursor: pointer;
    transition: filter 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.research-map-btn:hover {
    filter: brightness(1.08);
}

.research-map-btn:active {
    transform: translateY(1px);
}

.research-map-btn:disabled {
    cursor: default;
    opacity: 0.48;
}

.research-focus-toggle[aria-pressed="true"] {
    border-color: #97b84d;
    color: #f8ffd6;
    background:
        linear-gradient(180deg, rgba(102, 132, 44, 0.94), rgba(77, 108, 30, 0.97)),
        repeating-linear-gradient(
            90deg,
            rgba(245, 255, 186, 0.12) 0,
            rgba(245, 255, 186, 0.12) 2px,
            transparent 3px,
            transparent 6px
        );
}

.research-map-overlay-toggle[aria-pressed="true"] {
    border-color: #c4b45e;
    color: #fff8d2;
    background:
        linear-gradient(180deg, rgba(133, 112, 36, 0.94), rgba(106, 88, 25, 0.97)),
        repeating-linear-gradient(
            90deg,
            rgba(251, 246, 206, 0.12) 0,
            rgba(251, 246, 206, 0.12) 2px,
            transparent 3px,
            transparent 6px
        );
}

.research-map-shell {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
    min-width: 0;
}

.research-map-minimap {
    border: 1px solid rgba(93, 162, 168, 0.78);
    border-radius: 6px;
    padding: 0.4rem 0.36rem;
    background:
        linear-gradient(180deg, rgba(12, 61, 65, 0.93), rgba(9, 48, 52, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(199, 251, 247, 0.06) 0,
            rgba(199, 251, 247, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
    display: grid;
    gap: 0.26rem;
    max-height: 580px;
    overflow: auto;
}

.research-map-minimap-label {
    color: #d4fffb;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.08rem;
}

.research-minimap-btn {
    width: 100%;
    border: 1px solid rgba(114, 186, 192, 0.66);
    border-radius: 4px;
    background: rgba(12, 74, 79, 0.86);
    color: #dcfffd;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.3rem;
    font-size: 0.71rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: filter 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.research-minimap-btn:hover {
    filter: brightness(1.08);
}

.research-minimap-btn.is-active {
    border-color: var(--lane-color);
    background: color-mix(in srgb, var(--lane-color) 30%, rgba(12, 74, 79, 0.88));
    box-shadow: inset 0 0 0 1px rgba(239, 255, 254, 0.24);
}

.research-minimap-dot {
    width: 0.54rem;
    height: 0.54rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 36, 38, 0.92);
    background: var(--lane-color);
    box-shadow: 0 0 0 1px rgba(237, 252, 255, 0.25);
    flex: 0 0 auto;
}

.research-minimap-btn.is-hidden-focus {
    display: none;
}

.research-map-viewport {
    border: 1px solid rgba(98, 169, 175, 0.65);
    border-radius: 8px;
    padding: 0.42rem;
    background:
        linear-gradient(180deg, rgba(8, 49, 53, 0.95), rgba(7, 39, 42, 0.96)),
        radial-gradient(circle at 12% 20%, rgba(206, 250, 246, 0.06), transparent 52%);
    overflow: auto;
    max-height: 640px;
    min-width: 0;
    overscroll-behavior: contain;
}

.research-command-map {
    --research-map-zoom: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.58rem;
    width: max-content;
    min-width: 100%;
    zoom: var(--research-map-zoom);
    transition: filter 120ms ease;
}

.research-map-frame.is-overlay-open .research-map-shell {
    height: 100%;
    min-height: 0;
}

.research-map-frame.is-overlay-open .research-map-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
}

.research-map-frame.is-overlay-open .research-map-viewport {
    height: 100%;
    max-height: none;
}

.research-map-frame.is-overlay-open .research-map-minimap {
    max-height: none;
}

.research-lane {
    flex: 0 0 292px;
    border: 1px solid rgba(112, 187, 193, 0.52);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(10, 59, 63, 0.94), rgba(8, 47, 50, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(197, 251, 247, 0.06) 0,
            rgba(197, 251, 247, 0.06) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: inset 0 0 0 1px rgba(167, 236, 236, 0.14), 0 8px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: opacity 150ms ease, filter 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.research-lane.is-active-path {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(224, 255, 255, 0.24), 0 0 0 2px color-mix(in srgb, var(--lane-color) 42%, #dffff8), 0 12px 22px rgba(0, 0, 0, 0.28);
}

.research-lane.is-inactive-path {
    opacity: 0.44;
    filter: saturate(0.6) brightness(0.92);
}

.research-lane.is-hidden-focus {
    display: none;
}

.research-lane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem 0.52rem;
    background-color: var(--lane-color);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--lane-color) 78%, #f5fbff), color-mix(in srgb, var(--lane-color) 62%, #0f2f34)),
        repeating-linear-gradient(
            90deg,
            rgba(245, 253, 255, 0.12) 0,
            rgba(245, 253, 255, 0.12) 2px,
            transparent 3px,
            transparent 6px
        );
    border-bottom: 1px solid rgba(226, 250, 255, 0.2);
}

.research-lane-head h4 {
    margin: 0;
    color: #f4ffff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.research-lane-head span {
    display: inline-block;
    min-width: 1.48rem;
    text-align: center;
    color: #11383f;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.08rem 0.36rem;
    background: rgba(248, 255, 219, 0.9);
}

.research-lane-flow {
    position: relative;
    padding: 0.52rem 0.48rem 0.54rem 0.84rem;
    display: grid;
    gap: 0.48rem;
}

.research-lane-flow::before {
    content: "";
    position: absolute;
    left: 0.62rem;
    top: 0.62rem;
    bottom: 0.62rem;
    width: 2px;
    background: var(--lane-color);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--lane-color) 92%, #f2ffff),
        color-mix(in srgb, var(--lane-color) 40%, #274f52)
    );
    opacity: 0.9;
}

.research-lane.is-active-path .research-lane-flow::before {
    animation: researchFlowPulse 1.4s linear infinite;
}

.research-lane-tier {
    position: relative;
    padding-left: 0.55rem;
}

.research-lane-tier.is-hidden-focus {
    display: none;
}

.research-lane-tier::before {
    content: "";
    position: absolute;
    left: -0.33rem;
    top: 0.42rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    border: 2px solid rgba(11, 45, 49, 0.95);
    background: var(--lane-color);
    background: color-mix(in srgb, var(--lane-color) 88%, #f0fffb);
    box-shadow: 0 0 0 1px rgba(224, 253, 255, 0.35);
}

.research-lane-tier::after {
    content: "";
    position: absolute;
    left: 0.11rem;
    top: 0.64rem;
    width: 0.42rem;
    height: 2px;
    background: var(--lane-color);
    background: color-mix(in srgb, var(--lane-color) 72%, #dffffd);
}

.research-lane-tier.is-required-tier::before {
    box-shadow: 0 0 0 2px rgba(238, 255, 240, 0.38), 0 0 16px color-mix(in srgb, var(--lane-color) 54%, #f3ff9b);
    animation: researchNodePulse 1.2s ease-in-out infinite;
}

.research-lane-tier.is-required-tier::after {
    animation: researchNodePulse 1.2s ease-in-out infinite;
}

.research-lane-tier-label {
    margin: 0 0 0.26rem;
    color: #d9fffb;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.research-lane-tier.is-required-tier .research-lane-tier-label {
    color: #f3ffd3;
}

.research-lane-tier-cards {
    display: grid;
    gap: 0.34rem;
}

.research-command-map .research-unit-card {
    border-color: var(--lane-color);
    border-color: color-mix(in srgb, var(--lane-color) 40%, #78b9bf);
    box-shadow: inset 0 0 0 1px rgba(240, 255, 253, 0.32);
    position: relative;
}

.research-command-map .research-unit-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--lane-color);
    background: color-mix(in srgb, var(--lane-color) 82%, #f8ffec);
    border-radius: 3px 0 0 3px;
}

.research-command-map.is-focus-mode .research-unit-card.is-dimmed {
    display: none;
}

.research-native-overview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid #5f9ea4;
    border-radius: 5px;
    padding: 0.6rem 0.72rem;
    background: linear-gradient(180deg, rgba(22, 87, 91, 0.95), rgba(14, 64, 68, 0.96));
}

.research-native-overview h3 {
    margin: 0;
    font-size: 1.03rem;
    color: #f2fffb;
}

.research-native-overview p {
    margin: 0.18rem 0 0;
    font-size: 0.84rem;
    color: #beeef0;
}

.research-native-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.36rem;
}

.research-native-stat {
    min-width: 84px;
    border: 1px solid #79b8bf;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(203, 241, 228, 0.94), rgba(167, 210, 191, 0.94));
    padding: 0.26rem 0.4rem;
    text-align: center;
}

.research-native-stat strong {
    display: block;
    color: #123f46;
    font-size: 0.96rem;
}

.research-native-stat span {
    display: block;
    color: #27585f;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.research-tier-block {
    border: 1px solid #5b99a1;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 69, 73, 0.94), rgba(9, 53, 57, 0.96));
    box-shadow: inset 0 0 0 1px rgba(160, 229, 227, 0.14);
}

.research-tier-block h4 {
    margin: 0;
    padding: 0.38rem 0.55rem;
    background:
        linear-gradient(180deg, #2f8f97, #236f76),
        repeating-linear-gradient(
            90deg,
            rgba(226, 252, 250, 0.1) 0,
            rgba(226, 252, 250, 0.1) 2px,
            transparent 3px,
            transparent 6px
        );
    color: #f0fffb;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(146, 220, 222, 0.35);
}

.research-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.48rem;
    padding: 0.5rem;
}

.research-branch-column {
    border: 1px solid rgba(95, 155, 162, 0.72);
    border-radius: 5px;
    background: rgba(236, 248, 241, 0.95);
    overflow: hidden;
}

.research-branch-column > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.38rem;
    padding: 0.34rem 0.45rem;
    border-bottom: 1px solid rgba(98, 153, 158, 0.45);
    background: linear-gradient(180deg, rgba(203, 229, 214, 0.8), rgba(191, 220, 203, 0.82));
}

.research-branch-column > header span {
    color: #1f5259;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.research-branch-column > header strong {
    color: #0f3d43;
    font-size: 0.78rem;
}

.research-unit-list {
    display: grid;
    gap: 0.38rem;
    padding: 0.44rem;
}

.research-unit-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.42rem;
    border: 1px solid rgba(106, 150, 156, 0.65);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(241, 249, 244, 0.95), rgba(227, 240, 231, 0.96));
    padding: 0.3rem;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.research-unit-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(223, 235, 223, 0.75);
    border: 1px solid rgba(129, 169, 174, 0.6);
    border-radius: 3px;
}

.research-unit-body {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
    align-content: flex-start;
}

.research-unit-body strong {
    color: #174b53;
    font-size: 0.82rem;
    line-height: 1.2;
}

.research-unit-code {
    color: #285961;
    font-size: 0.7rem;
    font-weight: 700;
}

.research-unit-requirement {
    display: grid;
    gap: 0.1rem;
}

.research-unit-req-main {
    display: inline-block;
    color: #144d55;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.research-unit-req-path {
    color: #35646b;
    font-size: 0.66rem;
}

.research-unit-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
    margin-top: 0.08rem;
}

.research-unit-actions span {
    color: #1d5258;
    font-size: 0.7rem;
    font-weight: 700;
}

.research-unit-actions a {
    color: #0f6167;
    font-size: 0.74rem;
    font-weight: 700;
}

.research-unit-empty {
    margin: 0;
    color: #3d676d;
    font-size: 0.78rem;
}

.research-unit-card.is-required {
    border-color: #4f9e57;
    box-shadow: 0 0 0 1px rgba(92, 169, 101, 0.28);
}

.research-unit-card.is-target {
    border-color: #dbb13f;
    box-shadow: 0 0 0 2px rgba(219, 177, 63, 0.42), 0 6px 13px rgba(25, 59, 61, 0.28);
    transform: translateY(-1px);
    animation: researchTargetPulse 1.25s ease-in-out infinite;
}

.research-unit-card.is-dimmed {
    opacity: 0.34;
}

@keyframes researchFlowPulse {
    0%,
    100% {
        opacity: 0.7;
        filter: brightness(0.86);
    }

    50% {
        opacity: 1;
        filter: brightness(1.24);
    }
}

@keyframes researchNodePulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(0.95);
    }

    50% {
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}

@keyframes researchTargetPulse {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(219, 177, 63, 0.34), 0 6px 13px rgba(25, 59, 61, 0.24);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(239, 208, 95, 0.58), 0 9px 16px rgba(25, 59, 61, 0.3);
    }
}

.slot-label {
    font-weight: 700;
}

.slot-color-red {
    color: #b90f0f;
}

.slot-color-lightblue {
    color: #1d83d5;
}

.slot-color-yellow {
    color: #9e850a;
}

.slot-color-green {
    color: #187d35;
}

.slot-color-magenta {
    color: #9b21b5;
}

.slot-color-darkblue {
    color: #163f9e;
}

.slot-color-orange {
    color: #ab5f11;
}

.slot-color-neutral {
    color: #475159;
}

.guide-console-card p {
    max-width: 78ch;
}

.guide-console-shell {
    border: 1px solid #5f9496;
    background:
        linear-gradient(180deg, rgba(228, 236, 209, 0.96), rgba(213, 226, 194, 0.95)),
        repeating-linear-gradient(
            0deg,
            rgba(33, 70, 72, 0.04) 0,
            rgba(33, 70, 72, 0.04) 1px,
            transparent 2px,
            transparent 5px
        );
}

.guide-console-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.7rem;
    margin-bottom: 0.85rem;
}

.guide-console-label {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    color: #294f51;
}

.guide-console-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.guide-console-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4d7c7f;
    border-radius: 3px;
    padding: 0.3rem 0.58rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.74rem;
    color: #e7fffe;
    background:
        linear-gradient(180deg, rgba(59, 137, 142, 0.96), rgba(27, 82, 86, 0.96)),
        repeating-linear-gradient(
            90deg,
            rgba(194, 248, 247, 0.08) 0,
            rgba(194, 248, 247, 0.08) 2px,
            transparent 3px,
            transparent 6px
        );
}

.guide-console-tab:hover {
    background: linear-gradient(180deg, rgba(73, 153, 159, 0.98), rgba(34, 93, 98, 0.98));
}

.guide-console-tab.is-active {
    border-color: #b7b15c;
    color: #fffad7;
    background: linear-gradient(180deg, rgba(124, 103, 27, 0.95), rgba(98, 81, 21, 0.96));
}

.guide-terminal-screen {
    border: 1px solid rgba(64, 106, 108, 0.58);
    background:
        linear-gradient(180deg, rgba(211, 228, 197, 0.95), rgba(201, 219, 187, 0.96)),
        repeating-linear-gradient(
            180deg,
            rgba(22, 48, 49, 0.05) 0,
            rgba(22, 48, 49, 0.05) 1px,
            transparent 2px,
            transparent 4px
        );
    border-radius: 6px;
    overflow: hidden;
}

.guide-terminal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.45rem 0.85rem;
    padding: 0.8rem 0.86rem 0.75rem;
    border-bottom: 1px solid rgba(80, 121, 123, 0.45);
    background: rgba(226, 239, 212, 0.88);
}

.guide-terminal-meta h2 {
    margin-bottom: 0.28rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.guide-terminal-meta p {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.guide-terminal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #2a4d50;
}

.guide-terminal-content {
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #113539;
    padding: 0.9rem;
    background:
        radial-gradient(circle at 18% 14%, rgba(173, 220, 145, 0.28), transparent 28%),
        radial-gradient(circle at 82% 80%, rgba(113, 178, 111, 0.22), transparent 33%),
        rgba(206, 225, 192, 0.94);
}

.guide-briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.58rem;
    margin: 0 0 0.82rem;
}

.guide-briefing-card {
    border: 1px solid rgba(43, 84, 86, 0.62);
    background:
        linear-gradient(180deg, rgba(214, 229, 199, 0.94), rgba(198, 219, 182, 0.94)),
        repeating-linear-gradient(
            90deg,
            rgba(24, 61, 63, 0.06) 0,
            rgba(24, 61, 63, 0.06) 2px,
            transparent 3px,
            transparent 7px
        );
    padding: 0.58rem 0.64rem;
    box-shadow: inset 0 0 0 1px rgba(225, 241, 211, 0.5);
}

.guide-briefing-card h3 {
    margin: 0;
    font-size: 0.77rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #143e42;
}

.guide-briefing-card p {
    margin: 0.34rem 0 0.52rem;
    font-size: 0.78rem;
    color: #234f53;
}

.guide-briefing-card ol {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.2rem;
}

.guide-briefing-card ol li {
    margin: 0;
    font-size: 0.79rem;
}

.guide-briefing-card-radar {
    border-color: rgba(101, 92, 44, 0.72);
    background:
        linear-gradient(180deg, rgba(220, 219, 188, 0.96), rgba(203, 197, 157, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(77, 63, 22, 0.08) 0,
            rgba(77, 63, 22, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
}

.guide-briefing-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.guide-briefing-chip {
    text-decoration: none;
    border: 1px solid rgba(54, 92, 95, 0.66);
    background: linear-gradient(180deg, rgba(230, 244, 222, 0.95), rgba(211, 228, 197, 0.95));
    color: #173f42 !important;
    padding: 0.2rem 0.38rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-terminal-toc {
    border: 1px solid rgba(41, 82, 84, 0.54);
    background: rgba(216, 231, 201, 0.9);
    padding: 0.6rem 0.65rem;
    margin-bottom: 0.72rem;
}

.guide-terminal-toc h3 {
    margin: 0 0 0.45rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a4346;
}

.guide-terminal-toc ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.22rem 0.6rem;
}

.guide-terminal-toc a {
    text-decoration: none;
    font-size: 0.82rem;
    color: #134d57 !important;
    border-bottom: 1px dotted rgba(19, 77, 87, 0.45);
}

.guide-terminal-sections {
    display: grid;
    gap: 0.52rem;
}

.guide-terminal-section {
    border: 1px solid rgba(44, 87, 89, 0.56);
    background: rgba(225, 236, 212, 0.93);
}

.guide-terminal-section > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.58rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #163f43;
    background:
        linear-gradient(180deg, rgba(201, 222, 185, 0.95), rgba(186, 212, 172, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(32, 70, 72, 0.07) 0,
            rgba(32, 70, 72, 0.07) 2px,
            transparent 3px,
            transparent 6px
        );
}

.guide-terminal-section > summary::-webkit-details-marker {
    display: none;
}

.guide-terminal-section-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    border: 1px solid rgba(35, 74, 77, 0.68);
    background: rgba(236, 246, 228, 0.92);
    color: #183f43 !important;
    font-size: 0.78rem;
}

.guide-terminal-section-body {
    padding: 0.58rem;
    border-top: 1px dashed rgba(45, 84, 86, 0.45);
}

.guide-terminal-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.guide-terminal-content h1,
.guide-terminal-content h2,
.guide-terminal-content h3,
.guide-terminal-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.52rem;
    color: #143d40 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px dashed rgba(36, 77, 79, 0.48);
    padding-bottom: 0.2rem;
}

.guide-terminal-content p,
.guide-terminal-content li,
.guide-terminal-content td,
.guide-terminal-content th,
.guide-terminal-content span,
.guide-terminal-content div {
    color: #15393d !important;
}

.guide-terminal-content p {
    margin: 0.46rem 0 0.76rem;
}

.guide-terminal-content li {
    margin: 0.2rem 0;
}

.guide-terminal-content .guide-line {
    margin: 0.3rem 0;
    padding: 0.18rem 0.24rem;
    border-left: 2px solid rgba(42, 88, 91, 0.42);
}

.guide-terminal-content .guide-line-warning {
    border-left-color: rgba(148, 73, 73, 0.66);
    background: rgba(180, 95, 95, 0.11);
}

.guide-terminal-content .guide-line-tip {
    border-left-color: rgba(88, 111, 39, 0.66);
    background: rgba(108, 146, 72, 0.11);
}

.guide-terminal-list {
    margin: 0.35rem 0 0.72rem;
    padding: 0.35rem 0.6rem 0.45rem 1.2rem;
    border: 1px dashed rgba(43, 85, 87, 0.42);
    background: rgba(219, 233, 205, 0.72);
    list-style: square;
}

.guide-terminal-divider {
    border: none;
    border-top: 1px dashed rgba(28, 70, 72, 0.62);
    margin: 1rem 0;
}

.guide-terminal-content a {
    color: #0e5a63 !important;
    text-underline-offset: 2px;
    font-weight: 700;
}

.guide-terminal-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.62rem auto;
    border: 1px solid rgba(31, 65, 67, 0.5);
    box-shadow: 0 2px 8px rgba(20, 44, 45, 0.2);
    background: rgba(228, 240, 217, 0.92);
    padding: 0.2rem;
}

.guide-terminal-content ul,
.guide-terminal-content ol {
    padding-left: 1.2rem;
}

.guide-terminal-content ul {
    list-style: square;
}

.guide-terminal-content table {
    width: 100%;
    margin: 0.86rem 0;
    border-collapse: collapse;
    background: rgba(227, 236, 214, 0.93) !important;
    border: 1px solid rgba(52, 92, 93, 0.52);
}

.guide-terminal-content table th,
.guide-terminal-content table td {
    border: 1px solid rgba(52, 92, 93, 0.5) !important;
    padding: 0.32rem 0.4rem;
}

.guide-terminal-section-body > :first-child {
    margin-top: 0;
}

.guide-terminal-section-body > :last-child {
    margin-bottom: 0;
}

.guide-terminal-content table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    background: rgba(193, 218, 193, 0.92) !important;
}

.guide-terminal-content hr {
    border: none;
    border-top: 1px dashed rgba(28, 70, 72, 0.55);
    margin: 0.95rem 0;
}

.guide-terminal-content pre,
.guide-terminal-content code {
    font-family: "Lucida Console", "Courier New", monospace;
}

@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes radarBlipPulse {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.85);
    }
    25% {
        opacity: 0.94;
        transform: scale(1.12);
    }
    55% {
        opacity: 0.34;
        transform: scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .radar-sweep,
    .radar-blip {
        animation: none;
    }
}

/* Tactical Command styling for guides */
body.page-guides .guide-console-card,
body.page-guides .guide-console-shell {
    border-color: #5f9d7e;
    background:
        linear-gradient(180deg, rgba(12, 43, 31, 0.94), rgba(8, 31, 22, 0.96)),
        repeating-linear-gradient(
            90deg,
            rgba(177, 238, 197, 0.06) 0,
            rgba(177, 238, 197, 0.06) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(158, 229, 182, 0.2), 0 8px 18px rgba(0, 0, 0, 0.25);
}

body.page-guides .guide-console-card h1,
body.page-guides .guide-console-card p {
    color: #d4f8de;
}

body.page-guides .guide-console-card h1 {
    letter-spacing: 0.06em;
}

body.page-guides .guide-console-head {
    gap: 0.42rem 0.56rem;
}

body.page-guides .guide-console-label {
    color: #f0e2a4;
    letter-spacing: 0.14em;
}

body.page-guides .guide-console-tab {
    border-color: rgba(138, 198, 160, 0.74);
    border-radius: 0;
    color: #d8ffe4;
    background:
        linear-gradient(180deg, rgba(42, 103, 73, 0.95), rgba(21, 63, 44, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(190, 245, 208, 0.08) 0,
            rgba(190, 245, 208, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: inset 0 0 0 1px rgba(177, 236, 196, 0.2);
}

body.page-guides .guide-console-tab:hover {
    background: linear-gradient(180deg, rgba(52, 121, 87, 0.98), rgba(29, 81, 57, 0.98));
}

body.page-guides .guide-console-tab.is-active {
    border-color: #bba053;
    color: #fff5c7;
    background:
        linear-gradient(180deg, rgba(100, 89, 37, 0.95), rgba(72, 62, 24, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(251, 234, 166, 0.08) 0,
            rgba(251, 234, 166, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
}

body.page-guides .guide-terminal-screen {
    border-color: rgba(123, 189, 152, 0.64);
    background:
        linear-gradient(180deg, rgba(10, 36, 26, 0.95), rgba(7, 28, 20, 0.96)),
        repeating-linear-gradient(
            180deg,
            rgba(191, 244, 208, 0.04) 0,
            rgba(191, 244, 208, 0.04) 1px,
            transparent 2px,
            transparent 4px
        );
}

body.page-guides .guide-terminal-meta {
    border: 1px solid rgba(129, 194, 157, 0.58);
    border-bottom-color: rgba(129, 194, 157, 0.58);
    background:
        linear-gradient(180deg, rgba(22, 63, 45, 0.96), rgba(14, 44, 31, 0.98)),
        repeating-linear-gradient(
            90deg,
            rgba(192, 245, 207, 0.07) 0,
            rgba(192, 245, 207, 0.07) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(170, 232, 187, 0.18);
    color: #e3ffe9;
}

body.page-guides .guide-terminal-meta h2 {
    color: #fff3bb;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.46), 0 0 6px rgba(255, 228, 153, 0.2);
}

body.page-guides .guide-terminal-meta p {
    color: #ddffe7;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

body.page-guides .guide-terminal-links {
    color: #e7efbb;
}

body.page-guides .guide-terminal-links span {
    border: 1px solid rgba(168, 216, 148, 0.68);
    background: rgba(40, 59, 23, 0.72);
    color: #f6f0ba;
    padding: 0.14rem 0.36rem;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.44);
}

body.page-guides .ops-stage-bar {
    border-color: rgba(132, 196, 159, 0.64);
    background:
        linear-gradient(180deg, rgba(10, 40, 28, 0.94), rgba(8, 30, 21, 0.97)),
        repeating-linear-gradient(
            90deg,
            rgba(181, 245, 201, 0.08) 0,
            rgba(181, 245, 201, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
}

body.page-guides .ops-stage-chip {
    border-color: rgba(126, 191, 155, 0.54);
    background: rgba(11, 44, 31, 0.8);
    color: #dafee6;
}

body.page-guides .ops-stage-chip strong {
    color: #f2e2a9;
}

body.page-guides .guide-command-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0 0 0.72rem;
    padding: 0.42rem 0.5rem;
    border: 1px solid rgba(121, 184, 149, 0.52);
    background: rgba(9, 40, 28, 0.62);
}

body.page-guides .guide-command-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(132, 197, 159, 0.62);
    background: rgba(20, 58, 41, 0.72);
    color: #c6f3d4;
    padding: 0.12rem 0.36rem;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-guides .guide-command-chip-live {
    border-color: rgba(188, 163, 85, 0.72);
    background: rgba(83, 67, 24, 0.58);
    color: #f8e7ad;
}

body.page-guides .guide-terminal-content {
    color: #c5f0d1;
    background:
        radial-gradient(circle at 18% 14%, rgba(125, 202, 144, 0.16), transparent 30%),
        radial-gradient(circle at 82% 80%, rgba(101, 161, 105, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 32, 22, 0.94), rgba(7, 28, 20, 0.96));
    border: 1px solid rgba(117, 181, 145, 0.52);
}

body.page-guides .guide-briefing-card {
    border-color: rgba(122, 189, 152, 0.6);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(16, 51, 36, 0.92), rgba(10, 39, 27, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(174, 239, 194, 0.06) 0,
            rgba(174, 239, 194, 0.06) 2px,
            transparent 3px,
            transparent 7px
        );
    box-shadow: inset 0 0 0 1px rgba(163, 233, 185, 0.18);
}

body.page-guides .guide-briefing-card h3 {
    color: #f4e3a7;
}

body.page-guides .guide-briefing-card p {
    color: #bee4cb !important;
}

body.page-guides .guide-briefing-card ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: briefidx;
}

body.page-guides .guide-briefing-card ol li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.44rem;
    align-items: baseline;
    margin: 0.22rem 0;
}

body.page-guides .guide-briefing-card ol li::before {
    counter-increment: briefidx;
    content: "[" counter(briefidx, decimal-leading-zero) "]";
    color: #f6d992;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
}

body.page-guides .guide-briefing-card-radar {
    border-color: rgba(177, 155, 88, 0.58);
    background:
        linear-gradient(180deg, rgba(41, 58, 28, 0.92), rgba(29, 43, 20, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(236, 225, 178, 0.06) 0,
            rgba(236, 225, 178, 0.06) 2px,
            transparent 3px,
            transparent 7px
        );
}

body.page-guides .guide-briefing-chip {
    border-color: rgba(129, 192, 154, 0.6);
    border-radius: 0;
    background: rgba(16, 54, 38, 0.72);
    color: #d2f8dd !important;
}

body.page-guides .guide-briefing-chip:hover {
    background: rgba(26, 72, 51, 0.85);
}

body.page-guides .guide-terminal-toc {
    border-color: rgba(122, 187, 151, 0.52);
    background: rgba(12, 44, 31, 0.62);
}

body.page-guides .guide-terminal-toc h3 {
    color: #f0dfaa;
}

body.page-guides .guide-terminal-toc a {
    color: #bfe9cc !important;
    border-bottom-color: rgba(191, 233, 204, 0.38);
}

body.page-guides .guide-search-ops {
    position: relative;
    margin-bottom: 0.76rem;
    padding: 0.62rem;
    border: 1px solid rgba(132, 193, 157, 0.62);
    background:
        linear-gradient(180deg, rgba(13, 47, 33, 0.9), rgba(10, 38, 27, 0.94)),
        repeating-linear-gradient(
            90deg,
            rgba(178, 240, 195, 0.06) 0,
            rgba(178, 240, 195, 0.06) 2px,
            transparent 3px,
            transparent 8px
        );
    box-shadow: inset 0 0 0 1px rgba(159, 228, 181, 0.16);
}

body.page-guides .guide-search-ops::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(111, 190, 142, 0.15), transparent 34%),
        radial-gradient(circle at 90% 14%, rgba(196, 172, 90, 0.12), transparent 24%);
}

body.page-guides .guide-search-head {
    position: relative;
    z-index: 1;
    margin: 0 0 0.52rem;
}

body.page-guides .guide-search-head h3 {
    margin: 0;
    color: #f4e4a8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.page-guides .guide-search-head p {
    margin: 0.26rem 0 0;
    color: #c8efd4 !important;
}

body.page-guides .guide-search-controls {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.44rem;
    align-items: center;
}

body.page-guides .guide-search-input {
    width: 100%;
    min-height: 2.05rem;
    padding: 0.38rem 0.52rem;
    border: 1px solid rgba(132, 197, 160, 0.66);
    border-radius: 0;
    background: rgba(5, 28, 19, 0.88);
    color: #d9ffe5;
    font-family: "Lucida Console", "Courier New", monospace;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(110, 182, 145, 0.24);
}

body.page-guides .guide-search-input::placeholder {
    color: rgba(193, 233, 206, 0.66);
}

body.page-guides .guide-search-input:focus-visible {
    outline: 1px solid rgba(245, 221, 135, 0.92);
    border-color: rgba(245, 221, 135, 0.92);
}

body.page-guides .guide-search-btn {
    border: 1px solid rgba(174, 205, 141, 0.68);
    border-radius: 0;
    min-height: 2.05rem;
    padding: 0.36rem 0.62rem;
    background:
        linear-gradient(180deg, rgba(76, 89, 34, 0.86), rgba(54, 66, 22, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(245, 233, 170, 0.08) 0,
            rgba(245, 233, 170, 0.08) 1px,
            transparent 2px,
            transparent 4px
        );
    color: #fff0b1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.73rem;
    cursor: pointer;
}

body.page-guides .guide-search-btn:hover {
    background: linear-gradient(180deg, rgba(90, 104, 40, 0.92), rgba(63, 76, 28, 0.96));
}

body.page-guides .guide-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 2.05rem;
    border: 1px solid rgba(129, 191, 154, 0.54);
    padding: 0.2rem 0.46rem;
    background: rgba(17, 53, 37, 0.74);
    color: #c9efd6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.67rem;
}

body.page-guides .guide-search-toggle input {
    accent-color: #b79f54;
}

body.page-guides .guide-search-status {
    position: relative;
    z-index: 1;
    margin: 0.45rem 0 0.28rem;
    color: #e9efbc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.71rem;
}

body.page-guides .guide-search-results {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(122, 186, 150, 0.44);
    background: rgba(8, 33, 23, 0.66);
    max-height: 19rem;
    overflow: auto;
}

body.page-guides .guide-search-result-item + .guide-search-result-item {
    border-top: 1px dashed rgba(123, 184, 149, 0.44);
}

body.page-guides .guide-search-result-link {
    width: 100%;
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
    padding: 0.42rem 0.56rem 0.34rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

body.page-guides .guide-search-result-link:hover {
    background: rgba(31, 83, 58, 0.44);
}

body.page-guides .guide-search-result-title {
    color: #d8ffe4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

body.page-guides .guide-search-result-score {
    color: #f5dc9b;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

body.page-guides .guide-search-result-excerpt {
    margin: 0;
    padding: 0 0.56rem 0.48rem;
    color: #bbe6c9 !important;
    font-size: 0.74rem;
    line-height: 1.4;
}

body.page-guides .guide-terminal-section.is-search-hidden {
    display: none;
}

body.page-guides .guide-terminal-section.is-search-hit {
    border-color: rgba(239, 214, 129, 0.85);
    box-shadow: inset 0 0 0 1px rgba(239, 214, 129, 0.44), 0 0 0 1px rgba(239, 214, 129, 0.3);
    animation: guideSearchHitPulse 1.2s ease-out 1;
}

@keyframes guideSearchHitPulse {
    0% {
        box-shadow: inset 0 0 0 1px rgba(239, 214, 129, 0.92), 0 0 0 0 rgba(239, 214, 129, 0.65);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(239, 214, 129, 0.3), 0 0 0 7px rgba(239, 214, 129, 0);
    }
}

body.page-guides .guide-terminal-section {
    border-color: rgba(126, 191, 155, 0.58);
    background: rgba(10, 37, 26, 0.78);
}

body.page-guides .guide-terminal-section > summary {
    color: #d7f7e1;
    background:
        linear-gradient(180deg, rgba(31, 76, 54, 0.93), rgba(18, 56, 38, 0.95)),
        repeating-linear-gradient(
            90deg,
            rgba(182, 240, 198, 0.07) 0,
            rgba(182, 240, 198, 0.07) 2px,
            transparent 3px,
            transparent 7px
        );
}

body.page-guides .guide-terminal-section-index {
    border-color: rgba(121, 188, 151, 0.66);
    background: rgba(11, 47, 32, 0.78);
    color: #f4e5b2 !important;
}

body.page-guides .guide-terminal-section-body {
    border-top-color: rgba(120, 183, 148, 0.34);
}

body.page-guides .guide-terminal-content h1,
body.page-guides .guide-terminal-content h2,
body.page-guides .guide-terminal-content h3,
body.page-guides .guide-terminal-content h4 {
    color: #f2e2a8 !important;
    border-bottom-color: rgba(167, 154, 89, 0.42);
}

body.page-guides .guide-terminal-content p,
body.page-guides .guide-terminal-content li,
body.page-guides .guide-terminal-content td,
body.page-guides .guide-terminal-content th,
body.page-guides .guide-terminal-content span,
body.page-guides .guide-terminal-content div {
    color: #c6f0d2 !important;
}

body.page-guides .guide-terminal-content a {
    color: #f5df95 !important;
}

body.page-guides .guide-terminal-content .guide-line {
    border-left-color: rgba(139, 203, 167, 0.48);
}

body.page-guides .guide-terminal-content .guide-line-warning {
    border-left-color: rgba(214, 134, 104, 0.72);
    background: rgba(117, 58, 44, 0.34);
}

body.page-guides .guide-terminal-content .guide-line-tip {
    border-left-color: rgba(181, 169, 100, 0.72);
    background: rgba(90, 82, 37, 0.34);
}

body.page-guides .guide-terminal-list {
    border-color: rgba(125, 188, 152, 0.52);
    background: rgba(11, 42, 29, 0.58);
}

body.page-guides .guide-terminal-content table {
    background: rgba(11, 42, 29, 0.7) !important;
    border-color: rgba(123, 188, 152, 0.6);
}

body.page-guides .guide-terminal-content table th,
body.page-guides .guide-terminal-content table td {
    border-color: rgba(120, 182, 147, 0.5) !important;
}

body.page-guides .guide-terminal-content table th {
    background: rgba(23, 62, 44, 0.82) !important;
}

body.page-guides .guide-terminal-content img {
    border-color: rgba(123, 189, 153, 0.6);
    background: rgba(14, 43, 31, 0.68);
}

body.page-research .ops-stage-bar {
    border-color: rgba(108, 180, 190, 0.6);
    background:
        linear-gradient(180deg, rgba(10, 45, 46, 0.94), rgba(8, 34, 35, 0.97)),
        repeating-linear-gradient(
            90deg,
            rgba(176, 236, 235, 0.08) 0,
            rgba(176, 236, 235, 0.08) 2px,
            transparent 3px,
            transparent 7px
        );
}

@keyframes railLedBlink {
    0%,
    49% {
        filter: brightness(1.25) saturate(1.1);
        box-shadow: 0 0 0 1px rgba(25, 60, 59, 0.75) inset, 0 0 8px rgba(219, 255, 128, 0.4);
    }

    50%,
    100% {
        filter: brightness(0.8);
        box-shadow: 0 0 0 1px rgba(25, 60, 59, 0.75) inset;
    }
}

@keyframes railQuickPulse {
    0%,
    100% {
        filter: brightness(0.86);
    }

    50% {
        filter: brightness(1.22);
    }
}

@keyframes uploadStatePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.58;
    }
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 1.26rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a3f41;
}

h2 {
    font-size: 1.02rem;
    color: #224d50;
}

p {
    color: var(--muted);
}

code {
    background: #e8f2f2;
    border: 1px solid #9eb9ba;
    border-radius: 4px;
    padding: 0.05rem 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .ops-stage-led,
    .ops-signal-bar,
    .rail-ops-signal-bar,
    .rail-ops-intel-line.is-active,
    .ops-ai-cursor,
    .ops-live-intel-mover,
    .ops-satellite-dot,
    .ops-target-lock-box,
    .ops-movement-count-high,
    .rail-quick-grid-active span,
    .rail-actions-busy #rail-upload-line .rail-action-led,
    .rail-actions-analyzing #rail-analysis-line .rail-action-led,
    .turn-upload-live-status-busy,
    .research-lane.is-active-path .research-lane-flow::before,
    .research-lane-tier.is-required-tier::before,
    .research-lane-tier.is-required-tier::after,
    .research-unit-card.is-target,
    .guide-terminal-section.is-search-hit {
        animation: none !important;
    }
}

@media (max-width: 1500px) {
    .research-map-shell {
        grid-template-columns: 1fr;
    }

    .research-map-minimap {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        max-height: none;
    }

    .research-map-minimap-label {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .main-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-research-rail-factions .main-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .hud-rail {
        display: none;
    }

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

    .ops-live-intel-shell {
        grid-template-columns: 1fr;
    }

    .ops-live-intel-side {
        grid-column: 1 / 2;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-research-rail-factions .research-factions-inline-fallback {
        display: block;
    }

    .research-map-frame.is-overlay-open {
        inset: 0.35rem;
        padding: 0.44rem;
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .topbar-frame {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .nav {
        width: 100%;
    }

    .nav-console {
        justify-content: flex-start;
    }

    .nav-btn {
        font-size: 0.72rem;
        padding: 0.24rem 0.42rem;
    }

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

    .ops-stage-bar {
        gap: 0.28rem;
        padding: 0.32rem 0.34rem;
    }

    .ops-stage-chip {
        font-size: 0.62rem;
        padding: 0.14rem 0.28rem;
    }

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

    .ops-aux-grid {
        grid-template-columns: 1fr;
    }

    .ops-live-intel-side {
        grid-template-columns: 1fr;
    }

    .ops-live-intel-track {
        height: 2.2rem;
    }

    .control-menu {
        grid-template-columns: 1fr;
    }

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

    .page-head,
    .detail-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .data-table {
        font-size: 0.88rem;
    }

    .table-wrap.table-wrap-terminal-scroll {
        max-height: min(64vh, 760px);
    }

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

    .games-filter-toggle {
        width: 100%;
    }

    .games-filter-btn {
        flex: 1;
    }

    .game-command-grid {
        grid-template-columns: 1fr;
        gap: 0.46rem;
    }

    .game-command-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .supervisor-game-card .game-command-foot .action-row {
        justify-content: flex-start;
    }

    .research-layout {
        grid-template-columns: 1fr;
    }

    .research-factions {
        position: static;
        top: auto;
    }

    .research-faction-image {
        width: 72px;
        height: 72px;
    }

    .research-planner-row {
        grid-template-columns: 1fr;
    }

    .research-map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .research-map-zoom-controls {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .research-map-mode-controls {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .research-map-shell {
        grid-template-columns: 1fr;
    }

    .research-map-minimap {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        max-height: none;
    }

    .research-map-minimap-label {
        grid-column: 1 / -1;
    }

    .research-command-map {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
        zoom: 1 !important;
        gap: 0.46rem;
    }

    .research-lane {
        flex: 1 1 auto;
    }

    .research-native-overview {
        flex-direction: column;
    }

    .research-native-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .guide-console-head,
    .guide-terminal-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-terminal-links {
        justify-content: flex-start;
    }

    .guide-search-controls {
        grid-template-columns: 1fr;
    }

    .guide-search-toggle,
    .guide-search-btn {
        width: 100%;
        justify-content: center;
    }

    .guide-terminal-content {
        font-size: 0.84rem;
        padding: 0.62rem;
    }

    .guide-terminal-toc ul {
        grid-template-columns: 1fr;
    }

    .guide-terminal-section > summary {
        font-size: 0.78rem;
        padding: 0.42rem 0.46rem;
    }

    .guide-terminal-section-body {
        padding: 0.46rem;
    }

    .guide-terminal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}
