
        :root {
            --green: #00ff88;
            --green-dim: #00cc6a;
            --green-faint: rgba(0, 255, 136, 0.07);
            --bg: #020408;
            --text: #b0c4b8;
            --text-dim: #4a6b55;
            --scan: rgba(0, 255, 136, 0.03);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            background: var(--bg);
            color: var(--text);
            font-family: 'Share Tech Mono', monospace;
            font-size: 13px;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* CRT scanlines */
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 2px,
                rgba(0,0,0,0.08) 2px,
                rgba(0,0,0,0.08) 4px
            );
            pointer-events: none;
            z-index: 1000;
        }

        /* Phosphor vignette */
        body::after {
            content: '';
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.7) 100%);
            pointer-events: none;
            z-index: 999;
        }

        /* ── SEARCH PAGE ── */
        #search-screen {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .terminal-header {
            text-align: center;
            margin-bottom: 3rem;
            animation: flicker-in 0.6s ease forwards;
        }

        .terminal-header .logo {
            font-size: 11px;
            color: var(--text-dim);
            letter-spacing: 0.3em;
            margin-bottom: 0.5rem;
        }

        .terminal-header h1 {
            font-size: 28px;
            color: var(--green);
            letter-spacing: 0.2em;
            text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
        }

        .terminal-header .tagline {
            font-size: 11px;
            color: var(--text-dim);
            letter-spacing: 0.2em;
            margin-top: 0.5rem;
        }

        .search-container {
            width: 100%;
            max-width: 480px;
            animation: flicker-in 0.8s ease forwards;
        }

        .search-prompt {
            font-size: 11px;
            color: var(--text-dim);
            letter-spacing: 0.15em;
            margin-bottom: 0.5rem;
        }

        .search-row {
            display: flex;
            align-items: center;
            border: 1px solid var(--text-dim);
            background: rgba(0, 255, 136, 0.02);
            transition: border-color 0.2s;
        }

        .search-row:focus-within {
            border-color: var(--green);
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
        }

        .search-prefix {
            padding: 0.75rem 0.75rem;
            color: var(--green);
            font-size: 13px;
            user-select: none;
        }

        #search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--green);
            font-family: 'Share Tech Mono', monospace;
            font-size: 13px;
            padding: 0.75rem 0 0.75rem 0;
            caret-color: var(--green);
        }

        #search-input::placeholder {
            color: var(--text-dim);
        }

        #search-btn {
            background: none;
            border: none;
            border-left: 1px solid var(--text-dim);
            color: var(--text-dim);
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
            letter-spacing: 0.1em;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: color 0.2s, background 0.2s;
        }

        #search-btn:hover {
            color: var(--green);
            background: var(--green-faint);
        }

        #search-error {
            font-size: 11px;
            color: #ff4444;
            letter-spacing: 0.1em;
            margin-top: 0.5rem;
            min-height: 1.2em;
        }

        .search-footer {
            margin-top: 3rem;
            font-size: 11px;
            color: var(--text-dim);
            text-align: center;
            letter-spacing: 0.1em;
        }

        .search-footer a {
            color: var(--text-dim);
            text-decoration: none;
            transition: color 0.2s;
        }

        .search-footer a:hover {
            color: var(--green);
        }

        /* ── PROFILE PAGE ── */
        #profile-screen {
            display: none;
            min-height: 100vh;
            padding: 3rem 2rem;
            max-width: 900px;
            margin: 0 auto;
        }

        #profile-screen.visible {
            display: block;
            animation: flicker-in 0.4s ease forwards;
        }

        .profile-nav {
            font-size: 11px;
            color: var(--text-dim);
            letter-spacing: 0.15em;
            margin-bottom: 2.5rem;
        }

        .profile-nav a {
            color: var(--green-dim);
            text-decoration: none;
            cursor: pointer;
        }

        .profile-nav a:hover {
            color: var(--green);
        }

        /* Two column — text left, portrait right */
        .profile-layout {
            display: grid;
            grid-template-columns: 1fr 256px;
            gap: 3rem;
            align-items: start;
        }

        .profile-data {}

        .char-name {
            font-size: 22px;
            color: var(--green);
            letter-spacing: 0.15em;
            text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
            margin-bottom: 1.5rem;
        }

        .data-block {
            margin-bottom: 1.5rem;
        }

        .data-label {
            font-size: 10px;
            color: var(--text-dim);
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-bottom: 0.2rem;
        }

        .data-value {
            font-size: 13px;
            color: var(--text);
            letter-spacing: 0.05em;
        }

        .data-value a {
            color: var(--text);
            text-decoration: none;
            transition: color 0.15s;
        }

        .data-value a:hover {
            color: var(--green);
        }

        .divider {
            border: none;
            border-top: 1px solid rgba(0, 255, 136, 0.1);
            margin: 1.5rem 0;
        }

        /* Corp history */
        .history-label {
            font-size: 10px;
            color: var(--text-dim);
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        .history-entry {
            display: grid;
            grid-template-columns: 32px 1fr;
            gap: 0.75rem;
            margin-bottom: 1rem;
            align-items: start;
        }

        .history-logo {
            width: 32px;
            height: 32px;
            object-fit: cover;
            filter: grayscale(0.3) brightness(0.9);
            border: 1px solid rgba(0,255,136,0.1);
        }

        .history-corp {}

        .history-corp-name {
            font-size: 12px;
            color: var(--text);
            letter-spacing: 0.05em;
        }

        .history-dates {
            font-size: 10px;
            color: var(--text-dim);
            letter-spacing: 0.05em;
        }

        .history-current {
            font-size: 10px;
            color: var(--green-dim);
            letter-spacing: 0.1em;
        }

        /* Portrait column */
        .profile-portrait {
            position: sticky;
            top: 3rem;
        }

        #char-portrait {
            width: 256px;
            height: 256px;
            object-fit: cover;
            display: block;
            filter: sepia(0.2) hue-rotate(100deg) brightness(0.85) contrast(1.1);
            border: 1px solid rgba(0,255,136,0.15);
        }

        .portrait-corp-logos {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .portrait-corp-logos img {
            width: 48px;
            height: 48px;
            object-fit: cover;
            filter: grayscale(0.2) brightness(0.85);
            border: 1px solid rgba(0,255,136,0.1);
        }

        .portrait-links {
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .portrait-links a {
            font-size: 10px;
            color: var(--text-dim);
            text-decoration: none;
            letter-spacing: 0.15em;
            transition: color 0.15s;
        }

        .portrait-links a:hover {
            color: var(--green);
        }

        .portrait-links a::before {
            content: '> ';
            color: var(--green-dim);
        }

        /* Loading state */
        #loading {
            display: none;
            text-align: center;
            padding: 4rem 0;
            color: var(--text-dim);
            font-size: 11px;
            letter-spacing: 0.2em;
            animation: pulse 1s infinite;
        }

        /* Animations */
        @keyframes flicker-in {
            0% { opacity: 0; }
            30% { opacity: 0.8; }
            40% { opacity: 0.4; }
            100% { opacity: 1; }
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        /* Responsive */
        @media (max-width: 640px) {
            .profile-layout {
                grid-template-columns: 1fr;
            }

            .profile-portrait {
                position: static;
                display: flex;
                gap: 1rem;
                align-items: flex-start;
            }

            #char-portrait {
                width: 128px;
                height: 128px;
            }
        }
 