/* Existing Doom console styles, moved from the previous home page. */

        :root {
            --bg-color: #070a12;
            --panel-color: #030712;
            --panel-border: #1d2f5f;
            --text-color: #dbe7ff;
            --muted-color: #7f8faf;
            --accent-color: #1e8bff;
            --accent-soft: #57b8ff;
            --violet-color: #6d4aff;
            --ok-color: #57b8ff;
            --info-color: #1e8bff;
            --warn-color: #b48cff;
            --fail-color: #ff5f7a;
            --link-color: #57b8ff;
            --shadow-color: rgba(0, 0, 0, 0.62);
            --font-mono: "Fira Code", "JetBrains Mono", "Cascadia Code", "Source Code Pro", Consolas, monospace;
            --base-gap: 8px;
            --silver-ratio: 1.414;
            --golden-ratio: 1.618;
        }

        * {
            box-sizing: border-box;
        }

        html {
            background: var(--bg-color);
            min-width: 320px;
            scroll-behavior: smooth;
            scroll-padding-top: 88px;
        }

        body {
            margin: 0;
            min-width: 320px;
            min-height: 100vh;
            background: radial-gradient(circle at top left, rgba(30, 139, 255, 0.16), transparent 34rem), radial-gradient(circle at bottom right, rgba(109, 74, 255, 0.13), transparent 30rem), linear-gradient(180deg, #070a12 0%, #050713 48%, #03040a 100%);
            color: var(--text-color);
            font-family: var(--font-mono);
            line-height: 1.65;
            overflow-x: hidden;
        }

        a {
            color: var(--link-color);
            text-decoration: none;
        }

        :target {
            scroll-margin-top: 88px;
        }

            a:hover,
            a:focus {
                text-decoration: underline;
            }

        .ai-site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 40;
            background: transparent;
            color: var(--text-color);
            transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
        }

        .ai-site-header.is-solid {
            background: var(--panel-color);
            border-bottom: 1px solid var(--panel-border);
            box-shadow: 0 18px 44px var(--shadow-color);
        }

        .ai-site-header-inner {
            width: min(1040px, calc(100% - 32px));
            min-width: 288px;
            min-height: 68px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .ai-site-brand {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            gap: 8px;
            color: var(--accent-soft);
            font-weight: 700;
            letter-spacing: 0;
        }

        .ai-site-brand-logo {
            width: 24px;
            height: 24px;
            flex: 0 0 auto;
            border-radius: 4px;
        }

        .ai-site-nav-list {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .ai-site-nav-link {
            color: var(--text-color);
            font-size: 0.86rem;
        }

        .ai-site-nav-link:hover,
        .ai-site-nav-link:focus {
            color: var(--accent-soft);
        }

        .ai-site-nav-more {
            position: relative;
        }

        .ai-site-nav-summary {
            color: var(--text-color);
            font-size: 0.86rem;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .ai-site-nav-summary::-webkit-details-marker {
            display: none;
        }

        .ai-site-nav-summary::after {
            content: " +";
            color: var(--muted-color);
        }

        .ai-site-nav-more[open] .ai-site-nav-summary,
        .ai-site-nav-summary:hover,
        .ai-site-nav-summary:focus {
            color: var(--accent-soft);
        }

        .ai-site-nav-more-list {
            position: absolute;
            top: calc(100% + 14px);
            right: 0;
            z-index: 80;
            display: grid;
            grid-template-columns: minmax(150px, max-content);
            gap: 2px;
            min-width: 190px;
            margin: 0;
            padding: 10px;
            list-style: none;
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            background: var(--panel-color);
            box-shadow: 0 18px 44px var(--shadow-color);
        }

        .ai-site-nav-more-list .ai-site-nav-link {
            display: block;
            padding: 6px 8px;
            white-space: nowrap;
        }

        .ai-site-menu-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            background: transparent;
            color: var(--accent-soft);
            font: inherit;
            cursor: pointer;
        }

        .ai-site-seo-title {
            position: absolute;
            top: 104px;
            left: 0;
            right: 0;
            z-index: 0;
            margin: 0;
            color: transparent;
            opacity: 0;
            pointer-events: none;
        }

        #ai-site-boot-sentinel {
            position: absolute;
            top: 0;
            left: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }

        .page {
            width: min(1040px, calc(100% - 32px));
            min-width: 288px;
            margin: 0 auto;
            padding: 92px 0 28px;
        }

        .hero {
            box-sizing: border-box;
            width: 100%;
            margin: 0 auto 12px;
            padding: 10px 18px 10px;
            border: 1px solid rgba(125, 211, 252, 0.16);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(11, 19, 38, 0.82), rgba(5, 10, 22, 0.74)),
                radial-gradient(circle at 50% 0%, rgba(87, 184, 255, 0.12), transparent 54%);
            box-shadow: 0 24px 64px var(--shadow-color);
        }

        .hero-topline {
            display: grid;
            grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.618fr);
            align-items: center;
            gap: clamp(14px, 2.8vw, 34px);
            margin-bottom: 6px;
        }

        .hero-brand-panel {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            min-width: 0;
        }

        .hero-status-panel {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            gap: calc(var(--base-gap) * var(--silver-ratio));
            min-width: 0;
        }

        .hero-tagline {
            margin-top: 6px;
            color: var(--accent-soft);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            animation: heroTaglineFade 520ms ease-out 120ms both;
        }

        .logo {
            width: min(310px, 100%);
            height: auto;
            filter: drop-shadow(0 0 20px rgba(30, 139, 255, 0.22));
        }

        .eyebrow {
            display: inline-block;
            padding: 4px 10px;
            border: 1px solid rgba(87, 184, 255, 0.48);
            border-radius: 999px;
            background: rgba(30, 139, 255, 0.06);
            color: var(--accent-soft);
            font-size: 0.78rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .hero-badges {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            column-gap: calc(var(--base-gap) * var(--golden-ratio));
            row-gap: 6px;
            margin-inline: auto;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(125, 211, 252, 0.24);
        }

            .hero-badges a {
                display: inline-flex;
                line-height: 0;
                border-radius: 4px;
                transition: transform 180ms ease, filter 180ms ease;
            }

                .hero-badges a:hover,
                .hero-badges a:focus-visible {
                    transform: translateY(-1px);
                    filter: brightness(1.12);
                }

            .hero-badges img {
                display: block;
                height: 24px;
                max-width: 100%;
            }

        h1 {
            margin: 0;
            color: var(--accent-color);
            font-size: clamp(1.65rem, 4vw, 3rem);
            line-height: 1.25;
            letter-spacing: -0.03em;
            text-shadow: 0 0 22px rgba(30, 139, 255, 0.18);
        }

        .hero-title {
            margin: 0;
            color: var(--accent-color);
            font-size: clamp(1.65rem, 4vw, 3rem);
            line-height: 1.16;
            letter-spacing: 0;
        }

        .hero-title-main,
        .hero-title-sub {
            display: block;
        }

        .hero-title-sub {
            margin-top: 0.35rem;
            font-size: clamp(1.15rem, 2.6vw, 2rem);
            color: var(--accent-soft);
        }

        .hero .hero-title-sub,
        .hero .issued-badge,
        .hero .subtitle {
            display: none;
        }

        .subtitle {
            margin: 14px auto 0;
            max-width: 650px;
            color: var(--text-color);
            font-size: clamp(0.92rem, 1.8vw, 1.02rem);
        }

        .subtitle-ja {
            margin-top: 6px;
            color: #b8c9e8;
        }

        .hero-crawl-scene {
            position: relative;
            height: min(16vh, 145px);
            min-height: 112px;
            margin: 8px auto 0;
            overflow: hidden;
            border: 1px solid rgba(219, 231, 255, 0.12);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(3, 7, 18, 0.62), rgba(3, 7, 18, 0.22));
            clip-path: inset(0 round 8px);
            contain: paint;
            isolation: isolate;
        }

        .hero-crawl-viewport {
            position: absolute;
            inset: 0;
            display: none;
            overflow: hidden;
            overflow: clip;
            border-radius: 8px;
            clip-path: inset(0 round 8px);
            perspective: 1400px;
            perspective-origin: 50% 70%;
        }

        .hero-crawl-canvas {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: block;
            width: 100%;
            height: 100%;
        }

        .hero-crawl-noscript {
            display: grid;
            min-height: 100%;
            place-content: center;
            gap: 0.8rem;
            padding: 24px;
            color: #f6d36b;
            font-size: clamp(1.45rem, 3vw, 2.4rem);
            line-height: 1.25;
            text-align: center;
            text-shadow: 0 0 18px rgba(246, 211, 107, 0.18);
        }

            .hero-crawl-noscript strong {
                color: #ffe796;
                font-size: clamp(1.8rem, 3.8vw, 3rem);
                letter-spacing: 0;
                text-transform: uppercase;
            }

            .hero-crawl-scene::before,
            .hero-crawl-scene::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                z-index: 2;
                height: 42px;
                pointer-events: none;
            }

            .hero-crawl-scene::before {
                top: 0;
                background: linear-gradient(180deg, rgba(5, 10, 22, 0.95), transparent);
            }

            .hero-crawl-scene::after {
                bottom: 0;
                background:
                    linear-gradient(0deg, rgba(30, 139, 255, 0.13), transparent 58%),
                    linear-gradient(0deg, rgba(5, 10, 22, 0.95), transparent);
            }

        .hero-crawl-track {
            position: absolute;
            top: 100%;
            left: 3%;
            right: 3%;
            color: #f6d36b;
            font-size: clamp(2.85rem, 5.8vw, 5rem);
            line-height: 1.2;
            text-align: center;
            text-shadow: 0 0 18px rgba(246, 211, 107, 0.18);
            transform: rotateX(4deg) translateY(0);
            transform-origin: 50% 0%;
            transform-style: preserve-3d;
            animation: heroCrawl 150s linear infinite;
            will-change: transform, opacity;
        }

            .hero-crawl-track p {
                margin: 0 0 1.2rem;
            }

            .hero-crawl-track strong {
                display: block;
                color: #ffe796;
                font-size: clamp(3.25rem, 6.4vw, 5.45rem);
                letter-spacing: 0;
                text-transform: uppercase;
            }

        @keyframes heroCrawl {
            0% {
                opacity: 0;
                transform: rotateX(4deg) translateY(0);
            }

            8% {
                opacity: 1;
            }

            88% {
                opacity: 1;
            }

            100% {
                opacity: 0;
                transform: rotateX(4deg) translateY(calc(-100% - 180px));
            }
        }

        @keyframes heroTaglineFade {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .link-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            min-width: 136px;
            padding: 0.58em 0.86em;
            border: 1px solid rgba(87, 184, 255, 0.42);
            border-radius: 6px;
            background: rgba(30, 139, 255, 0.07);
            color: var(--accent-soft);
            font-size: clamp(0.92rem, 1.75vw, 1.02rem);
            transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
        }

            .link-button:hover,
            .link-button:focus {
                background: rgba(109, 74, 255, 0.12);
                border-color: rgba(109, 74, 255, 0.62);
                text-decoration: none;
                transform: translateY(-1px);
            }

        .hero-version-rule {
            max-width: 980px;
            margin: 6px auto 0;
            color: #a7b3c6;
            font-size: clamp(0.78rem, 1.35vw, 0.88rem);
            line-height: 1.3;
            text-align: center;
        }

            .hero-version-rule strong {
                color: var(--accent-soft);
            }

        .announcement {
            margin: 1.5rem auto 2rem;
            padding: 1rem 1.2rem;
            background: rgba(30, 41, 59, 0.88);
            border: 1px solid rgba(59, 130, 246, 0.34);
            border-left: 4px solid #3b82f6;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.4);
            color: #e2e8f0;
            font-size: 0.95rem;
            line-height: 1.55;
            animation: fadeIn 1.8s ease-in;
        }

            .announcement p {
                margin: 0.55rem 0;
            }

            .announcement strong {
                display: block;
                margin-top: 0.95rem;
                color: #ffe796;
                font-size: 0.84rem;
                letter-spacing: 0;
                text-transform: uppercase;
            }

            .announcement p:first-child {
                margin-top: 0;
            }

            .announcement p:last-child {
                margin-bottom: 0;
            }

        .announcement-label {
            color: #93c5fd;
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .console {
            position: relative;
            background: linear-gradient(180deg, #0b0f1a 0%, #0a0c16 100%);
            border: 1px solid var(--panel-border);
            border-radius: 10px;
            box-shadow: 0 24px 64px var(--shadow-color);
            overflow: hidden;
            animation: fadeInUp 1.2s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .console-titlebar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            border-bottom: 1px solid rgba(219, 231, 255, 0.12);
            background: linear-gradient( 180deg, rgba(87, 184, 255, 0.08), rgba(109, 74, 255, 0.025) );
            color: var(--muted-color);
            font-size: 0.82rem;
        }

        .console-version {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
            padding: 3px 8px;
            border: 1px solid rgba(87, 184, 255, 0.36);
            border-radius: 999px;
            background: rgba(30, 139, 255, 0.08);
            color: #c8eaff;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            line-height: 1.15;
            white-space: nowrap;
        }

            .console-version small {
                color: rgba(200, 234, 255, 0.68);
                font-size: 0.68rem;
                font-weight: 600;
            }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #586069;
            flex: 0 0 auto;
        }

            .dot.red {
                background: var(--fail-color);
            }

            .dot.yellow {
                background: var(--warn-color);
            }

            .dot.green {
                background: var(--accent-soft);
            }

        .console-name {
            margin-left: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .console-body {
            position: relative;
            display: grid;
            grid-template-rows: minmax(220px, 1fr) auto auto auto auto auto;
            gap: 10px;
            min-height: 500px;
            max-height: min(760px, calc(100vh - 72px));
            padding: 18px;
            overflow: hidden;
        }

        #doom-demo #output {
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 10px 12px;
            border: 1px solid rgba(87, 184, 255, 0.16);
            border-radius: 8px;
            background: rgba(3, 7, 18, 0.34);
            scrollbar-width: thin;
        }

        .console-body.is-doom-running {
            grid-template-rows: minmax(72px, 92px) auto auto;
            gap: 8px;
            min-height: 0;
            max-height: none;
            overflow: visible;
        }

            .console-body.is-doom-running #output {
                min-height: 72px;
                max-height: 92px;
                padding: 8px 10px;
                font-size: 0.78rem;
            }

            .console-body.is-doom-running .prompt-form,
            .console-body.is-doom-running .runtime-status,
            .console-body.is-doom-running .halted-message,
            .console-body.is-doom-running .prompt-legal,
            .console-body.is-doom-running .doom-approval-actions {
                display: none;
            }

            .console-body.is-doom-running .doom-screen-panel,
            .console-body.is-doom-running .doom-debug-bar {
                margin-top: 0;
            }

            .console-body.is-doom-running .doom-screen-panel {
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }

            .console-body.is-doom-running .doom-screen-toolbar {
                min-height: 0;
                font-size: 0.76rem;
                line-height: 1.12;
            }

            .console-body.is-doom-running #doom-container {
                box-sizing: border-box;
                min-width: 0;
                width: 100%;
                max-width: 100%;
                gap: 12px;
                align-items: stretch;
            }

            .console-body.is-doom-running .doom-screen-wrap {
                width: auto;
                min-width: 0;
                max-width: calc(100% - 144px);
                flex: 1 1 auto;
            }

        .line {
            margin: 0 0 8px;
            font-size: 0.94rem;
            word-break: break-word;
            opacity: 0;
            transform: translateY(5px);
            animation: showLine 120ms forwards;
        }

        @keyframes showLine {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .log-ok {
            color: var(--ok-color);
        }

        .log-info {
            color: var(--info-color);
        }

        .log-warn {
            color: var(--warn-color);
        }

        .log-fail {
            color: var(--fail-color);
        }

        .log-muted {
            color: var(--muted-color);
        }

        .divider {
            color: #30415f;
            margin: 18px 0;
            overflow: hidden;
            white-space: nowrap;
        }

        .prompt-form {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 0;
            padding: 10px 12px;
            border: 1px solid rgba(87, 184, 255, 0.22);
            border-radius: 8px;
            background: rgba(3, 7, 18, 0.48);
        }

        .prompt-label {
            flex: 0 0 auto;
            color: var(--accent-soft);
            font-weight: 700;
            white-space: nowrap;
        }

        .prompt-input {
            min-width: 0;
            flex: 1 1 auto;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--text-color);
            font: inherit;
        }

            .prompt-input::placeholder {
                color: var(--muted-color);
            }

            .prompt-input:disabled {
                cursor: wait;
                opacity: 0.62;
            }

        .prompt-submit {
            flex: 0 0 auto;
            padding: 0.45rem 0.72rem;
            border: 1px solid rgba(87, 184, 255, 0.42);
            border-radius: 6px;
            background: rgba(30, 139, 255, 0.1);
            color: var(--accent-soft);
            font: inherit;
            cursor: pointer;
        }

            .prompt-submit:disabled {
                cursor: wait;
                opacity: 0.55;
            }

        .runtime-status {
            margin-top: 6px;
            color: var(--muted-color);
            font-size: 0.78rem;
            overflow-wrap: anywhere;
        }

            .runtime-status[hidden] {
                display: none !important;
            }

            .runtime-status strong {
                color: var(--accent-soft);
                font-weight: 700;
            }

        .prompt-legal {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
            align-items: flex-start;
            justify-content: flex-start;
            margin-top: 0;
            color: var(--muted-color);
            font-size: 0.8rem;
            line-height: 1.32;
            text-align: left;
        }

            .prompt-legal a {
                color: var(--accent-soft);
                text-decoration: none;
                border-bottom: 1px solid rgba(87, 184, 255, 0.45);
            }

                .prompt-legal a:hover,
                .prompt-legal a:focus-visible {
                    color: var(--text-color);
                    border-bottom-color: var(--text-color);
                }

        .doom-approval-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-top: 0;
            min-height: 42px;
            opacity: 1;
            visibility: visible;
            transition: opacity 120ms ease;
        }

        .doom-approval-actions.is-collapsed {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .doom-approval-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 0.5rem 0.85rem;
            border: 1px solid rgba(87, 184, 255, 0.54);
            border-radius: 6px;
            background: rgba(30, 139, 255, 0.16);
            color: var(--accent-soft);
            font: inherit;
            font-size: 0.86rem;
            font-weight: 700;
            cursor: pointer;
        }

            .doom-approval-button:hover,
            .doom-approval-button:focus-visible {
                border-color: var(--text-color);
                color: var(--text-color);
                outline: none;
            }

            .doom-approval-button:disabled {
                cursor: wait;
                opacity: 0.58;
            }

        .doom-approval-button.is-secondary {
            border-color: rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.55);
            color: var(--muted-color);
        }

        .doom-screen-panel {
            display: grid;
            gap: 8px;
            margin-top: 18px;
        }

            .doom-screen-panel[hidden] {
                display: none;
            }

        .doom-screen-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--muted-color);
            font-size: 0.84rem;
        }

        #doom-container {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 20px;
        }

        .doom-screen-wrap {
            width: min(100%, 640px);
            flex: 1 1 640px;
            aspect-ratio: 16 / 10;
            border: 1px solid rgba(87, 184, 255, 0.28);
            border-radius: 8px;
            overflow: hidden;
            background: #000;
            box-shadow: 0 0 28px rgba(87, 184, 255, 0.12);
            position: relative;
        }

        #doom-debug-overlay {
            position: absolute;
            inset: 0;
            display: none;
            pointer-events: none;
            opacity: 0.95;
        }

            #doom-debug-overlay.is-visible {
                display: block;
            }

            #doom-debug-overlay .debug-region {
                position: absolute;
                border: 1px solid rgba(255, 64, 64, 0.82);
                background: rgba(255, 64, 64, 0.035);
                box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
                overflow: hidden;
                --debug-color: 255, 76, 76;
                --debug-label-bg: rgba(90, 16, 18, 0.86);
                --debug-label-border: rgba(255, 76, 76, 0.86);
                color: #fff;
                font: 600 10px/1.15 ui-monospace, SFMono-Regular, Consolas, monospace;
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
            }

                #doom-debug-overlay .debug-region.is-vision {
                    border-color: rgba(255, 76, 76, 0.78);
                    background: rgba(255, 76, 76, 0.045);
                    --debug-color: 255, 76, 76;
                    --debug-label-bg: rgba(88, 16, 18, 0.86);
                    --debug-label-border: rgba(255, 76, 76, 0.88);
                }

                #doom-debug-overlay .debug-region.is-gap {
                    border-color: rgba(80, 255, 140, 0.82);
                    background: rgba(80, 255, 140, 0.055);
                    --debug-color: 80, 255, 140;
                    --debug-label-bg: rgba(4, 74, 34, 0.88);
                    --debug-label-border: rgba(80, 255, 140, 0.9);
                }

                #doom-debug-overlay .debug-region.is-foot {
                    border-color: rgba(255, 220, 64, 0.95);
                    background: rgba(255, 220, 64, 0.08);
                    --debug-color: 255, 220, 64;
                    --debug-label-bg: rgba(86, 66, 6, 0.9);
                    --debug-label-border: rgba(255, 220, 64, 0.94);
                }

                #doom-debug-overlay .debug-region.is-computer {
                    border-color: rgba(64, 160, 255, 0.95);
                    background: rgba(64, 160, 255, 0.06);
                    --debug-color: 64, 160, 255;
                    --debug-label-bg: rgba(7, 42, 92, 0.9);
                    --debug-label-border: rgba(64, 160, 255, 0.94);
                }

                #doom-debug-overlay .debug-region.is-door {
                    border-color: rgba(255, 76, 76, 0.95);
                    background: rgba(255, 76, 76, 0.055);
                    --debug-color: 255, 76, 76;
                    --debug-label-bg: rgba(92, 14, 14, 0.92);
                    --debug-label-border: rgba(255, 76, 76, 0.96);
                }

                #doom-debug-overlay .debug-region.is-door-candidate {
                    border-width: 3px;
                    box-shadow:
                        0 0 18px rgba(255, 76, 76, 0.82),
                        inset 0 0 20px rgba(255, 76, 76, 0.2);
                }

                #doom-debug-overlay .debug-region.is-vision-heat {
                    z-index: 1;
                    border-color: rgba(255, 76, 76, var(--heat-border-alpha, 0.18));
                    background: rgba(255, 76, 76, var(--heat-alpha, 0.08));
                    --debug-color: 255, 76, 76;
                    --debug-label-bg: rgba(92, 14, 14, 0.78);
                    --debug-label-border: rgba(255, 76, 76, 0.5);
                    box-shadow: inset 0 0 8px rgba(255, 76, 76, calc(var(--heat-alpha, 0.08) * 1.4));
                }

                #doom-debug-overlay .debug-region.is-wall {
                    border-color: rgba(255, 220, 64, 0.96);
                    background: rgba(255, 220, 64, 0.075);
                    --debug-color: 255, 220, 64;
                    --debug-label-bg: rgba(86, 66, 6, 0.94);
                    --debug-label-border: rgba(255, 220, 64, 0.96);
                }

                #doom-debug-overlay .debug-region.is-corner-candidate {
                    border-style: dashed;
                    box-shadow:
                        0 0 18px rgba(255, 220, 64, 0.72),
                        inset 0 0 16px rgba(255, 220, 64, 0.16);
                }

                #doom-debug-overlay .debug-region.is-kairos-pulse {
                    z-index: 8;
                    border-color: rgba(255, 255, 150, 0.96);
                    background: rgba(255, 236, 80, 0.08);
                    --debug-color: 255, 240, 96;
                    --debug-label-bg: rgba(80, 70, 8, 0.9);
                    --debug-label-border: rgba(255, 255, 150, 0.96);
                    animation: doomKairosPulse 420ms ease-in-out infinite alternate;
                }

                #doom-debug-overlay .debug-region.is-enemy {
                    border-color: rgba(220, 96, 255, 0.95);
                    background: rgba(220, 96, 255, 0.08);
                    --debug-color: 220, 96, 255;
                    --debug-label-bg: rgba(68, 20, 90, 0.92);
                    --debug-label-border: rgba(220, 96, 255, 0.96);
                }

                #doom-debug-overlay .debug-region.is-hud {
                    border-color: rgba(210, 210, 220, 0.88);
                    background: rgba(210, 210, 220, 0.08);
                    --debug-color: 210, 210, 220;
                    --debug-label-bg: rgba(40, 42, 50, 0.92);
                    --debug-label-border: rgba(230, 230, 238, 0.9);
                }

                #doom-debug-overlay .debug-region.is-spatial {
                    border-color: rgba(255, 220, 88, 0.95);
                    background: rgba(255, 140, 40, 0.14);
                    --debug-color: 255, 220, 88;
                    --debug-label-bg: rgba(84, 52, 8, 0.94);
                    --debug-label-border: rgba(255, 230, 120, 0.96);
                    box-shadow: 0 0 18px rgba(255, 180, 64, 0.32);
                }

                #doom-debug-overlay .debug-region.is-health {
                    border-color: rgba(255, 80, 96, 0.96);
                    background: rgba(150, 12, 24, 0.2);
                    --debug-color: 255, 96, 112;
                    --debug-label-bg: rgba(70, 8, 16, 0.94);
                    --debug-label-border: rgba(255, 124, 136, 0.96);
                    box-shadow: 0 0 20px rgba(255, 80, 96, 0.42);
                }

                #doom-debug-overlay .debug-region.is-objective {
                    z-index: 4;
                    border: 2px solid rgba(102, 255, 126, 0.98);
                    background: linear-gradient(135deg, rgba(8, 62, 22, 0.62), rgba(8, 18, 10, 0.38));
                    --debug-color: 102, 255, 126;
                    --debug-label-bg: rgba(9, 82, 28, 0.94);
                    --debug-label-border: rgba(148, 255, 156, 0.98);
                    box-shadow:
                        0 0 24px rgba(102, 255, 126, 0.68),
                        inset 0 0 22px rgba(102, 255, 126, 0.18);
                }

                #doom-debug-overlay .debug-region.is-objective .debug-region-label {
                    margin: 6px;
                    padding: 4px 8px;
                    color: #ccffd0;
                    font-size: 16px;
                    line-height: 1.05;
                    text-transform: uppercase;
                    white-space: normal;
                    text-align: center;
                    text-shadow: 0 0 8px rgba(102, 255, 126, 0.9), 0 2px 3px rgba(0, 0, 0, 0.95);
                }

                #doom-debug-overlay .debug-region.is-target-card {
                    z-index: 5;
                    border-width: 2px;
                    box-shadow:
                        0 0 24px rgba(220, 96, 255, 0.78),
                        inset 0 0 18px rgba(220, 96, 255, 0.22);
                }

                #doom-debug-overlay .debug-region.is-enemy-ring {
                    z-index: 6;
                    border: 3px solid rgba(220, 96, 255, 1);
                    border-radius: 999px;
                    background: radial-gradient(circle, rgba(220, 96, 255, 0.08), rgba(220, 96, 255, 0.02) 58%, transparent 62%);
                    --debug-color: 220, 96, 255;
                    --debug-label-bg: rgba(68, 20, 90, 0.92);
                    --debug-label-border: rgba(220, 96, 255, 0.96);
                    box-shadow:
                        0 0 12px rgba(220, 96, 255, 0.95),
                        0 0 28px rgba(220, 96, 255, 0.72),
                        inset 0 0 18px rgba(220, 96, 255, 0.28);
                    animation: doomTargetLock 520ms ease-in-out infinite alternate;
                }

                #doom-debug-overlay .debug-region.is-detected {
                    border-width: 2px;
                    background: rgba(var(--debug-color), 0.13);
                    box-shadow:
                        0 0 16px rgba(var(--debug-color), 0.62),
                        inset 0 0 18px rgba(var(--debug-color), 0.18);
                    animation: doomDetectionPulse 780ms ease-in-out infinite alternate;
                }

                #doom-debug-overlay .debug-region.priority-low {
                    opacity: 0.46;
                    border-width: 1px;
                    background: rgba(var(--debug-color), 0.045);
                    box-shadow:
                        0 0 8px rgba(var(--debug-color), 0.22),
                        inset 0 0 10px rgba(var(--debug-color), 0.08);
                    animation: none;
                }

                #doom-debug-overlay .debug-region.priority-mid {
                    opacity: 0.76;
                    border-width: 2px;
                    background: rgba(var(--debug-color), 0.09);
                    box-shadow:
                        0 0 14px rgba(var(--debug-color), 0.48),
                        inset 0 0 16px rgba(var(--debug-color), 0.16);
                }

                #doom-debug-overlay .debug-region.priority-high {
                    opacity: 1;
                    z-index: 5;
                    border-width: 2px;
                    background: rgba(var(--debug-color), 0.17);
                    box-shadow:
                        0 0 22px rgba(var(--debug-color), 0.82),
                        0 0 42px rgba(var(--debug-color), 0.34),
                        inset 0 0 22px rgba(var(--debug-color), 0.22);
                }

                #doom-debug-overlay .debug-region.priority-high .debug-region-label {
                    box-shadow:
                        0 0 12px rgba(var(--debug-color), 0.72),
                        0 2px 8px rgba(0, 0, 0, 0.72);
                }

                #doom-debug-overlay .debug-probe-arrow {
                    position: absolute;
                    left: 48%;
                    top: 68%;
                    z-index: 9;
                    width: 44px;
                    height: 44px;
                    border: 2px solid rgba(255, 255, 150, 0.92);
                    border-radius: 999px;
                    background: rgba(20, 24, 8, 0.55);
                    color: #fff6a8;
                    font: 900 32px/40px ui-monospace, Consolas, monospace;
                    text-align: center;
                    text-shadow: 0 0 8px rgba(255, 255, 150, 0.9), 0 2px 2px #000;
                    box-shadow:
                        0 0 16px rgba(255, 238, 90, 0.58),
                        inset 0 0 12px rgba(255, 238, 90, 0.2);
                    pointer-events: none;
                    animation: doomKairosPulse 420ms ease-in-out infinite alternate;
                }

                #doom-debug-overlay .debug-probe-arrow.is-left {
                    transform: translate(-84%, -50%);
                }

                #doom-debug-overlay .debug-probe-arrow.is-right {
                    transform: translate(42%, -50%);
                }

                #doom-debug-overlay .debug-probe-arrow.is-none {
                    transform: translate(-50%, -50%);
                }

                #doom-debug-overlay .debug-region-label {
                    display: inline-block;
                    max-width: 100%;
                    margin: 2px;
                    padding: 2px 4px;
                    border-radius: 4px;
                    border: 1px solid var(--debug-label-border);
                    background: var(--debug-label-bg);
                    box-shadow: 0 0 8px rgba(var(--debug-color), 0.28);
                    white-space: pre-line;
                }

                #doom-debug-overlay .debug-region[data-label-slot="1"] .debug-region-label {
                    margin-top: 15px;
                }

                #doom-debug-overlay .debug-region[data-label-slot="2"] .debug-region-label {
                    margin-top: 28px;
                }

                #doom-debug-overlay .debug-region[data-label-slot="3"] .debug-region-label {
                    margin-top: 41px;
                }

        @keyframes doomDetectionPulse {
            from {
                opacity: 0.72;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes doomTargetLock {
            from {
                transform: scale(0.94);
                opacity: 0.72;
            }

            to {
                transform: scale(1.06);
                opacity: 1;
            }
        }

        @keyframes doomKairosPulse {
            from {
                opacity: 0.48;
                filter: brightness(0.92);
            }

            to {
                opacity: 1;
                filter: brightness(1.24);
            }
        }

        @keyframes doomCompassUncertainSpin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .doom-debug-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            margin: 12px 0 0;
        }

            .doom-debug-bar[hidden] {
                display: none !important;
            }

        .doom-debug-help {
            flex: 1 0 100%;
            color: var(--muted-color);
            font-size: 0.78rem;
            line-height: 1.45;
        }

        .doom-debug-actions,
        .doom-detection-toggles {
            display: flex;
            flex: 1 0 100%;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .doom-sensor-toggles {
            display: grid;
            flex: 1 0 100%;
            grid-template-columns: minmax(126px, 0.92fr) 18px minmax(126px, 0.9fr) 18px minmax(118px, 0.76fr) 18px minmax(126px, 0.9fr) 18px minmax(118px, 0.78fr);
            gap: 6px;
            align-items: stretch;
            margin-top: 2px;
        }

        .doom-sensor-node {
            --sensor-node-color: 87, 184, 255;
            min-width: 0;
            position: relative;
            border: 1px solid rgba(var(--sensor-node-color), 0.28);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(var(--sensor-node-color), 0.13), rgba(7, 12, 20, 0.48));
            padding: 6px 6px 6px 9px;
            overflow: hidden;
        }

        .doom-sensor-node::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 3px;
            background: rgba(var(--sensor-node-color), 0.84);
        }

        .doom-sensor-node.is-sense {
            --sensor-node-color: 85, 190, 255;
        }

        .doom-sensor-node.is-motion {
            --sensor-node-color: 255, 190, 92;
        }

        .doom-sensor-node.is-heading {
            --sensor-node-color: 128, 156, 255;
            min-height: 112px;
        }

        .doom-sensor-node.is-space {
            --sensor-node-color: 82, 218, 160;
        }

        .doom-sensor-node.is-life {
            --sensor-node-color: 255, 112, 122;
        }

        .doom-sensor-node-label {
            display: block;
            margin: 0 0 5px;
            color: rgba(var(--sensor-node-color), 0.92);
            font-size: 0.66rem;
            font-weight: 900;
            line-height: 1;
            text-shadow: 0 0 9px rgba(var(--sensor-node-color), 0.32);
        }

        .doom-sensor-node-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .doom-sensor-link {
            align-self: center;
            color: rgba(185, 212, 235, 0.54);
            font-size: 0.92rem;
            font-weight: 900;
            text-align: center;
        }

        @media (max-width: 1080px) {
            .doom-sensor-toggles {
                grid-template-columns: 1fr;
            }

            .doom-sensor-link {
                transform: rotate(90deg);
            }
        }

        .doom-detection-label {
            color: var(--accent-soft);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0;
        }

            .doom-debug-bar button {
                min-height: 34px;
                border: 1px solid rgba(87, 184, 255, 0.32);
                border-radius: 6px;
                background: rgba(30, 139, 255, 0.12);
                color: var(--text-color);
                font: inherit;
                font-size: 0.82rem;
                cursor: pointer;
            }

                .doom-debug-bar button.doom-debug-switch {
                    min-width: 154px;
                    border-color: rgba(126, 141, 160, 0.42);
                    background: linear-gradient(90deg, rgba(22, 29, 40, 0.78), rgba(30, 139, 255, 0.08));
                    color: rgba(210, 220, 238, 0.86);
                    text-align: left;
                }

                    .doom-debug-bar button.doom-audio-switch {
                        min-width: 118px;
                        margin-left: auto;
                    }

                    .doom-debug-bar button.doom-sensor-switch {
                        --sensor-color: 87, 184, 255;
                        min-width: 0;
                        min-height: 52px;
                        flex: 1 1 112px;
                        display: grid;
                        grid-template-columns: auto minmax(0, 1fr);
                        grid-template-rows: auto auto;
                        align-items: center;
                        column-gap: 7px;
                        row-gap: 1px;
                        padding: 7px 8px;
                        border-color: rgba(var(--sensor-color), 0.42);
                        background: linear-gradient(90deg, rgba(var(--sensor-color), 0.15), rgba(7, 12, 20, 0.58));
                        white-space: normal;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="visual"] {
                        --sensor-color: 85, 190, 255;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="audio"] {
                        --sensor-color: 66, 226, 211;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="motor"] {
                        --sensor-color: 255, 190, 92;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="movement"] {
                        --sensor-color: 255, 144, 88;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] {
                        --sensor-color: 128, 156, 255;
                        min-height: 118px;
                        align-items: start;
                        grid-template-rows: auto auto auto;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="spatial"] {
                        --sensor-color: 82, 218, 160;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="health"] {
                        --sensor-color: 255, 112, 122;
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-title {
                        min-width: 0;
                        color: rgb(232, 240, 252);
                        font-size: 0.8rem;
                        font-weight: 900;
                        line-height: 1.1;
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-signal {
                        min-width: 0;
                        color: rgba(207, 221, 238, 0.7);
                        font-size: 0.66rem;
                        font-weight: 700;
                        line-height: 1.18;
                    }

                    .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] .sensor-signal {
                        grid-column: 1 / -1;
                        grid-row: 3;
                        white-space: pre-line;
                        font-size: 0.61rem;
                        line-height: 1.16;
                    }

        .console-body.is-doom-running .doom-debug-bar {
            gap: 6px;
        }

            .console-body.is-doom-running .doom-debug-help {
                display: none;
            }

            .console-body.is-doom-running .doom-debug-actions,
            .console-body.is-doom-running .doom-detection-toggles {
                gap: 6px;
            }

            .console-body.is-doom-running .doom-sensor-toggles {
                gap: 6px;
                grid-template-columns: minmax(116px, 0.96fr) 14px minmax(116px, 0.92fr) 14px minmax(152px, 1.04fr) 14px minmax(112px, 0.88fr) 14px minmax(96px, 0.74fr);
                margin-top: 0;
                min-height: 0;
                align-items: start;
            }

            .console-body.is-doom-running .doom-sensor-node {
                padding: 7px 8px 7px 10px;
            }

            .console-body.is-doom-running .doom-sensor-node.is-heading {
                min-height: 0;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch {
                min-height: 40px;
                padding: 0.36rem 0.48rem;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] {
                min-height: 188px;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch .sensor-title {
                font-size: 0.72rem;
                line-height: 1.02;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch .sensor-signal {
                font-size: 0.58rem;
                line-height: 1.05;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] .sensor-signal {
                grid-column: 1 / -1;
                grid-row: 3;
                display: block;
                overflow: visible;
                font-size: 0.56rem;
                line-height: 1.1;
                white-space: pre-line;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"]::before {
                grid-row: 1;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] .sensor-title {
                grid-column: 2;
                grid-row: 1;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch .sensor-compass-needle {
                grid-row: 2;
                min-height: 19px;
                margin-top: 2px;
                padding: 2px 5px;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch .sensor-compass-arrow {
                width: 18px;
                height: 18px;
                font-size: 17px;
                line-height: 17px;
            }

            .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch .sensor-compass-readout {
                overflow: visible;
                text-overflow: clip;
                font-size: 0.56rem;
                line-height: 1.04;
                overflow-wrap: anywhere;
                white-space: normal;
            }

                    .doom-debug-bar button.doom-sensor-switch .sensor-compass-needle {
                        grid-column: 1 / -1;
                        grid-row: 2;
                        display: flex;
                        align-items: center;
                        gap: 7px;
                        min-height: 22px;
                        margin-top: 3px;
                        padding: 3px 6px;
                        border-radius: 999px;
                        border: 1px solid rgba(var(--sensor-color), 0.34);
                        background: radial-gradient(circle at 12px 50%, rgba(var(--sensor-color), 0.22), rgba(5, 10, 18, 0.42) 70%);
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-compass-needle.is-uncertain {
                        border-color: rgba(255, 204, 102, 0.48);
                        background: radial-gradient(circle at 12px 50%, rgba(255, 204, 102, 0.18), rgba(5, 10, 18, 0.48) 70%);
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-compass-arrow {
                        display: inline-block;
                        width: 22px;
                        height: 22px;
                        color: rgb(232, 240, 252);
                        font: 900 20px/20px ui-monospace, Consolas, monospace;
                        text-align: center;
                        text-shadow: 0 0 8px rgba(var(--sensor-color), 0.82);
                        transform: rotate(var(--compass-needle-angle, -90deg));
                        transform-origin: 50% 50%;
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-compass-needle.is-uncertain .sensor-compass-arrow {
                        color: rgb(255, 214, 133);
                        text-shadow: 0 0 10px rgba(255, 204, 102, 0.88);
                        animation: doomCompassUncertainSpin 1.05s linear infinite;
                    }

                    .doom-debug-bar button.doom-sensor-switch .sensor-compass-readout {
                        min-width: 0;
                        color: rgba(225, 234, 248, 0.78);
                        font-size: 0.6rem;
                        font-weight: 800;
                        line-height: 1;
                    }

                    .doom-debug-bar button.doom-sensor-switch.is-compass-uncertain .sensor-title {
                        color: rgb(255, 226, 151);
                    }

                    .doom-debug-bar button.doom-debug-switch::before {
                        content: "";
                        display: inline-block;
                        grid-row: 1 / span 2;
                        width: 26px;
                        height: 14px;
                        margin-right: 8px;
                        border-radius: 999px;
                        border: 1px solid rgba(126, 141, 160, 0.54);
                        background: radial-gradient(circle at 6px 50%, rgba(190, 202, 220, 0.88) 0 4px, transparent 5px), rgba(22, 29, 40, 0.9);
                        vertical-align: -2px;
                    }

                    .doom-debug-bar button.doom-debug-switch.is-on {
                        border-color: rgba(102, 255, 126, 0.72);
                        background: linear-gradient(90deg, rgba(102, 255, 126, 0.18), rgba(30, 139, 255, 0.08));
                        color: rgb(162, 255, 176);
                        box-shadow: 0 0 14px rgba(102, 255, 126, 0.2);
                    }

                    .doom-debug-bar button.doom-sensor-switch.is-on {
                        border-color: rgba(var(--sensor-color), 0.78);
                        background: linear-gradient(90deg, rgba(var(--sensor-color), 0.24), rgba(7, 12, 20, 0.48));
                        color: rgb(232, 240, 252);
                        box-shadow: 0 0 14px rgba(var(--sensor-color), 0.18);
                    }

                    .doom-debug-bar button.doom-sensor-switch.is-off {
                        border-color: rgba(126, 141, 160, 0.34);
                        background: linear-gradient(90deg, rgba(22, 29, 40, 0.74), rgba(7, 12, 20, 0.5));
                        color: rgba(184, 198, 216, 0.58);
                        box-shadow: none;
                    }

                    .doom-debug-bar button.doom-sensor-switch.is-off .sensor-title,
                    .doom-debug-bar button.doom-sensor-switch.is-off .sensor-signal {
                        color: rgba(184, 198, 216, 0.52);
                    }

                        .doom-debug-bar button.doom-debug-switch.is-on::before {
                            border-color: rgba(102, 255, 126, 0.78);
                            background: radial-gradient(circle at 18px 50%, rgba(102, 255, 126, 0.96) 0 4px, transparent 5px), rgba(12, 48, 28, 0.95);
                        }

                        .doom-debug-bar button.doom-sensor-switch.is-on::before {
                            border-color: rgba(var(--sensor-color), 0.78);
                            background: radial-gradient(circle at 18px 50%, rgba(var(--sensor-color), 0.96) 0 4px, transparent 5px), rgba(12, 22, 32, 0.95);
                        }

                        .doom-debug-bar button.doom-sensor-switch.is-off::before {
                            border-color: rgba(126, 141, 160, 0.48);
                            background: radial-gradient(circle at 6px 50%, rgba(168, 180, 198, 0.72) 0 4px, transparent 5px), rgba(22, 29, 40, 0.9);
                        }

                    .doom-debug-bar button.doom-overlay-switch.is-on {
                        border-color: rgba(87, 184, 255, 0.72);
                        background: linear-gradient(90deg, rgba(87, 184, 255, 0.18), rgba(30, 139, 255, 0.1));
                        color: rgb(132, 205, 255);
                        box-shadow: 0 0 14px rgba(87, 184, 255, 0.2);
                    }

                        .doom-debug-bar button.doom-overlay-switch.is-on::before {
                            border-color: rgba(87, 184, 255, 0.78);
                            background: radial-gradient(circle at 18px 50%, rgba(87, 184, 255, 0.96) 0 4px, transparent 5px), rgba(10, 34, 64, 0.95);
                        }

                .doom-debug-bar button[data-detection-toggle] {
                    --toggle-color: 87, 184, 255;
                    border-color: rgba(var(--toggle-color), 0.48);
                    background: rgba(var(--toggle-color), 0.12);
                    color: rgb(var(--toggle-color));
                    box-shadow: 0 0 14px rgba(var(--toggle-color), 0.16);
                }

                    .doom-debug-bar button[data-detection-toggle="motion"] {
                        --toggle-color: 255, 76, 76;
                    }

                    .doom-debug-bar button[data-detection-toggle="objective"],
                    .doom-debug-bar button[data-detection-toggle="door"] {
                        --toggle-color: 102, 255, 126;
                    }

                    .doom-debug-bar button[data-detection-toggle="wall"] {
                        --toggle-color: 255, 132, 64;
                    }

                    .doom-debug-bar button[data-detection-toggle="enemy"] {
                        --toggle-color: 220, 96, 255;
                    }

                    .doom-debug-bar button[data-detection-toggle="computer"] {
                        --toggle-color: 64, 160, 255;
                    }

                    .doom-debug-bar button[data-detection-toggle="foot"] {
                        --toggle-color: 255, 220, 64;
                    }

                    .doom-debug-bar button[data-detection-toggle="hud"] {
                        --toggle-color: 210, 210, 220;
                    }

                    .doom-debug-bar button[data-detection-toggle="spatial"] {
                        --toggle-color: 255, 220, 88;
                    }

                    .doom-debug-bar button[data-detection-toggle="health"] {
                        --toggle-color: 255, 96, 112;
                    }

                .doom-debug-bar button[data-detection-toggle][aria-pressed="true"] {
                    border-color: rgba(var(--toggle-color), 0.72);
                    background: rgba(var(--toggle-color), 0.18);
                    box-shadow:
                        0 0 12px rgba(var(--toggle-color), 0.24),
                        inset 0 0 10px rgba(var(--toggle-color), 0.08);
                }

                .doom-debug-bar button[data-detection-toggle].is-off {
                    border-color: rgba(126, 141, 160, 0.28);
                    background: rgba(22, 29, 40, 0.62);
                    color: rgba(190, 202, 220, 0.55);
                    box-shadow: none;
                    opacity: 0.68;
                }

                .doom-debug-bar button[data-detection-toggle].is-phase-off {
                    border-color: rgba(var(--toggle-color), 0.24);
                    background: rgba(var(--toggle-color), 0.06);
                    color: rgba(var(--toggle-color), 0.46);
                    box-shadow: none;
                    opacity: 0.52;
                }

        .doom-detection-toggles.is-panelized {
            display: none !important;
        }

        .doom-sensor-toggles {
            display: grid;
            flex: 1 0 100%;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            align-items: start;
            margin-top: 2px;
            min-height: 0;
        }

        .doom-sensor-link {
            display: none !important;
        }

        .doom-sensor-node {
            display: grid;
            grid-template-rows: auto max-content;
            min-width: 0;
            min-height: 0;
            padding: 8px 8px 9px 10px;
        }

        .doom-sensor-node.is-aisthesis {
            --sensor-node-color: 85, 190, 255;
            align-self: start;
        }

        .doom-sensor-node.is-noesis {
            --sensor-node-color: 186, 146, 255;
        }

        .doom-sensor-node.is-krisis {
            --sensor-node-color: 82, 218, 160;
        }

        .doom-sensor-node.is-kinesis {
            --sensor-node-color: 255, 190, 92;
        }

        .doom-sensor-node-header {
            display: grid;
            gap: 2px;
            min-width: 0;
            margin-bottom: 6px;
        }

        .doom-sensor-node-label {
            margin: 0;
            font-size: 0.74rem;
        }

        .doom-sensor-node-subtitle {
            min-width: 0;
            overflow: hidden;
            color: rgba(205, 218, 236, 0.62);
            font-size: 0.56rem;
            font-weight: 800;
            line-height: 1.1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .doom-sensor-stages {
            display: grid;
            grid-template-rows: none;
            grid-auto-rows: max-content;
            gap: 7px;
            min-height: 0;
            align-content: start;
        }

        .doom-sensor-stages.is-single-stage {
            grid-template-rows: none;
        }

        .doom-sensor-stage {
            min-width: 0;
            min-height: 0;
            align-self: start;
            padding: 6px;
            border: 1px solid rgba(var(--sensor-node-color), 0.2);
            border-radius: 6px;
            background: rgba(5, 10, 18, 0.34);
            overflow: hidden;
        }

        .doom-sensor-stage-title {
            margin-bottom: 5px;
            color: rgba(var(--sensor-node-color), 0.9);
            font-size: 0.58rem;
            font-weight: 900;
            line-height: 1;
        }

        .doom-sensor-node-buttons {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 5px;
        }

        .doom-debug-bar button.doom-sensor-switch,
        .doom-debug-bar button[data-detection-toggle],
        .doom-panel-signal-chip {
            min-width: 0;
            min-height: 30px;
            border-radius: 6px;
            padding: 5px 6px;
            overflow: hidden;
            text-align: left;
            white-space: normal;
        }

        .doom-debug-bar button.doom-sensor-switch {
            display: flex;
            flex: initial;
            flex-direction: column;
            gap: 2px;
            border-color: rgba(var(--sensor-color), 0.46);
        }

        .doom-debug-bar button.doom-sensor-switch::before {
            content: none;
        }

        .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] {
            min-height: 70px;
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto auto minmax(0, 1fr);
            align-items: start;
        }

        .doom-debug-bar button.doom-sensor-switch .sensor-title {
            font-size: 0.66rem;
            line-height: 1;
        }

        .doom-debug-bar button.doom-sensor-switch .sensor-signal {
            font-size: 0.54rem;
            line-height: 1.08;
        }

        .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] .sensor-signal {
            grid-column: 1;
            grid-row: 3;
            max-height: 38px;
            overflow: hidden;
            font-size: 0.5rem;
            line-height: 1.06;
        }

        .doom-debug-bar button.doom-sensor-switch .sensor-compass-needle {
            grid-column: 1;
            grid-row: 2;
            min-height: 18px;
            margin-top: 2px;
            padding: 2px 5px;
        }

        .doom-debug-bar button.doom-sensor-switch .sensor-compass-arrow {
            width: 17px;
            height: 17px;
            font-size: 16px;
            line-height: 16px;
        }

        .doom-debug-bar button.doom-sensor-switch .sensor-compass-readout {
            font-size: 0.52rem;
            line-height: 1;
        }

        .doom-panel-signal-chip {
            display: flex;
            flex-direction: column;
            gap: 2px;
            border: 1px solid rgba(var(--sensor-node-color), 0.24);
            background: rgba(var(--sensor-node-color), 0.08);
            color: rgba(215, 226, 242, 0.72);
        }

        .doom-panel-signal-chip strong {
            min-width: 0;
            overflow: hidden;
            color: rgba(238, 244, 255, 0.88);
            font-size: 0.56rem;
            line-height: 1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .doom-panel-signal-chip span {
            min-width: 0;
            overflow: hidden;
            font-size: 0.5rem;
            font-weight: 700;
            line-height: 1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .console-body.is-doom-running .doom-sensor-toggles {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            min-height: 0;
            align-items: start;
            align-content: start;
            grid-auto-rows: max-content;
        }

        .console-body.is-doom-running .doom-sensor-node,
        .console-body.is-doom-running .doom-sensor-node.is-heading {
            min-height: 0;
            height: max-content !important;
            align-self: start !important;
        }

        @media (min-width: 1280px) {
            .console-body.is-doom-running .doom-sensor-toggles {
                grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.7fr) minmax(280px, 1fr);
                grid-template-rows: auto auto;
                align-content: start;
                grid-auto-rows: max-content;
            }

            .console-body.is-doom-running .doom-sensor-stages {
                grid-template-rows: none !important;
                grid-auto-rows: max-content !important;
                align-content: start !important;
            }

            .console-body.is-doom-running .doom-sensor-stage {
                min-height: 0 !important;
                align-self: start !important;
            }

            .console-body.is-doom-running .doom-sensor-node[data-sensor-panel="aisthesis"] {
                grid-column: 1 / 2 !important;
                grid-row: 1 / 2 !important;
            }

            .console-body.is-doom-running .doom-sensor-node[data-sensor-panel="noesis"] {
                grid-column: 2 / 3 !important;
                grid-row: 1 / 2 !important;
            }

            .console-body.is-doom-running .doom-sensor-node[data-sensor-panel="krisis"] {
                grid-column: 3 / 4 !important;
                grid-row: 1 / 2 !important;
                height: fit-content !important;
                align-self: start !important;
                max-height: max-content;
            }

            .console-body.is-doom-running .doom-sensor-node[data-sensor-panel="kinesis"] {
                grid-column: 1 / 4 !important;
                grid-row: 2 / 3 !important;
            }
        }

        @media (min-width: 1280px) and (max-width: 1599.98px) {
            .console-body.is-doom-running .doom-sensor-toggles {
                grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.45fr) minmax(250px, 0.92fr);
            }

            .console-body.is-doom-running .doom-sensor-node {
                padding: 7px;
            }

            .console-body.is-doom-running .doom-sensor-node.is-aisthesis .doom-sensor-switch,
            .console-body.is-doom-running .doom-sensor-node.is-aisthesis .doom-panel-signal-chip {
                min-height: 36px;
            }
        }

        @media (min-width: 1280px) {
            .console-body.is-doom-running #doom-aik-console-stack {
                grid-template-rows: auto auto !important;
                align-self: start !important;
                height: auto !important;
                max-height: var(--doom-desktop-screen-height, var(--doom-xlarge-screen-height, min(52vh, 620px))) !important;
            }

            .console-body.is-doom-running #doom-aik-console-stack #output {
                min-height: 112px !important;
                max-height: clamp(132px, 20vh, 240px) !important;
            }

            .console-body.is-doom-running #doom-aik-console-stack #wasm-prompt {
                align-self: start !important;
            }

            .console-body.is-doom-running #doom-debug-bar {
                grid-template-columns: auto minmax(0, 1fr);
                grid-template-rows: auto auto;
                grid-template-areas:
                    "title actions"
                    "sensors sensors";
                gap: 7px 9px;
                align-items: center;
                padding-top: 7px;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-debug-help {
                display: none !important;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-sensor-pipeline-title {
                grid-area: title;
                align-self: center;
                white-space: nowrap;
                margin: 0;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-debug-actions {
                grid-area: actions;
                align-self: center;
                justify-content: flex-start;
                gap: 6px;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-debug-actions > button {
                flex: 0 1 auto;
                min-width: 0;
                min-height: 28px;
                padding: 5px 9px;
                white-space: nowrap;
            }
        }

        @media (min-width: 1280px) and (max-width: 1499.98px) {
            .console-body.is-doom-running {
                grid-template-columns: minmax(0, 1fr) !important;
                grid-template-areas:
                    "screen"
                    "console"
                    "debug"
                    "legal"
                    "actions"
                    "status" !important;
            }

            .console-body.is-doom-running #doom-aik-console-stack {
                grid-area: console !important;
                width: 100%;
                height: auto !important;
                max-height: none !important;
            }

            .console-body.is-doom-running #doom-aik-console-stack #output {
                min-height: 92px !important;
                max-height: clamp(112px, 16vh, 176px) !important;
                font-size: 0.68rem;
                line-height: 1.22;
            }

            .console-body.is-doom-running #doom-aik-console-stack #wasm-prompt {
                min-height: 46px;
            }
        }

        .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch,
        .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] {
            min-height: 30px;
            padding: 5px 6px;
        }

        .console-body.is-doom-running .doom-debug-bar button.doom-sensor-switch[data-sensor-toggle="compass"] {
            min-height: 70px;
        }

        @media (max-width: 1120px) {
            .doom-sensor-toggles,
            .console-body.is-doom-running .doom-sensor-toggles {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 720px) {
            .doom-sensor-toggles,
            .console-body.is-doom-running .doom-sensor-toggles {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1279.98px) {
            .console-body.is-doom-running #doom-debug-bar {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) !important;
                grid-template-areas:
                    "title"
                    "actions"
                    "sensors" !important;
                gap: 9px;
                align-items: stretch;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-sensor-pipeline-title {
                grid-area: title !important;
                justify-self: start;
                margin: 0;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-debug-actions {
                grid-area: actions !important;
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
                gap: 7px;
                width: 100%;
                margin: 0;
                align-self: stretch;
                justify-content: stretch;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-debug-actions > button {
                width: 100%;
                min-width: 0;
                min-height: 32px;
                padding: 5px 8px;
                white-space: nowrap;
            }

            .console-body.is-doom-running #doom-debug-bar .doom-sensor-toggles {
                grid-area: sensors !important;
                margin-top: 0;
            }
        }

        #doom-controller {
            display: flex;
            flex: 0 0 170px;
            flex-direction: column;
            gap: 10px;
            width: 170px;
            padding: 10px;
            border: 1px solid rgba(87, 184, 255, 0.24);
            border-radius: 8px;
            background: rgba(3, 7, 18, 0.76);
            color: var(--text-color);
            box-shadow: 0 0 22px rgba(87, 184, 255, 0.08);
        }

            #doom-controller[hidden] {
                display: none !important;
            }

            #doom-controller h3 {
                margin: 0 0 2px;
                color: var(--accent-soft);
                font-size: 0.88rem;
                line-height: 1.25;
            }

            #doom-controller button {
                min-height: 34px;
                border: 1px solid rgba(87, 184, 255, 0.32);
                border-radius: 6px;
                background: rgba(30, 139, 255, 0.08);
                color: var(--text-color);
                font: inherit;
                font-size: 0.82rem;
                cursor: pointer;
            }

                #doom-controller button:hover,
                #doom-controller button:focus-visible {
                    background: rgba(30, 139, 255, 0.18);
                    color: var(--accent-soft);
                }

                #doom-controller button:disabled {
                    cursor: wait;
                    opacity: 0.62;
                }

        .doom-controller-section {
            display: grid;
            gap: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(87, 184, 255, 0.14);
        }

        .doom-controller-label {
            color: var(--muted-color);
            font-size: 0.74rem;
        }

        .doom-runtime-panel summary {
            cursor: pointer;
            list-style-position: inside;
        }

            .doom-runtime-panel summary:hover,
            .doom-runtime-panel summary:focus-visible {
                color: var(--accent-soft);
            }

        .doom-runtime-panel:not([open]) {
            gap: 0;
            padding-bottom: 0;
        }

            .doom-runtime-panel[hidden] {
                display: none !important;
            }

        .doom-pad {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
        }

            .doom-pad button {
                min-width: 0;
                aspect-ratio: 1;
                padding: 0;
                touch-action: none;
                user-select: none;
            }

            .doom-pad .is-spacer {
                visibility: hidden;
                pointer-events: none;
            }

        .doom-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
        }

            .doom-actions button {
                touch-action: none;
                user-select: none;
            }

        #doom-state {
            margin-top: 2px;
            color: var(--muted-color);
            font-size: 0.78rem;
            overflow-wrap: anywhere;
        }

            #doom-state[hidden] {
                display: none !important;
            }

        .doom-controller-debug-log {
            display: flex;
            flex-direction: column;
            margin-top: auto;
            min-height: 104px;
            border: 1px solid rgba(87, 184, 255, 0.2);
            border-radius: 6px;
            background: rgba(3, 11, 24, 0.72);
            padding: 6px;
            overflow: hidden;
        }

        .doom-controller-debug-log-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
            margin-bottom: 5px;
            color: rgba(184, 218, 255, 0.78);
            font-size: 0.58rem;
            font-weight: 900;
            line-height: 1;
            text-transform: uppercase;
        }

        .doom-controller-debug-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 2px;
            justify-content: flex-end;
        }

            .doom-controller-debug-filters button {
                min-height: 18px;
                padding: 0 0.22rem;
                border-color: rgba(87, 184, 255, 0.22);
                background: rgba(87, 184, 255, 0.05);
                color: rgba(184, 218, 255, 0.64);
                font-size: 0.52rem;
                line-height: 1;
            }

                .doom-controller-debug-filters button.is-on {
                    border-color: rgba(144, 214, 255, 0.62);
                    background: rgba(87, 184, 255, 0.2);
                    color: var(--accent-soft);
                }

        .doom-controller-debug-log ol {
            display: grid;
            align-content: start;
            flex: 1 1 auto;
            gap: 1px;
            margin: 0;
            padding: 0;
            list-style: none;
            min-height: 0;
            overflow: hidden;
        }

        .doom-control-log-entry,
        .doom-control-log-empty {
            display: grid;
            grid-template-columns: 2.4em minmax(0, 1fr);
            gap: 3px;
            min-width: 0;
            color: rgba(211, 229, 255, 0.82);
            font-size: 0.52rem;
            line-height: 1.06;
        }

        .doom-control-log-empty {
            display: block;
            color: var(--muted-color);
        }

        .doom-control-log-label {
            display: inline-grid;
            width: 2.5em;
            height: 1.05em;
            place-items: center;
            border: 1px solid rgba(87, 184, 255, 0.35);
            border-radius: 999px;
            background: rgba(87, 184, 255, 0.12);
            color: rgba(87, 184, 255, 0.86);
            font-weight: 900;
            overflow: hidden;
            font-size: 0.54rem;
            line-height: 1;
        }

        .doom-control-log-message {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .doom-control-log-entry.is-priority .doom-control-log-label {
            border-color: rgba(255, 210, 92, 0.55);
            background: rgba(255, 210, 92, 0.14);
            color: rgba(255, 210, 92, 0.92);
        }

        .doom-control-log-entry.is-telos .doom-control-log-label {
            border-color: rgba(123, 255, 179, 0.55);
            background: rgba(123, 255, 179, 0.12);
            color: rgba(123, 255, 179, 0.9);
        }

        .doom-control-log-entry.is-objective .doom-control-log-label {
            border-color: rgba(255, 142, 181, 0.55);
            background: rgba(255, 142, 181, 0.12);
            color: rgba(255, 142, 181, 0.88);
        }

        .doom-control-log-entry.is-action .doom-control-log-label {
            border-color: rgba(123, 255, 179, 0.5);
            background: rgba(123, 255, 179, 0.1);
            color: rgba(149, 255, 208, 0.95);
        }

        .doom-control-log-entry.is-error .doom-control-log-message {
            color: rgba(255, 128, 136, 0.9);
        }

        .doom-help {
            color: var(--muted-color);
            font-size: 0.72rem;
            line-height: 1.45;
        }

            .doom-help kbd {
                display: inline-block;
                min-width: 1.4em;
                padding: 0 0.28em;
                border: 1px solid rgba(87, 184, 255, 0.3);
                border-radius: 4px;
                background: rgba(30, 139, 255, 0.08);
                color: var(--text-color);
                font: inherit;
                text-align: center;
            }

        .console-body.is-doom-running #doom-controller {
            align-self: stretch;
            flex: 0 0 132px;
            width: 132px;
            min-height: 0;
            max-height: none;
            gap: 5px;
            padding: 7px;
            overflow: hidden;
        }

            .console-body.is-doom-running #doom-controller h3,
            .console-body.is-doom-running #doom-state,
            .console-body.is-doom-running .doom-help {
                display: none;
            }

            .console-body.is-doom-running .doom-controller-debug-log {
                flex: 0 1 auto;
                min-height: 190px;
                max-height: clamp(240px, 34vh, 520px);
                padding: 5px;
            }

            .console-body.is-doom-running .doom-controller-debug-log-head {
                align-items: flex-start;
                flex-direction: column;
                gap: 3px;
                margin-bottom: 4px;
                font-size: 0.52rem;
            }

            .console-body.is-doom-running .doom-controller-debug-filters {
                justify-content: flex-start;
            }

                .console-body.is-doom-running #doom-controller .doom-controller-debug-filters button {
                    min-height: 16px;
                    padding: 0 0.16rem;
                    font-size: 0.48rem;
                }

            .console-body.is-doom-running .doom-control-log-entry,
            .console-body.is-doom-running .doom-control-log-empty {
                grid-template-columns: 2.35em minmax(0, 1fr);
                gap: 2px;
                font-size: 0.5rem;
                line-height: 1.02;
            }

            .console-body.is-doom-running #doom-controller button {
                min-height: 26px;
                padding: 0.22rem 0.32rem;
                font-size: 0.68rem;
                line-height: 1.05;
            }

            .console-body.is-doom-running .doom-controller-section {
                gap: 4px;
                padding-top: 5px;
            }

            .console-body.is-doom-running .doom-controller-label {
                font-size: 0.64rem;
                line-height: 1;
            }

            .console-body.is-doom-running .doom-pad,
            .console-body.is-doom-running .doom-actions {
                gap: 4px;
            }

                .console-body.is-doom-running .doom-pad button {
                    aspect-ratio: auto;
                }

            .console-body.is-doom-running .doom-actions {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

        @media (max-width: 760px) {
            #doom-container {
                flex-direction: column;
            }

            #doom-controller {
                width: 100%;
                flex-basis: auto;
            }
        }

        #doom-screen {
            width: 100%;
            height: 100%;
            display: block;
            image-rendering: pixelated;
            background: #000;
        }

        .doom-goal-hud {
            position: absolute;
            top: 56%;
            left: 50%;
            z-index: 12;
            box-sizing: border-box;
            display: grid;
            gap: 5px;
            align-content: center;
            width: min(58%, 420px);
            min-width: 0;
            transform: translate(-50%, -50%);
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
            color: #dbeafe;
            font: 600 0.72rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
            letter-spacing: 0;
            overflow: hidden;
            pointer-events: none;
        }

            .doom-goal-hud[hidden],
            .doom-topos-hud[hidden],
            .doom-spatial-hud[hidden],
            .doom-spatial-event[hidden],
            .doom-audio-event-rack[hidden] {
                display: none !important;
            }

            .doom-goal-telos {
                display: grid;
                gap: 2px;
                justify-items: center;
                color: #fefce8;
                text-align: center;
                text-shadow: 0 1px 2px #000;
            }

            .doom-goal-label {
                justify-self: center;
                padding: 1px 5px;
                border: 1px solid rgba(125, 211, 252, 0.38);
                border-radius: 4px;
                background: rgba(2, 18, 30, 0.22);
                color: #7dd3fc;
                font-size: 0.62rem;
                font-weight: 800;
            }

            .doom-goal-telos strong {
                font-size: 1.18rem;
                font-weight: 800;
                overflow-wrap: anywhere;
            }

            .doom-goal-primary {
                display: inline-flex;
                justify-self: center;
                align-items: center;
                justify-content: center;
                gap: 8px;
                margin-top: 3px;
                padding: 2px 6px;
                color: #bae6fd;
                font-size: 0.72rem;
                font-weight: 700;
                text-align: center;
                text-shadow: 0 1px 2px #000;
            }

            .doom-goal-objective-label {
                justify-self: center;
                padding: 1px 6px;
                border: 1px solid rgba(125, 211, 252, 0.38);
                border-radius: 4px;
                background: rgba(2, 18, 30, 0.22);
                color: #38bdf8;
                font-size: 0.58rem;
                font-weight: 800;
            }

            .doom-goal-primary strong {
                font-weight: 800;
                overflow-wrap: anywhere;
            }

            .doom-goal-sub {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 4px;
                margin-top: 4px;
            }

            .doom-goal-chip {
                display: inline-flex;
                align-items: center;
                min-height: 17px;
                padding: 1px 6px;
                border: 1px solid rgba(148, 163, 184, 0.24);
                border-radius: 999px;
                background: rgba(2, 10, 18, 0.16);
                color: #cbd5e1;
                font-size: 0.68rem;
                line-height: 1.2;
                text-shadow: 0 1px 2px #000;
            }

            .doom-goal-chip.is-objective {
                border-color: rgba(96, 165, 250, 0.55);
                color: #bfdbfe;
            }

            .doom-goal-chip.is-safety {
                border-color: rgba(251, 146, 60, 0.58);
                color: #fed7aa;
            }

            .doom-goal-chip.is-motion {
                border-color: rgba(45, 212, 191, 0.52);
                color: #99f6e4;
            }

            .doom-goal-chip.is-detection {
                border-color: rgba(250, 204, 21, 0.54);
                color: #fef08a;
            }

            .doom-goal-chip.is-kairos {
                border-color: rgba(244, 114, 182, 0.58);
                color: #fbcfe8;
            }

        .panic-overlay {
            position: absolute;
            inset: 0;
            display: none;
            pointer-events: none;
            background: radial-gradient(circle at center, rgba(255, 95, 122, 0.16), transparent 34rem), rgba(255, 95, 122, 0.035);
            animation: panicFlicker 160ms infinite alternate;
        }

        .panic-overlay.is-ready {
            background: radial-gradient(circle at center, rgba(87, 184, 255, 0.13), transparent 34rem), rgba(30, 139, 255, 0.035);
            animation-duration: 980ms;
        }

        @keyframes panicFlicker {
            from {
                opacity: 0.45;
            }

            to {
                opacity: 0.8;
            }
        }

        .halted-message {
            display: block;
            box-sizing: border-box;
            min-height: 166px;
            margin-top: 0;
            padding: 12px 14px;
            border: 1px solid rgba(255, 95, 122, 0.78);
            border-radius: 8px;
            background: rgba(255, 95, 122, 0.07);
            color: var(--fail-color);
            font-size: 0.84rem;
            font-weight: 700;
            line-height: 1.36;
            opacity: 0;
            overflow: visible;
            visibility: hidden;
            text-align: center;
            box-shadow: 0 0 28px rgba(255, 95, 122, 0.12);
            transition: opacity 120ms ease;
        }

        .halted-message.is-visible {
            opacity: 1;
            visibility: visible;
        }

        .halted-message.is-ready {
            border-color: var(--accent-soft);
            background: transparent;
            color: var(--accent-soft);
            box-shadow: 0 0 28px var(--shadow-color);
        }

            .halted-message span {
                display: block;
                margin-top: 4px;
                color: #ffd0d9;
                font-weight: 400;
            }

            .halted-message.is-ready span {
                color: var(--text-color);
            }

            .halted-message .notice {
                margin-top: 8px !important;
                overflow: visible;
                font-size: 0.76rem !important;
                line-height: 1.3 !important;
            }

                .halted-message .notice p {
                    margin: 0;
                }

                .halted-message .notice br + br {
                    display: none;
                }

        .cards {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            margin-top: 22px;
        }

        .card,
        .about {
            box-sizing: border-box;
            min-width: 0;
            overflow-wrap: anywhere;
            border: 1px solid rgba(87, 184, 255, 0.16);
            border-radius: 8px;
            background: linear-gradient( 180deg, rgba(30, 139, 255, 0.06), rgba(0, 0, 0, 0.22) );
        }

        .card {
            padding: 18px;
        }

            .card h2,
            .about h2 {
                margin: 0 0 8px;
                color: var(--accent-soft);
                font-size: 1rem;
            }

            .card p,
            .about p {
                margin: 0;
                color: #b8c9e8;
                font-size: 0.9rem;
            }

        .about {
            margin-top: 22px;
            padding: 22px;
        }

            .about p + p {
                margin-top: 10px;
            }

        .ai-site-sections {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            margin-top: 22px;
        }

        .ai-site-section {
            box-sizing: border-box;
            min-width: 0;
            overflow-wrap: anywhere;
            padding: 18px;
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            background: var(--panel-color);
            box-shadow: 0 18px 46px var(--shadow-color);
        }

            .ai-site-section h2 {
                margin: 0 0 8px;
                color: var(--accent-soft);
                font-size: 1rem;
            }

            .ai-site-section p {
                margin: 0 0 10px;
                color: var(--text-color);
                font-size: 0.9rem;
            }

        .ai-site-section ul {
            margin: 0;
            padding-left: 1.2rem;
            color: var(--muted-color);
            font-size: 0.88rem;
        }

        .ai-site-section pre {
            box-sizing: border-box;
            max-width: 100%;
            margin: 0.75rem 0;
            padding: 0.8rem 0.9rem;
            overflow-x: auto;
            border: 1px solid rgba(125, 211, 252, 0.18);
            border-radius: 8px;
            background: rgba(2, 6, 23, 0.62);
            color: #dbeafe;
            font-size: 0.82rem;
            line-height: 1.55;
        }

        .ai-site-section code {
            color: #dbeafe;
        }

        .ai-site-orcid {
            display: inline-flex;
            align-items: center;
            color: var(--link-color);
            text-decoration: underline;
        }

            .ai-site-orcid img {
                width: 1em;
                height: 1em;
                margin-inline-start: 0.5em;
            }

        footer {
            margin-top: 34px;
            padding-top: 22px;
            border-top: 1px solid rgba(219, 231, 255, 0.14);
            color: var(--muted-color);
            font-size: 0.82rem;
            text-align: center;
        }

        @media (prefers-reduced-motion: reduce) {
            .line,
            .panic-overlay,
            .console,
            .announcement,
            .hero-crawl-track,
            .hero-tagline {
                animation: none;
            }

            .link-button {
                transition: none;
            }

            .hero-crawl-scene {
                height: auto;
                overflow: visible;
                clip-path: none;
                contain: none;
            }

            .hero-crawl-viewport {
                position: static;
                display: block;
                overflow: visible;
                clip-path: none;
                perspective: none;
            }

            .hero-crawl-canvas {
                display: none;
            }

                .hero-crawl-scene::before,
                .hero-crawl-scene::after {
                    display: none;
                }

            .hero-crawl-track {
                position: static;
                padding: 14px 16px;
                transform: none;
            }
        }

        @media (max-width: 1060px) {
            .ai-site-header-inner {
                min-height: 62px;
            }

            .ai-site-menu-toggle {
                display: inline-flex;
            }

            .ai-site-nav {
                position: fixed;
                inset: 0;
                z-index: 50;
                display: none;
                align-items: center;
                justify-content: center;
                background: var(--panel-color);
            }

            .ai-site-header.is-menu-open .ai-site-menu-toggle {
                position: fixed;
                top: 9px;
                right: 16px;
                z-index: 60;
            }

            .ai-site-nav.is-open {
                display: flex;
            }

            .ai-site-nav-list {
                flex-direction: column;
                gap: 22px;
            }

            .ai-site-nav-link {
                color: var(--text-color);
                font-size: 1.16rem;
            }

            .ai-site-nav-more {
                position: static;
                text-align: center;
            }

            .ai-site-nav-summary {
                font-size: 1.16rem;
            }

            .ai-site-nav-more-list {
                position: static;
                min-width: 0;
                margin-top: 12px;
                padding: 0 0 0 14px;
                border: 0;
                border-left: 1px solid var(--panel-border);
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                text-align: left;
            }

            .page {
                width: min(100% - 24px, 1040px);
                padding-top: 82px;
            }

            .hero {
                padding: 18px 16px 16px;
                margin-bottom: 20px;
            }

            .hero-topline {
                grid-template-columns: 1fr;
                justify-items: center;
                gap: 14px;
            }

            .hero-brand-panel,
            .hero-status-panel {
                align-items: center;
                justify-content: center;
            }

            .hero-brand-panel,
            .hero-status-panel {
                animation: heroPanelRise 300ms ease-out both;
            }

            .hero-status-panel {
                animation-delay: 70ms;
            }

            .logo {
                width: min(320px, 82vw);
            }

            .hero {
                padding-top: 1rem;
                padding-bottom: 0.9rem;
            }

            .hero-crawl-scene {
                height: 24vh;
                min-height: 160px;
            }

            .hero-crawl-track {
                left: 4%;
                right: 4%;
                font-size: 2rem;
                line-height: 1.22;
            }

            .console-body {
                grid-template-rows: minmax(130px, 1fr) auto auto auto auto auto;
                min-height: 520px;
                max-height: none;
                padding: 16px;
            }

            .line {
                font-size: 0.84rem;
            }

            .cards {
                grid-template-columns: 1fr;
            }

            .ai-site-sections {
                grid-template-columns: 1fr;
            }

            .link-button {
                width: 100%;
            }
        }

        @media (min-width: 761px) and (max-width: 1060px) {
            .page {
                padding-top: 74px;
            }

            .hero {
                margin-bottom: 12px;
                padding: 10px 14px;
            }

            .hero-topline {
                grid-template-columns: minmax(210px, 0.92fr) minmax(300px, 1.18fr);
                gap: clamp(12px, 2.2vw, 24px);
            }

            .hero-brand-panel {
                align-items: center;
            }

            .hero-status-panel {
                align-items: flex-end;
            }

            .logo {
                width: min(285px, 34vw);
            }

            .hero-crawl-scene {
                height: min(14vh, 128px);
                min-height: 96px;
                margin-top: 8px;
            }

            .hero-crawl-track {
                font-size: 1.58rem;
                line-height: 1.16;
            }

            .hero-version-rule {
                margin-top: 6px;
                font-size: 0.78rem;
                line-height: 1.25;
            }

            .links {
                gap: 8px;
                margin-top: 10px;
            }

            .link-button {
                width: auto;
                min-width: 136px;
                padding: 0.58em 0.86em;
            }

            .console-body {
                grid-template-rows: minmax(220px, 1fr) auto auto auto auto auto;
                min-height: 500px;
                max-height: min(680px, calc(100vh - 72px));
                padding: 18px;
            }
        }

        @media (max-width: 760px) {
            .hero {
                margin-bottom: 14px;
                padding: 14px 12px;
            }

            .hero-crawl-scene {
                height: min(19vh, 132px);
                min-height: 110px;
            }

            .console-body {
                grid-template-rows: minmax(170px, 1fr) auto auto auto auto auto;
                min-height: 500px;
                max-height: none;
                padding: 14px;
            }

            .console-titlebar {
                flex-wrap: wrap;
            }

            .console-name {
                flex: 1 1 calc(100% - 72px);
            }

            .console-version {
                flex: 1 1 100%;
                justify-content: center;
                margin-left: 0;
            }

            .halted-message {
                min-height: 188px;
            }
        }

        @keyframes heroPanelRise {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    

    hr.document-separator {
      height: 1px;
      margin: 28px 0;
      border: 0;
      border-top: 1px solid #242a31;
      background: transparent;
    }
  

    :root {
      --site-shell-width: min(calc(100vw - 32px), 1040px);
      --site-wide-width: min(calc(100vw - 56px), 1680px);
    }

    .page,
    .ai-site-header-inner {
      width: var(--site-shell-width);
    }

    .ai-site-header.is-solid,
    .ai-site-header.is-menu-open {
      background: rgba(3, 7, 18, 0.92);
      backdrop-filter: blur(16px);
    }

    .ai-site-brand {
      min-width: 0;
    }

    .ai-site-brand span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ai-site-nav-list {
      gap: clamp(8px, 1vw, 14px);
    }

    .ai-site-nav-link,
    .ai-site-nav-summary {
      line-height: 1.15;
      text-decoration: none;
      white-space: nowrap;
    }

    .ai-site-nav-more-list {
      right: -8px;
      max-height: min(70vh, 560px);
      overflow: auto;
    }

    p code,
    li code,
    td code,
    .announcement code,
    .ai-site-section code {
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .ai-site-section pre,
    .announcement,
    .card,
    .about,
    .console {
      min-width: 0;
    }

    @media (min-width: 1360px) {
      .page,
      .ai-site-header-inner {
        width: min(calc(100vw - 48px), 1320px);
      }

      .ai-site-sections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      #release-history.ai-site-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (min-width: 1800px) {
      .page,
      .ai-site-header-inner {
        width: var(--site-wide-width);
      }

      .hero {
        max-width: 1420px;
      }

      .announcement {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(24px, 2.2vw, 42px);
        row-gap: 4px;
      }

      .announcement-label {
        grid-column: 1 / -1;
      }

      .announcement p {
        margin-block: 0.35rem;
      }

      .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .ai-site-sections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      #release-history.ai-site-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .about {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 28px;
      }

      .about h2 {
        grid-column: 1 / -1;
      }

      .about p {
        margin: 0;
      }
    }

    @media (min-width: 2200px) {
      :root {
        --site-wide-width: min(calc(100vw - 96px), 1840px);
      }

      .ai-site-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .ai-site-section pre {
        font-size: 0.84rem;
      }
    }

    @media (min-width: 2400px) and (min-height: 1180px) {
      :root {
        --site-wide-width: min(calc(100vw - 120px), 2360px);
      }

      .page,
      .ai-site-header-inner {
        width: var(--site-wide-width);
      }

      .hero {
        max-width: min(100%, 1840px);
      }

      .announcement {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .ai-site-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      #release-history.ai-site-sections {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      .about {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 1060px) {
      html.is-site-menu-open,
      html.is-site-menu-open body {
        overflow: hidden;
      }

      .ai-site-header-inner {
        min-height: 64px;
      }

      .ai-site-menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 70;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        border-color: rgba(87, 184, 255, 0.35);
        background: rgba(8, 16, 32, 0.56);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
      }

      .ai-site-menu-toggle:hover,
      .ai-site-menu-toggle:focus-visible,
      .ai-site-header.is-menu-open .ai-site-menu-toggle {
        border-color: rgba(87, 184, 255, 0.72);
        background: rgba(18, 42, 72, 0.72);
        color: #fff7c0;
        outline: none;
      }

      .ai-site-nav {
        position: fixed;
        top: 70px;
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: auto;
        z-index: 55;
        display: block;
        max-height: calc(100dvh - 86px);
        padding: 12px;
        border: 1px solid rgba(87, 184, 255, 0.24);
        border-radius: 10px;
        background: rgba(3, 7, 18, 0.985);
        box-shadow: 0 22px 64px rgba(0,0,0,0.68), inset 0 0 0 1px rgba(255,255,255,0.04);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
      }

      .ai-site-nav.is-open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
      }

      .ai-site-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .ai-site-nav-list > li {
        min-width: 0;
      }

      .ai-site-nav-link,
      .ai-site-nav-summary {
        display: flex;
        align-items: center;
        min-height: 42px;
        width: 100%;
        padding: 9px 10px;
        border: 1px solid rgba(145, 170, 210, 0.20);
        border-radius: 8px;
        background: rgba(9, 18, 35, 0.62);
        color: var(--text-color);
        font-size: 0.92rem;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .ai-site-nav-summary {
        justify-content: space-between;
      }

      .ai-site-nav-summary::after {
        content: "+";
        margin-left: auto;
        color: var(--muted-color);
      }

      .ai-site-nav-more[open] .ai-site-nav-summary::after {
        content: "-";
        color: var(--accent-soft);
      }

      .ai-site-nav-link:hover,
      .ai-site-nav-link:focus-visible,
      .ai-site-nav-summary:hover,
      .ai-site-nav-summary:focus-visible {
        border-color: rgba(87, 184, 255, 0.54);
        background: rgba(18, 42, 72, 0.74);
        color: var(--accent-soft);
        text-decoration: none;
        outline: none;
      }

      .ai-site-nav-more {
        grid-column: 1 / -1;
        position: static;
        text-align: left;
      }

      .ai-site-nav-more-list {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
        max-height: none;
        margin-top: 8px;
        padding: 8px;
        border: 1px solid rgba(145, 170, 210, 0.16);
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.18);
        box-shadow: none;
        overflow: visible;
      }

      .ai-site-nav-more-list .ai-site-nav-link {
        padding: 8px 9px;
        font-size: 0.84rem;
        white-space: normal;
      }
    }

    @media (min-width: 761px) and (max-width: 1060px) {
      .ai-site-nav {
        left: 50%;
        right: auto;
        width: min(calc(100vw - 40px), 720px);
        transform: translate(-50%, -10px);
      }

      .ai-site-nav.is-open {
        transform: translate(-50%, 0);
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        min-width: 0;
        overflow-x: clip;
      }

      .page,
      .ai-site-header-inner {
        width: min(100% - 20px, 1040px);
      }

      .ai-site-brand {
        max-width: calc(100vw - 96px);
      }

      .page {
        padding-top: 76px;
      }

      .hero {
        padding: 12px 10px;
      }

      .hero-crawl-scene {
        height: min(15vh, 112px);
        min-height: 92px;
      }

      .hero-crawl-track {
        font-size: clamp(1.28rem, 8vw, 1.72rem);
      }

      .announcement,
      .card,
      .about,
      .ai-site-section {
        padding: 14px;
      }

      .announcement {
        margin-block: 1rem 1.2rem;
        font-size: 0.86rem;
        line-height: 1.5;
      }

      .cards,
      .ai-site-sections {
        gap: 12px;
        margin-top: 14px;
      }

      .ai-site-section p,
      .card p,
      .about p {
        font-size: 0.86rem;
      }

      .ai-site-section ul {
        padding-left: 1rem;
        font-size: 0.84rem;
      }

      .ai-site-section pre {
        overflow-x: hidden;
        padding: 0.72rem;
        white-space: pre-wrap;
        font-size: 0.76rem;
        line-height: 1.45;
      }

      .ai-site-section pre code {
        white-space: pre-wrap;
      }
    }

    @media (max-width: 420px) {
      .page,
      .ai-site-header-inner {
        width: min(100% - 16px, 1040px);
      }

      .ai-site-nav {
        top: 66px;
        left: 8px;
        right: 8px;
        max-height: calc(100dvh - 74px);
        padding: 9px;
      }

      .ai-site-nav-list,
      .ai-site-nav-more-list {
        grid-template-columns: 1fr;
        gap: 7px;
      }

      .ai-site-nav-link,
      .ai-site-nav-summary {
        min-height: 40px;
        padding: 8px 9px;
        font-size: 0.88rem;
      }

      .hero-badges a {
        min-height: 32px;
      }

      .hero-badges img {
        max-height: 23px;
      }

      .link-button {
        min-width: 0;
      }
    }
  

                        .hero-crawl-canvas,
                        .hero-crawl-viewport {
                            display: none !important;
                        }
                    