/* ACHIEVO командный центр (Dashboard V2) — isolated from the legacy interface */
html[data-dashboard="new"] body {
    background: #05070a;
    color: #edf4f6;
    overflow-x: hidden;
}

html[data-dashboard="new"] .directive-trigger,
html[data-dashboard="new"] .directive-final-btn {
    display: none !important;
}

html[data-dashboard="new"] .directive-widget {
    top: 78px;
    right: 28px;
    z-index: 15000;
}

.aegis-dashboard[hidden],
#legacy-dashboard[hidden] {
    display: none !important;
}

.aegis-dashboard {
    --aegis-gold: #ffc857;
    --aegis-gold-rgb: 255, 200, 87;
    --aegis-cyan: #4ee6ff;
    --aegis-cyan-rgb: 78, 230, 255;
    --aegis-pink: #ff4e91;
    --aegis-danger: #ff4967;
    --aegis-ink: #05070a;
    --aegis-panel: rgba(10, 14, 19, .9);
    --aegis-line: rgba(255, 255, 255, .09);
    --aegis-text: #edf4f6;
    --aegis-muted: #77818d;
    --aegis-fs-2xs: 11px;
    --aegis-fs-xs: 12px;
    --aegis-fs-sm: 13px;
    --aegis-fs-md: 14px;
    --aegis-fs-lg: 15px;
    --aegis-fs-xl: 18px;
    position: relative;
    min-height: 100vh;
    color: var(--aegis-text);
    background: var(--aegis-ink);
    font: 16px/1.55 'JetBrains Mono', monospace;
    isolation: isolate;
}

.aegis-dashboard,
.aegis-dashboard * {
    box-sizing: border-box;
}

.aegis-dashboard button,
.aegis-dashboard input {
    font: inherit;
}

.aegis-dashboard a,
.aegis-dashboard button {
    -webkit-tap-highlight-color: transparent;
}

.aegis-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -12%, rgba(var(--aegis-gold-rgb), .16), transparent 31%),
        radial-gradient(circle at 8% 44%, rgba(var(--aegis-cyan-rgb), .07), transparent 29%),
        radial-gradient(circle at 94% 72%, rgba(177, 108, 255, .07), transparent 28%),
        linear-gradient(145deg, #05070a, #090d12 56%, #030406);
}

.aegis-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 26%, #000 8%, transparent 72%);
}

.aegis-grid-floor {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -38%;
    height: 72%;
    opacity: .34;
    background-image:
        linear-gradient(rgba(var(--aegis-gold-rgb), .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--aegis-gold-rgb), .08) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(700px) rotateX(64deg);
    transform-origin: center top;
}

.aegis-light-beam {
    position: absolute;
    top: -25%;
    left: 48%;
    width: 2px;
    height: 85%;
    background: linear-gradient(transparent, rgba(var(--aegis-gold-rgb), .38), transparent);
    box-shadow: 0 0 85px 24px rgba(var(--aegis-gold-rgb), .055);
    animation: aegisBeam 6s ease-in-out infinite;
}

.aegis-shell {
    width: min(1660px, calc(100% - 48px));
    margin: 24px auto 70px;
    border: 1px solid var(--aegis-line);
    background: rgba(5, 8, 11, .68);
    box-shadow: 0 45px 120px rgba(0,0,0,.45);
    animation: aegisBoot .75s cubic-bezier(.2,.8,.2,1) both;
}

.aegis-nav {
    min-height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(var(--aegis-gold-rgb), .25);
    background: rgba(5, 8, 11, .9);
    backdrop-filter: blur(18px);
}

.aegis-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--aegis-gold);
    font: 700 14px/1 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.aegis-brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--aegis-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 18px rgba(var(--aegis-gold-rgb), .13);
}

.aegis-brand-mark span {
    transform: rotate(-45deg);
}

.aegis-route,
.aegis-live,
.aegis-clock {
    color: var(--aegis-muted);
    font-size: var(--aegis-fs-md);
    letter-spacing: 1.2px;
}

.aegis-route {
    padding-left: 20px;
    border-left: 1px solid var(--aegis-line);
}

.aegis-nav-spacer {
    flex: 1;
}

.aegis-live {
    color: #9eabb0;
}

.aegis-live i,
.aegis-footer i {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
    background: #56ffb0;
    box-shadow: 0 0 12px #56ffb0;
    animation: aegisPulse 1.6s ease-in-out infinite;
}

.aegis-clock {
    color: var(--aegis-gold);
    font-weight: 700;
}

.aegis-classic-btn {
    padding: 10px 14px;
    color: #949da7;
    border: 1px solid var(--aegis-line);
    background: transparent;
    cursor: pointer;
    font-size: var(--aegis-fs-sm) !important;
    letter-spacing: 1px;
    transition: .22s;
}

.aegis-classic-btn:hover {
    color: #07090c;
    border-color: var(--aegis-gold);
    background: var(--aegis-gold);
}

.aegis-hero {
    position: relative;
    min-height: 520px;
    padding: clamp(52px, 6vw, 92px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--aegis-line);
    background:
        linear-gradient(108deg, rgba(var(--aegis-gold-rgb), .055), transparent 45%),
        rgba(7, 10, 14, .76);
}

.aegis-hero::after {
    content: 'ACHIEVO';
    position: absolute;
    right: -16px;
    bottom: -30px;
    color: rgba(255,255,255,.018);
    font: 900 clamp(80px, 12vw, 190px)/1 'Orbitron', sans-serif;
    letter-spacing: -9px;
    pointer-events: none;
}

.aegis-kicker {
    color: var(--aegis-gold);
    font-size: var(--aegis-fs-sm);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.aegis-hero h1 {
    margin: 16px 0 25px;
    font: 800 clamp(45px, 5.5vw, 82px)/.94 'Orbitron', sans-serif;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.aegis-hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--aegis-gold);
    text-shadow: 0 0 42px rgba(var(--aegis-gold-rgb), .15);
}

.aegis-hero-copy > p {
    max-width: 670px;
    margin: 0;
    color: #929ca6;
    font-size: var(--aegis-fs-lg);
}

