@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --cyan: #2e8bff;
    --cyan-dim: #1b62b8;
    --cyan-glow: rgba(46, 139, 255, 0.6);
    --cyan-deep: rgba(46, 139, 255, 0.08);
    --orange: #3d6bff;
    --orange-glow: rgba(61, 107, 255, 0.45);
    --accent: #6cc0ff;
    --primary: var(--cyan);
    --primary-dim: var(--cyan-dim);
    --warning: #4ea8ff;
    --danger: #ff3355;
    --alert: #3d6bff;
    --bg: #02060f;
    --bg-panel: rgba(6, 18, 40, 0.55);
    --glass: rgba(8, 20, 44, 0.55);
    --glass-bright: rgba(10, 30, 64, 0.65);
    --border: rgba(46, 139, 255, 0.18);
    --border-glow: rgba(46, 139, 255, 0.45);
    --text: #dbecff;
    --text-dim: #5f86b8;
    /* talking-circle / all-blue range */
    --blue-bright: #5ea8ff;
    --blue-core: #2e8bff;
    --blue-deep: #0a2a6a;
    --blue-faint: rgba(46, 139, 255, 0.12);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ═══ ENVIRONMENT ═══ */
#lab-environment {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.env-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, rgba(0, 100, 150, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 30% 60%, rgba(0, 180, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(61, 107, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(46, 139, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #010306 0%, #040a18 40%, #020509 100%);
}
.env-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(46, 139, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 139, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 55%, black 15%, transparent 70%);
    animation: grid-drift 30s linear infinite;
    opacity: 0.8;
}
@keyframes grid-drift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}
.env-floor-glow {
    position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(46, 139, 255, 0.08) 0%, transparent 70%);
}
.env-volumetric {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: volumetric-pulse 8s ease-in-out infinite;
}
.env-volumetric.v1 {
    width: 400px; height: 400px; top: 10%; left: 20%;
    background: rgba(46, 139, 255, 0.12);
}
.env-volumetric.v2 {
    width: 300px; height: 300px; bottom: 20%; right: 15%;
    background: rgba(61, 107, 255, 0.08);
    animation-delay: -4s;
}
@keyframes volumetric-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.1); }
}

#particle-canvas, #holo-canvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
}
#particle-canvas { z-index: 1; }
#holo-canvas { z-index: 2; }

#scanline {
    position: fixed; inset: 0; z-index: 1000; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(46, 139, 255, 0.015) 2px, rgba(46, 139, 255, 0.015) 4px);
    animation: scanline-drift 12s linear infinite;
}
@keyframes scanline-drift {
    from { background-position: 0 0; }
    to { background-position: 0 120px; }
}
#vignette {
    position: fixed; inset: 0; z-index: 999; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

#hud-overlay {
    position: fixed; inset: 0; z-index: 5; pointer-events: none;
}
.corner-bracket {
    position: absolute; width: 60px; height: 60px;
    border-color: var(--cyan); border-style: solid; opacity: 0.6;
    filter: drop-shadow(0 0 4px var(--cyan-glow));
    animation: bracket-breathe 4s ease-in-out infinite;
}
.corner-bracket.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner-bracket.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; animation-delay: -1s; }
.corner-bracket.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; animation-delay: -2s; }
.corner-bracket.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; animation-delay: -3s; }
@keyframes bracket-breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; filter: drop-shadow(0 0 8px var(--cyan-glow)); }
}
.scan-beam {
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--cyan) 30%, rgba(46,139,255,0.8) 50%, var(--cyan) 70%, transparent 95%);
    opacity: 0.4;
    animation: scan-beam-move 6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--cyan-glow));
}
@keyframes scan-beam-move {
    0% { top: 10%; opacity: 0; }
    5% { opacity: 0.5; }
    95% { opacity: 0.5; }
    100% { top: 90%; opacity: 0; }
}

.holo-ripple {
    position: fixed; width: 20px; height: 20px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-expand 0.8s ease-out forwards;
    pointer-events: none; z-index: 2000;
}
@keyframes ripple-expand {
    to { width: 200px; height: 200px; opacity: 0; margin: -100px 0 0 -100px; }
}

/* ═══ BOOT / LOCK ═══ */
#lock-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(3, 5, 8, 0.95);
}
.boot-sequence {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    animation: boot-fade 0.5s ease;
}
@keyframes boot-fade { from { opacity: 0; } to { opacity: 1; } }
.boot-rings {
    width: 120px; height: 120px; position: relative;
}
.boot-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid var(--cyan); opacity: 0.4;
}
.boot-ring.r1 { animation: spin 4s linear infinite; border-style: dashed; }
.boot-ring.r2 { inset: 15px; animation: spin 3s linear infinite reverse; border-color: var(--orange); }
.boot-ring.r3 { inset: 30px; animation: spin 2s linear infinite; opacity: 0.6; }
.boot-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 20px; height: 20px; background: var(--cyan); border-radius: 50%;
    box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(46, 139, 255, 0.3);
    animation: core-breathe 2s ease-in-out infinite;
}
.boot-title {
    font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 16px;
    color: var(--accent); text-shadow: 0 0 40px rgba(0, 255, 200, 0.4);
}
.boot-subtitle {
    font-family: var(--font-display); font-size: 0.5rem; letter-spacing: 6px;
    color: var(--text-dim);
}
.boot-progress {
    width: 320px; height: 3px; background: rgba(46, 139, 255, 0.1);
    border-radius: 2px; overflow: hidden;
}
.boot-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    box-shadow: 0 0 12px var(--cyan-glow);
    transition: width 0.1s linear;
}
.boot-status {
    font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px;
    color: var(--cyan-dim); min-height: 20px;
}

.lock-container {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    padding: 48px;
    background: var(--glass);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(46, 139, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lock-reactor { width: 80px; height: 80px; position: relative; display: flex; align-items: center; justify-content: center; }
.lock-reactor .r1 { position: absolute; width: 80px; height: 80px; border: 1px dashed var(--cyan); border-radius: 50%; animation: spin 6s linear infinite; }
.lock-reactor .r2 { position: absolute; width: 56px; height: 56px; border: 1px solid var(--orange); border-radius: 50%; animation: spin 4s linear infinite reverse; }
.lock-reactor .reactor-core { width: 24px; height: 24px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 30px var(--cyan-glow); animation: core-breathe 3s infinite; }
.lock-title { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 8px; color: var(--accent); }
.lock-subtitle { font-family: var(--font-display); font-size: 0.45rem; letter-spacing: 4px; color: var(--text-dim); }
#pin-input {
    width: 280px; padding: 12px; background: rgba(46, 139, 255, 0.05);
    border: 1px solid var(--border); border-radius: 4px; outline: none;
    color: var(--text); font-family: var(--font-mono); font-size: 1rem;
    letter-spacing: 4px; text-align: center;
}
#pin-input:focus { border-color: var(--cyan); box-shadow: 0 0 24px rgba(46, 139, 255, 0.2); }
#pin-submit {
    padding: 10px 36px; font-family: var(--font-display); font-size: 0.55rem;
    letter-spacing: 3px; background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.35); color: var(--accent);
    border-radius: 4px; cursor: pointer; transition: all 0.3s;
}
#pin-submit:hover { box-shadow: 0 0 24px rgba(0, 255, 200, 0.25); }
.lock-error { font-family: var(--font-display); font-size: 0.5rem; letter-spacing: 2px; color: var(--danger); min-height: 16px; }
.lock-shake { animation: lock-shake 0.4s ease; }
@keyframes lock-shake {
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ═══ HUD LAYOUT ═══ */
#hud-container {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    height: 100vh; padding: 10px;
    animation: hud-boot-in 1s ease;
}
@keyframes hud-boot-in {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

#top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 24px;
    background: var(--glass-bright);
    border: 1px solid var(--border);
    border-radius: 6px;
    backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 60px rgba(46, 139, 255, 0.04);
    min-height: 56px;
    position: relative;
    overflow: hidden;
}
#top-bar::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 255, 0.3), rgba(61, 107, 255, 0.2), rgba(46, 139, 255, 0.3), transparent);
}
.top-left, .top-right {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 2px;
}
.top-center { display: flex; align-items: center; gap: 28px; }
.brand-badge {
    padding: 4px 8px; font-size: 0.55rem; font-weight: 700;
    border: 1px solid var(--orange); color: var(--orange);
    border-radius: 2px; letter-spacing: 2px;
}
.label.brand {
    color: var(--accent); font-weight: 700; font-size: 0.9rem;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.4), 0 0 60px rgba(0, 255, 200, 0.15);
    animation: brand-breathe 4s ease-in-out infinite;
}
@keyframes brand-breathe {
    50% { text-shadow: 0 0 30px rgba(0, 255, 200, 0.7), 0 0 80px rgba(0, 255, 200, 0.25); }
}
.separator { color: var(--text-dim); font-size: 0.5rem; }
.data { color: var(--cyan); font-family: var(--font-mono); }
.readout-label { font-size: 0.45rem; color: var(--text-dim); display: block; letter-spacing: 2px; }
.readout-value { font-size: 0.7rem; color: var(--cyan); }
.readout-value.threat-low { color: var(--accent); }

.status {
    padding: 4px 14px; font-size: 0.55rem; font-weight: 700; letter-spacing: 3px;
    border-radius: 2px;
}
.status.online {
    background: rgba(0, 255, 200, 0.08); color: var(--accent);
    border: 1px solid rgba(0, 255, 200, 0.35);
    animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
    50% { box-shadow: 0 0 20px rgba(0, 255, 200, 0.4); }
}

