
        .seal-placeholder {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 9999px;
            background: radial-gradient(circle at 30% 30%, rgba(255, 220, 150, 0.35), rgba(4, 10, 20, 0.65)),
                        radial-gradient(circle at 70% 70%, rgba(197, 168, 120, 0.4), rgba(4, 10, 20, 0.8));
            border: 2px solid rgba(197, 168, 120, 0.6);
            box-shadow: 0 0 18px rgba(197, 168, 120, 0.25);
        }
        .seal-placeholder::before {
            content: '';
            position: absolute;
            inset: 18%;
            border-radius: 9999px;
            border: 1px solid rgba(197, 168, 120, 0.4);
            box-shadow: inset 0 0 12px rgba(4, 10, 20, 0.85);
        }
        .seal-placeholder::after {
            content: '✨';
            font-size: 1.6rem;
            color: rgba(197, 168, 120, 0.85);
            text-shadow: 0 0 6px rgba(197, 168, 120, 0.5);
        }
        body {
            font-family: 'Rajdhani', sans-serif;
            background-color: #040a14; /* Deeper navy blue */
            color: #C5A878; /* Deeper, richer gold */
            overflow: hidden;
        }
        canvas {
            display: block;
            cursor: crosshair;
            background: transparent;
            width: 100%;
            height: 100%;
        }
        .title-font {
            font-family: 'Cinzel', serif;
            letter-spacing: 0.3em;
        }
        .mono-font {
            font-family: 'Share Tech Mono', monospace;
        }
        .ui-panel {
            background-color: rgba(4, 10, 20, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(197, 168, 120, 0.3);
            box-shadow: 0 0 30px rgba(197, 168, 120, 0.05);
            transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
        }
        /* Faction/Affiliation Colors */
        .faction-CDU { color: #89cff0; }
        .faction-HorizonPact { color: #E0C468; }
        .faction-Neutral { color: #e0e0e0; }
        .faction-Independent { color: #b2d8b2; }
        .faction-Hazard { color: #ff8c69; }
        .faction-Mystery { color: #c8a2c8; }
        .faction-Corporate { color: #f0e68c; }
        .faction-AROC { color: #add8e6; }
        .faction-Consortium { color: #ff7f7f; } /* Added for Consortium ships */


        #infoPanel::-webkit-scrollbar,
        #planetModalContent::-webkit-scrollbar,
        #commsLog::-webkit-scrollbar {
             width: 8px;
        }
        #infoPanel::-webkit-scrollbar-track,
        #planetModalContent::-webkit-scrollbar-track,
        #commsLog::-webkit-scrollbar-track {
             background: #040a14;
        }
        #infoPanel::-webkit-scrollbar-thumb,
        #planetModalContent::-webkit-scrollbar-thumb {
            background-color: rgba(197, 168, 120, 0.3); border-radius: 4px;
        }
        #commsLog::-webkit-scrollbar-thumb {
            background-color: rgba(173, 216, 230, 0.3); border-radius: 4px;
        }


        .close-btn { transition: transform 0.3s ease-in-out; }
        .close-btn:hover { transform: rotate(180deg); }

        .scanline-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            pointer-events: none;
            background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 50%);
            background-size: 100% 4px;
            opacity: 0.2;
        }
        
        #searchInput {
            background-color: rgba(0,0,0,0.3);
            border: 1px solid rgba(197, 168, 120, 0.3);
            color: #C5A878;
        }
        #searchInput::placeholder {
            color: rgba(197, 168, 120, 0.5);
        }
        #searchResultsContainer button {
            transition: background-color 0.2s;
        }
        #backButton {
            transition: opacity 0.3s, transform 0.3s;
        }
        /* Styles for Pinned Ship Windows */
        .pinned-ship-window {
            position: absolute;
            z-index: 25;
            width: 280px;
            cursor: move;
            transition: box-shadow 0.2s ease-in-out;
        }
        .pinned-ship-window:hover {
            box-shadow: 0 0 20px rgba(197, 168, 120, 0.2);
            border-color: rgba(197, 168, 120, 0.6);
        }
        .pinned-ship-window .header {
            padding: 8px 12px;
            border-bottom: 1px solid rgba(197, 168, 120, 0.3);
        }
        .pinned-ship-window .content {
            padding: 12px;
        }
         .pinned-ship-window .footer {
            padding: 0 12px 12px 12px;
            display: flex;
            gap: 8px;
        }
        .pin-btn {
             flex-grow: 1;
             background-color: rgba(197, 168, 120, 0.15);
             border: none;
             color: #C5A878;
             padding: 6px 0;
             border-radius: 4px;
             font-size: 13px;
             cursor: pointer;
             transition: background-color 0.2s;
        }
        .pin-btn:hover {
            background-color: rgba(197, 168, 120, 0.3);
        }

        /* Comms Window Styles */
        .comms-message {
            opacity: 0;
            animation: fadeIn 0.5s ease-out forwards;
            color: rgba(173, 216, 230, 0.85); /* AROC Blue */
            line-height: 1.4;
            text-shadow: 0 0 5px rgba(173, 216, 230, 0.2);
        }
        .comms-message .timestamp {
            color: rgba(173, 216, 230, 0.6);
            margin-right: 8px;
        }
        .comms-message.alert {
            color: #ff8c69; /* Hazard orange */
            font-weight: bold;
            text-shadow: 0 0 8px rgba(255, 140, 105, 0.5);
        }
        .comms-message.watch-change {
            color: #E0C468; /* Horizon Pact Gold */
            font-style: italic;
        }

        /* NEW: Incident Channel Styles */
        #commsWindow.emergency-mode {
            border-color: #ff8c69;
            box-shadow: 0 0 25px rgba(255, 140, 105, 0.3);
        }
        #commsWindow.emergency-mode #commsTitle {
            color: #ff8c69;
            animation: pulseRed 1.5s infinite;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulseRed {
            0% { text-shadow: 0 0 5px rgba(255, 140, 105, 0.3); }
            50% { text-shadow: 0 0 15px rgba(255, 140, 105, 0.8); }
            100% { text-shadow: 0 0 5px rgba(255, 140, 105, 0.3); }
        }

    