.aegis-hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aegis-primary-action,
.aegis-secondary-action {
    min-height: 48px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 1px solid var(--aegis-gold);
    text-decoration: none;
    font: 700 var(--aegis-fs-sm)/1 'Orbitron', sans-serif;
    letter-spacing: .8px;
    cursor: pointer;
    transition: .25s;
}

.aegis-primary-action {
    color: #050608;
    background: var(--aegis-gold);
    box-shadow: 0 0 28px rgba(var(--aegis-gold-rgb), .12);
}

.aegis-primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(0,0,0,.3), 0 0 34px rgba(var(--aegis-gold-rgb), .22);
}

.aegis-secondary-action {
    color: #b4bdc5;
    border-color: var(--aegis-line);
    background: rgba(255,255,255,.02);
}

.aegis-secondary-action:hover {
    color: var(--aegis-gold);
    border-color: rgba(var(--aegis-gold-rgb), .4);
}

.operator-monument {
    position: relative;
    width: min(390px, 80vw);
    aspect-ratio: 1;
    margin: auto;
    display: grid;
    place-items: center;
}

.operator-monument::before {
    content: '';
    position: absolute;
    inset: 17%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--aegis-gold-rgb), .15), transparent 63%);
    filter: blur(10px);
}

.monument-ring {
    position: absolute;
    border-radius: 50%;
}

.ring-one {
    inset: 4%;
    border: 1px dashed rgba(var(--aegis-gold-rgb), .27);
    animation: aegisRotate 30s linear infinite;
}

.ring-two {
    inset: 15%;
    border: 1px solid rgba(var(--aegis-cyan-rgb), .16);
    border-left-color: var(--aegis-cyan);
    border-right-color: var(--aegis-gold);
    animation: aegisRotate 18s linear infinite reverse;
}

.monument-core {
    position: relative;
    z-index: 2;
    width: 55%;
    aspect-ratio: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(var(--aegis-gold-rgb), .3);
    background: rgba(6,9,12,.72);
    clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
    box-shadow: inset 0 0 65px rgba(var(--aegis-gold-rgb), .055);
}

.monument-overline {
    color: var(--aegis-muted);
    font-size: var(--aegis-fs-2xs);
    letter-spacing: 1.4px;
}

.monument-core strong {
    width: 100%;
    margin: 12px 0 8px;
    overflow: hidden;
    color: var(--aegis-text);
    font: 700 clamp(17px, 2vw, 26px)/1 'Orbitron', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monument-core > span:last-child {
    color: var(--aegis-gold);
    font-size: var(--aegis-fs-sm);
    letter-spacing: 1.5px;
}

.monument-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--aegis-gold);
    background: #06090c;
    box-shadow: 0 0 14px rgba(var(--aegis-gold-rgb), .5);
    transform: rotate(45deg);
}

.node-a { top: 11%; left: 28%; }
.node-b { right: 4%; bottom: 40%; }
.node-c { left: 16%; bottom: 14%; }

.aegis-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--aegis-line);
}

.aegis-metric {
    min-height: 170px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--aegis-line);
    background: rgba(8, 11, 15, .78);
}

.aegis-metric:last-child { border-right: 0; }

.metric-code {
    color: var(--aegis-muted);
    font-size: var(--aegis-fs-xs);
    letter-spacing: 1.5px;
}

.aegis-metric > div:nth-child(2) {
    margin-top: 13px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.aegis-metric strong {
    color: var(--aegis-gold);
    font: 700 clamp(24px, 2.6vw, 38px)/1 'Orbitron', sans-serif;
}

.aegis-metric small {
    color: #8a949e;
    font-size: var(--aegis-fs-xs);
    letter-spacing: 1.2px;
}

.aegis-meter {
    height: 3px;
    margin-top: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}

.aegis-meter i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--aegis-gold);
    box-shadow: 0 0 12px var(--aegis-gold);
    transition: width .5s ease;
}

.aegis-meter.danger i {
    background: var(--aegis-danger);
    box-shadow: 0 0 12px var(--aegis-danger);
}

.metric-foot {
    margin-top: 11px;
    color: #646d77;
    font-size: var(--aegis-fs-xs);
    letter-spacing: .7px;
}

.danger-metric strong {
    color: var(--aegis-danger);
}

.aegis-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
    border-bottom: 1px solid var(--aegis-line);
}

.aegis-command-column,
.aegis-status-column,
.aegis-processes {
    padding: clamp(28px, 4vw, 55px);
}

.aegis-command-column {
    border-right: 1px solid var(--aegis-line);
}

.aegis-section-head {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.aegis-section-head h2 {
    margin: 6px 0 0;
    font: 700 clamp(25px, 3vw, 40px)/1 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.section-index,
.process-summary {
    color: #59626c;
    font-size: var(--aegis-fs-sm);
    letter-spacing: 1.2px;
}

.aegis-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.system-tile {
    position: relative;
    min-height: 124px;
    padding: 21px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    color: var(--aegis-text);
    border: 1px solid var(--aegis-line);
    background: rgba(8,12,16,.75);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: .28s ease;
}

.system-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(110deg, rgba(var(--aegis-cyan-rgb), .09), transparent 55%);
    transition: .28s;
}

.system-tile:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: rgba(var(--aegis-cyan-rgb), .43);
    box-shadow: 0 16px 35px rgba(0,0,0,.28), 0 0 28px rgba(var(--aegis-cyan-rgb), .07);
}

.system-tile:hover::before { opacity: 1; }
.system-tile.gold-tile:hover { border-color: rgba(var(--aegis-gold-rgb), .52); }
.system-tile.pink-tile:hover { border-color: rgba(255, 78, 145, .5); }
.system-tile.danger-tile { border-color: rgba(255, 60, 60, .35); }
.system-tile.danger-tile:hover { border-color: rgba(255, 60, 60, .62); box-shadow: 0 16px 35px rgba(0,0,0,.28), 0 0 28px rgba(255, 60, 60, .08); }
.system-tile.signal-tile { border-color: rgba(0, 255, 65, .28); }
.system-tile.signal-tile:hover { border-color: rgba(0, 255, 65, .55); box-shadow: 0 16px 35px rgba(0,0,0,.28), 0 0 28px rgba(0, 255, 65, .07); }

.tile-index {
    align-self: start;
    color: #4f5862;
    font-size: var(--aegis-fs-xs);
}

