/* ==============================================================================
   ARIS 2.0 Design System & Futuristic Command Center Styles
   ============================================================================== */

:root {
    --bg-base: #06090e;
    --bg-surface: rgba(13, 19, 29, 0.75);
    --bg-elevated: rgba(20, 30, 46, 0.85);
    --bg-card: rgba(16, 24, 38, 0.6);
    --border-subtle: rgba(56, 189, 248, 0.15);
    --border-glow: rgba(56, 189, 248, 0.45);

    --primary-cyan: #38bdf8;
    --primary-glow: #0284c7;
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-tech: 'Rajdhani', monospace, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
    --shadow-ambient: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    --glass-blur: blur(12px);
}

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

html {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(20, 184, 166, 0.06) 0%, transparent 45%),
        linear-gradient(to bottom, #06090e 0%, #03060a 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    height: 100vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==============================================================================
   Custom Global Cyberpunk Scrollbar (No default Windows white scrollbars)
   ============================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(6, 9, 14, 0.85);
}
::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) rgba(6, 9, 14, 0.85);
}

/* ==============================================================================
   Top Header & Status Pills
   ============================================================================== */
.aris-header {
    height: 68px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    flex-shrink: 0;
    width: 100%;
    max-width: 100vw;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Futuristic Animated Orb */
.core-orb {
    width: 42px;
    height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 40px;
    height: 40px;
    border-top-color: var(--primary-cyan);
    border-bottom-color: var(--primary-cyan);
    animation: spin 3s linear infinite;
}

.ring-2 {
    width: 32px;
    height: 32px;
    border-left-color: var(--accent-teal);
    border-right-color: var(--accent-teal);
    animation: spin-reverse 2s linear infinite;
}

.orb-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

.glitch-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.version-tag {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-cyan);
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.brand-subtitle {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.system-status-pills {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.status-pill.degraded .status-dot {
    background: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

.status-pill.offline .status-dot {
    background: var(--accent-rose);
    box-shadow: 0 0 8px var(--accent-rose);
}

/* ==============================================================================
   Main Workspace Layout
   ============================================================================== */
.aris-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-width: 0;
}

/* Sidebar Navigation */
.aris-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tech);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--border-subtle);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.04) 100%);
    border-color: var(--border-glow);
    box-shadow: inset 3px 0 0 var(--primary-cyan);
}

.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Autonomous Process Log HUD Widget (Operator Live Stream) */
.sidebar-process-deck {
    margin: 10px 0;
    padding: 8px;
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    min-height: 140px;
    max-height: 220px;
    flex: 1;
    overflow: hidden;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.5);
}

.process-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.process-deck-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-tech);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--primary-cyan);
}

.process-pulse-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    transition: all 0.2s;
}

.process-pulse-led.busy {
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 0.8s infinite;
}

.process-pulse-led.warning {
    background: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

.process-deck-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-process-clear {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-process-clear:hover {
    color: #fff;
    border-color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.15);
}

.process-log-terminal {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-tech), monospace;
    font-size: 10px;
    line-height: 1.35;
    padding-right: 4px;
}

.process-log-terminal::-webkit-scrollbar {
    width: 3px;
}

.process-log-terminal::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

.log-entry {
    color: var(--text-secondary);
    word-break: break-word;
    border-left: 2px solid transparent;
    padding-left: 4px;
    transition: all 0.15s;
}

.log-entry .log-time {
    color: var(--text-muted);
    font-size: 9px;
    margin-right: 4px;
}