/* Arc Reactor */
.arc-reactor {
    width: 56px; height: 56px; position: relative;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 0 12px rgba(46, 139, 255, 0.3));
}
.holo-ring {
    position: absolute; border-radius: 50%; border: 1px solid rgba(46, 139, 255, 0.25);
}
.hr1 { width: 56px; height: 56px; animation: spin 10s linear infinite; border-width: 1.5px; }
.hr2 { width: 44px; height: 44px; animation: spin 7s linear infinite reverse; border-color: rgba(61, 107, 255, 0.3); }
.hr3 { width: 34px; height: 34px; animation: spin 4s linear infinite; opacity: 0.6; }
.reactor-ring { position: absolute; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0.6; }
.r1 { width: 48px; height: 48px; animation: spin 8s linear infinite; border-style: dashed; }
.r2 { width: 34px; height: 34px; animation: spin 5s linear infinite reverse; }
.reactor-core {
    width: 16px; height: 16px; background: var(--cyan); border-radius: 50%;
    box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(46, 139, 255, 0.35), 0 0 80px rgba(46, 139, 255, 0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core-breathe {
    50% { box-shadow: 0 0 40px var(--cyan-glow); transform: scale(1.2); }
}
.arc-reactor.breathing .reactor-core { animation: heartbeat 1.5s ease-in-out infinite; }
.arc-reactor.active .reactor-core {
    background: var(--orange);
    box-shadow: 0 0 30px var(--orange-glow);
    animation: core-active 0.35s ease-in-out infinite;
}
.arc-reactor.active .r1, .arc-reactor.active .r2 { border-color: var(--orange); opacity: 0.9; }
@keyframes core-active {
    50% { transform: scale(1.3); }
}
.arc-reactor.listening .reactor-core {
    background: var(--danger);
    box-shadow: 0 0 30px rgba(255, 51, 85, 0.5);
    animation: core-listen 0.7s ease-in-out infinite;
}
@keyframes core-listen {
    50% { transform: scale(1.4); }
}

#wake-word-bar {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 10px; margin-top: 6px;
    background: rgba(255, 51, 85, 0.06);
    border: 1px solid rgba(255, 51, 85, 0.25);
    border-radius: 4px;
    animation: wake-fade-in 0.3s ease;
}
.wake-pulse {
    width: 10px; height: 10px; background: var(--danger); border-radius: 50%;
    animation: wake-breathe 1s infinite;
}
.wake-text { font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 3px; color: var(--danger); }
@keyframes wake-breathe {
    50% { box-shadow: 0 0 20px rgba(255, 51, 85, 0.8); transform: scale(1.3); }
}

/* Holo decor rings */
.holo-decor {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 220px; height: 220px; opacity: 0.35; pointer-events: none; z-index: 3;
    filter: drop-shadow(0 0 8px rgba(46, 139, 255, 0.2));
    animation: decor-breathe 6s ease-in-out infinite;
}
.holo-decor.left-rings { left: 245px; animation-delay: -3s; }
.holo-decor.right-rings { right: 245px; }
@keyframes decor-breathe {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.45; filter: drop-shadow(0 0 14px rgba(46, 139, 255, 0.3)); }
}
.ring-svg { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: rgba(46, 139, 255, 0.12); stroke-width: 1; }
.ring-spin {
    fill: none; stroke: var(--cyan); stroke-width: 1.5;
    stroke-dasharray: 400; stroke-dashoffset: 100;
    transform-origin: center;
    animation: ring-rotate 20s linear infinite;
}
.ring-spin.reverse { animation-direction: reverse; animation-duration: 14s; }
.ring-spin.orange { stroke: var(--orange); opacity: 0.8; }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* Main grid */
#main-content {
    flex: 1; display: grid;
    grid-template-columns: 260px 1fr 260px;
    grid-template-rows: minmax(0, 1fr);   /* row fills height → panels never collapse */
    gap: 12px; padding: 10px 0; min-height: 0;
    position: relative;
}

/* Panels */
.holo-panel {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    backdrop-filter: blur(24px) saturate(1.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 1px rgba(46, 139, 255, 0.3),
        0 0 60px rgba(46, 139, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.holo-panel::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    opacity: 0.6;
}
.holo-panel.holo-hover, .holo-panel-thin:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 40px rgba(46, 139, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 80px rgba(46, 139, 255, 0.06);
}
.panel-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(46, 139, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: panel-glow-shift 8s ease-in-out infinite;
}
.panel-glow.orange {
    background: radial-gradient(circle at 70% 80%, rgba(61, 107, 255, 0.05) 0%, transparent 50%);
}
@keyframes panel-glow-shift {
    50% { transform: translate(5%, 5%); }
}
.panel {
    padding: 14px; overflow-y: auto;
    animation: panel-float 8s ease-in-out infinite;
}
.panel:nth-child(odd) { animation-delay: -4s; }
@keyframes panel-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.float-panel { animation: panel-float 8s ease-in-out infinite; }

.panel-header {
    font-family: var(--font-display); font-size: 0.5rem;
    letter-spacing: 3px; color: var(--cyan-dim);
    padding-bottom: 8px; margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
    position: relative;
}
.panel-header::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; width: 40px; height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan-glow);
}
.header-icon { color: var(--orange); font-size: 0.45rem; animation: icon-pulse 3s ease-in-out infinite; }
@keyframes icon-pulse {
    50% { color: var(--cyan); text-shadow: 0 0 6px var(--cyan-glow); }
}

/* Radial gauge */
.radial-gauge {
    position: relative; width: 80px; height: 80px; margin: 0 auto 12px;
}
.radial-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(46, 139, 255, 0.1); stroke-width: 4; }
.gauge-fill {
    fill: none; stroke: var(--cyan); stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px var(--cyan-glow)) drop-shadow(0 0 4px var(--cyan));
    transition: stroke-dashoffset 1s ease;
    animation: gauge-glow 3s ease-in-out infinite;
}
@keyframes gauge-glow {
    50% { filter: drop-shadow(0 0 14px var(--cyan-glow)) drop-shadow(0 0 6px var(--cyan)); }
}
.gauge-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 0.85rem; color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
}
.gauge-center small { font-size: 0.4rem; letter-spacing: 2px; color: var(--text-dim); text-shadow: none; }

.stat-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-label { font-family: var(--font-display); font-size: 0.48rem; letter-spacing: 2px; color: var(--text-dim); }
.stat-bar { height: 4px; background: rgba(46, 139, 255, 0.08); border-radius: 2px; overflow: hidden; }
.stat-fill {
    height: 100%; background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
    border-radius: 2px; transition: width 1s ease, background 0.3s;
    box-shadow: 0 0 12px var(--cyan-glow), 0 0 4px var(--cyan);
    width: 0%;
    position: relative;
}
.stat-fill::after {
    content: '';
    position: absolute; right: 0; top: -2px; bottom: -2px; width: 4px;
    background: var(--cyan);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: stat-tip-pulse 2s ease-in-out infinite;
}
@keyframes stat-tip-pulse {
    50% { box-shadow: 0 0 14px var(--cyan-glow), 0 0 4px var(--cyan); }
}
.stat-value { font-family: var(--font-mono); font-size: 0.65rem; color: var(--cyan); text-align: right; }

#telemetry-canvas {
    width: 100%; height: 60px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.module-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px;
}
.module-cell {
    padding: 8px; text-align: center;
    background: rgba(46, 139, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.module-cell::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 255, 0.3), transparent);
}
.module-cell:hover { border-color: var(--cyan-dim); box-shadow: 0 0 16px rgba(46, 139, 255, 0.15); }
.module-cell.warn { border-color: rgba(61, 107, 255, 0.4); background: rgba(61, 107, 255, 0.04); }
.module-cell.warn::before { background: linear-gradient(90deg, transparent, rgba(61, 107, 255, 0.3), transparent); }
.module-cell.warn .mod-val { color: var(--orange); text-shadow: 0 0 8px var(--orange-glow); }
.module-cell.danger { border-color: rgba(255, 51, 85, 0.5); background: rgba(255, 51, 85, 0.05); animation: cell-danger-pulse 1.2s ease-in-out infinite; }
.module-cell.danger::before { background: linear-gradient(90deg, transparent, rgba(255, 51, 85, 0.35), transparent); }
.module-cell.danger .mod-val { color: #ff3355; text-shadow: 0 0 10px rgba(255, 51, 85, 0.6); }
@keyframes cell-danger-pulse { 50% { border-color: rgba(255, 51, 85, 0.9); box-shadow: 0 0 12px rgba(255, 51, 85, 0.3); } }
.mod-val { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); }
.mod-lbl { font-size: 0.45rem; letter-spacing: 1px; color: var(--text-dim); }

.mini-info {
    display: flex; justify-content: space-between; padding: 5px 0;
    border-bottom: 1px solid rgba(46, 139, 255, 0.05); font-size: 0.75rem;
}
.mini-info .label { font-size: 0.5rem; letter-spacing: 1px; color: var(--text-dim); }
.mini-info .data { font-size: 0.6rem; font-family: var(--font-mono); color: var(--cyan); }
.mini-info .data.connected { color: var(--accent); }
.mini-info .data.disconnected { color: var(--warning); }

/* ── Neural Learning Widget ──────────────────────────────────── */
#learning-widget { padding: 4px 0 6px; }
.learning-stats-row {
    display: flex; justify-content: space-around;
    margin-bottom: 8px; padding: 6px 4px;
    border: 1px solid rgba(46,139,255,0.1);
    border-radius: 4px; background: rgba(46,139,255,0.03);
}
.lstat { text-align: center; }
.lstat span {
    display: block; font-family: var(--font-display);
    font-size: 1rem; color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}
.lstat small { font-size: 0.42rem; letter-spacing: 2px; color: var(--text-dim); }
#lstat-facts-list { display: flex; flex-direction: column; gap: 2px; }
.lfact-item {
    display: flex; gap: 6px; align-items: center;
    padding: 2px 4px; border-radius: 3px;
    background: rgba(46,139,255,0.03);
}
.lfact-cat {
    font-size: 0.38rem; letter-spacing: 1px; padding: 1px 4px;
    border-radius: 2px; background: rgba(46,139,255,0.12);
    color: var(--cyan); white-space: nowrap; text-transform: uppercase;
}
.lfact-val {
    font-size: 0.52rem; color: var(--text-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 130px;
}

.toggle-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 6px 0; }
.toggle-switch input { display: none; }
.toggle-slider {
    width: 36px; height: 18px; background: rgba(46, 139, 255, 0.08);
    border: 1px solid var(--border); border-radius: 9px; position: relative; transition: all 0.3s;
}
.toggle-slider::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 12px; height: 12px; background: var(--text-dim); border-radius: 50%; transition: all 0.3s;
}
.toggle-switch input:checked + .toggle-slider { border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 255, 200, 0.2); }
.toggle-switch input:checked + .toggle-slider::after { left: 20px; background: var(--accent); }
.toggle-label { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 1px; }
.alert-schedule { margin-top: 6px; }
.alert-time { font-size: 0.58rem; color: var(--text-dim); padding: 3px 0; letter-spacing: 0.5px; }
.voice-hint { font-size: 0.5rem; color: rgba(46, 139, 255, 0.45); margin-top: 6px; line-height: 1.4; }