.tile-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: var(--aegis-cyan);
    border: 1px solid rgba(var(--aegis-cyan-rgb), .26);
    font: 700 18px/1 'Orbitron', sans-serif;
    clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}

.gold-tile .tile-icon { color: var(--aegis-gold); border-color: rgba(var(--aegis-gold-rgb), .34); }
.pink-tile .tile-icon { color: var(--aegis-pink); border-color: rgba(255,78,145,.32); }

.tile-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tile-copy strong {
    display: block;
    font: 700 var(--aegis-fs-lg)/1.2 'Orbitron', sans-serif;
}

.tile-copy small {
    display: block;
    margin-top: 7px;
    color: #6e7882;
    font-size: var(--aegis-fs-sm);
}

.tile-arrow {
    color: #68717a;
    font-size: 17px;
    transition: .25s;
}

.system-tile:hover .tile-arrow {
    color: var(--aegis-cyan);
    transform: translate(3px, -3px);
}

.telemetry-panel {
    min-height: 324px;
    padding: 30px;
    border: 1px solid var(--aegis-line);
    background:
        radial-gradient(circle at 50% 10%, rgba(var(--aegis-gold-rgb), .06), transparent 42%),
        rgba(7,10,14,.72);
}

.telemetry-orb {
    position: relative;
    width: 145px;
    aspect-ratio: 1;
    margin: 4px auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--aegis-gold-rgb), .3);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(var(--aegis-gold-rgb), .1), transparent 58%),
        conic-gradient(var(--aegis-gold) 0 85%, rgba(255,255,255,.05) 85%);
    box-shadow: 0 0 45px rgba(var(--aegis-gold-rgb), .07);
}

.telemetry-orb::before {
    content: '';
    position: absolute;
    width: 119px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #090d11;
}

.telemetry-orb span,
.telemetry-orb small {
    position: relative;
    z-index: 1;
}

.telemetry-orb span {
    color: var(--aegis-gold);
    font: 700 33px/1 'Orbitron', sans-serif;
}

.telemetry-orb small {
    margin-top: 7px;
    color: var(--aegis-muted);
    font-size: var(--aegis-fs-2xs);
    letter-spacing: 1.2px;
}

.telemetry-lines {
    display: grid;
    gap: 0;
}

.telemetry-lines > div {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,.07);
}

.telemetry-lines span {
    color: #68727d;
    font-size: var(--aegis-fs-xs);
    letter-spacing: 1px;
}

.telemetry-lines b {
    color: #c4ccd2;
    font-size: var(--aegis-fs-md);
}

.collapse-protocol {
    width: 100%;
    min-height: 78px;
    margin-top: 10px;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a55a68;
    border: 1px solid rgba(255,73,103,.17);
    background: rgba(255,73,103,.025);
    text-align: left;
    cursor: pointer;
    transition: .25s;
}

.collapse-protocol:hover {
    color: var(--aegis-danger);
    border-color: rgba(255,73,103,.5);
    background: rgba(255,73,103,.07);
}

.collapse-protocol > span:first-child { font-size: 21px; }
.collapse-protocol b { display: block; font: 700 var(--aegis-fs-sm)/1.2 'Orbitron', sans-serif; }
.collapse-protocol small { display: block; margin-top: 5px; color: #64555a; font-size: var(--aegis-fs-xs); }

.aegis-processes {
    border-bottom: 1px solid var(--aegis-line);
    background: rgba(6,9,12,.62);
}

.aegis-task-composer {
    margin-bottom: 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 210px auto;
    gap: 10px;
    border: 1px solid var(--aegis-line);
    background: rgba(255,255,255,.015);
}

.aegis-task-composer label {
    display: grid;
    gap: 7px;
}

.aegis-task-composer label > span {
    color: #68727d;
    font-size: var(--aegis-fs-2xs);
    letter-spacing: 1.2px;
}

.aegis-task-composer input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--aegis-text);
    font-size: var(--aegis-fs-lg);
    border: 1px solid var(--aegis-line);
    border-radius: 0;
    background: #070a0e;
    outline: 0;
}

.aegis-task-composer input:focus {
    border-color: rgba(var(--aegis-gold-rgb), .48);
}

.aegis-task-composer button {
    align-self: end;
    height: 48px;
    padding: 0 20px;
    color: #050608;
    border: 1px solid var(--aegis-gold);
    background: var(--aegis-gold);
    cursor: pointer;
    font: 700 var(--aegis-fs-sm)/1 'Orbitron', sans-serif;
    letter-spacing: .7px;
}

.aegis-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.aegis-task-card {
    --task-progress: 0%;
    --task-fill: 0;
    position: relative;
    min-height: 235px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--aegis-line);
    background:
        linear-gradient(145deg, rgba(var(--aegis-cyan-rgb), .035), transparent 43%),
        rgba(8,11,15,.82);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s ease;
    animation: aegisTaskIn .42s ease both;
}

.aegis-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--task-progress);
    height: 2px;
    background: var(--aegis-cyan);
    box-shadow: 0 0 12px var(--aegis-cyan);
    transition:
        width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        box-shadow 0.4s ease;
}

.aegis-task-card.done::before {
    background: var(--aegis-gold);
    box-shadow: 0 0 12px var(--aegis-gold);
}

.aegis-task-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--aegis-cyan-rgb), .24);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        0 0 0 1px rgba(var(--aegis-cyan-rgb), .07);
}

.task-card-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.task-number {
    color: #505a64;
    font-size: var(--aegis-fs-xs);
    letter-spacing: 1px;
}

.aegis-task-delete {
    width: 32px;
    height: 32px;
    color: #5d6670;
    font-size: var(--aegis-fs-lg);
    line-height: 1;
    border: 1px solid var(--aegis-line);
    background: transparent;
    cursor: pointer;
    transition: .2s;
}

.aegis-task-delete:hover {
    color: var(--aegis-danger);
    border-color: rgba(255,73,103,.45);
}