.log-entry.system { color: #94a3b8; }
.log-entry.ready { color: #10b981; }
.log-entry.input { color: #38bdf8; font-weight: 600; border-left-color: #38bdf8; }
.log-entry.reasoning { color: #c084fc; border-left-color: #c084fc; }
.log-entry.tool { color: #f59e0b; border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.08); border-radius: 2px; }
.log-entry.tool-done { color: #34d399; border-left-color: #34d399; }
.log-entry.stream { color: #38bdf8; }
.log-entry.speech { color: #f472b6; border-left-color: #f472b6; }
.log-entry.voice { color: #67e8f9; }
.log-entry.learned { color: #10b981; font-weight: 600; border-left-color: #10b981; }
.log-entry.warn { color: #fbbf24; }
.log-entry.error { color: #f87171; border-left-color: #f87171; }

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.model-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-size: 11px;
}

.model-badge .label {
    color: var(--text-muted);
    margin-right: 4px;
}

.model-badge .value {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Center Content & Conversation Panel */
.aris-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.view-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    height: 100%;
}

.view-panel.active {
    display: flex;
}

/* Dedicated Scroll Container for Revisions & Disaster Recovery Panel */
.backups-scroll-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px 40px 24px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.backups-scroll-body::-webkit-scrollbar {
    width: 8px;
}

.backups-scroll-body::-webkit-scrollbar-track {
    background: rgba(10, 16, 26, 0.6);
}

.backups-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.backups-scroll-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

/* Table Responsive & Diagnostics/Revisions Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(10, 16, 26, 0.5);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

.diag-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

#backupsTable {
    min-width: 900px;
}

.diag-table th {
    background: rgba(13, 22, 38, 0.95);
    color: var(--primary-cyan);
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-glow);
    white-space: nowrap;
}

.diag-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.diag-table tbody tr {
    transition: background 0.15s ease;
}

.diag-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.04);
}

.chat-header {
    height: 56px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(13, 19, 29, 0.4);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}

.stream-status {
    font-family: var(--font-tech);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 12px;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-message {
    max-width: 100%;
    align-self: center;
    width: 100%;
}

.message-sender {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-cyan);
}

.message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
    line-height: 1.6;
}

.message-bubble p {
    margin-bottom: 8px;
}
.message-bubble p:last-child {
    margin-bottom: 0;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-sender {
    text-align: right;
    color: var(--accent-teal);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 19, 29, 0.7) 100%);
    border-color: rgba(20, 184, 166, 0.35);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
}

.user-message .message-meta {
    text-align: right;
}

.assistant-message .message-bubble {
    border-left: 3px solid var(--primary-cyan);
    background: var(--bg-elevated);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.system-message .message-bubble {
    border-left: 3px solid var(--primary-cyan);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, rgba(16, 24, 38, 0.4) 100%);
}

.inline-code {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.cursor-blink {
    color: var(--primary-cyan);
    font-weight: 700;
    animation: blink 0.8s infinite;
}

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

.message-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-tech);
}

/* Voice Bar & Wave Visualizer */
.voice-activity-bar {
    height: 44px;
    background: rgba(14, 165, 233, 0.12);
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.wave-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.wave-visualizer .bar {
    width: 3px;
    height: 100%;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite alternate;
}

.wave-visualizer .bar:nth-child(2) { animation-delay: 0.2s; }
.wave-visualizer .bar:nth-child(3) { animation-delay: 0.4s; }
.wave-visualizer .bar:nth-child(4) { animation-delay: 0.1s; }
.wave-visualizer .bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes wave {
    0% { height: 4px; }
    100% { height: 20px; }
}

.voice-status-text {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-cyan);
}

/* Chat Input Bar & Unified Action Dock */
.cockpit-stream-deck {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.chat-input-container {
    padding: 12px 20px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
}

.input-actions-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.input-field-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

#promptInput {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    outline: none;
    min-height: 42px;
    max-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#promptInput:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.input-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-transmit {
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-transmit .send-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-transmit:hover .send-icon {
    transform: translateX(2px);
}

/* Modern Pill Toggles & Micro HUD Badges */
.hud-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    height: 28px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(16, 24, 38, 0.7);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

.hud-pill-toggle:hover {
    color: #fff;
    border-color: var(--primary-cyan);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.hud-pill-toggle.active {
    color: #030712;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.hud-pill-toggle.active-emerald {
    color: #030712;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.hud-pill-toggle.danger {
    color: #fca5a5;
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
}

.hud-pill-toggle.danger:hover, .hud-pill-toggle.danger.active {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.hud-toggle-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.2s;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.hud-pill-toggle.active .hud-toggle-led {
    background: #030712;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.hud-pill-toggle.active-emerald .hud-toggle-led {
    background: #030712;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Compact HUD Camera Select */
.hud-compact-select {
    height: 28px;
    padding: 0 22px 0 8px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-cyan);
    background: rgba(16, 24, 38, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2338bdf8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    transition: all 0.2s;
    max-width: 115px;
    box-sizing: border-box;
}

.hud-compact-select:hover, .hud-compact-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* Drag and Drop Inspection Overlay */
.drag-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    border: 2px dashed var(--primary-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    transition: all 0.2s ease;
}

.drag-drop-box {
    text-align: center;
    padding: 24px 32px;
    background: rgba(13, 22, 38, 0.95);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
}

.drag-drop-icon {
    font-size: 36px;
    margin-bottom: 6px;
}

.drag-drop-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.drag-drop-sub {
    font-family: var(--font-tech);
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cockpit-stream-deck.drag-over .drag-drop-overlay {
    display: flex !important;
}

/* Buttons */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-glow) 100%);
    color: #03060a;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary-cyan);
}

.btn-danger {
    background: var(--accent-rose);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-icon, .btn-voice {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon svg, .btn-voice svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-icon:hover, .btn-voice:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-voice.recording {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
    animation: pulse 1s infinite;
}

/* Diagnostics View Cards */
.diagnostics-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    overflow-y: auto;
}

.diag-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: var(--radius-md);
}

.diag-card h3 {
    font-family: var(--font-tech);
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--primary-cyan);
}

.code-preview {
    background: #03060a;
    border: 1px solid var(--border-subtle);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    color: #38bdf8;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .aris-sidebar {
        width: 72px;
        padding: 12px 6px;
    }
    .nav-item span, .sidebar-footer {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .system-status-pills {
        display: none;
    }
}

/* ==============================================================================
   Modal & Form Components
   ============================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.25);
    padding: 24px;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.modal-title {
    font-family: var(--font-tech);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: #03060a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

.alert-box {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-family: var(--font-tech);
    letter-spacing: 0.5px;
}

.alert-box.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--accent-rose);
    color: #fca5a5;
}

/* ==============================================================================
   Hermes Memory Explorer & Knowledge Base Styles
   ============================================================================== */
.memory-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.memory-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.memory-editor {
    height: 200px;
    resize: vertical;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #03060a;
}

.memory-cards-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    margin-top: 12px;
}

.memory-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

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

.memory-key {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
}

.memory-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-value {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-fact {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.badge-preference {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.badge-episodic {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-procedure {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.memory-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.btn-icon-xs {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon-xs:hover {
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.1);
}

.form-select {
    width: 100%;
    background: #03060a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

@media (max-width: 900px) {
    .memory-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
}

/* ==============================================================================
   Multimodal Vision & Voice Components
   ============================================================================== */
.attachment-preview-bar {
    padding: 8px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid var(--border-subtle);
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-primary);
}

.attachment-chip .attachment-icon {
    font-size: 15px;
}

.attachment-chip .attachment-name {
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-chip .attachment-size {
    color: var(--text-muted);
    font-size: 11px;
}

.attachment-chip .attachment-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: 6px;
    padding: 0 4px;
    transition: color 0.2s;
}

.attachment-chip .attachment-remove:hover {
    color: var(--accent-rose);
}

/* Vision Workspace Grid */
.vision-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.vision-dropzone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(3, 6, 10, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vision-dropzone:hover, .vision-dropzone.dragover {
    border-color: var(--primary-cyan);
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.vision-preview-wrapper {
    margin-top: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
    max-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-preview-wrapper img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.vision-result-card {
    flex: 1;
    overflow-y: auto;
    background: rgba(3, 6, 10, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.status-pill.voice-off .status-dot {
    background: var(--text-muted);
    box-shadow: none;
}

/* ==============================================================================
   Autonomous Tools & Capabilities View Styles
   ============================================================================== */
.tool-call-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    margin: 6px 0;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent-amber);
    font-family: var(--font-tech);
    font-size: 13px;
    letter-spacing: 0.5px;
    animation: toolPulse 1.8s infinite;
}

.tool-call-badge.complete {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--accent-emerald);
    animation: none;
}

@keyframes toolPulse {
    0%, 100% { opacity: 0.85; box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(245, 158, 11, 0.4); }
}

/* Autonomous Tools & Capabilities Scrollable Workspace Layout */
#view-tools {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    scroll-behavior: smooth;
}

#view-tools::-webkit-scrollbar {
    width: 8px;
}

#view-tools::-webkit-scrollbar-track {
    background: rgba(4, 9, 20, 0.6);
}

#view-tools::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 4px;
}

#view-tools::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

#view-tools .memory-grid,
#view-tools .tools-workspace-grid {
    height: auto !important;
    min-height: calc(100vh - 120px) !important;
    overflow: visible !important;
    align-items: flex-start !important;
    padding-bottom: 50px !important;
}

#view-tools .memory-column,
#view-tools .tools-catalog-column {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

#view-tools .tools-sandbox-column,
#view-tools .memory-column:last-child {
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    overflow: visible !important;
    height: auto !important;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.tool-card {
    background: rgba(3, 6, 10, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tool-name {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--primary-cyan);
    letter-spacing: 0.8px;
}

.tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tool-schema-preview {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow-x: auto;
    font-family: monospace;
}

/* ==============================================================================
   Camera Feeds & Surveillance HUD
   ============================================================================== */
.camera-stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.camera-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.camera-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.camera-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.camera-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) brightness(0.95);
}

.camera-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

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

.camera-hud-badge {
    font-size: 10px;
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.camera-hud-live {
    font-size: 10px;
    font-family: var(--font-heading);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 63, 94, 0.3);
    border: 1px solid var(--accent-rose);
    padding: 2px 6px;
    border-radius: 3px;
}

.camera-hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-rose);
    animation: pulse 1.2s infinite;
}

.camera-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.camera-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.camera-location {
    font-size: 11px;
    color: var(--text-muted);
}

.camera-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ==============================================================================
   Smart Home IoT Platform & Controls
   ============================================================================== */
.room-chip {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font-heading);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.room-chip:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.room-chip.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.iot-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.iot-device-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.iot-device-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.iot-device-card.is-active {
    border-left: 3px solid var(--primary-cyan);
}

.iot-device-card.requires-confirmation {
    border-left: 3px solid var(--accent-amber);
}

.iot-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.iot-device-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    margin-right: 10px;
    flex-shrink: 0;
}

.iot-device-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.iot-device-meta {
    flex: 1;
}

.iot-device-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.iot-device-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.iot-status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.iot-status-badge.on {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.iot-status-badge.off {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.iot-status-badge.locked {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.iot-card-controls {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.iot-toggle-btn {
    flex: 1;
    padding: 7px 12px;
    font-size: 12px;
    font-family: var(--font-heading);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transition: all 0.2s;
}

.iot-toggle-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.iot-toggle-btn.btn-active {
    background: var(--gradient-cyan);
    border-color: var(--primary-cyan);
    color: #000;
    font-weight: 600;
}

.safety-pill-tag {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 170, 0, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 170, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ==============================================================================
   Self-Healing Engine & Diagnostics Console
   ============================================================================== */
.diag-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.diag-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.diag-stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.diag-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.diag-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}

.diag-stat-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.severity-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.severity-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.severity-error {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.severity-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.severity-info {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.classification-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: monospace;
}

.diff-viewer {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-line {
    display: block;
    padding: 1px 4px;
    border-radius: 2px;
}

.diff-line.diff-add {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.diff-line.diff-del {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.diff-line.diff-meta {
    color: var(--primary-cyan);
    font-weight: 600;
}

.proposal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.proposal-card:hover {
    border-color: var(--border-glow);
}

.test-pill {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.test-pill.pass {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.test-pill.fail {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==============================================================================
   In-App Notification Hub & Alert Dropdown
   ============================================================================== */
.notif-wrapper {
    position: relative;
}

.notif-pill {
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.notif-bell-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.notif-count-badge {
    background: var(--accent-rose);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
    margin-left: 4px;
    animation: pulse 2s infinite;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(10, 15, 25, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

.notif-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-cyan);
}

.notif-list-container {
    max-height: 380px;
    overflow-y: auto;
}

.notif-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.notif-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid var(--primary-cyan);
}

.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.notif-item-title {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.notif-item-type {
    font-size: 10px;
    font-family: var(--font-tech);
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
}

.notif-type-system { background: rgba(56, 189, 248, 0.2); color: var(--primary-cyan); }
.notif-type-reminder { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.notif-type-workflow { background: rgba(20, 184, 166, 0.2); color: var(--accent-teal); }
.notif-type-security { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }

.notif-item-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.notif-item-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-tech);
}

.notif-btn-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}
.notif-btn-dismiss:hover {
    color: var(--accent-rose);
}

/* ==============================================================================
   Tasks & Reminders Component Styles
   ============================================================================== */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.task-card:hover {
    border-color: var(--border-glow);
    background: rgba(20, 30, 46, 0.6);
}

.task-card.completed {
    opacity: 0.55;
}

.task-card.completed .task-title-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-cyan);
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.task-content-body {
    flex: 1;
    min-width: 0;
}

.task-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.task-title-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.task-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.task-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.task-priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-urgent {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.priority-high {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.priority-medium {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.priority-low {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.task-due-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-tech);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.task-btn-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.task-btn-action:hover {
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.1);
}

/* Reminder item styles */
.reminder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.reminder-card:hover {
    border-color: var(--border-glow);
}

.reminder-card.triggered {
    border-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.08);
}

.reminder-card.dismissed {
    opacity: 0.5;
}

/* Status badges for workflows & runs */
.wf-status-active {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.wf-status-paused {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.run-status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.run-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.run-status-partial {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.run-status-running {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    animation: pulse 1.5s infinite;
}

/* ==============================================================================
   Holographic AI Woman, Real-Time Vision & Futuristic Cockpit Styles
   ============================================================================== */

/* --- Switchable Model Picker --- */
.model-picker-wrapper {
    position: relative;
    z-index: 101;
}

.status-pill.model-pill {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-glow);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.status-pill.model-pill:hover {
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.status-pill.subagent-pill {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill.subagent-pill:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-1px);
}

.model-dot {
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: pulse 2s infinite;
}

.model-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: rgba(10, 16, 26, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.2);
    padding: 12px;
    z-index: 1000;
}

.model-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-cyan);
}

.model-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    max-height: 280px;
    overflow-y: auto;
}

.model-item {
    background: rgba(16, 24, 38, 0.6);
    border: 1px solid transparent;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.model-item:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--border-subtle);
}

.model-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-color: var(--primary-cyan);
    box-shadow: inset 3px 0 0 var(--primary-cyan);
}

.model-item-title {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.model-custom-row {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* --- Cockpit Layout Switcher --- */
.cockpit-layout-switch {
    display: inline-flex;
    background: rgba(13, 19, 29, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px;
    margin-right: 8px;
}

.cockpit-layout-switch button {
    border-radius: var(--radius-full);
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cockpit-layout-switch button.active {
    background: var(--primary-cyan);
    color: #030712;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* --- Cockpit Main Grid --- */
.aris-cockpit-deck {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 16px;
    flex: 1;
    overflow: hidden;
    padding: 16px 20px;
}

.aris-cockpit-deck.layout-focus-holo {
    grid-template-columns: 65% 35%;
}

.aris-cockpit-deck.layout-compact {
    grid-template-columns: 1fr;
}

.aris-cockpit-deck.layout-compact .cockpit-visual-deck {
    display: none;
}

.cockpit-visual-deck {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
}

.cockpit-stream-deck {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

/* --- Holographic AI Woman Projection Deck --- */
.hologram-card {
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.12) 0%, rgba(8, 13, 20, 0.95) 75%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hologram-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(13, 19, 29, 0.6);
}

.holo-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.holo-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: pulse 1.2s infinite;
}

.holo-title {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}

.holo-controls-top {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Viewport with holographic projection & rotating rings */
.hologram-viewport {
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    overflow: hidden;
    background: 
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(0deg, rgba(6, 182, 212, 0.03) 0px, rgba(6, 182, 212, 0.03) 1px, transparent 1px, transparent 3px);
}

.holo-rings-wrapper {
    position: absolute;
    width: 260px;
    height: 260px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.holo-ring-outer {
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(56, 189, 248, 0.4);
    animation: rotateHoloClockwise 25s linear infinite;
}

.holo-ring-middle {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: rotateHoloCounter 18s linear infinite;
}

.holo-ring-inner {
    width: 190px;
    height: 190px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-left-color: var(--primary-cyan);
    border-right-color: var(--primary-cyan);
    animation: rotateHoloClockwise 12s linear infinite;
}

@keyframes rotateHoloClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateHoloCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
    box-shadow: 0 0 12px var(--primary-cyan);
    animation: holoScan 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes holoScan {
    0% { top: 0%; opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

.holo-grid-plane {
    position: absolute;
    bottom: -10px;
    width: 100%;
    height: 60px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.15) 1px, transparent 1px),
        linear-gradient(to top, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    transform: perspective(120px) rotateX(60deg);
    opacity: 0.6;
}

/* Hologram AI Woman Avatar */
.holo-avatar-container {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin-bottom: 12px;
}

.holo-avatar-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.4);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.7)) contrast(1.1) brightness(1.05);
    transition: all 0.3s ease;
}

/* Avatar state classes */
.hologram-card.speaking .holo-avatar-img {
    border-color: #38bdf8;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.9), 0 0 70px rgba(14, 165, 233, 0.5);
    animation: holoPulse 0.8s infinite alternate;
}

.hologram-card.listening .holo-avatar-img {
    border-color: #10b981;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
}

.hologram-card.interrupted .holo-avatar-img {
    border-color: #f43f5e;
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.9);
    filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.9)) contrast(1.3) hue-rotate(180deg);
    animation: holoGlitchFlicker 0.4s ease;
}

@keyframes holoPulse {
    0% { transform: scale(1); filter: brightness(1.05) contrast(1.1); }
    100% { transform: scale(1.03); filter: brightness(1.25) contrast(1.15); }
}

@keyframes holoGlitchFlicker {
    0% { transform: translate(0, 0); opacity: 1; }
    20% { transform: translate(-4px, 2px); opacity: 0.8; }
    40% { transform: translate(4px, -2px); opacity: 0.9; }
    60% { transform: translate(-2px, -3px); opacity: 0.7; }
    80% { transform: translate(3px, 1px); opacity: 0.95; }
    100% { transform: translate(0, 0); opacity: 1; }
}

.holo-audio-canvas {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 50px;
    pointer-events: none;
    z-index: 6;
}

/* Hologram Speech / Subtitles Display */
.holo-speech-box {
    width: 100%;
    background: rgba(10, 16, 26, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    z-index: 5;
}

.holo-telemetry-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.telemetry-label {
    color: var(--text-muted);
}

.telemetry-val {
    color: var(--primary-cyan);
    font-weight: 700;
    margin-right: 6px;
}

.holo-speech-text {
    font-family: var(--font-tech);
    font-size: 13px;
    line-height: 1.4;
    color: #e2e8f0;
    min-height: 36px;
    max-height: 70px;
    overflow-y: auto;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

/* --- Real-Time Optical Vision Deck --- */
.optical-card {
    background: rgba(13, 19, 29, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.optical-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10, 16, 26, 0.75);
    gap: 8px;
    flex-wrap: wrap;
}

.optical-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.optical-title {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.optical-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.optical-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    background: #030712;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror camera for natural feel */
    filter: contrast(1.05) saturate(1.1);
}

.optical-standby {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px;
}

.optical-standby-icon {
    width: 36px;
    height: 36px;
    fill: var(--text-muted);
    opacity: 0.5;
}

.optical-standby small {
    font-size: 10px;
    opacity: 0.7;
    color: var(--primary-cyan);
}

/* Optical HUD Reticle & Scanning Overlay */
.optical-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-cyan);
}

.hud-top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hud-top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hud-bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hud-bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
}

.hud-crosshair::before,
.hud-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(56, 189, 248, 0.6);
}

.hud-crosshair::before {
    top: 50%;
    left: -6px;
    right: -6px;
    height: 1px;
    transform: translateY(-50%);
}

.hud-crosshair::after {
    left: 50%;
    top: -6px;
    bottom: -6px;
    width: 1px;
    transform: translateX(-50%);
}

.hud-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: hudScan 2.5s ease-in-out infinite;
}

@keyframes hudScan {
    0% { top: 5%; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { top: 95%; opacity: 0; }
}

.hud-target-box {
    position: absolute;
    top: 25%;
    left: 30%;
    width: 40%;
    height: 48%;
    border: 1px dashed rgba(56, 189, 248, 0.7);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    animation: targetBoxPulse 2s infinite ease-in-out;
}

@keyframes targetBoxPulse {
    0%, 100% { border-color: rgba(56, 189, 248, 0.7); }
    50% { border-color: rgba(20, 184, 166, 0.9); }
}

.hud-target-label {
    position: absolute;
    top: -16px;
    left: 0;
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-cyan);
    background: rgba(3, 7, 18, 0.7);
    padding: 1px 4px;
    border-radius: 2px;
}

.hud-telemetry-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--primary-cyan);
    padding: 2px 6px;
    letter-spacing: 0.5px;
}

/* Active Vision Link badge */
.badge.badge-vision-active {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Mobile & Tablet Adjustments for Cockpit */
@media (max-width: 1100px) {
    .aris-cockpit-deck {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .cockpit-visual-deck {
        max-height: 480px;
    }
}

/* ==============================================================================
   LIVE OPERATION PROGRESS BAR & STEP PIPELINE (REVISIONS & DISASTER RECOVERY)
   ============================================================================== */

.backup-progress-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(13, 22, 38, 0.95), rgba(7, 12, 22, 0.95));
}

.backup-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-glow), var(--primary-cyan), var(--accent-emerald));
}

.live-progress-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.live-progress-orb.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.live-progress-orb.amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-amber);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.live-progress-orb.error {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: livePulseAnim 1.4s ease-in-out infinite;
}

.live-progress-orb.success .live-pulse-dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: none;
}

.live-progress-orb.amber .live-pulse-dot {
    background: var(--accent-amber);
    box-shadow: 0 0 10px var(--accent-amber);
}

.live-progress-orb.error .live-pulse-dot {
    background: var(--accent-rose);
    box-shadow: 0 0 10px var(--accent-rose);
    animation: none;
}

@keyframes livePulseAnim {
    0%, 100% { transform: scale(0.85); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Multi-Phase Step Pipeline */
.progress-step-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.step-pill {
    padding: 8px 10px;
    border-radius: 6px;
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.step-pill .step-num {
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 10px;
    flex-shrink: 0;
}

.step-pill.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.step-pill.active .step-num {
    background: var(--primary-cyan);
    color: #030712;
    font-weight: 800;
}

.step-pill.active.amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--accent-amber);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.step-pill.active.amber .step-num {
    background: var(--accent-amber);
    color: #030712;
}

.step-pill.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
}

.step-pill.completed .step-num {
    background: var(--accent-emerald);
    color: #030712;
    font-weight: 800;
}

.step-pill.error {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

.step-pill.error .step-num {
    background: var(--accent-rose);
    color: #fff;
}

/* Progress Fill & Stripes */
.progress-animated-glow {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        transparent 75%,
        transparent
    ) !important;
    background-size: 24px 24px !important;
    animation: liveProgressStripes 1s linear infinite;
    position: relative;
    overflow: hidden;
}

.progress-animated-amber {
    background-image: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.25) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.25) 75%,
        transparent 75%,
        transparent
    ) !important;
    background-size: 24px 24px !important;
    animation: liveProgressStripes 1s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes liveProgressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

.progress-light-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: lightSweepAnim 2s ease-in-out infinite;
}

@keyframes lightSweepAnim {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(800px); }
}

/* ==============================================================================
   Biometric Security & Facial/Voice Identity Recognition Styles
   ============================================================================== */

.biometrics-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.biometric-scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 980px) {
    .biometric-scanner-grid {
        grid-template-columns: 1fr;
    }
}

.bio-scanner-chamber {
    position: relative;
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bio-scanner-chamber video,
.bio-scanner-chamber img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.bio-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 170px;
    border: 2px dashed rgba(56, 189, 248, 0.5);
    border-radius: 50% 50% 45% 45%;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    z-index: 5;
    transition: all 0.3s;
}

.bio-reticle.scanning {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.bio-reticle.verified {
    border-color: var(--accent-emerald);
    border-style: solid;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
}

.bio-reticle.rejected {
    border-color: var(--accent-rose);
    border-style: solid;
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.7);
}

.bio-scan-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), #fff, var(--primary-cyan), transparent);
    box-shadow: 0 0 12px var(--primary-cyan), 0 0 24px var(--primary-cyan);
    animation: laserScan 2s ease-in-out infinite;
    z-index: 6;
    pointer-events: none;
}

