        /* Base Environment - KaOS Amethyst Theme */
        body,
        html {
            margin: 0;
            padding: 0;
            width: 100vw;
            height: 100vh;
            /* Deep royal purple/black fallback */
            background-color: #09030f;
            font-family: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow: hidden;
            user-select: none;
            color: #eff0f1;
        }

        body.runtime-paused *,
        body.runtime-paused *::before,
        body.runtime-paused *::after {
            animation-play-state: paused !important;
        }

        *,
        *::before,
        *::after {
            -webkit-user-select: none !important;
            user-select: none !important;
        }

        /* Global Thin Scrollbars (Appear on hover) */
        * {
            scrollbar-width: none;
            scrollbar-color: transparent transparent;
        }

        *:hover {
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 132, 252, 0.4) transparent;
        }

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

        ::-webkit-scrollbar-track,
        ::-webkit-scrollbar-thumb {
            background: transparent;
            border-radius: 3px;
        }

        *:hover::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
        }

        *:hover::-webkit-scrollbar-thumb {
            background: rgba(192, 132, 252, 0.4);
        }

        *:hover::-webkit-scrollbar-thumb:hover {
            background: rgba(192, 132, 252, 0.7);
        }

        /* Video Background */
        #bg-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            object-fit: cover;
            pointer-events: none;
        }

        #avatar-3d-window {
            top: 24px;
            left: 24px;
            bottom: auto;
            width: 352px;
            height: 316px;
        }

        .avatar-live-badges {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .avatar-live-pill {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            letter-spacing: 0.08em;
            font-weight: 700;
            border-radius: 999px;
            padding: 2px 8px;
            color: #fee2e2;
            border: 1px solid rgba(239, 68, 68, 0.55);
            background: linear-gradient(180deg, rgba(248, 113, 113, 0.36), rgba(185, 28, 28, 0.26));
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
        }

        .avatar-viewers {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            color: #dbeafe;
            border: 1px solid rgba(59, 130, 246, 0.38);
            background: rgba(59, 130, 246, 0.15);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .avatar-viewers i {
            width: 10px;
            height: 10px;
        }

        .avatar-window-status {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.14);
            white-space: nowrap;
            margin-left: 6px;
            flex-shrink: 0;
        }

        .avatar-window-status.ok {
            color: #bbf7d0;
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.14);
        }

        .avatar-window-status.warn {
            color: #fde68a;
            border-color: rgba(245, 158, 11, 0.45);
            background: rgba(245, 158, 11, 0.16);
        }

        .avatar-window-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 7px;
            padding: 9px;
            padding-bottom: 0px;
            min-height: 0;
            box-sizing: border-box;
            background: rgba(0, 0, 0, 0.18);
        }

        .avatar-window-viewport {
            flex: 1;
            min-height: 219.375px;
            border: 1px solid rgba(192, 132, 252, 0.2);
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            background:
                radial-gradient(circle at 30% 22%, rgba(192, 132, 252, 0.14), transparent 54%),
                linear-gradient(145deg, rgba(7, 4, 14, 0.92), rgba(19, 11, 31, 0.86));
        }

        .avatar-window-viewport::before {
            content: "LIVE • AVATAR FEED";
            position: absolute;
            top: 6px;
            left: 7px;
            z-index: 2;
            pointer-events: none;
            font-family: 'Hack', monospace;
            font-size: 9px;
            letter-spacing: 0.09em;
            color: rgba(254, 242, 242, 0.92);
            border: 1px solid rgba(239, 68, 68, 0.55);
            background: rgba(153, 27, 27, 0.5);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .avatar-window-viewport::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.08));
            mix-blend-mode: screen;
        }

        #avatar-window-canvas {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .avatar-stream-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            color: #c7d2fe;
            letter-spacing: 0.04em;
        }

        .avatar-stream-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        .avatar-stream-meta i {
            width: 10px;
            height: 10px;
            opacity: 0.9;
        }

        .avatar-window-note {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #a78bfa;
            font-family: 'Hack', monospace;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Desktop grid for artifacts */
        #desktop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: calc(100% - 40px);
            z-index: 1;
        }

        #neko-path-overlay {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 6;
            pointer-events: none;
            overflow: visible;
        }

        .neko-path-line {
            fill: none;
            stroke: rgba(192, 132, 252, 0.34);
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 7 6;
            filter: blur(0.65px) drop-shadow(0 0 4px rgba(192, 132, 252, 0.22));
        }

        .neko-path-corner {
            fill: rgba(196, 181, 253, 0.16);
            stroke: rgba(196, 181, 253, 0.78);
            stroke-width: 1.2;
            filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.35));
        }

        .neko-path-corner-core {
            fill: rgba(240, 171, 252, 0.95);
            stroke: rgba(168, 85, 247, 0.9);
            stroke-width: 0.8;
            filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.48));
        }

        .neko-path-target {
            fill: rgba(125, 211, 252, 0.2);
            stroke: rgba(125, 211, 252, 0.95);
            stroke-width: 1.35;
            filter: drop-shadow(0 0 7px rgba(125, 211, 252, 0.5));
        }

        .neko-path-target-core {
            fill: rgba(240, 249, 255, 0.98);
            stroke: rgba(56, 189, 248, 0.95);
            stroke-width: 0.9;
            filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
        }

        .desktop-weather-widget {
            position: absolute;
            top: 14px;
            right: 16px;
            width: 292px;
            background: rgba(15, 8, 25, 0.58);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(192, 132, 252, 0.08);
            padding: 9px 10px;
            color: #eff0f1;
            z-index: 7;
            pointer-events: none;
        }

        .weather-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #c084fc;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .weather-head-left {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .weather-head svg {
            width: 14px;
            height: 14px;
        }

        .weather-rain-pill {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.12);
            white-space: nowrap;
        }

        .weather-rain-pill.wet {
            color: #fecaca;
            border-color: rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.18);
        }

        .weather-rain-pill.risk {
            color: #fde68a;
            border-color: rgba(245, 158, 11, 0.42);
            background: rgba(245, 158, 11, 0.16);
        }

        .weather-rain-pill.dry {
            color: #bbf7d0;
            border-color: rgba(34, 197, 94, 0.45);
            background: rgba(34, 197, 94, 0.16);
        }

        .weather-main {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-top: 5px;
        }

        .weather-temp {
            font-size: clamp(12.1px, calc(17.3 * 100vh / 1080), 25.9px);
            color: #f8f0e3;
            font-weight: 700;
            line-height: 1;
            font-family: 'Hack', monospace;
        }

        .weather-cond {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #bdc3c7;
            max-width: 128px;
            text-align: right;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .weather-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 10px;
            margin-top: 7px;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            color: #94a3b8;
            font-family: 'Hack', monospace;
        }

        .weather-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .weather-meta svg {
            width: 11px;
            height: 11px;
            opacity: 0.85;
            color: #a78bfa;
        }

        .weather-rain-grid {
            margin-top: 7px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px 8px;
            padding-top: 6px;
            border-top: 1px solid rgba(192, 132, 252, 0.16);
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #cbd5e1;
            font-family: 'Hack', monospace;
        }

        .weather-rain-item {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            min-width: 0;
        }

        .weather-rain-label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-width: 0;
        }

        .weather-rain-label svg {
            width: 10px;
            height: 10px;
            opacity: 0.8;
            color: #a78bfa;
            flex-shrink: 0;
        }

        .weather-rain-item span:first-child {
            color: #94a3b8;
        }

        .weather-rain-item span:last-child {
            color: #e2e8f0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .weather-days-grid {
            margin-top: 7px;
            padding-top: 6px;
            border-top: 1px solid rgba(192, 132, 252, 0.16);
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            font-family: 'Hack', monospace;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
        }

        .weather-day-card {
            background: rgba(0, 0, 0, 0.24);
            border: 1px solid rgba(192, 132, 252, 0.15);
            border-radius: 5px;
            padding: 5px 6px;
            min-width: 0;
        }

        .weather-day-name {
            color: #c4b5fd;
            font-weight: 700;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .weather-day-temp {
            color: #f8f0e3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .weather-day-rain {
            color: #93c5fd;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .weather-updated {
            margin-top: 6px;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #a78bfa;
        }

        .desktop-air-quality-widget {
            position: absolute;
            top: 246px;
            right: 16px;
            width: 292px;
            background: rgba(15, 8, 25, 0.58);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(192, 132, 252, 0.08);
            padding: 9px 10px;
            color: #eff0f1;
            z-index: 7;
            pointer-events: none;
        }

        .aq-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #c084fc;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .aq-head-left {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .aq-head svg {
            width: 14px;
            height: 14px;
        }

        .aq-alert-pill {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.12);
            white-space: nowrap;
        }

        .aq-alert-pill.good {
            color: #bbf7d0;
            border-color: rgba(34, 197, 94, 0.45);
            background: rgba(34, 197, 94, 0.16);
        }

        .aq-alert-pill.moderate {
            color: #fde68a;
            border-color: rgba(245, 158, 11, 0.45);
            background: rgba(245, 158, 11, 0.16);
        }

        .aq-alert-pill.sensitive,
        .aq-alert-pill.unhealthy,
        .aq-alert-pill.very-unhealthy,
        .aq-alert-pill.hazardous {
            color: #fecaca;
            border-color: rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.16);
        }

        .aq-main {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-top: 5px;
            gap: 8px;
        }

        .aq-value {
            font-size: clamp(12.1px, calc(17.3 * 100vh / 1080), 25.9px);
            color: #f8f0e3;
            font-weight: 700;
            line-height: 1;
            font-family: 'Hack', monospace;
        }

        .aq-level {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #bdc3c7;
            text-align: right;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .aq-grid {
            margin-top: 7px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px 8px;
            padding-top: 6px;
            border-top: 1px solid rgba(192, 132, 252, 0.16);
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #cbd5e1;
            font-family: 'Hack', monospace;
        }

        .aq-item {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            min-width: 0;
        }

        .aq-item span:first-child {
            color: #94a3b8;
        }

        .aq-item span:last-child {
            color: #e2e8f0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .aq-updated {
            margin-top: 6px;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #a78bfa;
        }

        .desktop-traffic-widget {
            position: absolute;
            top: 432px;
            right: 16px;
            width: 292px;
            background: rgba(15, 8, 25, 0.58);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(192, 132, 252, 0.08);
            padding: 9px 10px;
            color: #eff0f1;
            z-index: 7;
            pointer-events: auto;
        }

        .traffic-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #c084fc;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .traffic-head-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .traffic-head svg {
            width: 14px;
            height: 14px;
        }

        .traffic-status {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .traffic-status.live {
            color: #bbf7d0;
            border: 1px solid rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.14);
        }

        .traffic-status.recover {
            color: #fde68a;
            border: 1px solid rgba(245, 158, 11, 0.45);
            background: rgba(245, 158, 11, 0.14);
        }

        .traffic-status.failover {
            color: #fecaca;
            border: 1px solid rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.14);
        }

        .traffic-feed-wrap {
            margin-top: 7px;
            border: 1px solid rgba(192, 132, 252, 0.18);
            border-radius: 6px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.32);
            position: relative;
            min-height: 158px;
        }

        #iz-traffic-feed {
            display: block;
            width: 100%;
            height: 158px;
            object-fit: cover;
        }

        .traffic-feed-fallback {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 12px;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            line-height: 1.35;
            color: #c4b5fd;
            font-family: 'Hack', monospace;
            background: linear-gradient(135deg, rgba(20, 12, 32, 0.82), rgba(10, 6, 18, 0.86));
        }

        .traffic-feed-fallback.hidden {
            display: none;
        }

        .traffic-controls {
            margin-top: 7px;
            display: grid;
            grid-template-columns: 28px 1fr 28px 34px;
            gap: 6px;
        }

        .traffic-btn,
        .traffic-select {
            border-radius: 4px;
            border: 1px solid rgba(192, 132, 252, 0.25);
            background: rgba(192, 132, 252, 0.08);
            color: #e2e8f0;
            font-family: 'Hack', monospace;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            height: 26px;
        }

        .traffic-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .traffic-btn:hover {
            background: rgba(192, 132, 252, 0.18);
        }

        .traffic-btn svg {
            width: 12px;
            height: 12px;
        }

        .traffic-select {
            padding: 0 6px;
            outline: none;
        }

        .traffic-updated {
            margin-top: 6px;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #a78bfa;
        }

        .desktop-instagram-widget {
            position: absolute;
            top: 624px;
            right: 16px;
            width: 292px;
            background: rgba(15, 8, 25, 0.58);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(192, 132, 252, 0.08);
            padding: 9px 10px;
            color: #eff0f1;
            z-index: 7;
            pointer-events: auto;
        }

        .ig-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #c084fc;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .ig-head-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ig-head svg {
            width: 14px;
            height: 14px;
        }

        .ig-status {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.14);
        }

        .ig-status.ok {
            color: #bbf7d0;
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.14);
        }

        .ig-status.warn {
            color: #fde68a;
            border-color: rgba(245, 158, 11, 0.45);
            background: rgba(245, 158, 11, 0.16);
        }

        .ig-profile {
            margin-top: 7px;
            border: 1px solid rgba(192, 132, 252, 0.2);
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.24);
            padding: 7px;
        }

        .ig-profile-head {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
        }

        .ig-profile-title {
            flex: 1;
            min-width: 0;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            font-family: 'Hack', monospace;
            color: #f5d0fe;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ig-link-btn {
            border-radius: 4px;
            border: 1px solid rgba(192, 132, 252, 0.3);
            background: rgba(192, 132, 252, 0.1);
            color: #e2e8f0;
            font-family: 'Hack', monospace;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            padding: 3px 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 34px;
        }

        .ig-link-btn:hover {
            background: rgba(192, 132, 252, 0.2);
        }


        .ig-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid rgba(192, 132, 252, 0.35);
            box-shadow: 0 0 8px rgba(192, 132, 252, 0.22);
            background: #fff;
        }



        .ig-note {
            margin-top: 6px;
            font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            color: #93a4bd;
            font-family: 'Hack', monospace;
        }

        .ig-embed-fallback {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            padding: 10px;
            color: #c4b5fd;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            font-family: 'Hack', monospace;
            background: linear-gradient(135deg, rgba(20, 12, 32, 0.82), rgba(10, 6, 18, 0.86));
        }

        .ig-embed-fallback a {
            color: #e9d5ff;
            text-decoration: none;
            border: 1px solid rgba(192, 132, 252, 0.35);
            background: rgba(192, 132, 252, 0.16);
            border-radius: 4px;
            padding: 4px 8px;
        }

        .ig-embed-fallback a:hover {
            background: rgba(192, 132, 252, 0.24);
            border-color: rgba(192, 132, 252, 0.52);
        }

        .desktop-linkedin-widget {
            position: absolute;
            top: 798px;
            right: 16px;
            width: 292px;
            background: rgba(15, 8, 25, 0.58);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(192, 132, 252, 0.08);
            padding: 9px 10px;
            color: #eff0f1;
            z-index: 7;
            pointer-events: auto;
        }

        .li-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #c084fc;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .li-head-left {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .li-head svg {
            width: 14px;
            height: 14px;
        }

        .li-badge {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(34, 197, 94, 0.36);
            color: #bbf7d0;
            background: rgba(34, 197, 94, 0.14);
        }

        .li-card {
            margin-top: 7px;
            border: 1px solid rgba(192, 132, 252, 0.2);
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.24);
            padding: 8px;
        }

        .li-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            text-decoration: none;
            border-radius: 5px;
            border: 1px solid rgba(192, 132, 252, 0.26);
            background: rgba(192, 132, 252, 0.08);
            color: #e2e8f0;
            font-family: 'Hack', monospace;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            padding: 7px 8px;
            transition: background 0.18s ease, border-color 0.18s ease;
        }

        .li-link:hover {
            background: rgba(192, 132, 252, 0.2);
            border-color: rgba(192, 132, 252, 0.42);
        }

        .li-link-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .li-link-label span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .li-link svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
        }

        /* Music Widget */
        .desktop-music-widget {
            position: absolute;
            right: 16px;
            width: 292px;
            background: rgba(20, 10, 30, 0.85);
            /* Reverted background color */
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: none;
            border-radius: 8px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(192, 132, 252, 0.05);
            /* Reverted shadow */
            padding: 12px 14px;
            /* Reverted padding */
            color: #eff0f1;
            z-index: 7;
            pointer-events: auto;
        }

        .music-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            /* Reverted font size */
            color: #c084fc;
            font-weight: bold;
            /* Reverted font-weight */
        }

        .music-head-left {
            display: flex;
            align-items: center;
            gap: 8px;
            /* Reverted gap */
        }

        .music-head svg {
            width: 16px;
            /* Reverted svg size */
            height: 16px;
        }

        .music-status-pill {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            border-radius: 999px;
            padding: 2px 7px;
            transition: all 0.2s ease;
        }

        .music-status-pill.playing {
            color: #bbf7d0;
            border: 1px solid rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.14);
        }

        .music-status-pill.stopped {
            color: #cbd5e1;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(148, 163, 184, 0.14);
        }

        /* Reverting layout rules back to index.html definition */

        .music-title {
            font-size: clamp(7.3px, calc(10.5 * 100vh / 1080), 15.8px);
            /* Reverted font size */
            color: #eff0f1;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .music-artist {
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            /* Reverted font size */
            color: #bdc3c7;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .music-visualizer {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 3px;
            height: 24px;
            margin-top: 4px;
        }

        .music-bar {
            width: 4px;
            background: linear-gradient(to top, rgba(125, 211, 252, 0.8), rgba(192, 132, 252, 0.9));
            border-radius: 2px;
            height: 2px;
            transition: height 0.05s ease;
            box-shadow: 0 0 4px rgba(192, 132, 252, 0.4);
        }

        .music-controls {
            margin-top: 7px;
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        .music-btn {
            background: transparent;
            border: none;
            color: #bdc3c7;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            padding: 2px;
        }

        .music-btn:hover {
            color: #e2e8f0;
            transform: scale(1.1);
        }

        .music-btn svg {
            width: 14px;
            height: 14px;
        }

        .music-btn.play-btn svg {
            width: 18px;
            height: 18px;
        }

        #music-playlist-toggle {
            flex-direction: column;
            align-items: center;
            font-size: 8px;
            font-weight: bold;
            line-height: 1.1;
            padding: 4px 6px;
            gap: 1px;
            width: auto;
            min-width: 44px;
        }

        .toggle-track-state {
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .toggle-track-state span {
            font-size: 8px;
            color: #bdc3c7;
        }

        .toggle-track-label {
            font-size: 7px;
            letter-spacing: 0.05em;
            opacity: 0.8;
            text-transform: uppercase;
        }

        #music-playlist-toggle svg {
            width: 14px;
            height: 14px;
            color: #bdc3c7;
        }

        #mobile-experience-alert {
            display: none;
        }

        @media (max-width: 900px) {
            :root {
                /* Always reserve 44-59px at top for dynamic island/notch zones. */
                --mobile-safe-top: clamp(22px, calc(44px + env(safe-area-inset-top)), 59px);
                /* Keep extra room for browser/address bars and gesture areas. */
                --mobile-safe-bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
                --mobile-side-pad: max(10px, env(safe-area-inset-left));
                --mobile-side-pad-right: max(10px, env(safe-area-inset-right));
                --mobile-widget-h-sm: clamp(108px, 15dvh, 122px);
                --mobile-widget-h-md: clamp(188px, 26dvh, 226px);
                --mobile-widget-h-lg: clamp(216px, 31dvh, 272px);
                --mobile-window-h-sm: clamp(130px, 20dvh, 182px);
                --mobile-window-h-md: clamp(150px, 24dvh, 220px);
                --mobile-window-h-lg: clamp(172px, 28dvh, 255px);
            }

            html,
            body {
                width: 100dvw;
                min-height: 100dvh;
                height: auto;
                overflow-y: auto;
                overflow-x: hidden;
            }

            #desktop {
                top: 0;
                height: auto;
                min-height: calc(100svh - var(--mobile-safe-bottom));
                overflow-y: visible;
                overflow-x: hidden;
                padding: var(--mobile-side-pad) var(--mobile-side-pad-right) calc(var(--mobile-safe-bottom) + 10px) var(--mobile-side-pad);
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            #bg-video {
                position: fixed;
                width: 100vw;
                height: 100vh;
                height: 100dvh;
                object-fit: cover;
                z-index: -1;
            }

            #taskbar {
                display: none !important;
            }

            #mobile-experience-alert {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                position: sticky;
                top: 0;
                z-index: 30;
                width: 100%;
                align-self: stretch;
                margin: 0;
                box-sizing: border-box;
                border-radius: 8px;
                border: 1px solid rgba(245, 158, 11, 0.45);
                background: rgba(28, 16, 10, 0.82);
                color: #fde68a;
                font-family: 'Hack', monospace;
                max-height: var(--mobile-widget-h-sm);
                overflow: hidden;
                box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
            }

            #mobile-experience-alert .mobile-alert-titlebar {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 8px 10px;
                font-size: clamp(9.45px, calc(13.5 * 100vh / 1080), 20.25px);
                line-height: 1.2;
                font-weight: 700;
                color: #fde68a;
                background:
                    repeating-linear-gradient(135deg, rgba(251, 191, 36, 0.28) 0 8px, rgba(245, 158, 11, 0.16) 8px 16px),
                    linear-gradient(90deg, rgba(124, 45, 18, 0.78), rgba(146, 64, 14, 0.62));
                border-bottom: 1px solid rgba(245, 158, 11, 0.45);
            }

            #mobile-experience-alert .mobile-alert-titlebar svg {
                width: 16px;
                height: 16px;
                flex-shrink: 0;
                color: #f59e0b;
            }

            #mobile-experience-alert .mobile-alert-body {
                padding: 10px 11px;
                font-size: clamp(9.45px, calc(13.5 * 100vh / 1080), 20.25px);
                line-height: 1.45;
                color: #fde68a;
                text-align: center;
                overflow: auto;
            }

            .desktop-instagram-widget,
            .desktop-linkedin-widget,
            .desktop-air-quality-widget,
            .desktop-weather-widget,
            .desktop-traffic-widget,
            .desktop-music-widget {
                position: relative !important;
                top: auto !important;
                right: auto !important;
                left: auto !important;
                width: 100% !important;
                max-width: none !important;
                box-sizing: border-box;
                margin: 0 !important;
                padding: 8px 9px;
                border-radius: 8px;
                height: auto !important;
                min-height: 0 !important;
                max-height: var(--mobile-widget-h-lg);
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            #izmir-weather-widget {
                height: auto;
                max-height: none;
            }

            #izmir-air-quality-widget {
                height: auto;
                max-height: none;
            }

            #izmir-traffic-widget {
                height: auto;
                max-height: none;
            }

            #instagram-widget {
                height: auto;
                max-height: none;
            }

            #linkedin-widget {
                height: auto;
                max-height: none;
            }

            #izmir-weather-widget .weather-rain-grid,
            #izmir-weather-widget .weather-days-grid,
            #izmir-air-quality-widget .aq-grid,
            #izmir-traffic-widget .traffic-feed-wrap,
            #izmir-traffic-widget .traffic-controls,
            #instagram-widget .ig-profile {
                min-height: 0;
            }

            #izmir-weather-widget .weather-rain-grid,
            #izmir-weather-widget .weather-days-grid,
            #izmir-air-quality-widget .aq-grid {
                overflow: auto;
            }

            #izmir-traffic-widget .traffic-feed-wrap {
                overflow: hidden;
            }

            .weather-rain-grid {
                gap: 3px 6px;
                font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            }

            .weather-days-grid {
                gap: 4px;
                font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            }

            .weather-day-card {
                padding: 4px 5px;
            }

            .traffic-feed-wrap {
                min-height: 0;
                height: clamp(102px, 14.5dvh, 140px);
                aspect-ratio: auto;
            }

            #iz-traffic-feed {
                height: 100%;
            }

            .traffic-controls {
                margin-top: 6px;
                grid-template-columns: 24px 1fr 24px 30px;
                gap: 5px;
            }

            .traffic-btn,
            .traffic-select {
                height: 24px;
                font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            }

            .kaos-notification {
                width: 100%;
                max-width: 400px;
                animation: slideInTopMobile 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.5s ease-in 4.5s forwards !important;
            }

            .traffic-updated {
                margin-top: 5px;
                font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            }

            .ig-profile,
            .li-card {
                margin-top: 6px;
                padding: 6px;
            }


            .ig-note {
                margin-top: 5px;
                font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            }

            #instagram-widget {
                order: 1;
            }

            #linkedin-widget {
                order: 3;
            }

            #music-widget {
                order: 2;
            }

            #izmir-weather-widget {
                order: 4;
            }

            #izmir-air-quality-widget {
                order: 5;
            }

            #izmir-traffic-widget {
                order: 6;
            }

            #avatar-3d-window {
                display: flex !important;
                flex-direction: column;
                height: auto !important;
                min-height: max-content;
                order: 0;
            }

            #avatar-window-canvas {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            #main-terminal {
                display: none !important;
            }

            #desktop>.window {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                right: auto !important;
                bottom: auto !important;
                width: 100% !important;
                height: auto !important;
                min-height: max-content !important;
                max-height: none !important;
                overflow: hidden;
                z-index: 8 !important;
            }

            #desktop>.window .terminal-content,
            #desktop>.window .mon-grid,
            #desktop>.window .canvas-container,
            #desktop>.window .mem-grid-container,
            #desktop>.window .gpu-grid-container,
            #desktop>.window .tensor25b2-body,
            #desktop>.window .drive-list,
            #desktop>.window .mood-container {
                min-height: 0;
                overflow-y: auto;
                flex: 1;
            }

            #desktop>#gpu-monitor .gpu-grid-container {
                grid-template-columns: 1fr;
                gap: 8px;
                padding: 8px;
                align-content: start;
                align-items: start;
            }

            #desktop>#mem-map .mem-grid-container {
                grid-template-columns: repeat(12, 1fr);
                padding: 8px;
            }

            #notification-area {
                left: var(--mobile-side-pad);
                right: var(--mobile-side-pad-right);
                top: calc(var(--mobile-safe-top) + 8px);
                bottom: auto;
                align-items: center;
                z-index: 999999;
                width: calc(100vw - var(--mobile-side-pad) - var(--mobile-side-pad-right));
            }

            .kaos-notification {
                width: 100%;
                max-width: 480px;
                padding: 16px;
                gap: 12px;
                animation: slideInTopMobile 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.5s ease-in 4.5s forwards !important;
            }

            .kaos-notification .notif-title {
                font-size: clamp(10px, calc(14.5 * 100vh / 1080), 20px);
            }

            .kaos-notification .notif-msg {
                font-size: clamp(9px, calc(13 * 100vh / 1080), 18px);
            }

            #ai-mood-monitor {
                order: 5;
            }

            #sys-monitor {
                order: 6;
            }

            #net-monitor {
                order: 7;
            }

            #mem-map {
                order: 8;
            }

            #storage-monitor {
                order: 9;
            }

            #gpu-monitor {
                order: 10;
            }

            #tensor25b2-monitor {
                order: 11;
            }

            .window-controls {
                display: none;
            }

            .menu-bar {
                display: none;
            }

            .titlebar {
                cursor: default;
            }

            #three-vis-container,
            .vis-wrapper,
            .desktop-icon,
            #neko-path-overlay,
            .hud-terminal,
            .popup-window,
            .sub-terminal-window,
            .inspector-window {
                display: none !important;
            }
        }

        #boot-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000001;
            background: transparent;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0 0 22px;
            transition: opacity 0.3s ease;
            overflow: hidden;
        }

        #boot-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        /* Keep only boot layer + bg video visible until boot overlay is removed. */
        #boot-overlay~* {
            display: none !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        .boot-video {
            position: absolute;
            inset: 0;
            width: 100vw;
            height: 100dvh;
            object-fit: cover;
            opacity: 1;
            pointer-events: none;
            filter: saturate(1.05) brightness(0.8);
        }

        .boot-box {
            width: min(860px, 94vw);
            border: none;
            background: transparent;
            box-shadow: none;
            padding: 0;
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .boot-title {
            font-size: clamp(8.4px, calc(12.0 * 100vh / 1080), 18.0px);
            color: #f5d0fe;
            font-weight: 700;
            letter-spacing: 0.35px;
            margin-bottom: 4px;
            font-family: 'Hack', monospace;
            text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(192, 132, 252, 0.34);
        }

        .boot-log {
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            color: #ddd6fe;
            font-family: 'Hack', monospace;
            min-height: 15px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-shadow: 0 0 6px rgba(0, 0, 0, 0.85), 0 0 10px rgba(125, 211, 252, 0.3);
        }

        .boot-indicator-track {
            width: min(360px, 70vw);
            height: 4px;
            margin: 6px auto 0;
            border-radius: 999px;
            border: 1px solid rgba(192, 132, 252, 0.28);
            background: rgba(17, 24, 39, 0.42);
            overflow: hidden;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.45);
        }

        .boot-indicator-fill {
            width: 0%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, rgba(125, 211, 252, 0.88), rgba(192, 132, 252, 0.92));
            box-shadow: 0 0 12px rgba(125, 211, 252, 0.45), 0 0 14px rgba(192, 132, 252, 0.32);
            transition: width 0.18s ease;
        }

        /* Desktop Icons (Artifacts) */
        .desktop-icon {
            position: absolute;
            width: 72px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            z-index: 2;
            animation: fadeIn 0.3s ease-out;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background 0.2s;
        }

        .desktop-icon:hover {
            background: rgba(192, 132, 252, 0.15);
        }

        .icon-graphic {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c084fc;
            /* Amethyst Purple */
            margin-bottom: 4px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
        }

        .icon-label {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            word-break: break-all;
            background: rgba(0, 0, 0, 0.4);
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Window System */
        .window {
            position: absolute;
            background: rgba(15, 8, 25, 0.55);
            /* Highly transparent deep violet */
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.35);
            /* Purple trim */
            border-radius: 8px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(192, 132, 252, 0.05);
            display: flex;
            flex-direction: column;
            z-index: 10;
            overflow: hidden;
        }

        /* Main window specifically */
        #main-terminal {
            width: 65%;
            height: 70%;
            top: 10%;
            left: 5%;
            z-index: 5;
        }

        /* Authentic KDE Breeze Titlebar */
        .titlebar {
            height: 32px;
            min-height: 32px;
            /* Ensure absolute consistency */
            flex-shrink: 0;
            /* Prevent flexbox from squishing the titlebar */
            background: rgba(192, 132, 252, 0.05);
            border-bottom: 1px solid rgba(192, 132, 252, 0.2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 12px;
            cursor: grab;
        }

        .titlebar:active {
            cursor: grabbing;
        }

        .title-text {
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            color: #eff0f1;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            min-width: 0;
            flex: 1;
            margin-right: 10px;
        }

        .title-text span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .title-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c084fc;
            flex-shrink: 0;
        }

        .title-icon svg {
            width: 16px;
            height: 16px;
        }

        /* Realistic Window Controls */
        .window-controls {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
        }

        .control-btn {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #eff0f1;
            opacity: 0.6;
            cursor: pointer;
            transition: all 0.2s;
        }

        .control-btn svg {
            width: 12px;
            height: 12px;
            stroke-width: 3;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            opacity: 1;
        }

        .control-btn.close:hover {
            background: #ed1515;
            color: white;
            opacity: 1;
        }

        /* Menu Bar for Terminal Realism */
        .menu-bar {
            height: 24px;
            background: rgba(192, 132, 252, 0.03);
            border-bottom: 1px solid rgba(192, 132, 252, 0.15);
            display: flex;
            align-items: center;
            padding: 0 10px;
            gap: 15px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #bdc3c7;
        }

        .menu-bar span:hover {
            color: #c084fc;
        }

        .menu-bar span,
        #start-button,
        .k-menu,
        .systray-icon,
        .control-btn:not(.close),
        #taskbar .task-item {
            cursor: not-allowed !important;
        }

        /* Terminal Output Area */
        .terminal-content {
            flex: 1;
            background: rgba(0, 0, 0, 0.2);
            /* Much more transparent */
            color: #f8f0e3;
            /* Off-white / parchment tint */
            font-family: 'Hack', 'Fira Code', 'Courier New', monospace;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            line-height: 1.5;
            padding: 8px 12px;
            overflow-x: hidden;
            overflow-y: auto;
            word-break: normal;
            position: relative;
        }

        .term-line {
            min-height: 19px;
            display: block;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .term-timestamp {
            color: #a855f7;
            margin-right: 8px;
        }

        /* Darker Purple */
        .term-hex {
            color: #f0abfc;
            margin-right: 8px;
        }

        /* Soft Pinkish Magenta */
        .term-realword {
            color: #e74c3c;
            font-weight: bold;
        }

        /* Crimson */
        .term-success {
            color: #2ecc71;
        }

        /* Emerald */
        .term-info {
            color: #c084fc;
        }

        /* Amethyst */

        /* Narrow worker terminals: wider layout + no wrapped lines */
        .sub-terminal-window {
            width: 520px;
            height: 290px;
        }

        .sub-terminal-content {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            white-space: nowrap;
            word-break: normal;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .ascii-node-process-line {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            margin: 4px 0;
        }

        .ascii-terminal-body {
            flex-grow: 1;
            padding: 8px;
            background-color: rgba(5, 9, 20, 0.88);
            overflow: hidden;
            font-family: 'Consolas', 'Fira Code', 'Menlo', 'Courier New', monospace;
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            line-height: 1;
            white-space: pre;
            letter-spacing: 0;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            user-select: none;
            color: #4b5e7d;
            position: relative;
            z-index: 5;
        }

        .ascii-terminal-body.ascii-terminal-body-plain {
            background: transparent;
            padding: 0;
            display: block;
            color: #9fb0c9;
            text-shadow: 0 0 5px rgba(192, 132, 252, 0.16);
        }

        .pipe {
            color: #334155;
        }

        .node-border {
            color: #475569;
        }

        .node-text {
            color: #cbd5e1;
            font-weight: bold;
        }

        .node-pulse-border {
            color: #22d3ee;
            text-shadow: 0 0 10px #06b6d4;
            font-weight: bold;
        }

        .node-pulse-text {
            color: #ffffff;
            text-shadow: 0 0 10px #06b6d4, 0 0 20px #22d3ee;
            font-weight: bold;
        }

        .cyan-head {
            color: #ffffff;
            text-shadow: 0 0 10px #06b6d4, 0 0 5px #06b6d4;
            font-weight: bold;
        }

        .cyan-tail-1 {
            color: #22d3ee;
            text-shadow: 0 0 8px #06b6d4;
        }

        .cyan-tail-2 {
            color: #06b6d4;
            text-shadow: 0 0 4px #06b6d4;
        }

        .cyan-tail-3 {
            color: #0891b2;
        }

        .cyan-tail-4 {
            color: #164e63;
        }

        .amber-head {
            color: #ffffff;
            text-shadow: 0 0 10px #f59e0b, 0 0 5px #f59e0b;
            font-weight: bold;
        }

        .amber-tail-1 {
            color: #fbbf24;
            text-shadow: 0 0 8px #f59e0b;
        }

        .amber-tail-2 {
            color: #f59e0b;
            text-shadow: 0 0 4px #f59e0b;
        }

        .amber-tail-3 {
            color: #d97706;
        }

        .amber-tail-4 {
            color: #78350f;
        }

        .purple-head {
            color: #ffffff;
            text-shadow: 0 0 10px #a855f7, 0 0 5px #a855f7;
            font-weight: bold;
        }

        .purple-tail-1 {
            color: #c084fc;
            text-shadow: 0 0 8px #a855f7;
        }

        .purple-tail-2 {
            color: #a855f7;
            text-shadow: 0 0 4px #a855f7;
        }

        .purple-tail-3 {
            color: #7e22ce;
        }

        .purple-tail-4 {
            color: #4c1d95;
        }

        /* HUD Terminal (User Command Input) */
        .hud-terminal {
            position: absolute;
            bottom: 40px;
            /* Sits right above the taskbar */
            left: 0;
            width: 100%;
            height: 160px;
            background: rgba(10, 5, 18, 0.85);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-top: 1px solid rgba(240, 171, 252, 0.6);
            z-index: 999998;
            /* Just behind taskbar (999999) */
            transform: translateY(100%);
            /* Start hidden behind/below taskbar */
            transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
            /* Much snappier transition */
            display: flex;
            flex-direction: column;
            box-shadow: 0 -15px 40px rgba(192, 132, 252, 0.15);
            pointer-events: none;
            /* HUD is non-interactive */
        }

        .hud-header {
            height: 28px;
            background: rgba(240, 171, 252, 0.1);
            border-bottom: 1px solid rgba(240, 171, 252, 0.2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            font-weight: bold;
            color: #f0abfc;
        }

        .hud-content {
            flex: 1;
            padding: 15px;
            font-family: 'Hack', 'Fira Code', 'Courier New', monospace;
            font-size: clamp(7.9px, calc(11.3 * 100vh / 1080), 16.9px);
            color: #eff0f1;
            line-height: 1.6;
        }

        .hud-cursor {
            display: inline-block;
            width: 8px;
            animation: cursorBlink 1s step-end infinite;
            color: #f0abfc;
            vertical-align: middle;
            margin-left: 2px;
        }

        /* Blurry Corner Visualizer Wrapper */
        .vis-wrapper {
            position: absolute;
            bottom: 15px;
            right: 15px;
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.4);
            padding: 4px;
            z-index: 5;
            pointer-events: none;
            box-shadow: inset 0 0 15px rgba(192, 132, 252, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        /* Colorful Noise Overlay */
        .vis-wrapper::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: inherit;
            /* SVG Fractal Noise generator encoded as background */
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            opacity: 0.35;
            mix-blend-mode: color-dodge;
            pointer-events: none;
            animation: noiseJitter 0.35s steps(4) infinite;
            z-index: 10;
        }

        @keyframes noiseJitter {
            0% {
                background-position: 0px 0px;
            }

            25% {
                background-position: 12px -15px;
            }

            50% {
                background-position: -20px 10px;
            }

            75% {
                background-position: 15px 20px;
            }

            100% {
                background-position: 0px 0px;
            }
        }

        #term-vis {
            display: block;
            image-rendering: pixelated;
            filter: blur(0.8px) drop-shadow(0 0 8px rgba(192, 132, 252, 0.55));
            transition: filter 0.5s ease;
        }

        /* Three.js Container */
        #three-vis-container {
            position: absolute;
            top: 65px;
            /* Sits just below the menu bar */
            right: 25px;
            width: 140px;
            height: 140px;
            pointer-events: none;
            z-index: 5;
            filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.5));
            opacity: 0.8;
            transition: opacity 0.5s ease;
        }

        /* Popup Specifics */
        .popup-window {
            z-index: 20;
            width: 350px;
            animation: popupOpen 0.15s ease-out;
        }

        .popup-body {
            background: transparent;
            padding: 16px;
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .progress-container {
            width: 100%;
            height: 8px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(192, 132, 252, 0.2);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #7e22ce, #c084fc);
            transition: width 0.2s linear;
        }

        /* Taskbar */
        #taskbar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: rgba(15, 8, 25, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(192, 132, 252, 0.4);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 12px;
            box-sizing: border-box;
            z-index: 999999;
            box-shadow: 0 -2px 15px rgba(192, 132, 252, 0.15);
        }

        .taskbar-left {
            display: flex;
            align-items: center;
            gap: 8px;
            height: 100%;
        }

        .k-menu {
            height: 32px;
            padding: 0 12px;
            background: transparent;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-weight: 600;
            color: #eff0f1;
            cursor: pointer;
            transition: background 0.2s;
        }

        .k-menu:hover {
            background: rgba(192, 132, 252, 0.15);
        }

        .k-menu svg {
            color: #c084fc;
            width: 18px;
            height: 18px;
        }

        .task-item {
            height: 32px;
            padding: 0 12px;
            background: transparent;
            border-radius: 4px;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
            cursor: default;
        }

        .task-item svg {
            width: 14px;
            height: 14px;
        }

        .task-item:hover {
            background: rgba(192, 132, 252, 0.1);
        }

        .task-item.active {
            background: rgba(192, 132, 252, 0.15);
            box-shadow: inset 0 -2px 0 #c084fc;
        }

        /* Realistic System Tray */
        .taskbar-right {
            display: flex;
            align-items: center;
            height: 100%;
            gap: 4px;
        }

        .taskbar-volume {
            height: 28px;
            width: 28px;
            padding: 0;
            border: none;
            border-radius: 4px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            color: #eff0f1;
            position: relative;
            opacity: 0.8;
            transition: background 0.2s, opacity 0.2s;
        }

        .taskbar-volume:hover {
            background: rgba(255, 255, 255, 0.1);
            opacity: 1;
        }

        .taskbar-volume svg {
            width: 16px;
            height: 16px;
            color: inherit;
        }

        .volume-icon-wrap {
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .volume-unmute-indicator {
            position: absolute;
            top: -17px;
            left: -12px;
            font-size: clamp(4.2px, calc(6.0 * 100vh / 1080), 9.0px);
            line-height: 1;
            font-family: 'Hack', monospace;
            color: #fef3c7;
            border: 1px solid rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.2);
            border-radius: 999px;
            padding: 2px 5px;
            white-space: nowrap;
            animation: pulseUnmute 1.2s ease-in-out infinite;
            pointer-events: none;
        }

        .volume-unmute-indicator.hidden {
            display: none;
        }

        .volume-pop {
            position: absolute;
            right: -6px;
            bottom: 34px;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 8px;
            border: 1px solid rgba(192, 132, 252, 0.28);
            border-radius: 6px;
            background: rgba(15, 8, 25, 0.92);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.52), inset 0 0 10px rgba(192, 132, 252, 0.08);
            opacity: 0;
            transform: translateY(4px);
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease;
            z-index: 4;
        }

        .taskbar-volume:hover .volume-pop,
        .taskbar-volume:focus-within .volume-pop {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .ui-slider {
            --slider-pct: 0%;
            height: 14px;
            background: transparent;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }

        .ui-slider::-webkit-slider-runnable-track {
            height: 4px;
            border-radius: 999px;
            border: 1px solid rgba(192, 132, 252, 0.22);
            background: linear-gradient(90deg, #c084fc 0%, #a78bfa var(--slider-pct), rgba(90, 66, 124, 0.38) var(--slider-pct), rgba(90, 66, 124, 0.38) 100%);
        }

        .ui-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #f5d0fe;
            border: 1px solid rgba(217, 70, 239, 0.8);
            box-shadow: 0 0 8px rgba(192, 132, 252, 0.55);
            margin-top: -4px;
        }

        .ui-slider::-moz-range-track {
            height: 4px;
            border-radius: 999px;
            border: 1px solid rgba(192, 132, 252, 0.22);
            background: rgba(90, 66, 124, 0.38);
        }

        .ui-slider::-moz-range-progress {
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #c084fc, #a78bfa);
        }

        .ui-slider::-moz-range-thumb {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #f5d0fe;
            border: 1px solid rgba(217, 70, 239, 0.8);
            box-shadow: 0 0 8px rgba(192, 132, 252, 0.55);
        }

        #master-volume {
            width: 86px;
        }

        #master-volume-val {
            width: 36px;
            text-align: right;
            font-family: 'Hack', monospace;
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            color: #c4b5fd;
        }

        @keyframes pulseUnmute {

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

            50% {
                opacity: 1;
                transform: translateY(-1px);
            }
        }

        .systray-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            color: #eff0f1;
            opacity: 0.8;
        }

        .systray-icon:hover {
            background: rgba(255, 255, 255, 0.1);
            opacity: 1;
        }

        .systray-icon svg {
            width: 16px;
            height: 16px;
        }

        .clock {
            padding: 0 10px;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            color: #eff0f1;
            font-weight: 500;
            font-variant-numeric: tabular-nums;
            /* Keeps sans-serif numbers perfectly aligned */
            width: 70px;
            /* Fixed width prevents taskbar shifting */
            text-align: center;
            letter-spacing: 0.5px;
        }

        .clock-wrap {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .clock-tz {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            font-family: 'Hack', monospace;
            color: #f5d0fe;
            border: 1px solid rgba(192, 132, 252, 0.38);
            border-radius: 999px;
            padding: 1px 5px;
            background: rgba(192, 132, 252, 0.14);
            line-height: 1.2;
            letter-spacing: 0.2px;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes popupOpen {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Notification Area */
        #notification-area {
            position: absolute;
            bottom: 50px;
            right: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 999998;
            pointer-events: none;
        }

        .kaos-notification {
            background: rgba(20, 10, 30, 0.85);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(192, 132, 252, 0.3);
            border-radius: 6px;
            width: 300px;
            padding: 14px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(192, 132, 252, 0.05);
            display: flex;
            gap: 12px;
            animation: slideInRight 0.3s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
            align-items: flex-start;
        }

        .notif-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .notif-icon svg {
            width: 18px;
            height: 18px;
        }

        .notif-icon.error {
            color: #ed1515;
            background: rgba(237, 21, 21, 0.2);
        }

        .notif-icon.warn {
            color: #f39c12;
            background: rgba(243, 156, 18, 0.2);
        }

        .notif-icon.info {
            color: #c084fc;
            background: rgba(192, 132, 252, 0.2);
        }

        .notif-content {
            flex: 1;
        }

        .notif-title {
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            font-weight: bold;
            margin-bottom: 4px;
            color: #eff0f1;
        }

        .notif-msg {
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            color: #bdc3c7;
            word-break: break-all;
            line-height: 1.4;
        }

        /* Dashboard Monitors */
        .dash-window {
            width: 300px;
        }

        #sys-monitor {
            top: 60px;
            right: 20px;
            left: auto;
            height: 210px;
        }

        #net-monitor {
            top: 290px;
            right: 20px;
            left: auto;
            height: 190px;
        }

        #mem-map {
            top: 500px;
            right: 20px;
            left: auto;
            height: 230px;
        }

        #gpu-monitor {
            bottom: 60px;
            left: 20px;
            top: auto;
            width: 470px;
            height: 420px;
            container-type: inline-size;
        }

        #tensor25b2-monitor {
            bottom: 60px;
            left: 470px;
            top: auto;
            width: 390px;
            height: 360px;
            border: 1px solid rgba(192, 132, 252, 0.34);
            box-shadow: 0 0 22px rgba(192, 132, 252, 0.16);
            container-type: inline-size;
        }

        #tensor25b2-monitor.armed {
            box-shadow: 0 0 30px rgba(52, 211, 153, 0.22), inset 0 0 14px rgba(52, 211, 153, 0.12);
        }

        #tensor25b2-monitor.hot {
            box-shadow: 0 0 34px rgba(239, 68, 68, 0.24), inset 0 0 14px rgba(239, 68, 68, 0.14);
        }

        /* AI Mood Monitor CSS */
        #ai-mood-monitor {
            top: 60px;
            right: 340px;
            /* Positioned just left of the System Monitor */
            left: auto;
            width: 180px;
            height: 140px;
            display: flex;
            flex-direction: column;
        }

        .mood-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            gap: 10px;
        }

        .ascii-face {
            font-size: clamp(14.7px, calc(21.0 * 100vh / 1080), 31.5px);
            font-weight: bold;
            font-family: 'Noto Sans', sans-serif;
            /* Best for Kaomoji */
            color: #3daee9;
            text-shadow: 0 0 10px rgba(61, 174, 233, 0.8);
            transition: color 0.3s, text-shadow 0.3s, transform 0.1s;
            height: 40px;
            line-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            white-space: nowrap;
        }

        .mood-label {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            font-weight: bold;
            letter-spacing: 1px;
            color: #bdc3c7;
            background: rgba(0, 0, 0, 0.4);
            padding: 4px 10px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .thought-stream {
            font-size: clamp(4.7px, calc(6.8 * 100vh / 1080), 10.1px);
            color: #3daee9;
            font-family: 'Hack', monospace;
            margin-top: 5px;
            width: 90%;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            opacity: 0.8;
        }

        #ai-mood-monitor.excited-shake {
            animation: aiCoreExcitedShake 0.38s ease-in-out 4;
        }

        @keyframes aiCoreExcitedShake {
            0% {
                transform: translate(0px, 0px) rotate(0deg);
            }

            15% {
                transform: translate(-1px, 1px) rotate(-0.6deg);
            }

            30% {
                transform: translate(2px, -1px) rotate(0.6deg);
            }

            45% {
                transform: translate(-2px, 1px) rotate(-0.4deg);
            }

            60% {
                transform: translate(1px, -1px) rotate(0.4deg);
            }

            75% {
                transform: translate(-1px, 0px) rotate(-0.2deg);
            }

            100% {
                transform: translate(0px, 0px) rotate(0deg);
            }
        }

        /* Monitor Interiors */
        .mon-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 12px;
            height: 100%;
            box-sizing: border-box;
        }

        .mon-row {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .mon-label {
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
            color: #bdc3c7;
        }

        .mon-graph {
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(192, 132, 252, 0.15);
            border-radius: 3px;
            display: flex;
            align-items: flex-end;
            padding: 2px;
            gap: 1px;
            overflow: hidden;
        }

        .mon-bar {
            flex: 1;
            background: #c084fc;
            min-width: 3px;
            transition: height 0.2s;
            border-radius: 1px 1px 0 0;
        }

        .mon-bar.ram {
            background: #f0abfc;
        }

        .net-info {
            display: flex;
            justify-content: space-between;
            padding: 8px 12px;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            background: rgba(192, 132, 252, 0.05);
            border-bottom: 1px solid rgba(192, 132, 252, 0.1);
        }

        .net-rx {
            color: #c084fc;
            font-weight: bold;
        }

        .net-tx {
            color: #f0abfc;
            font-weight: bold;
        }

        .canvas-container {
            flex: 1;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /* Hybrid Storage Array CSS */
        #storage-monitor {
            bottom: 60px;
            left: 380px;
            top: auto;
            width: 340px;
            height: 265px;
        }

        /* Fixed height for consistency */

        .drive-list {
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: calc(100% - 32px);
            /* Leaves exact room for titlebar */
            box-sizing: border-box;
            overflow-y: auto;
            /* Enable vertical scrolling */
            scroll-behavior: smooth;
            min-height: 0;
        }

        .drive-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(192, 132, 252, 0.15);
            padding: 8px;
            border-radius: 4px;
            transition: border-color 0.2s, box-shadow 0.2s;
            flex-shrink: 0;
            /* Prevents squishing when scrolling */
        }

        .drive-item.writing {
            border-color: #f39c12;
            box-shadow: inset 0 0 12px rgba(243, 156, 18, 0.25);
        }

        .drive-item.warning .drive-pct {
            color: #ed1515;
            font-weight: bold;
        }

        .drive-header {
            display: flex;
            justify-content: space-between;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            color: #eff0f1;
            font-family: 'Hack', monospace;
        }

        /* Custom Mechanical HDD Component */
        .hdd-wrapper {
            position: relative;
            width: 14px;
            height: 14px;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hdd-platter {
            width: 14px !important;
            height: 14px !important;
            color: #bdc3c7;
            transition: color 0.2s;
            transform-origin: center;
        }

        .hdd-arm {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 2px;
            height: 9px;
            background: #eff0f1;
            transform-origin: bottom center;
            transform: rotate(45deg);
            /* Parked position */
            transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
            border-radius: 2px;
            z-index: 2;
            box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.6);
        }

        .drive-item.writing .hdd-platter {
            animation: spin 0.2s linear infinite;
            /* Spin up fast */
            color: #f39c12;
        }

        .drive-item.writing .hdd-arm {
            transform: rotate(-15deg);
            /* Swing over the platter */
            background: #f39c12;
        }

        /* Raided Disk Capsules */
        .disk-capsules {
            display: flex;
            gap: 4px;
            height: 8px;
            margin: 2px 0;
        }

        .disk-capsule {
            flex: 1;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid rgba(192, 132, 252, 0.2);
        }

        .disk-capsule-fill {
            height: 100%;
            background: #c084fc;
            width: 0%;
            transition: width 0.4s ease-out, background-color 0.2s;
        }

        .drive-item.writing .disk-capsule-fill {
            background: #f39c12;
        }

        .drive-item.warning .disk-capsule-fill {
            background: #ed1515 !important;
        }

        .drive-stats {
            font-size: clamp(5.3px, calc(7.5 * 100vh / 1080), 11.3px);
            color: #bdc3c7;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Hack', monospace;
        }

        /* RPM Indicator */
        .rpm-icon {
            animation: spin 4s linear infinite;
            transform-origin: center;
            display: block;
        }

        .drive-item.writing .rpm-icon {
            animation: spin 0.15s linear infinite;
            color: #f39c12;
        }

        .drive-item.writing .rpm-val {
            color: #f39c12;
        }

        .mem-grid-container {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(16, 1fr);
            gap: 2px;
            padding: 12px;
            overflow: hidden;
        }

        .mem-block {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 2px;
            transition: background 0.8s ease-out;
        }

        .mem-block.active-read {
            background: #c084fc;
            transition: none;
            box-shadow: 0 0 8px #c084fc;
        }

        .mem-block.active-write {
            background: #e74c3c;
            transition: none;
            box-shadow: 0 0 8px #e74c3c;
        }

        .mem-block.active-sys {
            background: #f0abfc;
            transition: none;
            box-shadow: 0 0 8px #f0abfc;
        }

        .gpu-grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            padding: 12px;
            flex: 1;
            box-sizing: border-box;
            align-content: start;
            align-items: start;
        }

        .gpu-card {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(192, 132, 252, 0.15);
            border-radius: 6px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .gpu-header {
            font-size: clamp(6.5px, calc(10 * 100cqw / 470), 13px);
            font-weight: bold;
            color: #eff0f1;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 6px;
        }

        .gpu-stat-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: clamp(6px, calc(9 * 100cqw / 470), 12px);
            color: #bdc3c7;
        }

        .gpu-stat-label {
            width: 30px;
        }

        .gpu-bar-bg {
            flex: 1;
            height: 5px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 3px;
            border: 1px solid rgba(192, 132, 252, 0.2);
            overflow: hidden;
        }

        .gpu-bar-fill {
            height: 100%;
            background: #c084fc;
            transition: width 0.4s ease-out;
        }

        .gpu-bar-fill.vram {
            background: #f0abfc;
        }

        .gpu-temp {
            color: #f39c12;
            font-weight: bold;
            transition: color 0.3s;
        }

        .gpu-fan-row {
            gap: 6px;
        }

        .gpu-fan-wrap {
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gpu-fan-icon {
            width: 12px;
            height: 12px;
            color: #7dd3fc;
            opacity: 0.75;
            transition: color 0.2s, opacity 0.2s;
        }

        .gpu-fan-icon.spinning {
            animation: spin 0.35s linear infinite;
            color: #f39c12;
            opacity: 1;
        }

        .gpu-fan-val {
            width: 30px;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #bdc3c7;
        }

        .gpu-fan-rpm {
            width: 54px;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #94a3b8;
        }

        .gpu-card.working {
            border-color: rgba(243, 156, 18, 0.45);
            box-shadow: inset 0 0 10px rgba(243, 156, 18, 0.15);
        }

        .gpu-card.working .gpu-fan-rpm {
            color: #f39c12;
        }

        .gpu-liquid-row {
            gap: 6px;
        }

        .gpu-liquid-wrap {
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gpu-liquid-icon {
            width: 12px;
            height: 12px;
            color: #38bdf8;
            opacity: 0.8;
            transition: opacity 0.2s, color 0.2s;
        }

        .gpu-liquid-icon.pumping {
            animation: pulseCoolant 0.7s ease-in-out infinite;
            color: #7dd3fc;
            opacity: 1;
        }

        .gpu-coolant-temp {
            width: 44px;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #7dd3fc;
        }

        .gpu-coolant-flow {
            width: 64px;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #93c5fd;
        }

        .gpu-liquid-cycle-row {
            align-items: center;
        }

        .gpu-recycle-val {
            flex: 1;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #67e8f9;
            white-space: nowrap;
        }

        .gpu-card.cooling-boost {
            box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.12);
        }

        .tensor25b2-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.32);
            box-sizing: border-box;
        }

        .tensor-control-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: clamp(6px, calc(9 * 100cqw / 390), 12px);
            color: #bdc3c7;
        }

        .tensor-control-row span:first-child {
            width: 76px;
            font-weight: bold;
            letter-spacing: 0.4px;
        }

        .tensor-control-row .ui-slider {
            flex: 1;
            width: auto;
        }

        .tensor-control-row span:last-child {
            width: 42px;
            text-align: right;
            font-family: 'Hack', monospace;
            color: #e9d5ff;
        }

        .tensor-mode-row {
            display: flex;
            gap: 6px;
        }

        .tensor-mode-btn {
            flex: 1;
            border: 1px solid rgba(192, 132, 252, 0.25);
            background: rgba(192, 132, 252, 0.08);
            color: #bdc3c7;
            border-radius: 4px;
            font-size: clamp(6px, calc(9 * 100cqw / 390), 12px);
            font-family: 'Hack', monospace;
            padding: 5px 4px;
            cursor: pointer;
        }

        .tensor-mode-btn.active {
            color: #eff0f1;
            background: rgba(192, 132, 252, 0.22);
            border-color: rgba(192, 132, 252, 0.45);
        }

        .tensor-status-row {
            display: flex;
            gap: 6px;
        }

        .tensor-chip {
            flex: 1;
            min-width: 0;
            border: 1px solid rgba(192, 132, 252, 0.28);
            background: rgba(192, 132, 252, 0.08);
            color: #d8b4fe;
            border-radius: 4px;
            padding: 3px 6px;
            font-size: clamp(5.5px, calc(8 * 100cqw / 390), 11px);
            font-family: 'Hack', monospace;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tensor-chip-link {
            flex: 0 0 auto;
            text-decoration: none;
            color: #93c5fd;
            border-color: rgba(125, 211, 252, 0.35);
            background: rgba(56, 189, 248, 0.14);
            transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }

        .tensor-chip-link:hover {
            color: #e0f2fe;
            border-color: rgba(125, 211, 252, 0.55);
            background: rgba(56, 189, 248, 0.24);
        }

        .tensor-chip.health-warn {
            color: #fcd34d;
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.14);
        }

        .tensor-chip.health-bad {
            color: #fecaca;
            border-color: rgba(239, 68, 68, 0.52);
            background: rgba(239, 68, 68, 0.16);
        }

        .tensor-chip.health-ok {
            color: #bbf7d0;
            border-color: rgba(34, 197, 94, 0.45);
            background: rgba(34, 197, 94, 0.14);
        }

        .tensor-arm-btn {
            border: 1px solid rgba(243, 156, 18, 0.35);
            background: rgba(243, 156, 18, 0.1);
            color: #f39c12;
            border-radius: 4px;
            font-size: clamp(6px, calc(9 * 100cqw / 390), 12px);
            font-family: 'Hack', monospace;
            padding: 5px 8px;
            cursor: pointer;
            min-width: 86px;
        }

        .tensor-arm-btn.armed {
            border-color: rgba(46, 204, 113, 0.45);
            background: rgba(46, 204, 113, 0.14);
            color: #2ecc71;
        }

        .tensor-meta-line {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: clamp(5.5px, calc(8 * 100cqw / 390), 11px);
            color: #7dd3fc;
            border: 1px solid rgba(56, 189, 248, 0.2);
            background: rgba(56, 189, 248, 0.08);
            border-radius: 4px;
            padding: 4px 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tensor-meta-line svg {
            width: 10px;
            height: 10px;
            flex-shrink: 0;
        }

        .tensor25b2-readout {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(192, 132, 252, 0.15);
            border-radius: 5px;
            padding: 8px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 5px 9px;
            font-size: clamp(5.5px, calc(8 * 100cqw / 390), 11px);
            font-family: 'Hack', monospace;
            color: #bdc3c7;
        }

        .tensor-readout-item {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            min-width: 0;
            border: 1px solid rgba(192, 132, 252, 0.1);
            border-radius: 4px;
            background: rgba(192, 132, 252, 0.04);
            padding: 2px 5px;
        }

        .tensor-readout-item span:first-child {
            color: #9ca3af;
        }

        .tensor-readout-item span:last-child {
            color: #f5f3ff;
            white-space: nowrap;
            font-weight: 700;
        }

        .u25b2-symbol {
            color: #f0abfc;
            font-weight: 700;
            text-shadow: 0 0 8px rgba(240, 171, 252, 0.5);
            margin-right: 6px;
        }

        .u25b2-title {
            letter-spacing: 0.4px;
        }

        #tensor25b2-scope {
            width: 100%;
            height: 52px;
            border: 1px solid rgba(192, 132, 252, 0.15);
            border-radius: 4px;
            background: linear-gradient(135deg, rgba(192, 132, 252, 0.06), rgba(56, 189, 248, 0.05));
            image-rendering: pixelated;
        }

        /* --- NEW: Artifact Inspector CSS --- */
        .inspector-window {
            width: 450px;
            min-height: 250px;
            z-index: 50;
        }

        .inspector-body {
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
        }

        .inspector-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .inspector-icon {
            width: 48px;
            height: 48px;
            background: rgba(192, 132, 252, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c084fc;
        }

        .inspector-icon svg {
            width: 28px;
            height: 28px;
        }

        .inspector-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .inspector-filename {
            font-size: clamp(8.4px, calc(12.0 * 100vh / 1080), 18.0px);
            font-weight: bold;
            color: #eff0f1;
        }

        .inspector-size {
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            color: #bdc3c7;
        }

        .inspector-btn {
            background: linear-gradient(135deg, #7e22ce, #c084fc);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: opacity 0.2s, transform 0.1s;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            box-shadow: 0 4px 10px rgba(192, 132, 252, 0.2);
        }

        .inspector-btn:hover {
            opacity: 0.9;
        }

        .inspector-btn:active {
            transform: translateY(2px);
        }

        .inspector-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            filter: grayscale(1);
        }

        .inspector-result {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(192, 132, 252, 0.2);
            border-radius: 4px;
            padding: 12px;
            font-family: 'Hack', 'Fira Code', 'Courier New', monospace;
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            color: #bdc3c7;
            min-height: 80px;
            white-space: pre-wrap;
            line-height: 1.5;
            overflow-y: auto;
            max-height: 200px;
        }

        .spinner {
            animation: spin 1s linear infinite;
        }

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

        @keyframes pulseCoolant {

            0%,
            100% {
                transform: scale(0.95);
            }

            50% {
                transform: scale(1.15);
            }
        }

        @keyframes slideInRight {
            from {
                transform: translateX(110%);
            }

            to {
                transform: translateX(0);
            }
        }

        @keyframes slideInTopMobile {
            from {
                transform: translateY(-120%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        @keyframes cursorBlink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        /* --- NEW: KaBrowser Error Frame --- */
        .browser-frame.active.browser-error-frame-content {
            display: flex;
        }

        .browser-error-frame-content {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            background: radial-gradient(circle at center, rgba(15, 15, 25, 1) 0%, rgba(11, 11, 20, 1) 100%);
            color: #a0a0b8;
            font-family: 'Hack', monospace;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            padding: 32px;
            text-align: center;
            box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
        }

        .browser-error-icon {
            color: #6366f1;
            animation: errorIconPulse 2.5s ease-in-out infinite;
        }

        @keyframes errorIconPulse {

            0%,
            100% {
                filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
                transform: scale(1);
            }

            50% {
                filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
                transform: scale(1.05);
            }
        }

        .browser-error-title {
            color: #e9d5ff;
            font-size: clamp(9.4px, calc(13.5 * 100vh / 1080), 20.3px);
            font-weight: 700;
            letter-spacing: 0.01em;
            text-shadow: 0 0 10px rgba(233, 213, 255, 0.3);
        }

        .browser-error-url {
            color: #7c6fa0;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
            word-break: break-all;
            max-width: 420px;
        }

        .browser-error-divider {
            width: 320px;
            height: 1px;
            background: rgba(192, 132, 252, 0.15);
        }

        .browser-error-code {
            color: #f87171;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            font-weight: 600;
            letter-spacing: 0.03em;
            text-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
            background: rgba(248, 113, 113, 0.1);
            padding: 4px 10px;
            border-radius: 4px;
            border: 1px solid rgba(248, 113, 113, 0.2);
        }

        .browser-error-desc {
            color: #94a3b8;
            font-size: clamp(6.3px, calc(9.0 * 100vh / 1080), 13.5px);
            max-width: 380px;
            line-height: 1.75;
        }

        .browser-error-desc-host {
            color: #c4b5fd;
            font-weight: 600;
        }

        .browser-error-inline-code {
            background: #1e1e2e;
            padding: 2px 6px;
            border-radius: 4px;
            color: #f472b6;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px);
        }

        .browser-error-btn {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
            color: white;
            border: 1px solid rgba(167, 139, 250, 0.4);
            border-radius: 8px;
            padding: 10px 28px;
            font-size: clamp(6.8px, calc(9.8 * 100vh / 1080), 14.6px);
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.03em;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .browser-error-btn:hover {
            opacity: 1;
            background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(139, 92, 246, 1));
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
            transform: translateY(-1px);
        }

        .browser-error-btn:active {
            transform: translateY(1px);
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
        }

        .bmark i {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
        }

        .systray-encryption-icon {
            color: #c084fc !important;
            width: auto !important;
            padding: 0 10px !important;
            font-size: clamp(5.8px, calc(8.3 * 100vh / 1080), 12.4px) !important;
            font-weight: bold !important;
            border: 1px solid rgba(192, 132, 252, 0.4) !important;
            border-radius: 12px !important;
            margin-right: 8px !important;
            background: rgba(192, 132, 252, 0.08) !important;
            box-shadow: 0 0 10px rgba(192, 132, 252, 0.15) !important;
            transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
        }

        .systray-encryption-icon:hover {
            background: rgba(192, 132, 252, 0.16) !important;
            box-shadow: 0 0 14px rgba(192, 132, 252, 0.3) !important;
            transform: translateY(-1px) !important;
            opacity: 1 !important;
        }

        .systray-encryption-icon svg,
        .systray-encryption-icon i {
            width: 12px !important;
            height: 12px !important;
            margin-right: 4px !important;
            filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.6));
        }

        /* Mobile Landscape Orientation Rules */
        @media (max-width: 900px) and (orientation: landscape) {
            #taskbar {
                display: flex !important;
                bottom: 0;
                left: 0;
                width: 100%;
                position: fixed;
                z-index: 999999;
            }

            .hud-terminal {
                display: flex !important;
                position: fixed;
                bottom: 40px;
                /* Right above taskbar */
                left: 0;
                width: 100vw;
                height: 120px;
                z-index: 999998;
            }

            #desktop {
                padding-bottom: 50px;
                /* Space for taskbar */
            }
        }

        /* Secret Channel Window */
        #nose-video-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 480px;
            height: 320px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
        }

        #nose-video-popup .window-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #000;
        }