.aegis-task-card h3 {
    margin: 24px 0 10px;
    color: #e8eef0;
    font: 700 var(--aegis-fs-xl)/1.35 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.aegis-task-state {
    color: #68727d;
    font-size: var(--aegis-fs-sm);
}

.task-progress-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-progress-copy {
    min-width: 70px;
}

.task-progress-copy strong {
    display: block;
    color: var(--aegis-cyan);
    font: 700 24px/1 'Orbitron', sans-serif;
    transition: color 0.4s ease;
}

.done .task-progress-copy strong { color: var(--aegis-gold); }
.task-progress-copy small { color: #545e68; font-size: var(--aegis-fs-xs); }

.aegis-task-progress {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}

.aegis-task-progress i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform: scaleX(var(--task-fill, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(var(--aegis-cyan-rgb), .72), var(--aegis-cyan));
    box-shadow: 0 0 14px rgba(var(--aegis-cyan-rgb), .28);
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s ease,
        box-shadow 0.45s ease;
    will-change: transform;
}

.done .aegis-task-progress i {
    background: linear-gradient(90deg, rgba(var(--aegis-gold-rgb), .72), var(--aegis-gold));
    box-shadow: 0 0 14px rgba(var(--aegis-gold-rgb), .28);
}

.aegis-task-inject {
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    color: var(--aegis-cyan);
    border: 1px solid rgba(var(--aegis-cyan-rgb), .28);
    background: rgba(var(--aegis-cyan-rgb), .035);
    cursor: pointer;
    font: 700 var(--aegis-fs-sm)/1 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: .22s;
}

.aegis-task-inject:hover:not(:disabled) {
    color: #05080a;
    border-color: var(--aegis-cyan);
    background: var(--aegis-cyan);
}

.aegis-task-inject:disabled {
    color: var(--aegis-gold);
    border-color: rgba(var(--aegis-gold-rgb), .25);
    background: rgba(var(--aegis-gold-rgb), .035);
    cursor: default;
}

.aegis-empty-tasks {
    grid-column: 1 / -1;
    min-height: 190px;
    display: grid;
    place-items: center;
    color: #58616b;
    border: 1px dashed var(--aegis-line);
    background: rgba(255,255,255,.01);
    font-size: var(--aegis-fs-md);
    letter-spacing: 1.5px;
    text-align: center;
}

.aegis-task-card.is-removing {
    pointer-events: none;
    z-index: 2;
    transition: none !important;
    animation: taskGlitchOut .72s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.aegis-task-card.is-removing:hover {
    transform: none;
    border-color: var(--aegis-line);
    box-shadow: none;
}

.aegis-task-card.is-collapsing {
    pointer-events: none;
    min-height: 0 !important;
}

.aegis-task-card.is-removing::after {
    content: 'ERR_0xDEAD';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--aegis-danger);
    background: rgba(255, 73, 103, .08);
    font: 700 var(--aegis-fs-md)/1 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    opacity: 0;
    animation: taskGlitchLabel .72s ease forwards;
}

.aegis-footer {
    min-height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #59636d;
    background: rgba(5,8,11,.9);
    font-size: var(--aegis-fs-xs);
    letter-spacing: 1px;
}

.aegis-footer button {
    margin-left: auto;
    padding: 7px 10px;
    color: #717b84;
    border: 1px solid var(--aegis-line);
    background: transparent;
    cursor: pointer;
    font-size: var(--aegis-fs-xs);
}

body.dashboard-transitioning {
    overflow: hidden;
}

.dashboard-transition {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: none !important;
    overflow: hidden;
    pointer-events: none !important;
    visibility: hidden;
    perspective: 1200px;
}

.dashboard-transition.active {
    display: block !important;
    visibility: visible;
}

#legacy-dashboard.dashboard-exiting,
#aegis-dashboard.dashboard-exiting {
    position: relative;
    z-index: 50001;
    overflow: visible;
}

.dashboard-beam-fall {
    position: relative;
    z-index: 2;
    transform-origin: top center;
    will-change: transform, opacity;
    animation: dashboardBeamFall .58s cubic-bezier(.55, .08, .78, .22) forwards;
    animation-delay: var(--fall-delay, 0s);
    pointer-events: none;
}

#legacy-dashboard.dashboard-exiting .dashboard-beam-fall,
#aegis-dashboard.dashboard-exiting .dashboard-beam-fall {
    backface-visibility: hidden;
}

.dashboard-paper-sheet {
    position: fixed;
    inset: 0;
    opacity: 0;
    transform-origin: top center;
    will-change: transform, opacity;
    animation: dashboardPaperFall .72s cubic-bezier(.45, 0, .92, .38) forwards;
    animation-delay: .22s;
    animation-fill-mode: backwards;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
    pointer-events: none;
}