@keyframes laserScan {
    0% { top: 10%; opacity: 0.2; }
    50% { top: 90%; opacity: 1; }
    100% { top: 10%; opacity: 0.2; }
}

.bio-scanner-hud {
    position: relative;
    z-index: 7;
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.8), transparent);
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--primary-cyan);
}

.bio-scanner-controls {
    position: relative;
    z-index: 7;
    padding: 12px 14px;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.9) 60%, transparent);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.bio-auth-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bio-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.bio-status-banner.standby {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--primary-cyan);
}

.bio-status-banner.verified {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.bio-status-banner.rejected {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
}

.bio-status-banner.flagged {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fca5a5;
    animation: pulse 1s infinite;
}

.bio-match-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.bio-match-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-subtle);
    object-fit: cover;
    background: rgba(3, 7, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.bio-match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-confidence-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 6px;
}

.bio-confidence-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-emerald));
    transition: width 0.5s ease;
    border-radius: 4px;
}

.identities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.identity-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.identity-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.identity-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.identity-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(3, 7, 18, 0.9);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-info {
    flex: 1;
    min-width: 0;
}

.identity-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.identity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.bio-badge {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bio-badge.role-operator {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.bio-badge.role-authorized {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.bio-badge.role-guest {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.bio-badge.role-restricted {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.5);
}

.bio-badge.enrolled {
    background: rgba(56, 189, 248, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.bio-badge.enrolled.active {
    color: var(--accent-emerald);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.identity-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.identity-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

/* ==============================================================================
   Thread History Sliding Drawer & Conversation List
   ============================================================================== */
.thread-history-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(4px);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: var(--radius-lg);
}

.thread-history-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.thread-history-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 92%;
    background: rgba(10, 16, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glow);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    z-index: 110;
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    overflow: hidden;
}

.thread-history-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.85);
    flex-shrink: 0;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
}

.drawer-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: pulse 2s infinite;
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}
.drawer-close-btn:hover {
    color: var(--accent-rose);
}

.drawer-search-box {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.drawer-search-input {
    width: 100%;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 12px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.drawer-search-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.drawer-threads-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) rgba(10, 16, 26, 0.8);
}

.drawer-threads-list::-webkit-scrollbar {
    width: 6px;
}

.drawer-threads-list::-webkit-scrollbar-track {
    background: rgba(10, 16, 26, 0.8);
    border-radius: 3px;
}

.drawer-threads-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 3px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.drawer-threads-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
    box-shadow: 0 0 6px var(--primary-cyan);
}

.drawer-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 30px 10px;
}

.thread-item {
    background: rgba(16, 24, 38, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.thread-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary-cyan);
    transform: translateX(-2px);
}

.thread-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-color: var(--primary-cyan);
    box-shadow: inset 3px 0 0 var(--primary-cyan);
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.thread-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}
.thread-delete-btn:hover {
    opacity: 1;
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.15);
}

/* ==============================================================================
   Webcam Fixes: True Natural Mirror & Aspect Ratio Fit
   ============================================================================== */
.webcam-video-element, #bioWebcamVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scaleX(-1); /* Natural user mirror orientation */
    border-radius: var(--radius-sm);
    display: block;
}

.optical-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-scanner-chamber {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: 380px;
    background: #030712;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
