        :root {
            --bg-color: #050505;
            --gold-primary: #D4AF37;
            --gold-dim: #8a7020;
            --terminal-green: #33ff00;
            --glitch-red: #ff003c;
            --glitch-blue: #00f0ff;
            --window-bg: rgba(12, 12, 12, 0.90);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            cursor: default;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        *:focus-visible {
            outline: 1px solid var(--terminal-green);
            outline-offset: 2px;
        }

        body {
            background-color: var(--bg-color);
            color: var(--gold-primary);
            font-family: 'Share Tech Mono', 'Noto Sans KR', 'Noto Sans JP', monospace;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            perspective: 1000px;
            font-size: 16px;
        }

        /* --- LOADING & SKELETON STYLES --- */
        #system-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(212, 175, 55, 0.2);
            border-top-color: var(--gold-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
        }

        .loader-text {
            font-family: 'Share Tech Mono';
            color: var(--gold-dim);
            font-size: 0.9rem;
            letter-spacing: 2px;
            animation: pulse-text 1.5s infinite;
        }

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

        @keyframes pulse-text {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        /* Skeleton Loading Effect */
        .skeleton {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 2px;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }

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

        /* Ripple Effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            transform: scale(0);
            animation: ripple-anim 0.6s linear;
            background-color: rgba(255, 255, 255, 0.2);
            pointer-events: none;
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Button/Interactive element relative positioning for ripple */
        button,
        .desktop-icon,
        .card-file,
        .shop-link-btn {
            position: relative;
            overflow: hidden;
        }

        /* OPTIMIZED: Auto-Login Progress Bar using Transform */
        .login-progress-track {
            width: 100%;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            margin-top: 20px;
            position: relative;
            overflow: hidden;
        }

        .login-progress-bar {
            width: 100%;
            height: 100%;
            background: var(--gold-primary);
            transform: scaleX(0);
            /* Start at 0 width visually */
            transform-origin: left;
            transition: transform 0.1s linear;
            box-shadow: 0 0 10px var(--gold-primary);
        }

        /* --- CONTAINER FOR ROTATION --- */
        #app-container {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease;
            transform-origin: center center;
            z-index: 1;
            /* Standard Layering */
        }



        /* --- VISUAL EFFECTS --- */
        .crt-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            background:
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
            background-size: 100% 4px, 3px 100%;
            animation: flicker 0.03s infinite;
            opacity: 0.6;
        }

        /* REMOVED DUPLICATE SCANLINES */

        .vignette {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 150%);
        }

        body {
            text-shadow: 0 0 2px rgba(212, 175, 55, 0.3);
        }

        /* --- MODE SWITCH BUTTON --- */
        .mode-switch-btn,
        .ui-scale-btn {
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid var(--terminal-green);
            color: var(--terminal-green);
            font-size: 0.9rem;
            padding: 8px 16px;
            cursor: pointer;
            font-family: 'Share Tech Mono';
            margin-left: 15px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 8px;
            border-radius: 4px;
            pointer-events: auto;
        }

        .mode-switch-btn:hover,
        .ui-scale-btn:hover {
            background: var(--terminal-green);
            color: black;
            box-shadow: 0 0 15px var(--terminal-green);
            transform: translateY(-2px);
        }

        /* --- UI SCALING OVERRIDES --- */
        body.ui-large {
            --base-font-size: 18px;
        }

        body.ui-large .login-submit-btn {
            height: 60px;
            padding: 0 40px;
        }

        body.ui-large .login-input {
            font-size: 1.4rem;
        }

        body.ui-large .lang-btn {
            padding: 15px 30px;
            font-size: 1.2rem;
        }

        body.ui-large .mode-switch-btn,
        body.ui-large .ui-scale-btn {
            padding: 12px 24px;
            font-size: 1rem;
        }

        body.ui-large .win-btn {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }

        body.ui-large .window-header {
            height: 50px;
        }

        body.ui-large .shop-link-btn,
        body.ui-large .archive-btn,
        body.ui-large .assistant-btn {
            padding: 14px 24px;
            font-size: 1rem;
        }

        body.ui-large .start-btn,
        body.ui-large .task-item {
            height: 50px;
            font-size: 1.1rem;
        }

        body.ui-large .taskbar {
            height: 65px;
        }

        body.ui-large .desktop-icon {
            transform: scale(1.1);
            margin-bottom: 20px;
        }

        /* --- MOBILE CONTROLS --- */
        #mobile-controls {
            position: fixed;
            top: 10px;
            right: 10px;
            z-index: 10000;
            display: none;
            pointer-events: auto;
        }

        .mobile-btn {
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid var(--gold-primary);
            color: var(--gold-primary);
            padding: 10px 16px;
            font-family: 'Share Tech Mono';
            font-size: 1rem;
            border-radius: 4px;
            cursor: pointer;
            backdrop-filter: blur(4px);
        }

        /* --- LOGIN SCREEN --- */
        #login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 20000;
            /* Explicitly above CRT (9999) */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
            background: radial-gradient(circle at center, #111 0%, #000 70%);
            pointer-events: auto;
            padding-bottom: 12vh;
        }

        #login-screen.zoom-out {
            opacity: 0;
            transform: scale(2);
            pointer-events: none;
        }

        /* LOGO CONTAINER STYLES */
        .login-header-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 800px;
            margin-bottom: 0;
            position: relative;
            padding-bottom: 20px;
            z-index: 10;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
            animation: fadeIn 2s ease-out;
        }

        .login-header-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 5%;
            width: 90%;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 50%, transparent 100%);
            opacity: 0.6;
            box-shadow: 0 1px 5px rgba(212, 175, 55, 0.2);
        }

        .login-logo-img {
            height: auto;
            max-height: 35vh;
            min-height: 250px;
            width: auto;
            max-width: 95%;
            filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
            transition: filter 0.3s, transform 0.3s;
        }

        .login-logo-img:hover {
            filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.9));
            transform: scale(1.02);
        }

        .login-sub-header {
            font-family: 'Share Tech Mono';
            font-size: 0.85rem;
            letter-spacing: 5px;
            color: #888;
            margin-top: 15px;
            font-weight: normal;
            text-shadow: none;
            opacity: 0.9;
            text-transform: uppercase;
        }

        .login-box {
            border: none;
            padding: 45px 50px;
            text-align: center;
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
            background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(5, 5, 5, 0.8) 100%);
            max-width: 550px;
            width: 90%;
            position: relative;
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
            margin-top: 0;
            z-index: 20;
            /* Ensure above header wrapper */
        }

        .login-box::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 1px;
            background: linear-gradient(180deg, var(--gold-dim) 0%, transparent 80%);
            opacity: 0.5;
        }

        .login-box-right-border {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 1px;
            background: linear-gradient(180deg, var(--gold-dim) 0%, transparent 80%);
            opacity: 0.5;
            pointer-events: none;
        }

        .login-box::after {
            content: "WARNING: UNAUTHORIZED ACCESS IS A FEDERAL OFFENSE";
            position: absolute;
            bottom: -40px;
            font-family: 'Share Tech Mono';
            font-size: 0.65rem;
            color: #555;
            letter-spacing: 2px;
            width: 100%;
            text-align: center;
            text-transform: uppercase;
            opacity: 0.7;
        }

        .login-input-wrapper {
            position: relative;
            width: 100%;
            max-width: 400px;
            margin-top: 0;
            border-bottom: 2px solid var(--gold-dim);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .login-input-wrapper.focused {
            border-bottom-color: var(--gold-primary);
            box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
            transform: scale(1.02);
        }

        .login-input-container {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.6);
            padding: 12px 15px;
        }

        .input-prefix {
            color: var(--gold-dim);
            font-family: 'Share Tech Mono';
            margin-right: 10px;
            font-size: 1.1rem;
            animation: blink 1s infinite;
        }

        .login-input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--gold-primary);
            font-family: 'Share Tech Mono';
            font-size: 1.2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            outline: none;
        }

        .login-input::placeholder {
            color: rgba(212, 175, 55, 0.3);
            letter-spacing: 1px;
        }

        .login-submit-btn {
            background: var(--gold-dim);
            border: 1px solid var(--gold-primary);
            color: black;
            cursor: pointer;
            transition: all 0.2s;
            padding: 0 25px;
            height: 44px;
            margin-left: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
            font-weight: bold;
        }

        .login-submit-btn:hover {
            background: var(--gold-primary);
            color: black;
            transform: scale(1.05);
            box-shadow: 0 0 25px var(--gold-primary);
        }

        .login-submit-btn:active {
            transform: scale(0.95);
        }

        .login-msg {
            height: 20px;
            margin-top: 0;
            font-family: 'Share Tech Mono';
            font-size: 0.9rem;
            color: var(--terminal-green);
            opacity: 0;
            transition: opacity 0.3s;
            text-align: center;
            width: 100%;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

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

        .lang-selector {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 0px;
            border-bottom: 1px solid var(--gold-dim);
            padding-bottom: 20px;
            width: 100%;
        }

        .lang-btn {
            background: transparent;
            border: 1px solid transparent;
            color: #666;
            padding: 8px 16px;
            font-family: 'Share Tech Mono', monospace;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            border-radius: 4px;
        }

        .lang-btn.active,
        .lang-btn:hover {
            border-color: var(--gold-dim);
            color: var(--gold-primary);
            background: rgba(212, 175, 55, 0.1);
            text-shadow: 0 0 5px var(--gold-primary);
        }

        /* --- DESKTOP ENVIRONMENT --- */
        #desktop-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 50% 50%, #151515 0%, #000 100%),
                repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(212, 175, 55, 0.03) 1px, rgba(212, 175, 55, 0.03) 2px);
            opacity: 0;
            transition: opacity 1s ease;
            pointer-events: none;
        }

        #desktop-screen.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* Top Bar */
        .os-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: rgba(10, 10, 10, 0.95);
            border-bottom: 1px solid var(--gold-dim);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 25px;
            font-size: 1rem;
            color: #888;
            z-index: 100;
            backdrop-filter: blur(5px);
            pointer-events: auto;
        }

        /* Signal Widget */
        .top-right-group {
            display: flex;
            align-items: center;
            gap: 25px;
            font-size: 1.2rem;
        }

        .signal-widget {
            display: flex;
            align-items: center;
            gap: 12px;
            border-left: 1px solid #333;
            padding-left: 20px;
            padding-right: 10px;
            height: 100%;
            margin-left: auto;
            background: rgba(0, 0, 0, 0.2);
            font-size: 0.85rem;
        }

        /* OPTIMIZED: Signal Bar Animation */
        .signal-graph {
            display: flex;
            align-items: flex-end;
            gap: 3px;
            height: 20px;
            width: 25px;
        }

        .sig-bar {
            width: 4px;
            height: 100%;
            background: var(--gold-dim);
            animation: sig-pulse 1s infinite alternate;
            opacity: 0.5;
            transform-origin: bottom;
        }

        .sig-bar:nth-child(3) {
            background: var(--terminal-green);
            opacity: 0.8;
        }

        @keyframes sig-pulse {
            0% {
                opacity: 0.3;
                transform: scaleY(0.3);
            }

            100% {
                opacity: 0.7;
                transform: scaleY(1);
            }
        }

        .signal-data {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            font-family: 'Share Tech Mono';
            line-height: 1;
            opacity: 0.8;
        }

        .sig-label {
            font-size: 0.65rem;
            color: #555;
            margin-bottom: 2px;
            text-transform: uppercase;
        }

        .sig-value {
            font-size: 0.85rem;
            color: var(--terminal-green);
        }

        .enc-hash {
            font-family: monospace;
            font-size: 0.75rem;
            color: #666;
            width: 90px;
            overflow: hidden;
            white-space: nowrap;
            text-align: right;
        }

        /* Taskbar */
        .taskbar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 55px;
            background: rgba(10, 10, 10, 0.95);
            border-top: 1px solid var(--gold-dim);
            display: flex;
            align-items: center;
            padding: 0 10px;
            z-index: 9000;
            backdrop-filter: blur(5px);
            pointer-events: auto;
        }

        .start-btn {
            height: 40px;
            padding: 0 20px;
            background: var(--gold-dim);
            color: black;
            display: flex;
            align-items: center;
            font-weight: bold;
            font-size: 1rem;
            margin-right: 15px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .start-btn:hover {
            background: var(--gold-primary);
            box-shadow: 0 0 10px var(--gold-dim);
        }

        .task-item {
            height: 40px;
            padding: 0 20px;
            margin-right: 8px;
            border: 1px solid #333;
            color: #888;
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 0.95rem;
            min-width: 120px;
            background: #111;
            transition: all 0.2s;
        }

        .task-item:hover {
            background: #222;
            color: #ccc;
            border-color: #555;
        }

        .task-item.active {
            border-color: var(--gold-dim);
            color: var(--gold-primary);
            background: #1a1a1a;
            box-shadow: inset 0 -2px 0 var(--gold-primary);
        }

        /* Desktop Icons */
        .desktop-icons-container {
            position: absolute;
            top: 90px;
            left: 40px;
            bottom: 80px;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            gap: 20px;
            z-index: 50;
            align-content: flex-start;
            pointer-events: none;
        }

        .desktop-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 140px;
            margin-right: 20px;
            cursor: pointer;
            text-align: center;
            color: var(--gold-primary);
            opacity: 0.8;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s, text-shadow 0.2s;
            pointer-events: auto;
        }

        .desktop-icon:hover,
        .desktop-icon:focus {
            opacity: 1;
            text-shadow: 0 0 15px var(--gold-primary);
            transform: scale(1.05) translateY(-5px);
            outline: none;
        }

        .icon-img {
            width: 80px;
            height: 80px;
            margin-bottom: 12px;
            border: 1px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .desktop-icon:hover .icon-img {
            border-color: var(--gold-dim);
            background: rgba(212, 175, 55, 0.1);
            box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
        }

        .icon-label {
            font-size: 0.95rem;
            line-height: 1.2;
            background: rgba(0, 0, 0, 0.7);
            padding: 6px 10px;
            border-radius: 6px;
            border: 1px solid transparent;
        }

        .desktop-icon:hover .icon-label {
            border-color: rgba(212, 175, 55, 0.3);
        }

        /* --- OS WINDOWS --- */
        .os-window {
            position: absolute;
            background: var(--window-bg);
            border: 1px solid var(--gold-dim);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
            display: none;
            flex-direction: column;
            resize: both;
            overflow: hidden;
            min-width: 350px;
            min-height: 250px;
            border-radius: 2px;
            opacity: 0;
            transform: scale(0.95) translateY(10px);
            transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            pointer-events: none;
        }

        .os-window.window-open {
            opacity: 1;
            transform: scale(1) translateY(0);
            pointer-events: auto !important;
        }

        .os-window.active {
            z-index: 8500;
            border-color: var(--gold-primary);
            box-shadow: 0 0 60px rgba(212, 175, 55, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.5);
        }

        .os-window.minimized {
            opacity: 0 !important;
            transform: scale(0.8) translateY(100px) !important;
            pointer-events: none;
        }

        .os-window.maximized {
            transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            border-radius: 0;
        }

        /* Draggable Header */
        .window-header {
            height: 50px;
            background: linear-gradient(180deg, rgba(30, 30, 30, 0.95), rgba(15, 15, 15, 0.98));
            border-bottom: 1px solid var(--gold-dim);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            cursor: grab;
            user-select: none;
            touch-action: none;
        }

        .window-header:active {
            cursor: grabbing;
        }

        .win-title {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #ddd;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
        }

        .win-controls {
            display: flex;
            gap: 8px;
        }

        .win-btn {
            width: 34px;
            height: 34px;
            border: 1px solid #444;
            background: rgba(20, 20, 20, 0.8);
            color: #888;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 4px;
            margin-left: 5px;
        }

        .win-btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 2.5px;
        }

        /* Hover States & Color Coding */
        .win-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        /* Minimize (First Button) */
        .win-controls .win-btn:nth-child(1) {
            border-color: rgba(255, 255, 255, 0.3);
        }

        .win-controls .win-btn:nth-child(1):hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #fff;
            color: #fff;
        }

        /* Maximize (Second Button) */
        .win-controls .win-btn:nth-child(2) {
            border-color: rgba(51, 255, 0, 0.3);
            color: rgba(51, 255, 0, 0.8);
        }

        .win-controls .win-btn:nth-child(2):hover {
            background: rgba(51, 255, 0, 0.15);
            border-color: var(--terminal-green);
            color: var(--terminal-green);
            box-shadow: 0 0 8px var(--terminal-green);
        }

        /* Close (Third Button) */
        .win-controls .win-btn:nth-child(3) {
            border-color: rgba(255, 0, 60, 0.4);
            color: rgba(255, 0, 60, 0.8);
        }

        .win-controls .win-btn:nth-child(3):hover {
            background: var(--glitch-red);
            border-color: var(--glitch-red);
            color: white;
            box-shadow: 0 0 8px var(--glitch-red);
        }

        .window-content {
            flex: 1;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: var(--gold-dim) #111;
        }

        .window-content::-webkit-scrollbar {
            width: 6px;
        }

        .window-content::-webkit-scrollbar-track {
            background: #0a0a0a;
        }

        .window-content::-webkit-scrollbar-thumb {
            background: var(--gold-dim);
            border-radius: 3px;
        }

        /* --- PROJECT BRIEF STYLES --- */
        .brief-layout {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .brief-meta {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid rgba(212, 175, 55, 0.3);
            padding-bottom: 15px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: var(--terminal-green);
            font-family: 'Share Tech Mono';
        }

        .brief-text-col {
            flex: 1;
        }

        .brief-visual-col {
            flex: 0 0 400px;
            display: flex;
            flex-direction: column;
        }

        .brief-frame {
            border: 1px solid var(--gold-primary);
            padding: 8px;
            background: rgba(0, 0, 0, 0.4);
            position: relative;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }

        .brief-frame::before,
        .brief-frame::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            border: 2px solid var(--gold-primary);
            transition: all 0.3s;
        }

        .brief-frame::before {
            top: -1px;
            left: -1px;
            border-right: none;
            border-bottom: none;
        }

        .brief-frame::after {
            bottom: -1px;
            right: -1px;
            border-left: none;
            border-top: none;
        }

        .brief-img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            background: #111;
            display: block;
            filter: grayscale(80%) sepia(10%);
            transition: filter 0.5s ease;
        }

        .brief-frame:hover .brief-img {
            filter: grayscale(0%);
        }

        .brief-caption {
            background: var(--gold-dim);
            color: black;
            font-size: 0.8rem;
            padding: 4px 6px;
            text-align: center;
            font-weight: bold;
            margin-top: 6px;
        }

        /* NEW STYLES FOR BRIEF ORGANIZATION */
        .brief-section-title {
            color: var(--gold-dim);
            font-family: 'Share Tech Mono';
            font-size: 1rem;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 2px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            display: inline-block;
            padding-bottom: 2px;
            margin-top: 20px;
        }

        .brief-note {
            font-size: 0.95rem !important;
            color: #888 !important;
            font-style: italic;
            border-left: 2px solid #444;
            padding-left: 15px;
            margin-top: 25px;
        }

        @media(min-width: 768px) {
            .brief-layout {
                flex-direction: row;
            }
        }

        @media(max-width: 480px) {
            .archive-grid {
                grid-template-columns: 1fr;
            }
        }

        /* --- POLISH: ANIMATIONS & SCROLLBAR --- */
        @keyframes windowOpen {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.95);
                filter: blur(5px);
            }

            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
                filter: blur(0);
            }
        }

        .os-window.window-open {
            animation: windowOpen 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        /* CUSTOM SCROLLBAR */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #050505;
            border-left: 1px solid #333;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--gold-dim);
            border-radius: 2px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gold-primary);
        }

        /* --- ARCHIVE STYLES --- */
        .archive-header {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
            border-bottom: 1px solid var(--gold-dim);
            padding-bottom: 30px;
        }

        .archive-header-img {
            width: 240px;
            height: 360px;
            background: #000;
            border: 1px solid var(--gold-primary);
            flex-shrink: 0;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        }

        .archive-header-text {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .archive-header h2 {
            font-family: 'Cinzel';
            font-size: 3.5rem;
            color: var(--gold-primary);
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .archive-header p {
            font-size: 1.1rem;
            color: #ccc;
            line-height: 1.7;
        }

        /* RATES DASHBOARD */
        .rates-dashboard {
            margin-top: 25px;
            border: 1px solid rgba(212, 175, 55, 0.2);
            background: rgba(0, 0, 0, 0.4);
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .rates-section-title {
            font-family: 'Share Tech Mono';
            font-size: 0.95rem;
            color: var(--gold-dim);
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            padding-bottom: 10px;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .pack-config {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .config-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid #444;
            font-size: 0.9rem;
            color: #eee;
            border-radius: 4px;
        }

        .config-badge.holo {
            border-color: var(--glitch-blue);
            color: var(--glitch-blue);
            background: rgba(0, 240, 255, 0.05);
        }

        .config-badge.norm {
            border-color: #888;
            color: #aaa;
        }

        .rates-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .rate-card {
            background: rgba(255, 255, 255, 0.02);
            padding: 20px;
            border-left: 3px solid #333;
            transition: background 0.3s;
        }

        .rate-card:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .rate-card.holo {
            border-left-color: var(--glitch-blue);
        }

        .rate-card.norm {
            border-left-color: #888;
        }

        .rate-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #fff;
            font-family: 'Cinzel';
            display: block;
        }

        .rate-sub {
            font-size: 0.85rem;
            color: #666;
            font-family: 'Share Tech Mono';
            display: block;
            margin-top: 5px;
        }

        .rate-label {
            font-size: 0.8rem;
            color: var(--gold-dim);
            margin-bottom: 5px;
            text-transform: uppercase;
            display: block;
        }

        .archive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
        }

        .card-file {
            position: relative;
            border: 1px solid #333;
            background: rgba(255, 255, 255, 0.02);
            height: 350px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
        }

        .card-file:hover,
        .card-file:focus {
            border-color: var(--gold-primary);
            background: rgba(212, 175, 55, 0.05);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            transform: translateY(-5px);
            outline: none;
            z-index: 2;
        }

        .card-file img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.5s ease;
        }

        .img-loading {
            opacity: 0 !important;
            filter: blur(10px) grayscale(100%);
            transform: scale(1.1);
        }

        .img-loaded {
            opacity: 0.7 !important;
            filter: blur(0) grayscale(100%);
            transform: scale(1);
        }

        .card-file:hover img.img-loaded {
            filter: grayscale(0%);
            opacity: 1 !important;
            transform: scale(1.05);
        }

        .file-label {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            font-size: 0.95rem;
            padding: 10px;
            text-align: center;
            border-top: 1px solid #333;
            backdrop-filter: blur(2px);
            transition: all 0.3s;
        }

        .card-file:hover .file-label {
            border-color: var(--gold-primary);
            color: var(--gold-primary);
            background: rgba(0, 0, 0, 0.95);
        }

        /* --- SHOP / EVENT STYLES --- */
        .shop-item {
            border: 1px solid var(--gold-dim);
            padding: 30px;
            margin-bottom: 30px;
            background: rgba(0, 0, 0, 0.5);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
        }

        .shop-item:hover {
            transform: translateX(5px);
            background: rgba(212, 175, 55, 0.03);
            border-color: var(--gold-primary);
            box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
        }

        .shop-link-btn {
            display: inline-block;
            margin-top: 15px;
            font-size: 0.9rem;
            color: var(--terminal-green);
            border: 1px solid var(--terminal-green);
            padding: 8px 16px;
            text-decoration: none;
            background: rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
            font-family: 'Share Tech Mono';
        }

        .shop-link-btn:hover {
            background: var(--terminal-green);
            color: black;
            box-shadow: 0 0 15px var(--terminal-green);
        }

        /* --- ARCHIVE CONTROLS --- */
        .archive-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: center;
            flex-wrap: wrap;
        }

        .archive-btn {
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid var(--gold-dim);
            color: var(--gold-dim);
            padding: 8px 16px;
            font-family: 'Share Tech Mono';
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
        }

        .archive-btn:hover,
        .archive-btn.active {
            background: var(--gold-dim);
            color: black;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
        }

        /* --- EMPLOYEE LIST --- */
        .employee-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 1rem;
            color: #ccc;
        }

        .employee-table th {
            text-align: left;
            border-bottom: 1px solid var(--gold-primary);
            padding: 15px;
            color: var(--gold-primary);
            font-family: 'Cinzel';
            font-size: 1.1rem;
            position: sticky;
            top: 0;
            background: #0f0f0f;
            z-index: 10;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        }

        .employee-table td {
            padding: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .employee-table tbody tr {
            transition: background 0.2s;
        }

        .employee-table tbody tr:hover {
            background: rgba(212, 175, 55, 0.1);
        }

        .role-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 4px;
            background: rgba(0, 240, 255, 0.1);
            border: 1px solid rgba(0, 240, 255, 0.3);
            color: var(--glitch-blue);
            font-size: 0.85rem;
            font-family: 'Share Tech Mono';
            text-transform: uppercase;
        }

        /* --- ASSISTANT CHARACTER STYLES --- */
        #assistant-overlay {
            position: fixed;
            bottom: 80px;
            right: 40px;
            width: 360px;
            z-index: 7000;
            display: none;
            flex-direction: column;
            align-items: flex-end;
            pointer-events: none;
        }

        #assistant-overlay.active {
            display: flex;
        }

        /* PERMANENT CLOSE BUTTON (Red X above cat) */
        .assistant-permanent-close {
            position: absolute;
            top: -15px;
            right: -15px;
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #ff1744, #d50000);
            border: 2px solid #fff;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1002;
            box-shadow: 0 4px 12px rgba(255, 23, 68, 0.6), 0 0 20px rgba(255, 23, 68, 0.4);
            transition: all 0.2s ease;
            animation: permanent-close-pulse 2s ease-in-out infinite;
            pointer-events: auto;
            /* CRITICAL: Override parent's pointer-events: none */
        }

        .assistant-permanent-close:hover {
            transform: scale(1.15) rotate(90deg);
            box-shadow: 0 6px 20px rgba(255, 23, 68, 0.9), 0 0 30px rgba(255, 23, 68, 0.6);
            background: linear-gradient(135deg, #ff5252, #ff1744);
        }

        .assistant-permanent-close:active {
            transform: scale(0.95);
        }

        .assistant-permanent-close svg {
            color: white;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        }

        @keyframes permanent-close-pulse {

            0%,
            100% {
                box-shadow: 0 4px 12px rgba(255, 23, 68, 0.6), 0 0 20px rgba(255, 23, 68, 0.4);
            }

            50% {
                box-shadow: 0 4px 12px rgba(255, 23, 68, 0.9), 0 0 30px rgba(255, 23, 68, 0.7);
            }
        }

        .assistant-avatar {
            width: 100px;
            /* Reduced from 150px */
            height: 100px;
            /* Reduced from 150px */
            border: 3px solid var(--gold-primary);
            background: #000;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
            margin-bottom: 15px;
            /* Removed fixed float animation to prevent conflict with drag, added hover float */
            transition: transform 0.1s;
            pointer-events: auto;
            position: relative;
            overflow: hidden;
            cursor: grab;
            touch-action: none;
            /* PREVENTS SCROLLING WHEN DRAGGING */
        }

        .assistant-avatar:active {
            cursor: grabbing;
        }

        .assistant-avatar:hover {
            transform: scale(1.05);
        }

        .assistant-avatar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.4), transparent);
        }

        .assistant-avatar svg {
            width: 50px;
            height: 50px;
            /* Reduced from 80px */
            transition: transform 0.2s;
        }

        .assistant-avatar.talking svg {
            animation: talk-pulse 0.5s infinite alternate;
        }

        .assistant-bubble {
            background: rgba(15, 15, 15, 0.98);
            border: 1px solid var(--gold-primary);
            padding: 25px;
            border-radius: 12px 12px 0 12px;
            color: var(--gold-primary);
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 15px;
            position: relative;
            pointer-events: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-origin: bottom right;
            min-width: 280px;
        }

        .assistant-close-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: transparent;
            border: none;
            color: var(--gold-dim);
            cursor: pointer;
            padding: 4px;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            /* CRITICAL: Override parent's pointer-events: none */
        }

        .assistant-close-btn:hover {
            color: var(--glitch-red);
        }

        .assistant-controls {
            margin-top: 15px;
            display: flex;
            justify-content: space-between;
            gap: 15px;
        }

        .assistant-btn {
            border: 1px solid var(--gold-dim);
            background: transparent;
            color: #888;
            font-size: 0.85rem;
            padding: 6px 14px;
            cursor: pointer;
            font-family: 'Share Tech Mono';
            transition: all 0.2s;
            pointer-events: auto;
            /* CRITICAL: Override parent's pointer-events: none */
        }

        .assistant-btn:hover {
            background: var(--gold-dim);
            color: #000;
        }

        /* Animations */
        @keyframes flicker {
            0% {
                opacity: 0.6;
            }

            50% {
                opacity: 0.65;
            }

            100% {
                opacity: 0.6;
            }
        }

        @keyframes float {

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

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

        @keyframes popIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }

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

        /* --- ASSISTANT OVERLAY --- */
        #assistant-overlay {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 50000;
            /* GOD TIER - Above Everything */
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            pointer-events: none;
            /* Container passes clicks, children catch them */
        }

        #assistant-overlay.active {
            pointer-events: auto;
        }

        @keyframes talk-pulse {
            0% {
                transform: scale(1);
            }

            100% {
                transform: scale(1.1) rotate(5deg);
            }
        }

        /* --- VIEWER 3D --- */
        #win-viewer {
            background: rgba(5, 5, 5, 0.98) !important;
            backdrop-filter: blur(25px);
            box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
        }

        .viewer-stage {
            flex: 1;
            background: #000;
            border: 1px solid #333;
            position: relative;
            overflow: hidden;
            perspective: 1200px;
            cursor: grab;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
            touch-action: none;
            /* PREVENTS SCROLLING WHEN ROTATING */
        }

        .viewer-stage:active {
            cursor: grabbing;
        }

        .viewer-card-wrapper {
            transform-style: preserve-3d;
            transition: transform 0.1s ease-out;
            height: 80%;
            width: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        #viewer-img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            border: 1px solid #333;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
            backface-visibility: hidden;
        }

        .viewer-controls-overlay {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 20px;
            z-index: 10;
            background: rgba(10, 10, 10, 0.85);
            padding: 12px 25px;
            border: 1px solid var(--gold-dim);
            border-radius: 30px;
            backdrop-filter: blur(4px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }

        .v-btn {
            background: transparent;
            border: 1px solid #444;
            color: var(--gold-primary);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .v-btn:hover {
            background: var(--gold-dim);
            color: #000;
            border-color: var(--gold-primary);
            transform: scale(1.1);
        }

        .viewer-social-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px;
            border: 1px solid var(--gold-dim);
            color: var(--gold-primary);
            text-decoration: none;
            background: rgba(0, 0, 0, 0.5);
            transition: all 0.3s;
            font-family: 'Share Tech Mono';
            text-transform: uppercase;
        }

        .viewer-social-btn:hover {
            background: var(--gold-primary);
            color: #000;
            box-shadow: 0 0 20px var(--gold-dim);
        }

        /* --- MOBILE OVERRIDES --- */
        body.is-mobile #mobile-controls {
            display: block;
        }

        body.is-mobile .desktop-icons-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            top: 90px;
            left: 0;
            width: 100%;
            padding: 0 20px;
            bottom: auto;
        }

        body.is-mobile .desktop-icon {
            width: 100%;
            margin: 0;
        }

        /* Mobile Windows: Centered and strictly contained */
        body.is-mobile .os-window {
            width: 95vw !important;
            height: calc(100vh - 145px) !important;
            /* Forces fit between bars */
            top: 75px !important;
            /* Pinned below top bar */
            left: 2.5vw !important;
            /* Centered horizontally */
            border: 1px solid var(--gold-dim);
            z-index: 9999;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
            border-radius: 8px;
            transform: none !important;
        }

        body.is-mobile .os-window.active {
            display: flex !important;
        }

        body.is-mobile .window-header {
            height: 60px;
            /* Increased for touch */
            background: #111;
            padding: 0 15px;
            cursor: default;
            /* Disable dragging affordance on mobile */
        }

        body.is-mobile .win-btn {
            width: 48px;
            /* Min 44px touch target */
            height: 48px;
            font-size: 24px;
            margin-left: 10px;
            background: transparent;
            border: 1px solid #444;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Hide maximize/minimize on mobile, keep close */
        body.is-mobile .win-btn:first-child {
            display: none;
        }

        body.is-mobile .taskbar {
            z-index: 10000;
            height: 60px;
            /* Increased */
            justify-content: flex-start;
            /* Align left to accommodate home button */
            padding-left: 15px;
        }

        body.is-mobile .start-btn {
            display: none;
        }

        /* Show mobile nav buttons */
        body.is-mobile .mobile-home-btn {
            display: flex;
            width: 48px;
            height: 48px;
            /* 44px+ */
        }

        body.is-mobile .mobile-back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold-primary);
            width: 48px;
            height: 48px;
            /* 44px+ */
            padding: 0;
        }

        body.is-mobile #task-list {
            flex: 1;
            overflow-x: auto;
            justify-content: flex-start;
        }

        body.is-mobile .task-item {
            flex: 0 0 auto;
            min-width: 100px;
            height: 48px;
            /* Taller touch target */
            justify-content: center;
            font-size: 1rem;
        }

        body.is-mobile #assistant-overlay {
            right: 50%;
            transform: translateX(50%);
            bottom: 70px;
            width: 90%;
            align-items: center;
        }

        body.is-mobile .login-box {
            width: 95%;
            padding: 30px;
        }

        body.is-mobile .employee-table {
            display: block;
        }

        body.is-mobile .employee-table thead {
            display: none;
        }

        body.is-mobile .employee-table tr {
            display: block;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--gold-dim);
            margin-bottom: 20px;
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        body.is-mobile .employee-table td {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
            text-align: right;
        }

        body.is-mobile .employee-table td::before {
            content: attr(data-label);
            font-family: 'Share Tech Mono';
            color: var(--gold-dim);
            font-weight: bold;
            font-size: 0.85rem;
            margin-right: 15px;
        }

        body.is-mobile .archive-header {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        body.is-mobile .selector-grid {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        }

        body.is-mobile .variant-img-box {
            height: 140px !important;
        }

        /* Event Countdown */
        .event-countdown {
            font-family: 'Share Tech Mono', monospace;
            font-size: 0.95rem;
            color: var(--glitch-blue);
            margin-top: 10px;
            padding: 8px 14px;
            background: rgba(0, 240, 255, 0.05);
            border: 1px solid rgba(0, 240, 255, 0.2);
            display: inline-block;
            letter-spacing: 1px;
        }

        /* --- VARIANT SELECTOR STYLES (Fix for Desktop) --- */
        .selector-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 25px;
            padding-bottom: 20px;
        }

        .variant-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--gold-dim);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .variant-card:hover,
        .variant-card:focus {
            border-color: var(--gold-primary);
            background: rgba(212, 175, 55, 0.1);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            outline: none;
        }

        .variant-img-box {
            width: 100%;
            height: 280px;
            background: #000;
            overflow: hidden;
            border-bottom: 1px solid var(--gold-dim);
            position: relative;
        }

        .variant-img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
            filter: grayscale(80%);
        }

        .variant-card:hover .variant-img-box img {
            transform: scale(1.05);
            filter: grayscale(0%);
        }

        .variant-info {
            padding: 15px;
            text-align: center;
            background: rgba(0, 0, 0, 0.6);
        }

        .variant-char {
            color: #fff;
            font-family: 'Cinzel';
            font-size: 1.1rem;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .variant-artist {
            color: var(--gold-dim);
            font-size: 0.85rem;
            font-family: 'Share Tech Mono';
            text-transform: uppercase;
        }

        /* --- NEW: RIPPLE EFFECT --- */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            /* White ripple for visibility on dark/gold */
            transform: scale(0);
            animation: ripple-anim 0.6s linear;
            pointer-events: none;
            z-index: 1000;
        }

        @keyframes ripple-anim {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Ensure containers clip the ripple */
        button,
        .desktop-icon,
        .shop-link-btn,
        .win-btn,
        .lang-btn,
        .login-submit-btn,
        .mobile-btn,
        .assistant-btn,
        .archive-btn,
        .v-btn,
        .gallery-nav,
        .variant-card,
        .task-item {
            position: relative;
            overflow: hidden;
        }

        /* --- NEW: AUTO-LOGIN PROGRESS --- */
        .login-progress-container {
            width: 100%;
            max-width: 400px;
            /* Match input width */
            height: 2px;
            background: rgba(255, 255, 255, 0.05);
            margin-top: 15px;
            position: relative;
            overflow: hidden;
            border-radius: 2px;
        }

        .login-progress-bar {
            width: 0%;
            height: 100%;
            background: var(--gold-primary);
            box-shadow: 0 0 10px var(--gold-primary);
            /* Transition set via JS for control */
        }

        /* --- REFACTORED UTILITIES (Senior Fullstack Audit) --- */
        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .flex-between {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .flex-start {
            display: flex;
            align-items: flex-start;
        }

        .flex-col {
            display: flex;
            flex-direction: column;
        }

        .gap-10 {
            gap: 10px;
        }

        .gap-15 {
            gap: 15px;
        }

        .gap-25 {
            gap: 25px;
        }

        .w-full {
            width: 100%;
        }

        .h-full {
            height: 100%;
        }

        /* Typography Utilities */
        .cinzel-header {
            font-family: 'Cinzel';
            color: white;
            margin-bottom: 25px;
            font-size: 2rem;
        }

        .text-dim {
            color: #888;
            font-size: 1rem;
        }

        .text-green {
            color: var(--terminal-green);
        }

        .text-gold {
            color: var(--gold-primary);
        }

        /* Specific Window Geometries */
        #win-overview {
            top: 10%;
            left: 15%;
            width: 950px;
            height: 650px;
        }

        #win-archive {
            top: 5%;
            left: 35%;
            width: 900px;
            height: 700px;
        }

        #win-selector {
            top: 10%;
            left: 15%;
            width: 1000px;
            height: 800px;
            z-index: 2001;
        }

        #win-employees {
            top: 8%;
            left: 15%;
            width: 850px;
            height: 600px;
        }

        #win-shop {
            top: 15%;
            left: 25%;
            width: 700px;
            height: 600px;
        }

        #win-comm {
            top: 20%;
            left: 30%;
            width: 450px;
            height: 400px;
        }

        #win-settings {
            top: 30%;
            left: 40%;
            width: 500px;
            height: 400px;
        }

        #win-tos {
            top: 25%;
            left: 35%;
            width: 600px;
            height: 500px;
        }

        #win-interest {
            top: 25%;
            left: 30%;
            width: 500px;
            height: 450px;
        }

        #win-viewer {
            top: 5%;
            left: 10%;
            width: 85%;
            height: 85%;
            z-index: 2000;
        }

        .flex-col-center {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .absolute-top-right {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            pointer-events: none;
            /* Container ignores clicks */
            z-index: 100;
        }

        .absolute-top-right button {
            pointer-events: auto;
            /* Buttons accept clicks */
        }

        /* --- DIVINATION TOOL --- */

        #win-divination {
            width: 90vw;
            max-width: 1600px;
            height: 80vh;
            max-height: 900px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        #win-divination.maximized {
            max-width: none;
            max-height: none;
        }

        #win-divination .window-content {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 20px;
            gap: 20px;
        }

        .divination-container {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 20px;
            gap: 20px;
            color: var(--gold-primary);
        }

        .divination-top-panel {
            display: flex;
            gap: 15px;
            height: 220px;
            justify-content: center;
        }

        .divination-slot {
            flex: 1;
            border: 1px solid rgba(212, 175, 55, 0.3);
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            max-width: 160px;
        }

        .divination-slot:hover {
            border-color: var(--gold-primary);
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
            transform: translateY(-2px);
        }

        .divination-slot:focus-visible {
            outline: 2px solid var(--terminal-green);
            outline-offset: 4px;
            z-index: 100;
        }

        .divination-slot.active {
            border-color: var(--gold-primary);
            background: rgba(212, 175, 55, 0.05);
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
            z-index: 10;
        }

        .divination-slot.filled {
            background: rgba(0, 0, 0, 0.8);
        }

        .slot-header {
            padding: 10px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: rgba(0, 0, 0, 0.6);
        }

        .divination-slot.active .slot-header {
            background: var(--gold-primary);
            color: black;
        }

        .slot-title {
            font-size: 0.9rem;
            font-weight: bold;
        }

        .slot-desc {
            font-size: 0.7rem;
            opacity: 0.8;
        }

        .slot-body {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .slot-empty-num {
            font-size: 4rem;
            opacity: 0.1;
            font-family: 'Cinzel', serif;
        }

        .divination-slot:hover .slot-empty-num {
            opacity: 0.2;
            color: var(--gold-primary);
        }

        .slot-filled {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .slot-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .divination-slot:hover .slot-card-img {
            opacity: 1;
        }

        .slot-card-name {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.8);
            padding: 5px;
            text-align: center;
            font-size: 0.8rem;
            border-top: 1px solid var(--gold-dim);
        }

        /* Bottom Panel */
        .divination-bottom-panel {
            flex: 1;
            border: 1px solid rgba(212, 175, 55, 0.2);
            background: rgba(0, 0, 0, 0.2);
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
            padding: 15px;
        }

        /* Search Interface */
        .search-container {
            display: flex;
            height: 100%;
        }



        .search-interface {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .divination-search-input {
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid var(--gold-dim);
            color: var(--gold-primary);
            padding: 15px;
            font-family: 'Share Tech Mono', monospace;
            font-size: 1.2rem;
            width: 100%;
            margin-bottom: 20px;
            outline: none;
            transition: all 0.3s;
        }

        .divination-search-input:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
        }

        .search-results {
            flex: 1;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 10px;
            padding-right: 5px;
        }

        .search-item {
            border: 1px solid #333;
            background: rgba(10, 10, 10, 0.8);
            padding: 10px;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 44px;
            /* Touch target */
        }

        .search-item:focus-visible {
            outline: 2px solid var(--terminal-green);
            outline-offset: -2px;
            background: rgba(212, 175, 55, 0.1);
        }

        .search-item:hover {
            border-color: var(--gold-primary);
            background: rgba(212, 175, 55, 0.1);
            transform: translateX(5px);
        }

        .item-name {
            display: block;
            font-weight: bold;
            color: var(--gold-primary);
        }

        .item-char {
            font-size: 0.85rem;
            color: #aaa;
            /* Brighter text */
        }

        .item-keywords {
            margin-top: 5px;
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .keyword {
            font-size: 0.7rem;
            background: #222;
            padding: 2px 5px;
            color: #aaa;
            border-radius: 2px;
        }

        /* Results View */
        .results-container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .results-toolbar {
            display: flex;
            border-bottom: 1px solid var(--gold-dim);
        }

        .result-tab {
            padding: 12px 24px;
            /* Increased touch target */
            background: transparent;
            border: none;
            color: #888;
            font-family: 'Share Tech Mono';
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.2s;
        }

        .result-tab.active {
            background: rgba(212, 175, 55, 0.1);
            color: var(--gold-primary);
            border-bottom: 2px solid var(--gold-primary);
        }

        .result-tab:hover {
            color: var(--gold-primary);
        }

        .result-reset {
            margin-left: auto;
            background: transparent;
            border: none;
            color: var(--glitch-red);
            font-family: 'Share Tech Mono';
            cursor: pointer;
            padding: 10px 20px;
        }

        .result-reset:hover {
            background: rgba(255, 0, 0, 0.1);
        }

        /* LAYOUT GRID (Redefined for V3 - 2 Column Sidebar + Main) */
        .divination-layout-grid-v3 {
            display: flex;
            width: 100%;
            height: 100%;
            /* Full height of container */
            overflow: hidden;
            /* Manage scroll internally */
        }

        /* LEFT SIDEBAR (25%) */
        .div-sidebar {
            flex: 0 0 25%;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--gold-dim);
            background: rgba(0, 0, 0, 0.6);
            height: 100%;
        }

        /* TOP LEFT: BODY (50% of Sidebar) */
        .div-col-body {
            flex: 1;
            /* Takes top half */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-bottom: 1px solid var(--gold-dim);
            position: relative;
            overflow: hidden;
            padding: 10px;
        }

        /* BOTTOM LEFT: TEXT (50% of Sidebar) */
        .div-col-text {
            flex: 1;
            /* Takes bottom half */
            display: flex;
            flex-direction: column;
            padding: 20px;
            background: rgba(0, 0, 0, 0.4);
            overflow-y: auto;
        }


        .divination-guidance-panel {
            padding: 15px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid var(--gold-dim);
            border-radius: 4px;
        }

        /* RIGHT MAIN (70%) */
        .div-col-main {
            flex: 1;
            /* Takes remaining space (70%) */
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        /* EGO METER (Moved to Middle) */
        .ego-meter-container {
            flex: 0 0 50px;
            /* Fixed height for meter */
            margin: 10px 20px;
            /* Spacing */
            position: relative;
            border: 1px solid var(--gold-dim);
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }



        /* MIDDLE COL: TEXT/GUIDANCE (20%) */


        /* RIGHT COL: MAIN INTERFACE (70%) */


        /* EGO METER */


        .ego-bar-bg {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 2px;
            background: #333;
            z-index: 0;
        }

        .ego-indicator {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #fff;
            box-shadow: 0 0 10px #fff;
            transition: left 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
            z-index: 2;
            left: 50%;
            /* Start center */
        }

        .ego-fill {
            position: absolute;
            top: 0;
            bottom: 0;
            transition: all 0.5s ease;
            opacity: 0.3;
            z-index: 1;
        }

        .ego-fill.distortion {
            background: linear-gradient(90deg, transparent, var(--glitch-red));
            right: 50%;
            /* Width set by JS */
        }

        .ego-fill.awakening {
            background: linear-gradient(-90deg, transparent, var(--gold-primary));
            left: 50%;
            /* Width set by JS */
        }

        .ego-label {
            position: absolute;
            font-family: 'Share Tech Mono', monospace;
            font-size: 0.8rem;
            color: #666;
            z-index: 3;
            pointer-events: none;
            text-shadow: 0 0 2px #000;
        }

        .ego-label.left {
            left: 10px;
            color: var(--glitch-red);
        }

        .ego-label.right {
            right: 10px;
            color: var(--gold-primary);
        }

        .ego-label.center {
            left: 50%;
            transform: translateX(-50%);
            color: #888;
            letter-spacing: 2px;
        }



        .narrative-block p {
            margin-bottom: 20px;
            line-height: 1.8;
            /* Increased line-height */
            font-size: 1.25rem;
            /* Increased font-size */
            color: #e0e0e0;
            /* Brighter text */
            text-wrap: balance;
            /* Better wrapping */
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }

        .narrative-prefix {
            color: #888;
        }

        .narrative-highlight {
            color: var(--gold-primary);
            text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
        }

        .narrative-footer {
            margin-top: 30px;
            border-top: 1px solid var(--gold-dim);
            padding-top: 20px;
        }

        .resonance-box h3 {
            color: var(--terminal-green);
            font-family: 'Cinzel';
            margin-bottom: 10px;
        }

        .resonance-box p {
            font-size: 1.2rem;
            font-style: italic;
            color: #fff;
        }

        /* Data View */
        .data-grid-view {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .data-row {
            display: flex;
            border: 1px solid #333;
            background: rgba(0, 0, 0, 0.5);
        }

        .data-label {
            width: 150px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            border-right: 1px solid #333;
            color: var(--gold-dim);
        }

        .data-value {
            flex: 1;
            padding: 15px;
            font-variant-numeric: tabular-nums;
            /* Align numbers */
        }

        .data-card-name {
            font-size: 1.1rem;
            color: var(--gold-primary);
            margin-bottom: 5px;
        }

        .data-keywords {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .data-reading {
            color: #ccc;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        /* --- RESONANCE REVEAL STATES --- */
        .div-grid-narrative-col.resonate-content.revealed {
            position: relative;
            flex: 1;
            width: auto;
            max-width: none;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            background: rgba(5, 5, 5, 0.95);
            background-image: none;
            border: 1px solid #8a7020;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
            opacity: 1;
            overflow: visible;
        }

        .div-clear-text {
            display: block;
            position: relative;
            font-family: 'Noto Sans JP', sans-serif;
            color: #D4AF37;
            font-size: 1.1rem;
            line-height: 1.6;
            padding: 25px;
            text-align: left;
            width: 100%;
            min-width: 300px;
            opacity: 1;
            visibility: visible;
            text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
            white-space: normal;
            word-break: keep-all;
        }

        /* --- BODY VISUALIZATION & LAYOUT --- */

        /* Layout Grid */




        /* Body Viz Container - Left Col Adjustment */
        .body-viz-container {
            /* Position relative since it's inside a flex col now */
            position: relative;
            width: 100%;
            height: auto;
            min-height: 500px;
            /* Remove sticky from here, the col handles it */
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--gold-dim);
            border-radius: 4px;
            padding: 20px;
            box-sizing: border-box;
        }

        .body-silhouette {
            width: 100px;
            /* Drastic reduction (was 200px -> 160px -> 100px) */
            height: 200px;
            /* Drastic reduction (was 400px -> 320px -> 200px) */
            position: relative;
            /* Create stylized body shape using borders/box-shadow */
            border: 2px solid var(--gold-dim);
            border-radius: 50px 50px 25px 25px;
            /* Scaled radii */
            /* Head/Shoulders look */
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.1) inset;
            margin-top: 30px;
        }

        /* Head circle pseudo-element */
        .body-silhouette::before {
            content: '';
            position: absolute;
            top: -30px;
            /* Scaled */
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            /* Scaled */
            height: 40px;
            /* Scaled */
            border: 2px solid var(--gold-dim);
            border-radius: 50%;
            box-shadow: 0 0 5px rgba(212, 175, 55, 0.1) inset;
        }

        /* Spine line */
        .body-silhouette::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 80%;
            background: linear-gradient(to bottom, var(--gold-dim), transparent);
        }

        /* Chakra Points */
        .chakra-point {
            position: absolute;
            width: 10px;
            /* Smaller points (was 16px) */
            height: 10px;
            border: 1px solid var(--gold-primary);
            border-radius: 50%;
            background: #000;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
            z-index: 10;
            box-shadow: 0 0 3px var(--gold-primary);
        }

        /* Positions relative to .body-silhouette */
        .point-head {
            top: -20px;
            /* Inside the head circle */
            left: 50%;
        }

        .point-heart {
            top: 25%;
            left: 50%;
        }

        .point-soul {
            top: 45%;
            left: 50%;
        }

        .point-shadow {
            top: 85%;
            left: 50%;
        }

        .point-hand-l {
            top: 40%;
            left: 5%;
            /* Moved closer (was -20%) */
        }

        .point-hand-r {
            top: 40%;
            left: 95%;
            /* Moved closer (was 120%) */
        }

        /* Connecting lines for hands */
        .point-hand-l::before,
        .point-hand-r::before {
            content: '';
            position: absolute;
            top: 50%;
            width: 60px;
            height: 1px;
            background: var(--gold-dim);
            z-index: -1;
        }

        .point-hand-l::before {
            left: 100%;
        }

        .point-hand-r::before {
            right: 100%;
        }

        /* Active State (Glowing) */
        .chakra-point.active {
            background: var(--gold-primary);
            box-shadow: 0 0 15px var(--gold-primary), 0 0 30px var(--gold-bright);
            border-color: #fff;
            transform: translate(-50%, -50%) scale(1.2);
            animation: chakrapulse 1.5s infinite;
        }

        @keyframes chakrapulse {
            0% {
                box-shadow: 0 0 10px var(--gold-primary);
            }

            50% {
                box-shadow: 0 0 25px var(--gold-primary), 0 0 10px var(--terminal-green);
            }

            100% {
                box-shadow: 0 0 10px var(--gold-primary);
            }
        }

        /* --- DIVINATION SPECIFIC STYLES --- */
        .div-scramble-text {
            display: none !important;
            font-family: 'Share Tech Mono', monospace;
            color: var(--glitch-red);
            text-shadow: 2px 0 var(--glitch-blue);
            animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
        }

        .censored .div-scramble-text {
            display: block !important;
        }

        .censored .div-clear-text {
            display: none !important;
        }

        .click-instruction {
            font-size: 0.7rem;
            color: #666;
            margin-top: 5px;
            animation: blink 1s infinite;
        }

        .resonate-content {
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
            padding: 10px;
        }

        .resonate-content.censored:hover {
            border-color: var(--glitch-red);
            background: rgba(255, 0, 60, 0.1);
        }

        /* Typewriter Cursor Effect */
        .typewriter-cursor::after {
            content: '█';
            color: var(--gold-primary);
            animation: blink 1s infinite;
            margin-left: 2px;
        }