.dashboard-paper-classic {
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        radial-gradient(circle at center, #111 0%, #000 100%);
    background-size: 100% 4px, auto;
}

.dashboard-paper-aegis {
    background:
        radial-gradient(circle at 50% -12%, rgba(var(--aegis-gold-rgb), .16), transparent 31%),
        linear-gradient(145deg, #05070a, #090d12 56%, #030406);
}

#legacy-dashboard.dashboard-reveal,
#aegis-dashboard.dashboard-reveal {
    position: relative;
    z-index: 50002;
    animation: dashboardReveal .78s cubic-bezier(.16, .82, .24, 1) both;
}

@keyframes aegisBeam {
    50% { opacity: .4; transform: translateX(55px); }
}

@keyframes aegisRotate {
    to { transform: rotate(360deg); }
}

@keyframes aegisPulse {
    50% { opacity: .35; box-shadow: 0 0 3px currentColor; }
}

@keyframes aegisBoot {
    from { opacity: 0; transform: translateY(20px); }
}

@keyframes aegisTaskIn {
    from { opacity: 0; transform: translateY(15px); }
}

@keyframes taskGlitchOut {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: none;
        clip-path: inset(0 0 0 0);
    }
    10% {
        transform: translate3d(-3px, 2px, 0) skewX(-2deg);
        filter: drop-shadow(2px 0 rgba(255, 73, 103, .65)) drop-shadow(-2px 0 rgba(0, 255, 255, .65));
        clip-path: inset(5% 0 80% 0);
    }
    22% {
        transform: translate3d(3px, -2px, 0) skewX(2deg);
        filter: drop-shadow(-2px 0 rgba(255, 73, 103, .7)) drop-shadow(2px 0 rgba(0, 255, 255, .7));
        clip-path: inset(78% 0 8% 0);
    }
    34% {
        transform: translate3d(-2px, 2px, 0) skewX(-1deg);
        filter: drop-shadow(2px 0 rgba(255, 73, 103, .55)) drop-shadow(-2px 0 rgba(0, 255, 255, .55));
        clip-path: inset(30% 0 52% 0);
    }
    46% {
        transform: translate3d(2px, -1px, 0) scale(1.008);
        filter: drop-shadow(-2px 0 rgba(255, 73, 103, .45)) drop-shadow(2px 0 rgba(0, 255, 255, .45));
        clip-path: inset(14% 0 68% 0);
    }
    58% {
        transform: translate3d(-1px, 1px, 0) scale(1);
        opacity: 0.94;
        filter: none;
        clip-path: inset(0 0 0 0);
    }
    72% {
        transform: translate3d(0, 0, 0) scale(0.98);
        opacity: 0.72;
        filter: blur(0.5px);
    }
    86% {
        transform: translate3d(0, 0, 0) scale(0.94);
        opacity: 0.35;
        filter: blur(2px) brightness(1.15);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0;
        filter: blur(5px) brightness(1.25);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes taskGlitchLabel {
    0%, 28% { opacity: 0; }
    38%, 68% { opacity: 0.88; }
    100% { opacity: 0; }
}

@keyframes taskDisintegrate {
    to { opacity: 0; transform: scale(.8) rotate(2deg); filter: blur(10px); clip-path: polygon(0 0, 100% 12%, 84% 40%, 100% 70%, 63% 100%, 18% 83%); }
}

@keyframes dashboardBeamFall {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    72% {
        opacity: .92;
        transform: translate3d(0, calc(42vh + var(--fall-stack, 0px)), 0) rotate(var(--fall-rot, 6deg));
    }
    100% {
        opacity: 0;
        transform: translate3d(0, calc(108vh + var(--fall-stack, 0px)), 0) rotate(calc(var(--fall-rot, 6deg) * 1.4));
    }
}

@keyframes dashboardPaperFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotateX(0deg);
    }
    18% {
        opacity: .92;
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 108vh, 0) rotateX(14deg);
    }
}

@keyframes dashboardReveal {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1280px) {
    .aegis-main-grid { grid-template-columns: 1fr; }
    .aegis-command-column { border-right: 0; border-bottom: 1px solid var(--aegis-line); }
}

@media (max-width: 1180px) {
    .aegis-route { display: none; }
    .aegis-hero { grid-template-columns: 1fr; text-align: center; }
    .aegis-hero-copy > p { margin-inline: auto; }
    .aegis-hero-actions { justify-content: center; }
    .operator-monument { width: 310px; }
    .aegis-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .aegis-shell { width: calc(100% - 24px); margin-top: 12px; }
    .aegis-nav { padding: 0 12px; gap: 12px; }
    .aegis-live, .aegis-clock { display: none; }
    .aegis-brand { font-size: var(--aegis-fs-md); letter-spacing: 1px; }
    .aegis-classic-btn { margin-left: auto; }
    .aegis-hero { min-height: 0; padding: 50px 20px; gap: 45px; }
    .aegis-hero h1 { font-size: clamp(40px, 12vw, 64px); }
    .aegis-metrics { grid-template-columns: repeat(2, 1fr); }
    .aegis-metric:nth-child(2) { border-right: 0; }
    .aegis-metric:nth-child(-n+2) { border-bottom: 1px solid var(--aegis-line); }
    .aegis-system-grid { grid-template-columns: 1fr; }
    .aegis-task-composer { grid-template-columns: 1fr; }
    .aegis-task-grid { grid-template-columns: 1fr; }
    .aegis-footer { flex-wrap: wrap; padding-block: 15px; gap: 12px; }
    .aegis-footer button { width: 100%; margin-left: 0; }
}

@media (max-width: 520px) {
    .aegis-brand > span:last-child { display: none; }
    .aegis-classic-btn { font-size: var(--aegis-fs-2xs) !important; }
    .aegis-metrics { grid-template-columns: 1fr; }
    .aegis-metric { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--aegis-line); }
    .aegis-command-column, .aegis-status-column, .aegis-processes { padding: 28px 16px; }
    .system-tile { grid-template-columns: auto 1fr auto; }
    .tile-index { display: none; }
    .operator-monument { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    .aegis-dashboard *,
    .aegis-dashboard *::before,
    .aegis-dashboard *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* A.R.G.U.S. — блокировка протокола COLAPSE (index.html) */
.argus-block-overlay {
    position: fixed;
    inset: 0;
    z-index: 60000;
    background: rgba(4, 0, 2, .88);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    overflow: hidden;
}

.argus-overlay-snow {
    position: absolute;
    inset: -20%;
    opacity: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .09) 0 1px, transparent 1px 4px),
        repeating-radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
        repeating-conic-gradient(rgba(255, 255, 255, .04) 0 .0008%, transparent .0008% .002%);
    background-size: 180px 180px, 220px 220px, 100% 100%;
    mix-blend-mode: screen;
}

.argus-block-overlay.active .argus-overlay-snow {
    animation: tvOverlaySnow 1.35s ease .02s 1 forwards;
}

.argus-block-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.argus-block-modal {
    --argus-red: #ff4967;
    --argus-red-rgb: 255, 73, 103;
    --argus-cyan-rgb: 78, 230, 255;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 60001;
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    color: #f3e8ea;
    border: 1px solid rgba(var(--argus-red-rgb), .55);
    background:
        linear-gradient(145deg, rgba(var(--argus-red-rgb), .08), transparent 42%),
        rgba(8, 4, 6, .97);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(var(--argus-red-rgb), .12),
        inset 0 0 40px rgba(var(--argus-red-rgb), .06);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(.94);
    transition:
        opacity .45s ease,
        transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}

.argus-block-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, .55);
    background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, .35) 100%);
}

.argus-block-glitch-wrap {
    position: relative;
    overflow: hidden;
}

.argus-block-modal.active .argus-block-glitch-wrap {
    animation: tvRollJitter 1.45s cubic-bezier(0.33, 1, 0.68, 1) .05s 1 both;
}