/* Threat display */
.threat-display {
    position: relative; width: 90px; height: 90px; margin: 0 auto 14px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.15));
}
.threat-ring {
    position: absolute; inset: 0; border: 2px solid rgba(0, 255, 200, 0.25);
    border-radius: 50%; border-style: dashed;
    animation: spin 15s linear infinite;
}
.threat-display::before {
    content: '';
    position: absolute; inset: 8px; border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 50%;
    animation: spin 10s linear infinite reverse;
}
.threat-display::after {
    content: '';
    position: absolute; inset: -6px; border: 1px solid rgba(46, 139, 255, 0.1);
    border-radius: 50%; border-style: dotted;
    animation: spin 20s linear infinite;
}
.threat-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.threat-score {
    font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 255, 200, 0.5);
}
.threat-label { font-size: 0.4rem; letter-spacing: 2px; color: var(--text-dim); }

.schematic-svg { width: 100%; height: 60px; margin-bottom: 10px; opacity: 0.6; }
.schematic-line {
    fill: none; stroke: var(--cyan); stroke-width: 1;
    stroke-dasharray: 200; stroke-dashoffset: 200;
    animation: schematic-draw 4s ease-in-out infinite;
}
.schematic-line.delay { animation-delay: 1s; stroke: var(--orange); opacity: 0.5; }
@keyframes schematic-draw {
    0% { stroke-dashoffset: 200; }
    50%, 100% { stroke-dashoffset: 0; }
}
.schematic-node { fill: var(--cyan); animation: node-pulse 2s infinite; }
@keyframes node-pulse {
    50% { r: 4; opacity: 0.8; }
}

.data-stream { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; overflow: hidden; }
.stream-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), rgba(46,139,255,0.8), var(--cyan), transparent);
    animation: stream-flow 2.5s linear infinite;
    filter: drop-shadow(0 0 3px var(--cyan-glow));
}
.stream-line:nth-child(2) { animation-delay: 0.7s; opacity: 0.7; background: linear-gradient(90deg, transparent, var(--orange), rgba(61,107,255,0.7), var(--orange), transparent); }
.stream-line:nth-child(3) { animation-delay: 1.4s; opacity: 0.5; }
@keyframes stream-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Center panel */
#center-panel {
    display: flex; flex-direction: column; min-height: 0;
    position: relative;
}

/* ── Agent Network ─────────────────────────────────────────── */
/* Docked into the right panel (was a centered overlay over the chat). */
.agent-network-wrap {
    position: relative;
    width: 100%; height: 215px;
    margin: 2px 0 12px;
    pointer-events: none;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    background: rgba(2, 8, 18, 0.45);
    border: 1px solid rgba(46, 139, 255, 0.16);
    border-radius: 6px;
    padding: 6px;
    box-shadow: inset 0 0 20px rgba(46, 139, 255, 0.04);
}
.agent-network-header {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0 4px 4px;
}
.agent-network-title {
    font-family: var(--font-display); font-size: 0.48rem;
    letter-spacing: 3px; color: rgba(46, 139, 255, 0.55);
}
.agent-network-status {
    font-family: var(--font-display); font-size: 0.42rem;
    letter-spacing: 2px; color: rgba(0, 255, 128, 0.7);
    animation: status-blink 2.4s ease-in-out infinite;
}
@keyframes status-blink {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
#agent-canvas {
    width: 100%; flex: 1;
    display: block;
}
#active-agent-label {
    margin-top: 4px;
    font-family: var(--font-display); font-size: 0.5rem;
    letter-spacing: 2px; color: var(--cyan-glow);
    text-align: center; opacity: 0;
    transition: opacity 0.4s ease, color 0.3s ease;
    text-shadow: 0 0 8px currentColor;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}
.agent-network-wrap.core-pulse {
    filter: brightness(1.3);
}

.holo-panel-thin {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    backdrop-filter: blur(16px) saturate(1.1);
    position: relative; z-index: 1;
    transition: all 0.25s;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3), 0 0 1px rgba(46, 139, 255, 0.2);
}

#quick-commands {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 10px; margin-bottom: 8px; z-index: 1;
}
.qcmd {
    padding: 6px 14px; font-family: var(--font-display);
    font-size: 0.48rem; letter-spacing: 1.5px; text-transform: uppercase;
    background: rgba(46, 139, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--cyan-dim); border-radius: 3px; cursor: pointer;
    transition: all 0.25s; position: relative; overflow: hidden;
}
.qcmd::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(46, 139, 255, 0.18) 48%, rgba(46, 139, 255, 0.06) 52%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.qcmd:hover::after { transform: translateX(100%); }
.qcmd::before {
    content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.qcmd:hover::before { opacity: 1; }
.qcmd:hover {
    color: var(--cyan); border-color: var(--cyan-dim);
    box-shadow: 0 0 16px rgba(46, 139, 255, 0.2);
    transform: translateY(-1px);
}

#chat-container {
    flex: 1; min-height: 0; z-index: 1;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.chat-header-bar {
    display: flex; justify-content: space-between; padding: 10px 14px;
    font-family: var(--font-display); font-size: 0.45rem; letter-spacing: 3px;
    color: var(--cyan-dim); border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    position: relative;
}
.chat-header-bar::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, var(--cyan-dim), transparent 30%, transparent 70%, var(--orange));
    opacity: 0.5;
}
.chat-header-status { color: var(--orange); opacity: 0.9; animation: encrypted-pulse 2s infinite; }
@keyframes encrypted-pulse {
    50% { opacity: 0.5; }
}
#chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    scroll-behavior: smooth;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 2px; }

.chat-msg { margin-bottom: 14px; animation: msg-in 0.4s ease; }
@keyframes msg-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-msg .msg-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.chat-msg .sender { font-family: var(--font-display); font-size: 0.48rem; letter-spacing: 2px; }
.chat-msg .timestamp { font-family: var(--font-mono); font-size: 0.4rem; color: var(--text-dim); }
.chat-msg.topsecret .sender { color: var(--cyan); }
.chat-msg.user .sender { color: var(--orange); }
.chat-msg .content {
    font-size: 0.9rem; line-height: 1.65; padding: 12px 16px;
    border-radius: 4px; max-width: 92%;
    backdrop-filter: blur(8px);
}
.chat-msg.topsecret .content {
    background: linear-gradient(135deg, rgba(46, 139, 255, 0.06) 0%, rgba(0, 180, 255, 0.03) 100%);
    border-left: 2px solid var(--cyan);
    box-shadow: 0 0 30px rgba(46, 139, 255, 0.06), inset 0 0 30px rgba(46, 139, 255, 0.02);
}
.chat-msg.user .content {
    background: linear-gradient(135deg, rgba(61, 107, 255, 0.06) 0%, rgba(94, 168, 255, 0, 0.03) 100%);
    border-left: 2px solid var(--orange);
    margin-left: auto;
    box-shadow: 0 0 20px rgba(61, 107, 255, 0.04);
}
.chat-msg.alert .content { background: rgba(94, 168, 255, 0, 0.08); border-left-color: var(--alert); }
.chat-msg .content code { background: rgba(0, 0, 0, 0.4); padding: 2px 6px; color: var(--accent); font-family: var(--font-mono); }
.chat-msg .content pre { background: rgba(0, 0, 0, 0.5); padding: 12px; margin: 8px 0; font-size: 0.8rem; overflow-x: auto; }

.msg-actions { display: flex; gap: 6px; margin-top: 6px; opacity: 0; transition: opacity 0.2s; }
.chat-msg:hover .msg-actions { opacity: 1; }
.msg-action-btn {
    background: rgba(46, 139, 255, 0.06); border: 1px solid var(--border);
    color: var(--text-dim); font-family: var(--font-display); font-size: 0.45rem;
    letter-spacing: 1px; padding: 3px 10px; border-radius: 2px; cursor: pointer;
}
.msg-action-btn:hover { color: var(--cyan); border-color: var(--cyan-dim); }

.tool-status {
    padding: 10px 16px; margin-bottom: 10px;
    font-family: var(--font-display); font-size: 0.52rem; letter-spacing: 2px;
    color: var(--orange); border-left: 2px solid var(--orange);
    background: rgba(61, 107, 255, 0.06);
    animation: tool-blink 1.2s infinite;
}
@keyframes tool-blink { 50% { opacity: 0.65; } }

#waveform-container {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; margin-top: 8px; z-index: 1;
    position: relative;
}
.waveform-ring {
    position: absolute; left: 16px; width: 48px; height: 48px;
    border: 1px solid var(--cyan); border-radius: 50%;
    animation: spin 3s linear infinite; opacity: 0.4;
}
#waveform-canvas { flex: 1; }
.stop-btn {
    font-family: var(--font-display); font-size: 0.45rem; letter-spacing: 2px;
    padding: 6px 14px; background: rgba(255, 51, 85, 0.1);
    border: 1px solid var(--danger); color: var(--danger);
    border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.stop-btn:hover { background: rgba(255, 51, 85, 0.25); box-shadow: 0 0 12px rgba(255, 51, 85, 0.3); }

#input-area {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px; padding: 12px 16px; z-index: 1;
    position: relative; overflow: hidden;
}
#input-area::after {
    content: '';
    position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
    opacity: 0.5;
}
#input-area:focus-within {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(46, 139, 255, 0.15), inset 0 0 30px rgba(46, 139, 255, 0.03);
}
#input-area:focus-within::after {
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
#voice-btn {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
    color: var(--text-dim); transition: all 0.3s; flex-shrink: 0;
    background: rgba(46, 139, 255, 0.04);
}
#voice-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }
#voice-btn.recording {
    color: var(--danger); border-color: var(--danger);
    animation: rec-pulse 1s infinite;
}
@keyframes rec-pulse {
    50% { box-shadow: 0 0 28px rgba(255, 51, 85, 0.5); }
}
#user-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-family: var(--font-body); font-size: 1.05rem;
    letter-spacing: 0.5px;
}
#user-input::placeholder { color: var(--text-dim); }
#send-btn {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: rgba(46, 139, 255, 0.1); border: 1px solid var(--cyan-dim);
    border-radius: 4px; cursor: pointer; color: var(--cyan); transition: all 0.3s;
}
#send-btn:hover {
    background: rgba(46, 139, 255, 0.2);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: scale(1.05);
}

