/* ============================================================
   SITE MONITOR — «ORBITAL COMMAND» cosmic theme
   ============================================================ */

:root {
    --void: #030411;
    --void-2: #0a0722;
    --panel: rgba(10, 13, 32, .82);
    --panel-2: rgba(15, 19, 44, .78);
    --glass-hero: rgba(5, 8, 18, .44);
    --glass-panel: rgba(6, 10, 23, .36);
    --glass-data: rgba(3, 6, 16, .62);
    --glass-line: rgba(210, 226, 255, .2);
    --line: rgba(158, 178, 255, .16);
    --line-strong: rgba(76, 224, 255, .4);
    --text: #e4ecfb;
    --muted: #8d9bc4;
    --cyan: #4ce0ff;
    --violet: #a78bfa;
    --magenta: #ef6fd0;
    --gold: #ffc95e;
    --green: #3ef0a8;
    --red: #ff5678;
    --shadow: 0 4px 8px rgba(1, 2, 10, .28);
    --font-display: "Unbounded", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scrollbar-color: rgba(103, 132, 224, .55) rgba(5, 7, 20, .9);
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020306;
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.5 "Inter", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

/* faint construction grid of a command deck */
body::before {
    background: linear-gradient(180deg, rgba(2, 4, 10, .04), rgba(2, 3, 8, .22));
    content: "";
    inset: 0;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

/* vignette that pushes the eye to the content */
body::after {
    background:
        linear-gradient(90deg, rgba(1, 2, 6, .28), transparent 36%, transparent 66%, rgba(1, 2, 5, .16)),
        radial-gradient(ellipse 96% 90% at 50% 38%, transparent 48%, rgba(1, 2, 6, .72) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

::selection {
    background: rgba(76, 224, 255, .28);
    color: #fff;
}

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 7, 20, .9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(76, 224, 255, .45), rgba(167, 139, 250, .45));
    border: 2px solid rgba(5, 7, 20, .9);
    border-radius: 999px;
}

/* ============================================================
   COSMOS SCENE (canvas stars + nebulas + drifting planets)
   ============================================================ */

.cosmos-scene {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

#cosmos-canvas {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    mix-blend-mode: screen;
    opacity: .78;
    z-index: 4;
}

.cinematic-backdrop {
    animation: cinematicDrift 52s ease-in-out infinite alternate;
    background-image: url("space-assets/cinematic-black-hole-v1.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    inset: -5%;
    position: absolute;
    transform: scale(1.04);
    will-change: transform, filter;
    z-index: 0;
}

#accretion-canvas {
    display: block;
    opacity: .94;
    position: absolute;
    z-index: 2;
}

.cinematic-backdrop::after {
    background:
        linear-gradient(180deg, rgba(2, 3, 7, .04), rgba(2, 3, 8, .24)),
        radial-gradient(ellipse 60% 62% at 50% 55%, rgba(1, 2, 5, .32), transparent 72%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 2;
}

.cosmic-haze {
    animation: cosmicHazeDrift 34s ease-in-out infinite alternate;
    background:
        radial-gradient(ellipse 42% 34% at 8% 76%, rgba(215, 150, 76, .12), transparent 72%),
        radial-gradient(ellipse 38% 44% at 70% 82%, rgba(75, 121, 164, .1), transparent 74%);
    filter: blur(28px);
    inset: -12%;
    mix-blend-mode: screen;
    opacity: .6;
    position: absolute;
    z-index: 1;
}

.accretion-glow {
    animation: accretionBreath 11s ease-in-out infinite;
    background: radial-gradient(ellipse 24% 16% at 80% 22%, rgba(255, 224, 172, .2), rgba(235, 148, 61, .06) 46%, transparent 76%);
    filter: blur(16px);
    inset: -4%;
    mix-blend-mode: screen;
    position: absolute;
    transform-origin: 80% 22%;
    z-index: 2;
}

.gravity-wave {
    animation: gravityWave 13s cubic-bezier(.22, .61, .36, 1) infinite;
    border: 1px solid rgba(255, 225, 185, .16);
    border-radius: 50%;
    height: 24vw;
    opacity: 0;
    position: absolute;
    right: -2vw;
    top: 8vh;
    transform: rotate(-5deg) scale(.68, .36);
    width: 42vw;
    z-index: 3;
}

.gravity-wave.wave-b {
    animation-delay: -6.5s;
}

.orbital-ringcraft {
    animation: ringcraftDrift 22s ease-in-out infinite alternate;
    left: clamp(-72px, -2.5vw, -28px);
    opacity: .78;
    perspective: 760px;
    perspective-origin: 50% 48%;
    position: absolute;
    top: 19%;
    width: min(31vw, 420px);
    will-change: transform;
    z-index: 5;
}

.orbital-ringcraft::after {
    background: radial-gradient(circle, rgba(110, 179, 219, .12), transparent 68%);
    content: "";
    filter: blur(22px);
    inset: 12%;
    position: absolute;
    z-index: -1;
}

.ringcraft-gimbal {
    animation: ringcraftGimbal 29s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.ringcraft-gimbal::before {
    animation: ringcraftDepthSpin 92s linear infinite;
    background: url("space-assets/orbital-ringcraft-v1.webp") center / contain no-repeat;
    content: "";
    filter: brightness(.16) saturate(.45) blur(.45px);
    inset: 0;
    opacity: .5;
    position: absolute;
    transform-origin: 50% 50%;
}

.ringcraft-gimbal img {
    animation: ringcraftSpin 92s linear infinite;
    backface-visibility: hidden;
    display: block;
    filter: drop-shadow(18px 24px 22px rgba(0, 0, 0, .62)) drop-shadow(0 0 14px rgba(111, 191, 230, .16));
    transform-origin: 50% 50%;
    width: 100%;
}

@keyframes cinematicDrift {
    from { filter: brightness(.9) contrast(1.04); transform: translate3d(-1%, .2%, 0) scale(1.04); }
    to { filter: brightness(1.02) contrast(1.08); transform: translate3d(1.2%, -1%, 0) scale(1.1); }
}

@keyframes cosmicHazeDrift {
    from { opacity: .42; transform: translate3d(-2%, 1%, 0) scale(1); }
    to { opacity: .72; transform: translate3d(3%, -2%, 0) scale(1.08); }
}

@keyframes accretionBreath {
    0%, 100% { opacity: .42; transform: scale(.96); }
    50% { opacity: .86; transform: scale(1.08); }
}

@keyframes gravityWave {
    0% { opacity: 0; transform: rotate(-5deg) scale(.58, .28); }
    15% { opacity: .26; }
    70% { opacity: .04; }
    100% { opacity: 0; transform: rotate(-5deg) scale(1.32, .72); }
}

@keyframes ringcraftSpin {
    from { transform: rotate(8deg); }
    to { transform: rotate(368deg); }
}

@keyframes ringcraftDepthSpin {
    from { transform: translate3d(7px, 9px, -18px) rotate(8deg) scale(.985); }
    to { transform: translate3d(7px, 9px, -18px) rotate(368deg) scale(.985); }
}

@keyframes ringcraftGimbal {
    0%, 100% { transform: rotateX(48deg) rotateY(-8deg) rotateZ(-5deg); }
    26% { transform: rotateX(58deg) rotateY(7deg) rotateZ(-1deg); }
    52% { transform: rotateX(42deg) rotateY(13deg) rotateZ(5deg); }
    78% { transform: rotateX(54deg) rotateY(-10deg) rotateZ(1deg); }
}

@keyframes ringcraftDrift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(.96); }
    to { transform: translate3d(3%, 2.5%, 0) scale(1.03); }
}

.nebula {
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    position: absolute;
    will-change: transform, opacity;
    z-index: 1;
}

.nebula-a {
    animation: nebulaDriftA 46s ease-in-out infinite alternate;
    background: radial-gradient(circle, rgba(64, 160, 255, .3), rgba(76, 224, 255, .1) 45%, transparent 68%);
    height: 54vw;
    left: -16vw;
    top: -20vw;
    width: 54vw;
}

.nebula-b {
    animation: nebulaDriftB 58s ease-in-out infinite alternate;
    background: radial-gradient(circle, rgba(147, 84, 255, .3), rgba(239, 111, 208, .12) 48%, transparent 70%);
    height: 46vw;
    right: -14vw;
    top: 8vh;
    width: 46vw;
}

.nebula-c {
    animation: nebulaDriftC 52s ease-in-out infinite alternate;
    background: radial-gradient(circle, rgba(255, 148, 84, .22), rgba(255, 201, 94, .08) 46%, transparent 70%);
    bottom: -18vw;
    height: 48vw;
    left: 24vw;
    width: 48vw;
}

/* a slanted band of stardust — the milky way */
.milky-way {
    animation: milkyBreath 26s ease-in-out infinite alternate;
    background: linear-gradient(100deg, transparent 12%, rgba(190, 210, 255, .06) 38%, rgba(214, 190, 255, .1) 50%, rgba(190, 210, 255, .06) 62%, transparent 88%);
    filter: blur(26px);
    height: 140vmax;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    width: 60vmax;
    z-index: 1;
}

.parallax {
    position: absolute;
    will-change: transform;
    z-index: 2;
}

.parallax img {
    display: block;
    user-select: none;
    width: 100%;
}

.px-earth {
    right: 3vw;
    top: 76px;
    width: min(30vw, 380px);
}

.px-earth img {
    animation: planetSpin 220s linear infinite, floatSlowA 26s ease-in-out infinite;
    filter: drop-shadow(-30px 34px 60px rgba(0, 0, 0, .55)) drop-shadow(0 0 70px rgba(74, 158, 255, .3));
    opacity: .9;
}

.px-jupiter {
    left: max(-9vw, -130px);
    top: 52%;
    width: min(36vw, 430px);
}

.px-jupiter img {
    animation: planetSpinBack 300s linear infinite, floatSlowB 34s ease-in-out infinite;
    filter: drop-shadow(34px 26px 70px rgba(0, 0, 0, .6)) drop-shadow(0 0 80px rgba(255, 201, 94, .18));
    opacity: .8;
}

.px-mars {
    bottom: 5vh;
    right: 11vw;
    width: min(15vw, 170px);
}

.px-mars img {
    animation: planetSpin 160s linear infinite, floatSlowC 22s ease-in-out infinite;
    filter: drop-shadow(-18px 20px 44px rgba(0, 0, 0, .55)) drop-shadow(0 0 46px rgba(255, 122, 78, .26));
    opacity: .85;
}

.px-asteroid {
    left: 58vw;
    top: 76%;
    width: min(13vw, 150px);
}

.px-asteroid img {
    animation: asteroidTumble 40s ease-in-out infinite;
    filter: drop-shadow(14px 18px 34px rgba(0, 0, 0, .6));
    opacity: .55;
}

.space-orbit {
    animation: spaceOrbitSpin 18s linear infinite;
    border: 1px solid rgba(187, 217, 255, .24);
    border-radius: 50%;
    inset: -9%;
    position: absolute;
    transform: rotateX(66deg) rotateZ(-16deg);
    transform-style: preserve-3d;
}

.mars-orbit {
    animation-duration: 12s;
    border-color: rgba(255, 201, 145, .25);
    inset: -18%;
}

.space-satellite {
    background: linear-gradient(90deg, #7d91ad 0 28%, #edf5ff 29% 70%, #7d91ad 71%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(190, 224, 255, .75);
    height: 4px;
    left: 50%;
    position: absolute;
    top: -3px;
    transform: translateX(-50%) rotateX(-66deg);
    width: 14px;
}

.space-satellite::after {
    background: #d8e8f6;
    border-radius: 50%;
    content: "";
    height: 5px;
    left: 5px;
    position: absolute;
    top: -1px;
    width: 5px;
}

.space-satellite.mini {
    height: 3px;
    width: 10px;
}

.meteor {
    animation: meteorFlight 12s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(157, 194, 222, .1) 35%, rgba(255, 232, 199, .82));
    filter: drop-shadow(0 0 5px rgba(255, 199, 134, .5));
    height: 1px;
    opacity: 0;
    position: absolute;
    right: -26vw;
    top: 12vh;
    transform: rotate(-18deg);
    width: min(22vw, 280px);
    z-index: 3;
}

.meteor::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 18px rgba(255, 192, 122, .78);
    content: "";
    height: 3px;
    position: absolute;
    right: -1px;
    top: -1px;
    width: 3px;
}

.meteor-b {
    animation-delay: -4.7s;
    animation-duration: 16s;
    top: 38vh;
    width: min(14vw, 180px);
}

.meteor-c {
    animation-delay: -9.3s;
    animation-duration: 20s;
    top: 68vh;
    width: min(18vw, 220px);
}

@keyframes planetSpin {
    to { rotate: 360deg; }
}

@keyframes planetSpinBack {
    to { rotate: -360deg; }
}

@keyframes floatSlowA {
    0%, 100% { translate: 0 0; }
    50% { translate: -22px 20px; }
}

@keyframes floatSlowB {
    0%, 100% { translate: 0 0; }
    50% { translate: 30px -22px; }
}

@keyframes floatSlowC {
    0%, 100% { translate: 0 0; }
    50% { translate: -14px -26px; }
}

@keyframes asteroidTumble {
    0%, 100% { transform: rotate(-12deg) translate(0, 0); }
    50% { transform: rotate(14deg) translate(-40px, 24px); }
}

@keyframes spaceOrbitSpin {
    from { transform: rotateX(66deg) rotateZ(-16deg); }
    to { transform: rotateX(66deg) rotateZ(344deg); }
}

@keyframes meteorFlight {
    0%, 68% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg); }
    70% { opacity: .9; }
    84% { opacity: .45; }
    88%, 100% { opacity: 0; transform: translate3d(-150vw, 48vh, 0) rotate(-18deg); }
}