.argus-tv-fx {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.argus-tv-noise {
    position: absolute;
    inset: -120%;
    opacity: 0;
    background:
        repeating-radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .14) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .1) 0 1px, transparent 1px 2px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
    background-size: 160px 160px, 200px 200px, 4px 100%;
    mix-blend-mode: overlay;
}

.argus-tv-scanlines {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, .28) 0,
        rgba(0, 0, 0, .28) 1px,
        transparent 1px,
        transparent 3px
    );
}

.argus-tv-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    top: -18px;
    opacity: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, .04),
        rgba(255, 255, 255, .16),
        rgba(255, 255, 255, .04),
        transparent
    );
    mix-blend-mode: screen;
}

.argus-tv-tear {
    position: absolute;
    left: -8%;
    right: -8%;
    height: 6px;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .22),
        rgba(var(--argus-cyan-rgb), .18),
        rgba(255, 255, 255, .22),
        transparent
    );
    mix-blend-mode: screen;
    box-shadow: 0 0 12px rgba(255, 255, 255, .08);
}

.tear-a { top: 18%; }
.tear-b { top: 41%; height: 4px; }
.tear-c { top: 63%; height: 8px; }
.tear-d { top: 84%; height: 5px; }

.argus-block-inner {
    position: relative;
    z-index: 2;
    padding: 28px 26px 24px;
}

.argus-block-glitch-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
    border: 1px solid rgba(var(--argus-red-rgb), .35);
    background:
        linear-gradient(145deg, rgba(var(--argus-red-rgb), .14), rgba(var(--argus-cyan-rgb), .05) 55%, transparent),
        rgba(12, 4, 8, .92);
    box-shadow: inset 0 0 24px rgba(var(--argus-red-rgb), .08);
    will-change: transform, opacity, filter;
}

.argus-block-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    animation: tvSignalFlicker 1.45s ease .05s 1 both;
}

.argus-block-modal.active::after {
    animation: tvVignettePulse 1.45s ease .05s 1 forwards;
}

.argus-block-modal.active .argus-tv-noise {
    animation: tvStaticBurst 1.45s linear .05s 1 forwards;
}

.argus-block-modal.active .argus-tv-scanlines {
    animation: tvScanlinesIn 1.45s ease .05s 1 forwards;
}

.argus-block-modal.active .argus-tv-beam {
    animation: tvBeamSweep 1.1s linear .08s 2 forwards;
}

.argus-block-modal.active .tear-a {
    animation: tvTearBandA 1.45s cubic-bezier(0.33, 1, 0.68, 1) .06s 1 both;
}

.argus-block-modal.active .tear-b {
    animation: tvTearBandB 1.45s cubic-bezier(0.33, 1, 0.68, 1) .1s 1 both;
}

.argus-block-modal.active .tear-c {
    animation: tvTearBandC 1.45s cubic-bezier(0.33, 1, 0.68, 1) .14s 1 both;
}

.argus-block-modal.active .tear-d {
    animation: tvTearBandD 1.45s cubic-bezier(0.33, 1, 0.68, 1) .18s 1 both;
}

.argus-block-modal.active .argus-block-inner {
    animation: argusInnerSplit 1.45s cubic-bezier(0.33, 1, 0.68, 1) .08s 1 both;
}

.argus-block-modal.active .layer-top {
    clip-path: inset(0 0 62% 0);
    animation: argusShardTop 1.45s cubic-bezier(0.33, 1, 0.68, 1) .08s 1 both;
}

.argus-block-modal.active .layer-mid {
    clip-path: inset(31% 0 31% 0);
    animation: argusShardMid 1.45s cubic-bezier(0.33, 1, 0.68, 1) .08s 1 both;
}

.argus-block-modal.active .layer-bot {
    clip-path: inset(62% 0 0 0);
    animation: argusShardBot 1.45s cubic-bezier(0.33, 1, 0.68, 1) .08s 1 both;
}

.argus-block-modal.active .argus-block-scan {
    animation: argusScanFlicker 1.45s ease .08s 1 both;
}

.argus-block-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(var(--argus-red-rgb), .12) 2px,
        rgba(var(--argus-red-rgb), .12) 3px
    );
}

.argus-block-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(var(--argus-red-rgb), .35);
}

.argus-block-badge {
    color: var(--argus-red);
    font: 700 13px/1 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.argus-block-code {
    color: #8f6a72;
    font-size: 11px;
    letter-spacing: 1px;
}

.argus-block-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: var(--argus-red);
    border: 1px solid rgba(var(--argus-red-rgb), .45);
    background: rgba(var(--argus-red-rgb), .08);
    font-size: 28px;
    box-shadow: 0 0 24px rgba(var(--argus-red-rgb), .18);
}

.argus-block-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: var(--argus-red);
    font: 700 22px/1.15 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
}

.argus-block-message {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #ffe8ec;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.argus-block-sub {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #9a8088;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.argus-block-log {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    color: #c76b7d;
    border: 1px solid rgba(var(--argus-red-rgb), .22);
    background: rgba(0, 0, 0, .35);
    font-size: 11px;
    letter-spacing: .4px;
}

.argus-block-close {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 44px;
    color: #120608;
    border: 1px solid var(--argus-red);
    background: var(--argus-red);
    cursor: pointer;
    font: 700 12px/1 'Orbitron', sans-serif;
    letter-spacing: .8px;
    transition: .22s ease;
}

.argus-block-close:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 22px rgba(var(--argus-red-rgb), .35);
}