/* Activity log */
#activity-log { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.log-entry {
    font-size: 0.62rem; padding: 6px 10px;
    border-left: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    animation: msg-in 0.3s ease;
}
.log-entry .log-time { font-family: var(--font-mono); font-size: 0.42rem; color: var(--text-dim); }
.log-entry.info { border-color: var(--cyan); }
.log-entry.success { border-color: var(--accent); }
.log-entry.warning { border-color: var(--orange); }

/* Bottom bar */
#bottom-bar {
    padding: 8px 20px; margin-top: 4px;
    background: var(--glass-bright);
    border: 1px solid var(--border);
    border-radius: 6px;
    backdrop-filter: blur(16px);
    position: relative; overflow: hidden;
}
#bottom-bar::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 255, 0.3), transparent);
}
.hex-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.hex-cell {
    width: 50px; height: 5px;
    background: rgba(46, 139, 255, 0.06);
    border-radius: 2px; transition: all 0.5s;
    animation: hex-idle 3s ease-in-out infinite;
}
.hex-cell:nth-child(1) { animation-delay: 0s; }
.hex-cell:nth-child(2) { animation-delay: 0.2s; }
.hex-cell:nth-child(3) { animation-delay: 0.4s; }
.hex-cell:nth-child(4) { animation-delay: 0.6s; }
.hex-cell:nth-child(5) { animation-delay: 0.8s; }
.hex-cell:nth-child(6) { animation-delay: 1.0s; }
.hex-cell:nth-child(7) { animation-delay: 1.2s; }
.hex-cell:nth-child(8) { animation-delay: 1.4s; }
@keyframes hex-idle {
    0%, 100% { background: rgba(46, 139, 255, 0.06); }
    50% { background: rgba(46, 139, 255, 0.15); box-shadow: 0 0 6px rgba(46, 139, 255, 0.2); }
}
.hex-cell.active {
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    box-shadow: 0 0 14px var(--cyan-glow);
    animation: none;
}
#data-ticker {
    font-family: var(--font-mono); font-size: 0.45rem;
    letter-spacing: 2px; color: var(--text-dim);
    text-align: center; overflow: hidden; height: 14px;
}
#data-ticker span {
    display: inline-block; white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
    0% { transform: translateX(60%); }
    100% { transform: translateX(-100%); }
}

.typing-indicator { display: flex; gap: 5px; padding: 12px; }
.typing-indicator span {
    width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
    animation: typing 1.4s infinite;
    box-shadow: 0 0 8px var(--cyan-glow);
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.streaming-cursor::after {
    content: '▊'; color: var(--orange);
    animation: cursor-blink 0.7s infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Toasts */
#toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 5000;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.holo-toast {
    min-width: 220px; max-width: 320px; padding: 12px 16px;
    background: var(--glass); border: 1px solid var(--border-glow);
    border-left: 3px solid var(--cyan); border-radius: 4px;
    backdrop-filter: blur(16px);
    opacity: 0; transform: translateX(20px);
    transition: all 0.35s ease;
    pointer-events: auto;
}
.holo-toast.show { opacity: 1; transform: translateX(0); }
.holo-toast.warning { border-left-color: var(--orange); }
.holo-toast.success { border-left-color: var(--accent); }
.holo-toast strong {
    display: block; font-family: var(--font-display); font-size: 0.5rem;
    letter-spacing: 2px; color: var(--cyan); margin-bottom: 4px;
}
.holo-toast span { font-size: 0.75rem; color: var(--text); line-height: 1.4; }

.command-toolbar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 8px 10px; margin-bottom: 8px; z-index: 1;
}
.toolbar-btn {
    padding: 6px 12px; font-family: var(--font-display); font-size: 0.45rem;
    letter-spacing: 2px; background: rgba(46, 139, 255, 0.06);
    border: 1px solid var(--border); color: var(--cyan-dim);
    border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.toolbar-btn:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.upload-zone {
    flex: 1; min-width: 120px; padding: 8px 12px; text-align: center;
    border: 1px dashed var(--border); border-radius: 4px; cursor: pointer;
    font-family: var(--font-display); font-size: 0.45rem; letter-spacing: 2px;
    color: var(--text-dim); transition: all 0.25s;
}
.upload-zone:hover, .upload-zone.drag {
    border-color: var(--cyan); color: var(--cyan);
    background: rgba(46, 139, 255, 0.06);
}

.weather-card { text-align: center; padding: 10px 0; }
.weather-temp {
    font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan);
    text-shadow: 0 0 24px var(--cyan-glow), 0 0 50px rgba(46, 139, 255, 0.15);
    animation: temp-glow 3s ease-in-out infinite;
}
@keyframes temp-glow {
    50% { text-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(46, 139, 255, 0.25); }
}
.weather-meta { font-size: 0.8rem; color: var(--text); margin-top: 4px; }
.weather-sub { font-size: 0.55rem; color: var(--text-dim); margin-top: 6px; letter-spacing: 1px; }

.calendar-widget { max-height: 140px; overflow-y: auto; margin-bottom: 12px; }
.cal-row {
    display: flex; flex-direction: column; padding: 6px 0;
    border-bottom: 1px solid rgba(46, 139, 255, 0.06);
}
.cal-time { font-family: var(--font-mono); font-size: 0.45rem; color: var(--orange); }
.cal-title { font-size: 0.65rem; color: var(--text); margin-top: 2px; }

body.theme-orange {
    --cyan: #3d6bff;
    --cyan-dim: #cc7000;
    --cyan-glow: rgba(61, 107, 255, 0.5);
    --accent: #4ea8ff;
}

/* ═══ SUIT HUD OVERLAY ═══ */
#suit-hud {
    position: fixed; z-index: 6; pointer-events: none;
    inset: 0;
}
.suit-readout {
    position: absolute; display: flex; flex-direction: column; gap: 4px;
    animation: readout-breathe 5s ease-in-out infinite;
}
.suit-readout.left-readout { top: 80px; left: 14px; }
.suit-readout.right-readout { top: 80px; right: 14px; text-align: right; animation-delay: -2.5s; }
@keyframes readout-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
.suit-line {
    display: flex; gap: 8px; align-items: center;
    font-family: var(--font-mono); font-size: 0.42rem; letter-spacing: 1px;
}
.right-readout .suit-line { justify-content: flex-end; }
.s-label { color: var(--text-dim); font-family: var(--font-display); font-size: 0.35rem; letter-spacing: 2px; }
.s-val { color: var(--cyan); }
.s-val.s-ok { color: var(--accent); }

/* Holographic ambient effects */
#main-content::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(46, 139, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: ambient-pulse 6s ease-in-out infinite;
    z-index: 0;
}
@keyframes ambient-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Activity log glow */
.log-entry.success { border-color: var(--accent); box-shadow: inset 2px 0 8px rgba(0, 255, 200, 0.08); }
.log-entry.info { box-shadow: inset 2px 0 8px rgba(46, 139, 255, 0.06); }
.log-entry.warning { box-shadow: inset 2px 0 8px rgba(61, 107, 255, 0.08); }

/* Glowing scrollbars */
.panel::-webkit-scrollbar { width: 3px; }
.panel::-webkit-scrollbar-thumb {
    background: var(--cyan-dim);
    border-radius: 2px;
    box-shadow: 0 0 4px var(--cyan-glow);
}
.panel::-webkit-scrollbar-track { background: transparent; }

/* Streaming cursor glow */
.streaming-cursor::after {
    text-shadow: 0 0 8px var(--orange-glow);
}

/* Tool status enhanced */
.tool-status {
    box-shadow: inset 3px 0 12px rgba(61, 107, 255, 0.08);
}

/* ═══ THREE.JS MOUNT ═══ */
#three-mount {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
    opacity: 0.55;
}

/* ═══ OPERATIONAL MODES PANEL ═══ */
.modes-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    margin-bottom: 8px;
}
.mode-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 8px;
    background: rgba(46, 139, 255, 0.04);
    border: 1px solid rgba(46, 139, 255, 0.12);
    border-radius: 3px; cursor: pointer;
    font-family: var(--font-display); font-size: 0.38rem;
    letter-spacing: 1px; color: var(--text-dim);
    transition: all 0.25s; text-align: left;
}
.mode-btn:hover {
    background: rgba(46, 139, 255, 0.1);
    border-color: rgba(46, 139, 255, 0.4);
    color: var(--cyan);
}
.mode-btn.is-active {
    background: rgba(46, 139, 255, 0.14);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(46, 139, 255, 0.15), inset 0 0 8px rgba(46, 139, 255, 0.06);
}
.mode-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--text-dim); flex-shrink: 0;
    transition: all 0.25s;
}
.mode-btn.is-active .mode-dot {
    background: var(--mode-color, var(--cyan));
    box-shadow: 0 0 6px var(--mode-color, var(--cyan-glow));
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 4px var(--mode-color, var(--cyan-glow)); }
    50% { box-shadow: 0 0 12px var(--mode-color, var(--cyan-glow)), 0 0 20px rgba(46, 139, 255, 0.25); }
}
.mode-brief {
    font-size: 0.6rem; color: var(--text-dim); line-height: 1.5;
    padding: 6px 8px; margin-bottom: 12px;
    background: rgba(46, 139, 255, 0.03);
    border-left: 2px solid rgba(46, 139, 255, 0.2);
    border-radius: 0 3px 3px 0;
    font-family: var(--font-mono);
    min-height: 32px;
    animation: brief-fade 0.4s ease;
}
@keyframes brief-fade { from { opacity: 0; } to { opacity: 1; } }