@keyframes nebulaDriftA {
    to { transform: translate(9vw, 7vh) scale(1.12); }
}

@keyframes nebulaDriftB {
    to { transform: translate(-8vw, 10vh) scale(1.08); }
}

@keyframes nebulaDriftC {
    to { transform: translate(-10vw, -6vh) scale(1.14); }
}

@keyframes milkyBreath {
    from { opacity: .5; }
    to { opacity: .95; }
}

/* ============================================================
   TOPBAR
   ============================================================ */

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(12px) saturate(1.12) brightness(.78);
    -webkit-backdrop-filter: blur(12px) saturate(1.12) brightness(.78);
    background: linear-gradient(180deg, rgba(3, 5, 13, .58), rgba(3, 5, 13, .38));
    border-bottom: 1px solid rgba(210, 226, 255, .14);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar::after {
    background: linear-gradient(90deg, transparent, rgba(76, 224, 255, .55), rgba(167, 139, 250, .55), transparent);
    bottom: -1px;
    content: "";
    height: 1px;
    left: 0;
    opacity: .6;
    position: absolute;
    right: 0;
}

.brand {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brand-mark {
    background:
        radial-gradient(circle at 34% 32%, rgba(255, 255, 255, .85) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, #123, transparent 70%),
        conic-gradient(from 210deg, #2b64d8, var(--cyan), var(--violet), var(--magenta), #2b64d8);
    border-radius: 50%;
    box-shadow:
        0 0 22px rgba(76, 224, 255, .45),
        inset -6px -6px 14px rgba(2, 4, 16, .6),
        inset 3px 4px 10px rgba(255, 255, 255, .28);
    display: inline-block;
    height: 38px;
    position: relative;
    width: 38px;
}

.brand-mark::before {
    animation: brandRing 9s linear infinite;
    border: 1px solid rgba(190, 220, 255, .7);
    border-radius: 50%;
    content: "";
    height: 54px;
    left: -8px;
    position: absolute;
    top: -8px;
    transform: rotate(-24deg) scaleY(.34);
    width: 54px;
}

.brand-mark::after {
    animation: brandSat 5s linear infinite;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--cyan);
    content: "";
    height: 5px;
    left: 50%;
    margin: -2.5px;
    position: absolute;
    top: 50%;
    width: 5px;
}

@keyframes brandRing {
    from { transform: rotate(-24deg) scaleY(.34); }
    to { transform: rotate(336deg) scaleY(.34); }
}

@keyframes brandSat {
    from { transform: rotate(0deg) translateX(26px); }
    to { transform: rotate(360deg) translateX(26px); }
}

.topbar strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .02em;
}

.topbar span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.topbar nav {
    display: flex;
    gap: 8px;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.topbar nav a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: #e2eaff;
    font-weight: 600;
    padding: 9px 16px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
    background: rgba(76, 224, 255, .1);
    border-color: rgba(76, 224, 255, .34);
    box-shadow: 0 0 26px rgba(76, 224, 255, .16), inset 0 0 14px rgba(76, 224, 255, .06);
    outline: none;
}

.wrap {
    margin: 0 auto;
    max-width: 1320px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* Dashboard intro: the live cosmos remains unobstructed until the user opens the controls. */
.dashboard-intro:not(.intro-ready) .topbar,
.dashboard-intro:not(.intro-ready) .wrap {
    opacity: 0;
    transition: none;
    visibility: hidden;
}

.monitor-gate {
    display: none;
    inset: 0;
    padding: 40px;
    place-items: end center;
    pointer-events: none;
    position: fixed;
    z-index: 20;
}

.dashboard-intro.intro-ready .monitor-gate {
    display: grid;
    opacity: 1;
    visibility: visible;
    transition: opacity .26s ease, visibility 0s;
}

.dashboard-intro.intro-ready.ui-open .monitor-gate {
    opacity: 0;
    transition: opacity .22s ease, visibility 0s .22s;
    visibility: hidden;
}

.monitor-gate-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #f4f7ff;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 0;
    justify-content: center;
    min-height: 72px;
    padding: 0;
    pointer-events: auto;
    position: relative;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.monitor-gate-button:hover,
.monitor-gate-button:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.monitor-gate-button:focus-visible::after {
    border: 2px solid rgba(122, 220, 255, .9);
    border-radius: 10px;
    content: "";
    inset: -5px;
    pointer-events: none;
    position: absolute;
}

.monitor-gate-copy {
    align-items: flex-start;
    backdrop-filter: blur(14px) saturate(1.1) brightness(.8);
    -webkit-backdrop-filter: blur(14px) saturate(1.1) brightness(.8);
    background: rgba(5, 9, 20, .62);
    border: 1px solid rgba(205, 225, 255, .32);
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    height: 58px;
    justify-content: center;
    min-width: 232px;
    padding: 0 38px 0 20px;
    text-align: left;
    transition: background .2s ease, border-color .2s ease;
}

.monitor-gate-title {
    color: #f4f7ff;
    font-size: 15px;
    line-height: 1.2;
}

.monitor-gate-system {
    color: rgba(166, 192, 222, .8);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
}

.monitor-gate-button:hover .monitor-gate-copy,
.monitor-gate-button:focus-visible .monitor-gate-copy {
    background: rgba(8, 15, 29, .74);
    border-color: rgba(125, 220, 255, .54);
}

.monitor-gate-robot {
    display: grid;
    flex: 0 0 76px;
    grid-template-columns: repeat(4, 1fr);
    height: 72px;
    margin-left: -20px;
    perspective: 180px;
    position: relative;
    width: 76px;
}

.robot-segment {
    background:
        linear-gradient(90deg, rgba(255,255,255,.03), rgba(207,216,223,.27) 36%, rgba(15,20,25,.12) 58%, rgba(255,255,255,.04)),
        linear-gradient(180deg, #778087 0%, #252b30 16%, #565f65 48%, #1d2226 100%);
    border-color: rgba(224, 234, 240, .44) rgba(8, 12, 15, .86) rgba(5, 8, 10, .9) rgba(194, 204, 211, .24);
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset -3px 0 5px rgba(0,0,0,.32);
    height: 100%;
    transform-origin: 50% 82%;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
}

.robot-segment::before,
.robot-segment::after {
    background: rgba(4, 7, 9, .74);
    content: "";
    height: 1px;
    left: 3px;
    position: absolute;
    right: 3px;
}

.robot-segment::before { top: 9px; }
.robot-segment::after { bottom: 8px; }

.robot-segment-a { transform: translateY(2px); }
.robot-segment-b { transform: translateY(-2px); }
.robot-segment-c { transform: translateY(-2px); }
.robot-segment-d { transform: translateY(2px); }

.robot-console {
    align-items: center;
    background: rgba(2, 5, 7, .86);
    border: 1px solid rgba(166, 183, 194, .48);
    display: flex;
    height: 24px;
    inset: 23px 7px auto;
    justify-content: space-between;
    padding: 0 5px;
    position: absolute;
}

.robot-name {
    color: rgba(203, 218, 226, .8);
    font-family: Consolas, "Courier New", monospace;
    font-size: 7px;
    font-weight: 700;
}

.monitor-gate-arrow {
    align-items: center;
    color: #f3f8fb;
    display: flex;
    font-size: 16px;
    height: 20px;
    justify-content: center;
    line-height: 1;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
    width: 20px;
}

.robot-signal {
    display: flex;
    gap: 2px;
}

.robot-signal i {
    animation: robotSignal 1.8s ease-in-out infinite;
    background: #68d7dc;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(104, 215, 220, .72);
    display: block;
    height: 2px;
    width: 2px;
}

.robot-signal i:nth-child(2) { animation-delay: .16s; }
.robot-signal i:nth-child(3) { animation-delay: .32s; }

@keyframes robotSignal {
    0%, 55%, 100% { opacity: .28; }
    20% { opacity: 1; }
}

.monitor-gate-button:hover .monitor-gate-arrow,
.monitor-gate-button:focus-visible .monitor-gate-arrow {
    transform: translateX(3px);
}

.monitor-gate-button:hover .robot-segment-a,
.monitor-gate-button:focus-visible .robot-segment-a {
    transform: translate(-3px, 3px) rotate(-4deg);
}

.monitor-gate-button:hover .robot-segment-b,
.monitor-gate-button:focus-visible .robot-segment-b {
    transform: translate(-1px, -4px) rotate(-1deg);
}

.monitor-gate-button:hover .robot-segment-c,
.monitor-gate-button:focus-visible .robot-segment-c {
    transform: translate(1px, -4px) rotate(1deg);
}

.monitor-gate-button:hover .robot-segment-d,
.monitor-gate-button:focus-visible .robot-segment-d {
    transform: translate(3px, 3px) rotate(4deg);
}

.monitor-close {
    align-items: center;
    background: rgba(218, 231, 255, .07);
    border: 1px solid rgba(218, 231, 255, .16);
    border-radius: 50%;
    color: #dce7ff;
    cursor: pointer;
    display: flex;
    flex: 0 0 40px;
    font-size: 24px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    transition: background .2s ease, border-color .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
    width: 40px;
}

.monitor-close:hover,
.monitor-close:focus-visible {
    background: rgba(76, 224, 255, .12);
    border-color: rgba(76, 224, 255, .42);
    outline: none;
    transform: rotate(6deg);
}

.dashboard-intro.intro-ready:not(.ui-open) {
    overflow: hidden;
}

.dashboard-intro.intro-ready .topbar {
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: filter .28s ease, opacity .28s ease, transform .36s cubic-bezier(.16, 1, .3, 1);
}

.dashboard-intro.intro-ready.ui-open .topbar {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-duration: .46s, .46s, .56s;
}

.dashboard-intro.intro-ready .wrap > * {
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(38px);
    transition: filter .3s ease, opacity .3s ease, transform .36s cubic-bezier(.16, 1, .3, 1);
}

.dashboard-intro.intro-ready .wrap > :nth-child(1) { --intro-delay: .06s; }
.dashboard-intro.intro-ready .wrap > :nth-child(2) { --intro-delay: .12s; }
.dashboard-intro.intro-ready .wrap > :nth-child(3) { --intro-delay: .18s; }
.dashboard-intro.intro-ready .wrap > :nth-child(n + 4) { --intro-delay: .24s; }

.dashboard-intro.intro-ready.ui-open .wrap > * {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: var(--intro-delay, .06s);
    transition-duration: .54s, .54s, .64s;
}

/* ============================================================
   HERO — command panel with animated border + orbital radar
   ============================================================ */

.command-panel {
    align-items: center;
    background:
        linear-gradient(100deg, rgba(3, 6, 16, .76) 0%, rgba(4, 7, 18, .56) 48%, rgba(4, 7, 18, .27) 100%),
        linear-gradient(160deg, rgba(126, 166, 214, .1), transparent 48%),
        var(--glass-hero);
    backdrop-filter: blur(7px) saturate(1.16) brightness(.76);
    -webkit-backdrop-filter: blur(7px) saturate(1.16) brightness(.76);
    border: 1px solid var(--glass-line);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(255, 255, 255, .025);
    color: #fff;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 26px;
    min-height: 250px;
    overflow: hidden;
    padding: 40px 44px;
    position: relative;
}

/* Subtle refraction keeps the hero legible without hiding the scene. */
.command-panel::before {
    animation: glassRefraction 18s ease-in-out infinite alternate;
    background: linear-gradient(115deg, rgba(255, 255, 255, .085), transparent 16%, transparent 68%, rgba(255, 210, 160, .055));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.command-panel::after {
    background: radial-gradient(ellipse 50% 110% at 100% 42%, rgba(255, 194, 122, .075), transparent 72%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

@keyframes glassRefraction {
    from { opacity: .46; transform: translate3d(-1.5%, 0, 0); }
    to { opacity: .78; transform: translate3d(1.5%, 0, 0); }
}

.command-copy {
    position: relative;
    z-index: 1;
}

.command-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.04;
    margin: 14px 0 16px;
    max-width: 760px;
}

@keyframes gradShift {
    from { background-position: 0% 50%; }
    to { background-position: 280% 50%; }
}

.command-copy p {
    color: rgba(228, 236, 251, .74);
    font-size: 15px;
    margin: 0;
    max-width: 560px;
}

.eyebrow {
    color: #63d8ee;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.eyebrow::before {
    animation: beaconPulse 2.2s ease-in-out infinite;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
    content: "";
    height: 6px;
    width: 6px;
}

/* system status line */
.syscheck {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    margin-top: 22px;
    padding: 9px 18px 9px 12px;
    position: relative;
}

.syscheck .pulse-dot {
    border-radius: 50%;
    height: 10px;
    position: relative;
    width: 10px;
}

.syscheck .pulse-dot::after {
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
    border-radius: 50%;
    content: "";
    inset: 0;
    position: absolute;
}

.syscheck.ok {
    background: rgba(62, 240, 168, .09);
    border-color: rgba(62, 240, 168, .38);
    box-shadow: 0 0 30px rgba(62, 240, 168, .12), inset 0 0 18px rgba(62, 240, 168, .05);
    color: #8dffce;
}

.syscheck.ok .pulse-dot,
.syscheck.ok .pulse-dot::after {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.syscheck.warn {
    background: rgba(255, 201, 94, .08);
    border-color: rgba(255, 201, 94, .4);
    box-shadow: 0 0 30px rgba(255, 201, 94, .1);
    color: #ffdf9e;
}

.syscheck.warn .pulse-dot,
.syscheck.warn .pulse-dot::after {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.syscheck.alert {
    animation: alertBreath 2.6s ease-in-out infinite;
    background: rgba(255, 86, 120, .1);
    border-color: rgba(255, 86, 120, .5);
    box-shadow: 0 0 34px rgba(255, 86, 120, .18);
    color: #ffb3c2;
}

.syscheck.alert .pulse-dot,
.syscheck.alert .pulse-dot::after {
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

@keyframes ping {
    0% { opacity: .9; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(3.4); }
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@keyframes alertBreath {
    0%, 100% { box-shadow: 0 0 34px rgba(255, 86, 120, .18); }
    50% { box-shadow: 0 0 48px rgba(255, 86, 120, .34); }
}

.command-actions {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

/* --- orbital radar ------------------------------------------------ */

.command-visual {
    align-self: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.orbital {
    height: 230px;
    position: relative;
    width: 230px;
}

.orbital::before {
    background:
        radial-gradient(circle, rgba(76, 224, 255, .12), transparent 62%);
    border-radius: 50%;
    content: "";
    inset: -14%;
    position: absolute;
}

.orbital-sweep {
    animation: sweepSpin 4.2s linear infinite;
    background: conic-gradient(from 0deg, rgba(76, 224, 255, .32) 0deg, rgba(76, 224, 255, .06) 52deg, transparent 74deg);
    border-radius: 50%;
    inset: 0;
    position: absolute;
}

@keyframes sweepSpin {
    to { rotate: 360deg; }
}

.orbital-ring {
    border: 1px solid rgba(140, 190, 255, .28);
    border-radius: 50%;
    position: absolute;
}

.orbital-ring.r1 {
    animation: ringSpin 22s linear infinite;
    inset: 2%;
}

.orbital-ring.r2 {
    animation: ringSpin 14s linear infinite reverse;
    border-color: rgba(167, 139, 250, .3);
    border-style: dashed;
    inset: 19%;
}

.orbital-ring.r3 {
    animation: ringSpin 9s linear infinite;
    border-color: rgba(76, 224, 255, .34);
    inset: 36%;
}

@keyframes ringSpin {
    to { rotate: 360deg; }
}

.orbital-ring .sat {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 18px var(--cyan);
    height: 6px;
    left: 50%;
    margin-left: -3px;
    position: absolute;
    top: -3.5px;
    width: 6px;
}

.orbital-ring.r2 .sat {
    box-shadow: 0 0 8px #fff, 0 0 18px var(--violet);
}

.orbital-ring.r3 .sat {
    box-shadow: 0 0 8px #fff, 0 0 18px var(--magenta);
}

.orbital-core {
    animation: coreGlow 3.4s ease-in-out infinite;
    background: radial-gradient(circle at 36% 32%, #d8f6ff, var(--cyan) 42%, #1b4ba8 82%);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(76, 224, 255, .8), 0 0 70px rgba(76, 224, 255, .35);
    height: 26px;
    left: 50%;
    margin: -13px;
    position: absolute;
    top: 50%;
    width: 26px;
}

@keyframes coreGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(76, 224, 255, .8), 0 0 70px rgba(76, 224, 255, .35); }
    50% { box-shadow: 0 0 34px rgba(76, 224, 255, 1), 0 0 96px rgba(76, 224, 255, .5); }
}

.orbital-blip {
    animation: blipPing 4.4s ease-out infinite;
    background: var(--green);
    border-radius: 50%;
    height: 5px;
    opacity: 0;
    position: absolute;
    width: 5px;
}

.orbital-blip.b1 { left: 26%; top: 32%; }
.orbital-blip.b2 { animation-delay: 1.6s; background: var(--gold); left: 68%; top: 24%; }
.orbital-blip.b3 { animation-delay: 3s; background: var(--magenta); left: 60%; top: 70%; }

@keyframes blipPing {
    0% { box-shadow: 0 0 0 0 currentColor; opacity: 0; }
    6% { opacity: 1; }
    30% { box-shadow: 0 0 0 14px transparent; opacity: .4; }
    46%, 100% { opacity: 0; }
}

/* ============================================================
   PANELS
   ============================================================ */

.panel,
.login-box {
    backdrop-filter: blur(7px) saturate(1.13) brightness(.72);
    -webkit-backdrop-filter: blur(7px) saturate(1.13) brightness(.72);
    background:
        linear-gradient(180deg, rgba(10, 15, 31, .34), rgba(4, 8, 19, .24)),
        var(--glass-panel);
    border: 1px solid var(--glass-line);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075), inset 0 -1px 0 rgba(255, 255, 255, .02);
    margin-bottom: 26px;
    padding: 24px;
    position: relative;
}

.panel.narrow {
    max-width: 940px;
}

.panel-head,
.form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0 0 18px;
}

h2 {
    font-size: 20px;
}

h2::after {
    background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    margin-top: 8px;
    width: 74px;
}

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

/* ============================================================
   METRICS
   ============================================================ */

.summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
    perspective: 900px;
}

.metric {
    --mx: 50%;
    --my: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .012)),
        rgba(3, 7, 18, .56);
    backdrop-filter: blur(5px) saturate(1.1);
    -webkit-backdrop-filter: blur(5px) saturate(1.1);
    border: 1px solid rgba(210, 226, 255, .16);
    border-radius: 12px;
    color: var(--cyan);
    cursor: pointer;
    min-height: 104px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    text-align: left;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    will-change: transform;
}

/* glowing energy line on top */
.metric::before {
    background: currentColor;
    border-radius: 999px;
    box-shadow: 0 0 8px color-mix(in srgb, currentColor 62%, transparent);
    content: "";
    height: 3px;
    left: 16px;
    position: absolute;
    right: 16px;
    top: 14px;
}

/* cursor-follow glow */
.metric::after {
    background: radial-gradient(150px circle at var(--mx) var(--my), rgba(120, 210, 255, .16), transparent 72%);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .3s ease;
}

.metric:hover::after {
    opacity: 1;
}

.metric.up { color: var(--green); }
.metric.down { color: var(--red); }
.metric.unknown { color: var(--gold); }
.metric.incident { color: var(--violet); }

.metric:hover,
.metric.active {
    border-color: color-mix(in srgb, currentColor 55%, transparent);
    box-shadow: inset 0 0 24px color-mix(in srgb, currentColor 7%, transparent);
    transform: translateY(-1px);
}

.metric.active {
    background:
        linear-gradient(180deg, color-mix(in srgb, currentColor 10%, transparent), transparent 60%),
        rgba(3, 7, 18, .68);
}

.metric b {
    color: #fff;
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    margin-top: 26px;
    text-shadow: 0 0 22px color-mix(in srgb, currentColor 44%, transparent);
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-top: 7px;
    text-transform: uppercase;
}

/* ============================================================
   TOOLBAR / SEARCH / LEGEND
   ============================================================ */

.toolbar {
    align-items: center;
    backdrop-filter: blur(6px) saturate(1.08);
    -webkit-backdrop-filter: blur(6px) saturate(1.08);
    background: rgba(3, 6, 16, .42);
    border: 1px solid rgba(210, 226, 255, .14);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 11px 14px;
}

.search {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 0;
    min-width: min(430px, 100%);
}

.search span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.search input {
    margin: 0;
}

.status-legend {
    display: flex;
    gap: 16px;
}

.status-legend span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    letter-spacing: .06em;
}

.dot,
.status-beacon {
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.dot.up,
.status-beacon.up { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.down,
.status-beacon.down { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.unknown,
.status-beacon.unknown { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.status-beacon {
    animation: beaconPulse 2.6s ease-in-out infinite;
    flex: 0 0 auto;
    height: 11px;
    margin-top: 5px;
    width: 11px;
}

.status-beacon.up { box-shadow: 0 0 0 4px rgba(62, 240, 168, .1), 0 0 20px rgba(62, 240, 168, .55); }
.status-beacon.down { animation-duration: 1.2s; box-shadow: 0 0 0 4px rgba(255, 86, 120, .12), 0 0 20px rgba(255, 86, 120, .6); }
.status-beacon.unknown { box-shadow: 0 0 0 4px rgba(255, 201, 94, .12), 0 0 20px rgba(255, 201, 94, .5); }

/* ============================================================
   TABLE
   ============================================================ */

.table-wrap {
    backdrop-filter: blur(6px) saturate(1.08);
    -webkit-backdrop-filter: blur(6px) saturate(1.08);
    background: rgba(3, 6, 16, .34);
    border: 1px solid rgba(210, 226, 255, .14);
    border-radius: 12px;
    max-width: 100%;
    overflow-x: auto;
}

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

.monitor-table {
    table-layout: fixed;
}

.monitor-table th:nth-child(1) { width: 21%; }
.monitor-table th:nth-child(2) { width: 15%; }
.monitor-table th:nth-child(3) { width: 11%; }
.monitor-table th:nth-child(4) { width: 23%; }
.monitor-table th:nth-child(5) { width: 14%; }
.monitor-table th:nth-child(6) { width: 16%; }

.monitor-table th:last-child:nth-child(7) {
    width: 16%;
}

.monitor-table:has(th:nth-child(7)) th:nth-child(1) { width: 18%; }
.monitor-table:has(th:nth-child(7)) th:nth-child(2) { width: 13%; }
.monitor-table:has(th:nth-child(7)) th:nth-child(3) { width: 10%; }
.monitor-table:has(th:nth-child(7)) th:nth-child(4) { width: 19%; }
.monitor-table:has(th:nth-child(7)) th:nth-child(5) { width: 12%; }
.monitor-table:has(th:nth-child(7)) th:nth-child(6) { width: 12%; }

th,
td {
    border-bottom: 1px solid rgba(158, 178, 255, .1);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

tbody tr {
    background: rgba(3, 6, 16, .42);
    position: relative;
    transition: background .2s ease, box-shadow .2s ease;
}

tbody tr:hover {
    background: rgba(10, 20, 35, .62);
    box-shadow: inset 2px 0 0 var(--cyan), inset 0 0 24px rgba(76, 224, 255, .035);
}

tbody tr[hidden] {
    display: none;
}

th {
    background: rgba(14, 20, 38, .46);
    color: #9fb1da;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

td strong,
td small {
    display: block;
}

td small {
    margin-top: 2px;
    word-break: break-all;
}

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

.site-title > div {
    min-width: 0;
}

.site-title strong,
.site-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-cell {
    color: var(--muted);
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.response-stack,
.health-signals {
    display: flex;
    flex-direction: column;
}

.response-stack {
    gap: 7px;
}

.health-signals {
    gap: 10px;
}

.checked-cell {
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

/* ============================================================
   STATUS PLANET VISUALS (webp assets)
   ============================================================ */

.status-visual {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-width: 138px;
}

.status-icon {
    border-radius: 50%;
    display: inline-block;
    height: 40px;
    position: relative;
    width: 40px;
}

.planet-core {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 100%;
    width: 100%;
}

.planet-ring {
    border: 1px solid currentColor;
    border-radius: 50%;
    height: 50px;
    left: -5px;
    opacity: .34;
    position: absolute;
    top: -5px;
    transform: rotate(-22deg) scaleY(.35);
    width: 50px;
}

.planet-crack,
.planet-spark {
    position: absolute;
}

.planet-crack {
    display: none;
}

.planet-spark {
    border-radius: 50%;
    height: 5px;
    opacity: .85;
    right: 1px;
    top: 6px;
    width: 5px;
}

.status-visual.up { color: var(--green); }

.status-visual.up .planet-core {
    animation: statusAssetSpin 24s linear infinite, statusAssetFloat 3.8s ease-in-out infinite;
    background-image: url("status-assets/status-up.webp");
    filter: drop-shadow(0 0 16px rgba(62, 240, 168, .36)) drop-shadow(-5px 6px 10px rgba(0, 0, 0, .55));
}

.status-visual.up .planet-ring {
    animation: orbitPulse 2.8s ease-in-out infinite;
    box-shadow: 0 0 18px rgba(62, 240, 168, .2);
}

.status-visual.up .planet-spark {
    animation: satelliteOrbit var(--satellite-speed, 3.5s) linear infinite;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, .9), 0 0 22px rgba(62, 240, 168, .65);
}

.status-visual.down { color: var(--red); }

.status-visual.down .status-icon {
    animation: statusGravityPull 8s ease-in-out infinite;
    border-radius: 0;
    height: 42px;
    margin-left: -4px;
    width: 50px;
}

.status-visual.down .planet-core {
    animation: statusBlackHoleSpin 120s linear infinite, statusBlackHolePulse 9s ease-in-out infinite;
    background-image: url("status-assets/status-down.webp");
    background-size: 132% auto;
    filter: drop-shadow(0 0 18px rgba(255, 86, 120, .48)) drop-shadow(0 0 12px rgba(255, 148, 84, .24));
}

.status-visual.down .planet-ring {
    animation: blackHoleRing 12s ease-in-out infinite;
    border-color: rgba(255, 86, 120, .72);
    box-shadow: 0 0 18px rgba(255, 86, 120, .3);
    opacity: .4;
}

.status-visual.down .planet-spark {
    display: none;
}

.status-visual.unknown { color: var(--gold); }

.status-visual.unknown .planet-core {
    animation: statusAssetTilt 5s ease-in-out infinite;
    background-image: url("status-assets/status-unknown.webp");
    filter: drop-shadow(0 0 13px rgba(255, 201, 94, .3)) drop-shadow(-4px 6px 10px rgba(0, 0, 0, .55));
}

.status-visual.unknown .planet-ring {
    animation: scanRing 2.2s ease-in-out infinite;
    opacity: .26;
}

.status-copy strong {
    color: var(--text);
    display: block;
    font-size: 12px;
    line-height: 1.1;
}

.status-copy small {
    display: block;
    margin-top: 3px;
}

.status-visual.compact {
    min-width: 118px;
}

.status-visual.compact .status-icon {
    height: 32px;
    width: 32px;
}

.status-visual.compact.down .status-icon {
    height: 34px;
    width: 44px;
}

.status-visual.compact .planet-ring {
    height: 40px;
    width: 40px;
}

@keyframes statusAssetSpin {
    to { rotate: 360deg; }
}

@keyframes statusAssetFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -2px; }
}

@keyframes statusAssetTilt {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-2px); }
}

@keyframes statusBlackHoleSpin {
    from { rotate: -3deg; }
    to { rotate: 357deg; }
}

@keyframes statusBlackHolePulse {
    0%, 100% { scale: .98; opacity: .92; }
    50% { scale: 1.06; opacity: 1; }
}

@keyframes statusGravityPull {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(.96); }
}

@keyframes blackHoleRing {
    0%, 100% { opacity: .22; transform: rotate(-25deg) scaleY(.28) scale(.9); }
    50% { opacity: .62; transform: rotate(16deg) scaleY(.4) scale(1.08); }
}

@keyframes orbitPulse {
    0%, 100% { opacity: .42; transform: rotate(-22deg) scaleY(.35) scale(1); }
    50% { opacity: .9; transform: rotate(-22deg) scaleY(.35) scale(1.08); }
}

@keyframes satelliteOrbit {
    from { transform: rotate(0deg) translateX(22px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(22px) rotate(-360deg); }
}

@keyframes scanRing {
    0%, 100% { opacity: .28; transform: rotate(-22deg) scaleY(.35); }
    50% { opacity: .88; transform: rotate(18deg) scaleY(.42); }
}

/* ============================================================
   DATA CELLS (http / speed / size / bots)
   ============================================================ */

.http-code,
.speed {
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.speed.fast { color: var(--green); }
.speed.slow { color: var(--gold); }

.speed-cell { min-width: 0; }

.speedbox {
    cursor: help;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.speedbox .speed {
    font-weight: 700;
    white-space: nowrap;
}

.speedbox .speed i {
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    margin-left: 3px;
    opacity: .5;
}

.speedbox .speed-sub {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.speedbox.good .speed { color: var(--green); text-shadow: 0 0 14px rgba(62, 240, 168, .4); }
.speedbox.average .speed { color: var(--gold); }
.speedbox.poor .speed { color: var(--red); text-shadow: 0 0 14px rgba(255, 86, 120, .4); }

.size-cell { min-width: 0; }

.trend {
    cursor: help;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trend-num {
    align-items: baseline;
    display: flex;
    gap: 6px;
}

.trend .delta {
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.6;
    padding: 0 6px;
    white-space: nowrap;
}

.trend .delta.calm { border-color: var(--line); color: var(--muted); }
.trend .delta.learn { border-color: var(--line); color: var(--muted); font-weight: 500; }
.trend .delta.warn { background: rgba(255, 201, 94, .12); border-color: rgba(255, 201, 94, .4); color: var(--gold); }
.trend .delta.bad { background: rgba(255, 86, 120, .14); border-color: rgba(255, 86, 120, .45); color: var(--red); }

.spark {
    background: rgba(3, 5, 16, .5);
    border: 1px solid var(--line);
    border-radius: 5px;
    display: block;
    height: 26px;
    width: 104px;
}

.spark-calm { fill: rgba(158, 178, 255, .08); }
.spark-base { opacity: .5; stroke: var(--line-strong); stroke-dasharray: 2 3; stroke-width: 1; }
.spark-line { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.spark-dot.calm { fill: var(--green); }
.spark-dot.learn { fill: var(--muted); }
.spark-dot.warn { fill: var(--gold); }
.spark-dot.bad { fill: var(--red); }

.size-cell .size {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bots-cell .bots {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bots-cell .bot {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: help;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
    line-height: 1.6;
    padding: 1px 7px;
    white-space: nowrap;
}

.bots-cell .bot i {
    font-style: normal;
    font-weight: 500;
    opacity: .85;
}

.bots-cell .bot.ok {
    background: rgba(62, 240, 168, .1);
    border-color: rgba(62, 240, 168, .34);
    color: #5cf5b6;
}

.bots-cell .bot.bad {
    background: rgba(255, 86, 120, .14);
    border-color: rgba(255, 86, 120, .46);
    color: #ff8298;
}

.anomaly-flag {
    animation: beaconPulse 2.4s ease-in-out infinite;
    background: rgba(255, 201, 94, .14);
    border: 1px solid rgba(255, 201, 94, .46);
    border-radius: 999px;
    color: var(--gold);
    cursor: help;
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    margin-left: 8px;
    padding: 1px 8px;
    text-transform: uppercase;
}

.muted { opacity: .45; }

/* ============================================================
   BUTTONS
   ============================================================ */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.btn {
    align-items: center;
    background: rgba(158, 178, 255, .08);
    border: 1px solid rgba(158, 178, 255, .22);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    min-height: 38px;
    overflow: hidden;
    padding: 8px 16px;
    position: relative;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover,
.btn:focus-visible {
    background: rgba(76, 224, 255, .1);
    border-color: rgba(76, 224, 255, .5);
    box-shadow: 0 2px 6px rgba(20, 94, 122, .26), inset 0 0 12px rgba(76, 224, 255, .055);
    outline: none;
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(120deg, #1d9dc9, var(--violet) 55%, var(--magenta));
    background-size: 180% 100%;
    border-color: rgba(255, 255, 255, .32);
    box-shadow: 0 3px 7px rgba(76, 82, 175, .34);
    color: #fff;
    text-shadow: 0 1px 6px rgba(10, 14, 40, .4);
    transition: transform .18s ease, box-shadow .18s ease, background-position .5s ease;
}

.btn.primary:hover,
.btn.primary:focus-visible {
    background-position: 90% 0;
    box-shadow: 0 4px 8px rgba(83, 89, 186, .42);
    transform: translateY(-2px);
}

/* light sheen sweeping across primary buttons */
.btn.primary::before {
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-130%);
    transition: transform .65s ease;
}

.btn.primary:hover::before {
    transform: translateX(130%);
}

.btn.danger {
    border-color: rgba(255, 86, 120, .38);
    color: #ff9cae;
}

.btn.danger:hover,
.btn.danger:focus-visible {
    background: rgba(255, 86, 120, .12);
    border-color: rgba(255, 86, 120, .6);
    box-shadow: 0 0 26px rgba(255, 86, 120, .2);
}

.btn:disabled {
    cursor: wait;
    opacity: .68;
}

.btn-icon {
    align-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    width: 18px;
}

/* ============================================================
   NOTICES / FORMS / LOGIN
   ============================================================ */

.notice {
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 13px 16px;
}

.notice.success {
    background: rgba(62, 240, 168, .12);
    border-color: rgba(62, 240, 168, .34);
    color: #9cffd7;
}

.notice.error {
    background: rgba(255, 86, 120, .13);
    border-color: rgba(255, 86, 120, .4);
    color: #ffadba;
}

.login-box {
    margin: 80px auto 0;
    max-width: 460px;
}

.login-box h1 {
    font-size: 30px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
}

input,
textarea {
    background: rgba(3, 5, 16, .6);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    display: block;
    margin-top: 6px;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: rgba(141, 155, 196, .6);
}

input:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(76, 224, 255, .14), 0 0 24px rgba(76, 224, 255, .1);
    outline: none;
}

textarea {
    resize: vertical;
}

.checkbox {
    align-items: center;
    background: rgba(158, 178, 255, .05);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.checkbox input {
    accent-color: var(--cyan);
    margin: 0;
    width: auto;
}

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

.form-shell::before {
    animation: gradShift 7s linear infinite;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
    background-size: 280% 100%;
    border-radius: 16px 16px 0 0;
    content: "";
    height: 3px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.compact table {
    min-width: 720px;
}

/* ============================================================
   REVEAL ANIMATION (classes are added by JS only)
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(18px) scale(.995);
}

.reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease var(--rd, 0s), transform .8s cubic-bezier(.16, .84, .28, 1) var(--rd, 0s);
}

tr.reveal.in {
    transition-duration: .55s, .55s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar,
    .command-panel,
    .panel,
    .login-box,
    .metric,
    .toolbar,
    .table-wrap,
    .monitor-gate-copy {
        background-color: rgba(4, 7, 18, .94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .topbar,
    .command-panel,
    .panel,
    .login-box,
    .metric,
    .toolbar,
    .table-wrap,
    .monitor-gate-copy {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(4, 7, 18, .96);
    }
}

/* ============================================================
   MOTION / RESPONSIVE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .orbital {
        height: 180px;
        width: 180px;
    }

    .monitor-table,
    .monitor-table tbody,
    .monitor-table tr,
    .checks-table,
    .checks-table tbody,
    .checks-table tr {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .monitor-table thead,
    .checks-table thead {
        display: none;
    }

    .monitor-table tbody,
    .checks-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .monitor-table tr,
    .checks-table tr {
        border: 1px solid rgba(158, 178, 255, .13);
        border-radius: 12px;
        display: grid;
        grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .8fr) minmax(115px, .55fr);
        overflow: hidden;
    }

    .monitor-table td,
    .checks-table td {
        border-bottom: 0;
        min-width: 0;
        padding: 13px 14px;
    }

    .monitor-table td::before,
    .checks-table td::before {
        color: #8191ba;
        content: attr(data-label);
        display: block;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .12em;
        margin-bottom: 6px;
        text-transform: uppercase;
    }

    .monitor-table .error-cell,
    .checks-table .error-cell {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

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

@media (max-width: 920px) {
    .summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar,
    .command-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .command-visual {
        align-self: flex-end;
        margin-top: -30px;
    }

    .status-legend {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .cinematic-backdrop {
        background-position: 78% center;
    }

    .accretion-glow {
        transform-origin: 78% 18%;
    }

    .orbital-ringcraft {
        left: -64px;
        opacity: .62;
        top: 27%;
        width: 210px;
    }

    .topbar,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        gap: 12px;
        padding: 16px;
        position: static;
    }

    .topbar-actions {
        justify-content: space-between;
        width: 100%;
    }

    .topbar nav {
        flex-wrap: wrap;
    }

    .monitor-gate {
        padding: 24px 18px;
    }

    .monitor-gate-button {
        max-width: 100%;
        min-height: 72px;
    }

    .monitor-gate-copy {
        min-width: min(232px, calc(100vw - 114px));
        padding-left: 16px;
        padding-right: 32px;
    }

    .wrap {
        padding: 14px;
    }

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

    .summary .metric {
        min-height: 92px;
        padding: 14px;
    }

    .summary .metric.incident {
        grid-column: 1 / -1;
    }

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

    .command-panel {
        min-height: 0;
        padding: 28px 24px;
    }

    .panel {
        padding: 16px;
    }

    .monitor-table tbody,
    .checks-table tbody {
        gap: 10px;
        padding: 8px;
    }

    .monitor-table tr,
    .checks-table tr {
        grid-template-columns: 1fr 1fr;
    }

    .monitor-table td:first-child,
    .monitor-table td:nth-child(4),
    .monitor-table .error-cell,
    .monitor-table .actions,
    .checks-table .error-cell {
        grid-column: 1 / -1;
    }

    .status-visual,
    .status-visual.compact {
        min-width: 0;
    }

    .command-visual {
        display: none;
    }

    .px-earth {
        right: -60px;
        top: 150px;
        width: 190px;
    }

    .px-jupiter {
        left: -130px;
        top: 58%;
        width: 240px;
    }

    .px-mars {
        bottom: 4vh;
        right: -40px;
        width: 110px;
    }

    .px-asteroid {
        left: 60vw;
        top: 80%;
        width: 100px;
    }

    .meteor {
        width: 150px;
    }
}