@keyframes tvOverlaySnow {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
    8% {
        opacity: .75;
        transform: translate3d(-2%, 1%, 0) scale(1.02);
    }
    18% {
        opacity: .55;
        transform: translate3d(3%, -2%, 0) scale(1.01);
    }
    35% {
        opacity: .28;
        transform: translate3d(-1%, 2%, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes tvSignalFlicker {
    0%, 100% {
        filter: brightness(1) contrast(1) saturate(1);
    }
    6% {
        filter: brightness(1.35) contrast(1.2) saturate(1.1);
    }
    9% {
        filter: brightness(.72) contrast(1.35) saturate(.85);
    }
    14% {
        filter: brightness(1.15) contrast(1.05) saturate(1);
    }
    22% {
        filter: brightness(.88) contrast(1.25) saturate(.9);
    }
    31% {
        filter: brightness(1.08) contrast(1.08) saturate(1);
    }
    48% {
        filter: brightness(.95) contrast(1.12) saturate(.95);
    }
    68% {
        filter: brightness(1.02) contrast(1.02) saturate(1);
    }
}

@keyframes tvRollJitter {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    11% {
        transform: translate3d(0, -5px, 0);
    }
    12% {
        transform: translate3d(0, 9px, 0);
    }
    13% {
        transform: translate3d(0, -7px, 0);
    }
    14% {
        transform: translate3d(0, 4px, 0);
    }
    15% {
        transform: translate3d(0, 0, 0);
    }
    38% {
        transform: translate3d(0, 3px, 0);
    }
    39% {
        transform: translate3d(0, -6px, 0);
    }
    40% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes tvStaticBurst {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    6% {
        opacity: .95;
        transform: translate3d(-4%, 2%, 0);
    }
    12% {
        opacity: .82;
        transform: translate3d(5%, -3%, 0);
    }
    20% {
        opacity: .68;
        transform: translate3d(-3%, 4%, 0);
    }
    32% {
        opacity: .52;
        transform: translate3d(4%, -2%, 0);
    }
    48% {
        opacity: .34;
        transform: translate3d(-2%, 1%, 0);
    }
    68% {
        opacity: .18;
        transform: translate3d(1%, -1%, 0);
    }
    100% {
        opacity: .08;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes tvScanlinesIn {
    0% { opacity: 0; }
    12% { opacity: .55; }
    100% { opacity: .22; }
}

@keyframes tvBeamSweep {
    0% {
        top: -18px;
        opacity: 0;
    }
    8% {
        opacity: .85;
    }
    100% {
        top: calc(100% + 18px);
        opacity: 0;
    }
}

@keyframes tvVignettePulse {
    0% { opacity: 0; }
    20% { opacity: .9; }
    100% { opacity: .55; }
}

@keyframes tvTearBandA {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    10% {
        opacity: .95;
        transform: translate3d(-38px, 0, 0) scaleX(1.04);
    }
    22% {
        opacity: .78;
        transform: translate3d(32px, 1px, 0) scaleX(1.02);
    }
    38% {
        opacity: .52;
        transform: translate3d(-20px, 0, 0);
    }
    58% {
        opacity: .24;
        transform: translate3d(12px, 0, 0);
    }
}

@keyframes tvTearBandB {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    12% {
        opacity: .88;
        transform: translate3d(42px, 0, 0) scaleX(1.06);
    }
    26% {
        opacity: .7;
        transform: translate3d(-36px, -1px, 0);
    }
    44% {
        opacity: .46;
        transform: translate3d(22px, 0, 0);
    }
    64% {
        opacity: .2;
        transform: translate3d(-10px, 0, 0);
    }
}

@keyframes tvTearBandC {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    11% {
        opacity: .92;
        transform: translate3d(-34px, 0, 0) scaleX(1.05);
    }
    24% {
        opacity: .74;
        transform: translate3d(28px, 0, 0);
    }
    42% {
        opacity: .48;
        transform: translate3d(-18px, 0, 0);
    }
    62% {
        opacity: .22;
        transform: translate3d(8px, 0, 0);
    }
}

@keyframes tvTearBandD {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    13% {
        opacity: .86;
        transform: translate3d(36px, 0, 0) scaleX(1.03);
    }
    28% {
        opacity: .66;
        transform: translate3d(-30px, 0, 0);
    }
    46% {
        opacity: .4;
        transform: translate3d(16px, 0, 0);
    }
    66% {
        opacity: .18;
        transform: translate3d(-6px, 0, 0);
    }
}

@keyframes argusInnerSplit {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: none;
    }
    7% {
        transform: translate3d(-14px, 0, 0) scale(1.01) skewX(-1.5deg);
        filter: drop-shadow(5px 0 rgba(var(--argus-red-rgb), .6)) drop-shadow(-5px 0 rgba(var(--argus-cyan-rgb), .5));
    }
    14% {
        transform: translate3d(16px, 0, 0) scale(.994) skewX(1.2deg);
        filter: drop-shadow(-6px 0 rgba(var(--argus-red-rgb), .55)) drop-shadow(6px 0 rgba(var(--argus-cyan-rgb), .45));
    }
    24% {
        transform: translate3d(-10px, 2px, 0) scale(1.008) skewX(-.9deg);
    }
    36% {
        transform: translate3d(9px, -2px, 0) scale(.998) skewX(.7deg);
        filter: drop-shadow(4px 0 rgba(var(--argus-red-rgb), .35)) drop-shadow(-4px 0 rgba(var(--argus-cyan-rgb), .3));
    }
    50% {
        transform: translate3d(-6px, 0, 0) scale(1.002);
    }
    66% {
        transform: translate3d(4px, 0, 0) scale(1);
        filter: none;
    }
    82% {
        transform: translate3d(-2px, 0, 0) scale(1);
    }
}

@keyframes argusShardTop {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: none;
    }
    10% {
        opacity: .92;
        transform: translate3d(-36px, -6px, 0) skewX(-5deg);
        filter: drop-shadow(8px 0 rgba(var(--argus-red-rgb), .75)) drop-shadow(-6px 0 rgba(var(--argus-cyan-rgb), .55));
    }
    24% {
        opacity: .78;
        transform: translate3d(30px, 4px, 0) skewX(4deg);
    }
    40% {
        opacity: .58;
        transform: translate3d(-22px, -2px, 0) skewX(-2.5deg);
    }
    58% {
        opacity: .38;
        transform: translate3d(14px, 0, 0);
    }
    78% {
        opacity: .16;
        transform: translate3d(-4px, 0, 0);
    }
}

@keyframes argusShardMid {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: none;
    }
    12% {
        opacity: .88;
        transform: translate3d(32px, 0, 0) skewY(3deg);
        filter: drop-shadow(-6px 0 rgba(var(--argus-red-rgb), .7)) drop-shadow(6px 0 rgba(var(--argus-cyan-rgb), .5));
    }
    26% {
        opacity: .72;
        transform: translate3d(-26px, 0, 0) skewY(-2.5deg);
    }
    44% {
        opacity: .52;
        transform: translate3d(18px, 0, 0) skewY(1.5deg);
    }
    62% {
        opacity: .3;
        transform: translate3d(-10px, 0, 0);
    }
    82% {
        opacity: .12;
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes argusShardBot {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: none;
    }
    10% {
        opacity: .9;
        transform: translate3d(26px, 16px, 0) skewX(4deg);
        filter: drop-shadow(-5px 0 rgba(var(--argus-red-rgb), .75)) drop-shadow(5px 0 rgba(var(--argus-cyan-rgb), .55));
    }
    24% {
        opacity: .76;
        transform: translate3d(-24px, -10px, 0) skewX(-3deg);
    }
    42% {
        opacity: .55;
        transform: translate3d(14px, 7px, 0) skewX(2deg);
    }
    60% {
        opacity: .34;
        transform: translate3d(-8px, -4px, 0);
    }
    80% {
        opacity: .14;
        transform: translate3d(3px, 2px, 0);
    }
}

@keyframes argusScanFlicker {
    0%, 100% { opacity: .18; }
    8% { opacity: .62; }
    16% { opacity: .1; }
    26% { opacity: .48; }
    38% { opacity: .14; }
    52% { opacity: .4; }
    70% { opacity: .16; }
    86% { opacity: .24; }
}

@media (prefers-reduced-motion: reduce) {
    .argus-block-overlay.active .argus-overlay-snow,
    .argus-block-modal.active,
    .argus-block-modal.active::after,
    .argus-block-modal.active .argus-block-glitch-wrap,
    .argus-block-modal.active .argus-tv-noise,
    .argus-block-modal.active .argus-tv-scanlines,
    .argus-block-modal.active .argus-tv-beam,
    .argus-block-modal.active .argus-tv-tear,
    .argus-block-modal.active .argus-block-inner,
    .argus-block-modal.active .argus-block-glitch-layer,
    .argus-block-modal.active .argus-block-scan {
        animation: none !important;
    }

    .argus-block-modal.active .argus-tv-scanlines {
        opacity: .15;
    }

    .argus-block-modal.active::after {
        opacity: .45;
    }
}

/* --- VOID MESH: PvP stats + contracts (index.html) --- */

.aegis-pvp-mesh {
    padding: 36px 40px 44px;
    border-top: 1px solid var(--aegis-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 0, 85, .06), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(0, 255, 255, .04), transparent 42%),
        rgba(4, 6, 9, .55);
}

.aegis-pvp-mesh .aegis-section-head {
    margin-bottom: 24px;
}

.pvp-mesh-summary {
    font-family: var(--aegis-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 1px;
    color: #ff6699;
    text-transform: uppercase;
}

.pvp-mesh-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 22px;
    align-items: start;
}

.pvp-stats-panel,
.pvp-contracts-panel {
    border: 1px solid var(--aegis-line);
    background: rgba(7, 10, 14, .78);
    padding: 22px;
}

.pvp-stats-panel__title,
.pvp-contracts-panel__title {
    margin: 0 0 16px;
    font-family: var(--aegis-display, 'Orbitron', sans-serif);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--aegis-cyan);
    text-transform: uppercase;
}

.pvp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pvp-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .25);
    text-align: center;
}