/* ═══ CAPABILITY MATRIX ═══ */
.capability-matrix {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 12px;
}
.cap-item { display: flex; flex-direction: column; gap: 3px; }
.cap-label {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-size: 0.38rem;
    letter-spacing: 1.5px; color: var(--text-dim);
}
.cap-val { font-family: var(--font-mono); color: var(--cyan); font-size: 0.45rem; }
.cap-bar {
    height: 5px; background: rgba(46, 139, 255, 0.08);
    border-radius: 3px; overflow: hidden; position: relative;
}
.cap-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
    box-shadow: 0 0 8px var(--cyan-glow);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.cap-fill::after {
    content: '';
    position: absolute; right: 0; top: -2px;
    width: 3px; height: 9px;
    background: var(--cyan); border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: tip-pulse 1.8s ease-in-out infinite;
}
.cap-fill.orange {
    background: linear-gradient(90deg, rgba(61, 107, 255, 0.6), var(--orange));
    box-shadow: 0 0 8px var(--orange-glow);
}
.cap-fill.orange::after { background: var(--orange); box-shadow: 0 0 8px var(--orange-glow); }
.cap-fill.accent {
    background: linear-gradient(90deg, rgba(0, 200, 150, 0.6), var(--accent));
    box-shadow: 0 0 8px rgba(0, 255, 200, 0.35);
}
.cap-fill.accent::after { background: var(--accent); box-shadow: 0 0 8px rgba(0, 255, 200, 0.35); }
.cap-fill.purple {
    background: linear-gradient(90deg, rgba(120, 80, 200, 0.6), #af7cff);
    box-shadow: 0 0 8px rgba(175, 124, 255, 0.35);
}
.cap-fill.purple::after { background: #af7cff; box-shadow: 0 0 8px rgba(175, 124, 255, 0.35); }

/* ═══ STRATEGY RADAR ═══ */
.radar-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
#radar-canvas {
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(46, 139, 255, 0.3));
}
.radar-stats {
    display: flex; gap: 12px; justify-content: center; width: 100%;
}
.radar-stat {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.rs-val {
    font-family: var(--font-display); font-size: 0.65rem;
    color: var(--cyan); letter-spacing: 1px;
}
.rs-lbl {
    font-family: var(--font-display); font-size: 0.3rem;
    color: var(--text-dim); letter-spacing: 1.5px;
}

/* ═══ VOICE MATRIX ═══ */
.voice-matrix-wrap {
    display: flex; flex-direction: column; gap: 5px;
    margin-bottom: 12px;
}
#voice-matrix-canvas {
    display: block; width: 100%; height: 56px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(46, 139, 255, 0.08);
}
.vm-labels {
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 0.38rem;
    letter-spacing: 1.5px;
}
#vm-status { color: var(--accent); }
#vm-freq { color: var(--text-dim); }

/* ═══ CURRENT DIRECTIVE ═══ */
.directive-panel {
    padding: 8px 10px; margin-bottom: 12px;
    background: rgba(46, 139, 255, 0.03);
    border: 1px solid rgba(46, 139, 255, 0.1);
    border-left: 2px solid var(--orange);
    border-radius: 0 3px 3px 0;
}
.directive-line {
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--text); line-height: 1.6; letter-spacing: 0.3px;
    animation: brief-fade 0.4s ease;
}

/* Responsive */
/* ── Markets / financial widget ── */
.mkt-row {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 3px 0; border-bottom: 1px solid rgba(46, 139, 255, 0.06);
    font-family: 'Share Tech Mono', monospace;
}
.mkt-sym { font-size: 0.62rem; letter-spacing: 1px; color: var(--cyan, #2e8bff); min-width: 40px; }
.mkt-px  { font-size: 0.62rem; color: var(--text-bright, #cfe9f5); margin-left: auto; }
.mkt-chg { font-size: 0.56rem; min-width: 64px; text-align: right; }

/* ── Responsive: tablet — narrow the rails instead of hiding them ── */
@media (max-width: 1100px) and (min-width: 901px) {
    #main-content { grid-template-columns: 210px 1fr 210px; }
    .holo-decor { display: none; }
}

/* ── Responsive: phone / mobile companion — stack, chat first ── */
@media (max-width: 900px) {
    /* Let the WHOLE page scroll (iOS-reliable) so the stacked panels are reachable */
    html, body { overflow-y: auto !important; height: auto !important; }
    #hud-container { height: auto !important; min-height: 100vh; overflow: visible !important; }
    #main-content {
        display: flex; flex-direction: column; gap: 10px;
        overflow: visible !important;
        padding: 8px 8px 90px;
    }
    #left-panel, #right-panel, #center-panel { width: 100%; max-width: 100%; min-height: 0; overflow: visible !important; }
    #center-panel { order: -1; min-height: 68vh; }
    #left-panel  { order: 1; }
    #right-panel { order: 2; }
    .holo-decor, #three-mount, .agent-network-wrap, .env-volumetric { display: none !important; }
    /* Mobile performance: drop the decorative full-screen canvases + effects */
    #particle-canvas, #holo-canvas, #voice-ring, #scanline, #lab-environment { display: none !important; }
    .panel { max-height: none; }
    #top-bar { flex-wrap: wrap; gap: 6px; }
    .top-center { gap: 12px; }
    .arc-reactor { transform: scale(0.7); }
}
@media (max-width: 560px) {
    .boot-title { font-size: 1.4rem; letter-spacing: 8px; }
    .top-center .top-readout { display: none; }
    .brand-badge { display: none; }
    #center-panel { min-height: 68vh; }
    .mode-btn { font-size: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   VISUAL FEED — floating holographic media overlay
   ═══════════════════════════════════════════════════════════════ */
.media-overlay {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px) scale(0.96);
    width: min(94vw, 940px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(160deg, rgba(6, 20, 38, 0.92), rgba(3, 10, 22, 0.96));
    border: 1px solid rgba(46, 139, 255, 0.45);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(46, 139, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 50px rgba(46, 139, 255, 0.18);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow: hidden;
}
.media-overlay.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.media-overlay.hidden { display: none; }
/* animated top scan-line */
.media-overlay::before {
    content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    filter: drop-shadow(0 0 6px var(--cyan-glow));
    animation: feedScan 3.2s linear infinite;
}
@keyframes feedScan { to { left: 130%; } }

.media-feed-head {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 14px; border-bottom: 1px solid rgba(46, 139, 255, 0.22);
    background: rgba(46, 139, 255, 0.05);
}
.media-feed-title {
    font-family: 'Orbitron', sans-serif; font-size: 0.72rem; letter-spacing: 2px;
    color: var(--cyan); text-shadow: 0 0 10px var(--cyan-glow); white-space: nowrap;
}
.media-feed-q {
    flex: 1; font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: rgba(190, 235, 255, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.media-feed-close {
    background: transparent; border: 1px solid rgba(46, 139, 255, 0.4); color: var(--cyan);
    width: 24px; height: 24px; border-radius: 5px; cursor: pointer; font-size: 0.7rem;
    transition: all 0.2s; flex-shrink: 0;
}
.media-feed-close:hover { background: rgba(46, 139, 255, 0.18); box-shadow: 0 0 14px var(--cyan-glow); }

.media-feed-inner {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    padding: 14px; max-height: 64vh; overflow-y: auto;
}
.media-feed-inner::-webkit-scrollbar { width: 6px; }
.media-feed-inner::-webkit-scrollbar-thumb { background: rgba(46, 139, 255, 0.3); border-radius: 3px; }

/* ── cards ── */
.mcard {
    position: relative; width: 270px; flex: 0 0 auto;
    background: rgba(2, 12, 26, 0.7); border: 1px solid rgba(46, 139, 255, 0.28);
    border-radius: 8px; overflow: hidden; opacity: 0;
    animation: mcardIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.mcard:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(46, 139, 255, 0.25); transform: translateY(-3px); }
@keyframes mcardIn { from { opacity: 0; transform: translateY(14px) scale(0.95); } to { opacity: 1; transform: none; } }

.mframe { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #04101f; overflow: hidden; }
.mframe-sm { aspect-ratio: 1 / 1; width: 60px; height: 60px; flex-shrink: 0; border-radius: 6px; }
.mimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.mframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.mvideo { position: relative; width: 100%; height: 100%; }
/* corner bracket on frames */
.mbracket::before, .mbracket::after {
    content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
    border: 2px solid var(--cyan); opacity: 0.7; filter: drop-shadow(0 0 4px var(--cyan-glow));
}
.mbracket::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.mbracket::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.mcard figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.mttl, .minfo h4 {
    font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.86rem;
    color: #d8f4ff; line-height: 1.2; margin: 0;
}
.mttl a, .minfo h4 a { color: #d8f4ff; text-decoration: none; }
.mttl a:hover, .minfo h4 a:hover { color: var(--cyan); text-decoration: underline; }
.msrc {
    font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; letter-spacing: 0.5px;
    color: var(--cyan-dim); text-transform: uppercase;
}
.minfo { padding: 10px 12px; }
.minfo p {
    font-family: 'Rajdhani', sans-serif; font-size: 0.78rem; line-height: 1.4;
    color: rgba(200, 226, 240, 0.8); margin: 5px 0 8px;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.mcard-info { width: 300px; }
.mcard-noimg .mframe { display: none; }

/* visual log rows */
.mcard-log { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.mcard-log .minfo { padding: 0; }
.mcard-log .minfo h4 { font-size: 0.82rem; }
.mcard-log .minfo p { font-size: 0.66rem; margin: 2px 0 0; color: var(--cyan-dim); -webkit-line-clamp: 1; }

@media (max-width: 760px) {
    .media-overlay { top: 70px; width: 96vw; }
    .media-feed-inner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
    .mcard, .mcard-info { width: 78vw; max-width: 320px; }
    .mcard-log { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   UPLINK · CONNECTIVITY panel
   ═══════════════════════════════════════════════════════════════ */
.network-widget { margin: 4px 0 6px; }
.net-status {
    display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; letter-spacing: 0.5px;
    color: var(--cyan-dim); text-transform: uppercase;
}
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; flex-shrink: 0; }
.net-dot.on { background: #19f3a4; box-shadow: 0 0 8px #19f3a4; animation: netPulse 2s ease-in-out infinite; }
.net-dot.off { background: #ff5d6c; box-shadow: 0 0 8px rgba(255,93,108,0.7); }
@keyframes netPulse { 50% { opacity: 0.45; } }

.net-block {
    position: relative; border: 1px solid rgba(46, 139, 255, 0.22); border-radius: 7px;
    padding: 8px 9px 9px; margin-bottom: 8px; background: rgba(2, 12, 26, 0.5);
}
.net-block.net { border-color: rgba(61, 107, 255, 0.28); }
.net-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.net-label {
    font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.66rem;
    letter-spacing: 0.6px; color: #bfe9ff;
}
.net-block.net .net-label { color: #a6d4ff; }
.net-copy {
    background: transparent; border: 1px solid rgba(46, 139, 255, 0.4); color: var(--cyan);
    font-family: 'Share Tech Mono', monospace; font-size: 0.52rem; letter-spacing: 0.5px;
    padding: 2px 6px; border-radius: 4px; cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.net-copy:hover { background: rgba(46, 139, 255, 0.16); box-shadow: 0 0 10px var(--cyan-glow); }
.net-url {
    display: block; margin-top: 4px; font-family: 'Share Tech Mono', monospace;
    font-size: 0.66rem; color: var(--cyan); text-decoration: none; word-break: break-all; line-height: 1.3;
}
.net-block.net .net-url { color: #ffb866; }
.net-url:hover { text-decoration: underline; }
.net-sub {
    margin-top: 3px; font-family: 'Rajdhani', sans-serif; font-size: 0.62rem;
    color: rgba(170, 200, 220, 0.7); line-height: 1.3;
}
.net-sub b { color: #a6d4ff; font-weight: 700; }
.net-qr {
    display: block; width: 92px; height: 92px; margin: 8px auto 2px; border-radius: 6px;
    border: 1px solid rgba(46, 139, 255, 0.3); background: #dff1fb; padding: 2px;
    box-shadow: 0 0 14px rgba(46, 139, 255, 0.18);
}

/* ═══════════════════════════════════════════════════════════════
   ALL-BLUE REDESIGN — talking circle + frameless side telemetry
   ═══════════════════════════════════════════════════════════════ */

/* ── Talking circle (voice-reactive core behind the chat) ── */
#center-panel { position: relative; }
#voice-ring {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
#center-panel > .command-toolbar,
#center-panel > #quick-commands,
#center-panel > #chat-container,
#center-panel > #waveform-container,
#center-panel > #input-area { position: relative; z-index: 2; }

/* let the circle shine through the chat — frameless conversation */
#chat-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
#chat-container .panel-glow { display: none !important; }
#chat-messages { background: transparent !important; }

/* ── Fully frameless side panels ── */
#left-panel, #right-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
#left-panel > .panel-glow, #right-panel > .panel-glow { display: none !important; }

/* inner "spine" rail running down the edge nearest the core */
#left-panel::after, #right-panel::after {
    content: ""; position: absolute; top: 5%; bottom: 5%; width: 1px; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(46,139,255,0.05) 8%,
                rgba(46,139,255,0.4) 50%, rgba(46,139,255,0.05) 92%, transparent);
}
#left-panel::after { right: 2px; }
#right-panel::after { left: 2px; }

/* headers: accent tick + connector line trailing toward the core */
#left-panel .panel-header, #right-panel .panel-header {
    position: relative; border: none !important; background: transparent !important;
    border-left: 2px solid var(--cyan); padding-left: 9px; margin-top: 16px;
    box-shadow: -1px 0 8px -2px var(--cyan-glow);
}
#left-panel .panel-header::after {
    content: ""; position: absolute; right: 0; top: 50%; height: 1px; width: 22px;
    background: linear-gradient(90deg, rgba(46,139,255,0.55), transparent);
}
#right-panel .panel-header::after {
    content: ""; position: absolute; left: -11px; top: 50%; height: 1px; width: 22px;
    background: linear-gradient(270deg, rgba(46,139,255,0.55), transparent);
}
/* node dot where the connector meets the spine */
#left-panel .panel-header::before, #right-panel .panel-header::before {
    content: ""; position: absolute; top: 50%; width: 4px; height: 4px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); transform: translateY(-50%);
}
#left-panel .panel-header::before { right: 20px; }
#right-panel .panel-header::before { left: -9px; }

/* de-box inner blocks → floating rows with dividers */
.net-block {
    border: none !important; background: transparent !important; border-radius: 0 !important;
    border-left: 1px solid rgba(46,139,255,0.28) !important; padding: 5px 0 7px 9px !important;
}
.net-block.net { border-left-color: rgba(94,168,255,0.3) !important; }
.mini-info { border-bottom: 1px solid rgba(46,139,255,0.08); }
#integrations-widget, .integration-row, .activity-item, .threat-item { background: transparent !important; }

/* ═══════════════════════════════════════════════════════════════
   SETTINGS — remote control modal
   ═══════════════════════════════════════════════════════════════ */
.settings-modal {
    position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
    background: rgba(2, 8, 18, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.settings-modal.show { opacity: 1; pointer-events: auto; }
.settings-modal.hidden { display: none; }
.settings-card {
    width: min(94vw, 560px); max-height: 88vh; display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(8, 22, 46, 0.97), rgba(3, 12, 26, 0.98));
    border: 1px solid rgba(46, 139, 255, 0.5); border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(46, 139, 255, 0.2);
    transform: translateY(14px) scale(0.98); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.settings-modal.show .settings-card { transform: none; }
.settings-head {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
    border-bottom: 1px solid rgba(46, 139, 255, 0.22);
}
.settings-title { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 10px var(--cyan-glow); }
.settings-close { background: transparent; border: 1px solid rgba(46, 139, 255, 0.4); color: var(--cyan); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 0.72rem; }
.settings-close:hover { background: rgba(46, 139, 255, 0.18); box-shadow: 0 0 12px var(--cyan-glow); }
.settings-body { padding: 8px 18px; overflow-y: auto; }
.settings-body::-webkit-scrollbar { width: 6px; }
.settings-body::-webkit-scrollbar-thumb { background: rgba(46, 139, 255, 0.3); border-radius: 3px; }
.settings-loading { padding: 36px; text-align: center; color: var(--cyan-dim); font-family: 'Rajdhani', sans-serif; }
.settings-group { margin: 8px 0 14px; }
.settings-group-h {
    font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; letter-spacing: 1.5px; color: var(--cyan);
    text-transform: uppercase; border-bottom: 1px solid rgba(46, 139, 255, 0.18); padding-bottom: 5px; margin-bottom: 6px;
}
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 2px; }
.set-label { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; font-weight: 600; color: #d6ebff; display: flex; flex-direction: column; }
.set-note { font-family: 'Share Tech Mono', monospace; font-size: 0.54rem; color: var(--cyan-dim); text-transform: uppercase; margin-top: 1px; }
.set-input {
    background: rgba(4, 14, 30, 0.8); border: 1px solid rgba(46, 139, 255, 0.3); color: #dbecff; border-radius: 6px;
    padding: 6px 9px; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; min-width: 120px;
}
.set-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
.set-color { width: 48px; height: 30px; background: transparent; border: 1px solid rgba(46, 139, 255, 0.3); border-radius: 6px; cursor: pointer; padding: 2px; }
.set-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.set-toggle input { opacity: 0; width: 0; height: 0; }
.set-slider { position: absolute; inset: 0; background: rgba(46, 139, 255, 0.12); border: 1px solid rgba(46, 139, 255, 0.4); border-radius: 24px; cursor: pointer; transition: 0.2s; }
.set-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--cyan-dim); border-radius: 50%; transition: 0.2s; }
.set-toggle input:checked + .set-slider { background: rgba(46, 139, 255, 0.4); }
.set-toggle input:checked + .set-slider::before { transform: translateX(20px); background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(46, 139, 255, 0.22); }
.settings-hint { font-family: 'Rajdhani', sans-serif; font-size: 0.66rem; color: var(--cyan-dim); }
.settings-save {
    background: rgba(46, 139, 255, 0.18); border: 1px solid var(--cyan); color: var(--cyan); font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem; letter-spacing: 1.5px; padding: 8px 22px; border-radius: 7px; cursor: pointer; transition: 0.2s;
}
.settings-save:hover { background: rgba(46, 139, 255, 0.3); box-shadow: 0 0 16px var(--cyan-glow); }
.settings-save:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 600px) { .settings-card { width: 96vw; max-height: 92vh; } .set-input { min-width: 96px; } }

/* ═══ WORLD NEWS + QUANT SIGNALS panels ═══ */
.news-tabs { display: flex; gap: 4px; margin: 2px 0 6px; }
.news-tab { flex: 1; background: rgba(46,139,255,0.08); border: 1px solid rgba(46,139,255,0.25); color: var(--cyan-dim); font-family: 'Share Tech Mono', monospace; font-size: 0.52rem; letter-spacing: 0.5px; padding: 3px 2px; border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: all .2s; }
.news-tab.active, .news-tab:hover { background: rgba(46,139,255,0.22); color: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.news-widget { max-height: 236px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.news-widget::-webkit-scrollbar { width: 4px; } .news-widget::-webkit-scrollbar-thumb { background: rgba(46,139,255,0.3); border-radius: 2px; }
.news-item { display: block; padding: 5px 6px; border-left: 2px solid rgba(46,139,255,0.3); text-decoration: none; transition: background .15s; border-radius: 0 4px 4px 0; }
.news-item:hover { background: rgba(46,139,255,0.1); border-left-color: var(--cyan); }
.news-src { display: block; font-family: 'Share Tech Mono', monospace; font-size: 0.5rem; color: var(--cyan-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.news-ttl { display: block; font-family: 'Rajdhani', sans-serif; font-size: 0.74rem; color: #cfe6ff; line-height: 1.25; margin-top: 1px; }
#signals-widget { display: flex; flex-direction: column; gap: 2px; }
.sig-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 4px; border-bottom: 1px solid rgba(46,139,255,0.08); font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; }
.sig-sym { color: #cfe6ff; min-width: 36px; } .sig-px { color: var(--cyan-dim); flex: 1; text-align: right; } .sig-act { font-weight: bold; min-width: 62px; text-align: right; }

/* ═══ Integrations cards (Settings) ═══ */
.intg-card { border: 1px solid rgba(46,139,255,0.22); border-radius: 8px; padding: 9px 11px; margin-bottom: 9px; background: rgba(4,14,30,0.5); }
.intg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.intg-name { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.84rem; color: #d6ebff; }
.intg-status { font-family: 'Share Tech Mono', monospace; font-size: 0.48rem; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.intg-status.on { color: #19f3a4; border: 1px solid rgba(25,243,164,0.4); }
.intg-status.off { color: var(--cyan-dim); border: 1px solid rgba(46,139,255,0.25); }
.intg-field { margin: 5px 0; }
.intg-field label { display: block; font-family: 'Share Tech Mono', monospace; font-size: 0.52rem; color: var(--cyan-dim); text-transform: uppercase; margin-bottom: 2px; }
.intg-field .set-input { width: 100%; min-width: 0; }
.intg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.intg-hint { font-family: 'Rajdhani', sans-serif; font-size: 0.64rem; color: var(--cyan-dim); line-height: 1.2; }
.intg-btn { background: rgba(46,139,255,0.18); border: 1px solid var(--cyan); color: var(--cyan); font-family: 'Orbitron', sans-serif; font-size: 0.58rem; letter-spacing: 1px; padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.intg-btn:hover { background: rgba(46,139,255,0.3); box-shadow: 0 0 12px var(--cyan-glow); }
.intg-btn:disabled { opacity: 0.6; cursor: default; }

/* ═══ HER HEART — the core beats (lub-dub) instead of just breathing ═══ */
@keyframes heartbeat {
    0%, 38%, 100% { transform: scale(1);    box-shadow: 0 0 14px var(--cyan-glow); }
    10%           { transform: scale(1.30); box-shadow: 0 0 32px var(--cyan-glow), 0 0 52px var(--cyan-deep); }
    20%           { transform: scale(1.00); box-shadow: 0 0 14px var(--cyan-glow); }
    28%           { transform: scale(1.16); box-shadow: 0 0 24px var(--cyan-glow); }
}

/* ═══ Conversation History browser ═══ */
.history-overlay {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2, 6, 15, 0.72); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s ease;
}
.history-overlay.show { opacity: 1; }
.history-overlay.hidden { display: none; }
.history-panel {
    width: min(720px, 94vw); height: min(80vh, 760px);
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(8,18,34,.96), rgba(4,10,22,.97));
    border: 1px solid rgba(46,139,255,.35); border-radius: 14px;
    box-shadow: 0 0 40px rgba(46,139,255,.18), inset 0 0 30px rgba(46,139,255,.05);
    transform: translateY(14px) scale(.985);
    transition: transform .32s cubic-bezier(.2,.8,.2,1); overflow: hidden;
}
.history-overlay.show .history-panel { transform: translateY(0) scale(1); }
.history-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid rgba(46,139,255,.22);
}
.history-title {
    font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 2px;
    color: #6fb4ff; white-space: nowrap;
}
.history-search {
    flex: 1; background: rgba(46,139,255,.07);
    border: 1px solid rgba(46,139,255,.28); border-radius: 8px; color: #dcefff;
    font-family: 'Rajdhani', sans-serif; font-size: 15px; padding: 7px 12px; outline: none;
}
.history-search:focus { border-color: rgba(46,139,255,.6); box-shadow: 0 0 12px rgba(46,139,255,.2); }
.history-close {
    background: transparent; border: 1px solid rgba(46,139,255,.3); color: #8fc0ff;
    width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 14px; flex: none;
}
.history-close:hover { background: rgba(46,139,255,.15); }
.history-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.h-turn { border-radius: 10px; padding: 9px 12px; max-width: 88%;
    border: 1px solid rgba(46,139,255,.16); animation: hfade .3s ease both; }
@keyframes hfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h-user { align-self: flex-end; background: rgba(46,139,255,.12); border-color: rgba(46,139,255,.3); }
.h-ai   { align-self: flex-start; background: rgba(120,160,255,.05); }
.h-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.h-who  { font-family: 'Share Tech Mono', monospace; font-size: 10px; letter-spacing: 1px; color: #5fa8ff; }
.h-time { font-size: 10px; color: #4d6a8f; }
.h-body { color: #cfe4ff; font-family: 'Rajdhani', sans-serif; font-size: 14.5px;
    line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.history-status { text-align: center; padding: 8px; font-size: 11px; color: #4d6a8f; font-family: 'Share Tech Mono', monospace; }
.history-empty { text-align: center; color: #6f93bf; padding: 40px 20px; font-family: 'Rajdhani', sans-serif; font-size: 15px; }
@media (max-width: 900px) {
    .history-panel { width: 96vw; height: 86vh; }
    .history-head { flex-wrap: wrap; }
    .history-title { width: 100%; }
}

/* ═══ ⑦ Daylight (light) theme — high-contrast outdoor mode ═══ */
body.theme-light {
    --bg: #dde6f2;
    --bg-panel: rgba(255, 255, 255, 0.74);
    --glass: rgba(255, 255, 255, 0.70);
    --glass-bright: rgba(255, 255, 255, 0.86);
    --border: rgba(20, 90, 180, 0.26);
    --border-glow: rgba(20, 90, 180, 0.45);
    --text: #0c2545;
    --text-dim: #3f6492;
    --cyan: #0f6fe0;
    --cyan-dim: #0a4fa8;
    --cyan-glow: rgba(15, 111, 224, 0.32);
    --cyan-deep: rgba(15, 111, 224, 0.06);
    --blue-bright: #1374e6;
    --blue-core: #0f6fe0;
    --blue-faint: rgba(15, 111, 224, 0.10);
    --primary: var(--cyan);
    background: radial-gradient(circle at 30% 18%, #eef4fc 0%, #dde6f2 55%, #cdd9ea 100%) !important;
}
body.theme-light .holo-panel,
body.theme-light .panel,
body.theme-light .holo-panel-thin,
body.theme-light #left-panel,
body.theme-light #right-panel,
body.theme-light #center-panel .command-toolbar,
body.theme-light .history-panel,
body.theme-light .settings-panel,
body.theme-light .media-feed-inner {
    background: var(--bg-panel) !important;
    box-shadow: 0 4px 18px rgba(20, 60, 120, 0.12), inset 0 0 0 1px rgba(20, 90, 180, 0.10) !important;
}
body.theme-light .chat-msg.assistant,
body.theme-light .h-ai { background: rgba(255, 255, 255, 0.86) !important; color: #0c2545 !important; }
body.theme-light .chat-msg.user,
body.theme-light .h-user { background: rgba(15, 111, 224, 0.12) !important; color: #0c2545 !important; }
body.theme-light .chat-msg,
body.theme-light .h-body,
body.theme-light #chat-messages { color: #0c2545 !important; }
body.theme-light input,
body.theme-light textarea,
body.theme-light .history-search,
body.theme-light #chat-input {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #0c2545 !important;
    border-color: rgba(20, 90, 180, 0.30) !important;
}
body.theme-light .toolbar-btn,
body.theme-light .qcmd {
    color: #0c2545 !important;
    border-color: rgba(20, 90, 180, 0.30) !important;
}
/* tame the heavy ambient glow so it stays legible in daylight */
body.theme-light #vignette,
body.theme-light #scanline,
body.theme-light .env-volumetric,
body.theme-light .scan-beam { opacity: 0.12 !important; }
body.theme-light #particle-canvas { opacity: 0.22 !important; }
body.theme-light .panel-header,
body.theme-light .label.brand,
body.theme-light .history-title { color: #0a4fa8 !important; }

/* ═══ ⑬ Workflow cards (in the shared history overlay) ═══ */
.wf-card {
    border: 1px solid rgba(46,139,255,.20); border-radius: 10px;
    padding: 12px 14px; background: rgba(46,139,255,.05); animation: hfade .3s ease both;
}
.wf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wf-name { font-family: 'Orbitron', sans-serif; font-size: 13px; letter-spacing: 1px; color: #8fc4ff; }
.wf-run {
    background: rgba(46,139,255,.16); border: 1px solid rgba(46,139,255,.4); color: #cfe6ff;
    font-family: 'Share Tech Mono', monospace; font-size: 11px; letter-spacing: 1px;
    padding: 5px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.wf-run:hover { background: rgba(46,139,255,.3); }
.wf-run:disabled { opacity: .55; cursor: default; }
.wf-steps { margin: 8px 0 4px 18px; color: #cfe4ff; font-family: 'Rajdhani', sans-serif; font-size: 14px; }
.wf-steps li { margin: 3px 0; line-height: 1.4; }
.wf-meta { font-size: 10px; color: #4d6a8f; font-family: 'Share Tech Mono', monospace; }
body.theme-light .wf-name { color: #0a4fa8 !important; }
body.theme-light .wf-steps, body.theme-light .wf-run { color: #0c2545 !important; }

/* ═══ Brand logo (reactor mark) — boot, lock, top bar ═══ */
.boot-logo {
    display: block; width: 168px; height: 168px; object-fit: contain; margin: 0 auto 6px;
    animation: logo-spin 18s linear infinite, logo-glow 3s ease-in-out infinite;
}
.lock-logo {
    display: block; width: 116px; height: 116px; object-fit: contain; margin: 0 auto 14px;
    animation: logo-spin 22s linear infinite, logo-glow 3s ease-in-out infinite;
}
.brand-logo {
    width: 30px; height: 30px; object-fit: contain; vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(46, 139, 255, 0.65));
}
@keyframes logo-spin { to { transform: rotate(360deg); } }
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 16px rgba(46, 139, 255, 0.45)); }
    50%      { filter: drop-shadow(0 0 30px rgba(46, 139, 255, 0.72)); }
}
@media (max-width: 900px) {
    .boot-logo { width: 132px; height: 132px; }
    .lock-logo { width: 100px; height: 100px; }
}

/* ═══ VITALS · ECG heartbeat readout (her heart, in the diagnostics panel) ═══ */
.vitals-readout { margin: 12px 0 6px; }
.vitals-label { font-family: 'Orbitron', sans-serif; font-size: 0.5rem; letter-spacing: 2px;
    color: var(--text-dim); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.vitals-heart { color: #ff5a7a; font-size: 0.72rem; animation: heart-throb 1.5s ease-in-out infinite; }
@keyframes heart-throb { 0%, 30%, 100% { transform: scale(1); } 12% { transform: scale(1.45); } 22% { transform: scale(1.12); } }
.ecg { width: 100%; height: 46px; display: block; }
.ecg-track { fill: none; stroke: rgba(46, 139, 255, 0.16); stroke-width: 1.4; }
.ecg-line { fill: none; stroke: #8fc4ff; stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(46, 139, 255, 0.95));
    stroke-dasharray: 46 780; stroke-dashoffset: 826; animation: ecg-sweep 1.9s linear infinite; }
@keyframes ecg-sweep { to { stroke-dashoffset: 0; } }

/* ═══ Phalanx constellation — shown in the agent panel on mobile (canvas is off there) ═══ */
.agent-constellation { display: none; }
@media (max-width: 900px) {
    #agent-canvas { display: none !important; }
    .agent-constellation { display: block; width: 100%; border-radius: 10px; margin-top: 6px;
        box-shadow: 0 0 18px rgba(46, 139, 255, 0.14); }
    .ecg { height: 40px; }
}

/* ═══ Book-match: a touch more glow on the heart + voice cores ═══ */
.arc-reactor .reactor-core { box-shadow: 0 0 26px var(--cyan-glow); }
body.theme-light .vitals-heart { color: #e0335a; }
body.theme-light .ecg-line { stroke: #0f6fe0; }

/* ═══ Full-potential polish — book-grade glow & cohesion (additive, safe) ═══ */
.holo-panel, .panel { box-shadow: 0 8px 30px rgba(2, 8, 20, 0.45), inset 0 0 38px rgba(46, 139, 255, 0.045); }
.panel-header { text-shadow: 0 0 8px rgba(46, 139, 255, 0.35); }
.label.brand { text-shadow: 0 0 10px rgba(46, 139, 255, 0.45); }
.arc-reactor .reactor-core { background: radial-gradient(circle, #ffffff 0%, #9fcaff 46%, #2e8bff 100%); }
#waveform-canvas { filter: drop-shadow(0 0 6px rgba(120, 185, 255, 0.5)); }
.waveform-ring { box-shadow: 0 0 18px rgba(46, 139, 255, 0.3); }
#active-agent-label { text-shadow: 0 0 8px rgba(46, 139, 255, 0.6); }
.qcmd:hover, .toolbar-btn:hover { box-shadow: 0 0 14px rgba(46, 139, 255, 0.3); }
body.theme-light .holo-panel, body.theme-light .panel { box-shadow: 0 6px 20px rgba(20, 60, 120, 0.12) !important; }

/* ═══ Agent name tag — which Phalanx crew member is speaking ═══ */
.agent-tag {
    display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 9px;
    font-family: 'Share Tech Mono', monospace; font-size: 10px; letter-spacing: 1.5px;
    color: #bfe0ff; background: rgba(46, 139, 255, 0.16); border: 1px solid rgba(46, 139, 255, 0.42);
    text-shadow: 0 0 6px rgba(46, 139, 255, 0.5); vertical-align: middle;
}
body.theme-light .agent-tag { color: #0a4fa8; background: rgba(15, 111, 224, 0.10); }

/* ═══ Multi-user login (Owner / Guest tabs) ═══ */
.login-tabs { display: flex; gap: 8px; margin: 12px 0 14px; width: 100%; max-width: 320px; }
.login-tab { flex: 1; padding: 9px; background: rgba(46,139,255,.08); border: 1px solid rgba(46,139,255,.25);
    color: var(--text-dim); border-radius: 8px; font-family: 'Orbitron', sans-serif; font-size: .58rem;
    letter-spacing: 2px; cursor: pointer; }
.login-tab.active { background: rgba(46,139,255,.2); color: #cfe6ff; border-color: rgba(46,139,255,.55); }
.login-pane { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; align-items: stretch; }
.login-pane.hidden { display: none; }
.login-pane input { background: rgba(8,20,44,.6); border: 1px solid rgba(46,139,255,.3); color: #dcefff;
    font-family: 'Rajdhani', sans-serif; font-size: 1rem; padding: 10px 12px; border-radius: 8px; outline: none; width: 100%; }
.login-pane input:focus { border-color: rgba(46,139,255,.65); box-shadow: 0 0 12px rgba(46,139,255,.2); }
.login-pane button { padding: 10px; border-radius: 8px; cursor: pointer; font-family: 'Orbitron', sans-serif;
    font-size: .62rem; letter-spacing: 2px; background: rgba(46,139,255,.2); border: 1px solid rgba(46,139,255,.5); color: #dcefff; }
.login-pane button:hover { background: rgba(46,139,255,.32); }
.guest-btns { display: flex; gap: 8px; }
.guest-btns button { flex: 1; }
.guest-btns .ghost { background: transparent; }
.google-btn { display: block; text-align: center; padding: 11px; background: #fff; color: #1a1a1a; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-family: 'Rajdhani', sans-serif; font-size: 1rem; }
.google-btn:hover { background: #f0f4ff; }
.login-or { text-align: center; color: var(--text-dim); font-size: .8rem; }
.login-hint { font-size: .72rem; color: var(--text-dim); text-align: center; line-height: 1.35; }

/* ═══ Guest mode — owner-only controls hidden; guest panels shown ═══ */
body.guest-mode .command-toolbar { display: none !important; }   /* admin toolbar (settings/history/flows/guests…) */

/* Guest dashboard panel content */
.guest-constellation { width: 100%; border-radius: 10px; margin: 4px 0 6px; box-shadow: 0 0 16px rgba(46,139,255,.14); }
.guest-clock { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.clk-row { display: flex; justify-content: space-between; font-family: 'Share Tech Mono', monospace; font-size: 12px; color: #9ec2f0; }
.guest-memory { font-family: 'Rajdhani', sans-serif; font-size: 13px; color: #8fb4e0; line-height: 1.45; }
.guest-loading { font-size: 12px; color: #4d6a8f; font-style: italic; }
.recipe-card img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 4px 16px rgba(2,8,20,.5);
    transition: opacity .4s ease; }
.recipe-name { font-family: 'Orbitron', sans-serif; font-size: 13px; color: #cfe6ff; margin-top: 6px; }
.recipe-sub { font-size: 11px; color: #5f86b8; font-family: 'Share Tech Mono', monospace; }
.guest-news { display: flex; flex-direction: column; gap: 7px; margin-bottom: 6px; }
.news-row { display: flex; gap: 8px; align-items: flex-start; font-family: 'Rajdhani', sans-serif; font-size: 13px; color: #bcd6f5; line-height: 1.35; }
.news-dot { width: 6px; height: 6px; border-radius: 50%; background: #2e8bff; margin-top: 6px; flex: none; box-shadow: 0 0 6px rgba(46,139,255,.8); }
.guest-curio { font-family: 'Rajdhani', sans-serif; font-size: 13.5px; color: #9ec2f0; line-height: 1.5; font-style: italic;
    transition: opacity .25s ease; min-height: 40px; }
.guest-tile { white-space: nowrap; }

/* ═══ Admin guest-access panel ═══ */
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1px solid rgba(46,139,255,.18); border-radius: 10px; padding: 10px 12px;
    background: rgba(46,139,255,.05); animation: hfade .3s ease both; }
.g-name { font-family: 'Rajdhani', sans-serif; font-size: 15px; color: #dcefff; }
.g-sub { font-size: 11px; color: #4d6a8f; font-family: 'Share Tech Mono', monospace; margin-top: 2px; }
.g-actions { display: flex; gap: 6px; flex: none; }
.g-actions button { font-family: 'Share Tech Mono', monospace; font-size: 11px; letter-spacing: 1px;
    padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.g-approve { background: rgba(60,200,130,.18); border: 1px solid rgba(60,200,130,.45); color: #b9f5d2; }
.g-block { background: rgba(255,80,90,.14); border: 1px solid rgba(255,80,90,.4); color: #ffc2c7; }
.g-ok { color: #5fd08a; font-size: 10px; } .g-no { color: #ff6b75; font-size: 10px; } .g-pend { color: #ffcf66; font-size: 10px; }

/* ═══ Logout button (top bar — owner + guest) ═══ */
.logout-btn { margin-left: 10px; padding: 4px 11px; border-radius: 7px; cursor: pointer;
    background: rgba(255,80,90,.12); border: 1px solid rgba(255,80,90,.4); color: #ffc2c7;
    font-family: 'Share Tech Mono', monospace; font-size: 10px; letter-spacing: 1px; }
.logout-btn:hover { background: rgba(255,80,90,.25); }
@media (max-width: 900px) { .logout-btn { font-size: 9px; padding: 4px 8px; } }

/* ═══ Conversation continuity dividers (restore / live / daily update) ═══ */
.chat-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    opacity: 0.75;
    user-select: none;
}
.chat-divider::before,
.chat-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46,139,255,0.35), transparent);
}
.chat-divider span {
    padding: 0 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(160,200,255,0.85);
    white-space: nowrap;
}
.chat-divider.daily span { color: #ffd27a; }
.chat-divider.daily::before,
.chat-divider.daily::after { background: linear-gradient(90deg, transparent, rgba(255,180,80,0.4), transparent); }
.chat-divider.live span { color: #54f0b0; }
.chat-msg.restored { opacity: 0.82; }
.chat-msg.restored:hover { opacity: 1; }