.pvp-stat-cell__icon {
    font-size: 16px;
    line-height: 1;
}

.pvp-stat-cell__val {
    font-family: var(--aegis-display, 'Orbitron', sans-serif);
    font-size: 18px;
    color: #fff;
}

.pvp-stat-cell__lbl {
    font-size: 9px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #68717a;
}

.pvp-contracts-intro {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #8b949e;
}

.pvp-contracts-intro a {
    color: var(--aegis-cyan);
    text-decoration: none;
}

.pvp-contracts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.pvp-contract-card {
    border: 1px solid rgba(255, 0, 85, .18);
    background: rgba(255, 0, 85, .03);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.pvp-contract-card--ready {
    border-color: rgba(0, 255, 170, .45);
    box-shadow: 0 0 18px rgba(0, 255, 170, .08);
}

.pvp-contract-card--claimed {
    opacity: .62;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
}

.pvp-contract-card__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pvp-contract-card__icon {
    font-size: 22px;
    line-height: 1;
}

.pvp-contract-card__code {
    display: block;
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #ff6699;
    margin-bottom: 2px;
}

.pvp-contract-card__title {
    margin: 0;
    font-family: var(--aegis-display, 'Orbitron', sans-serif);
    font-size: 13px;
    color: #fff;
    letter-spacing: .5px;
}

.pvp-contract-card__desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #8b949e;
}

.pvp-contract-card__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pvp-contract-card__bar {
    height: 4px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.pvp-contract-card__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #ff6699);
    transition: width .35s ease;
}

.pvp-contract-card--ready .pvp-contract-card__bar i {
    background: linear-gradient(90deg, #00ffaa, #00ffff);
}

.pvp-contract-card__prog-label {
    font-size: 10px;
    color: #68717a;
    font-family: var(--aegis-mono, 'JetBrains Mono', monospace);
}

.pvp-contract-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.pvp-contract-card__reward {
    font-size: 10px;
    color: var(--aegis-gold, #ffd700);
    letter-spacing: .3px;
}

.pvp-contract-badge {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #8b949e;
}

.pvp-contract-badge--paid {
    border-color: rgba(0, 255, 170, .35);
    color: #00ffaa;
}

.pvp-contract-badge--active {
    border-color: rgba(255, 102, 153, .35);
    color: #ff6699;
}

.pvp-contract-claim {
    appearance: none;
    border: 1px solid rgba(0, 255, 170, .55);
    background: rgba(0, 255, 170, .08);
    color: #00ffaa;
    font-family: var(--aegis-display, 'Orbitron', sans-serif);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}

.pvp-contract-claim:hover {
    background: rgba(0, 255, 170, .16);
    box-shadow: 0 0 12px rgba(0, 255, 170, .2);
}

@media (max-width: 960px) {
    .pvp-mesh-grid {
        grid-template-columns: 1fr;
    }

    .pvp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .aegis-pvp-mesh {
        padding: 28px 16px 36px;
    }

    .pvp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pvp-contracts-list {
        grid-template-columns: 1fr;
    }
}
