/* ==========================================================================
   AIVA HUD — MINIMAL MODERN DARK UI
   Design: Clean lines, muted palette, refined typography, zero noise
   ========================================================================== */

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

:root {
    /* Base surfaces */
    --bg-base:        #0a0a0a;
    --bg-surface:     #111111;
    --bg-elevated:    #1a1a1a;
    --bg-hover:       #222222;
    --bg-active:      #2a2a2a;

    /* Borders */
    --border-subtle:  rgba(255,255,255,0.06);
    --border-default: rgba(255,255,255,0.10);
    --border-strong:  rgba(255,255,255,0.18);

    /* Accent — single cohesive teal */
    --accent:         #3ecfcf;
    --accent-dim:     rgba(62,207,207,0.12);
    --accent-glow:    rgba(62,207,207,0.25);

    /* Status colors */
    --green:  #22c55e;
    --red:    #ef4444;
    --amber:  #f59e0b;
    --blue:   #3b82f6;

    /* Typography */
    --text-1: #f4f4f5;
    --text-2: #a1a1aa;
    --text-3: #71717a;
    --text-4: #3f3f46;

    --font:  'Inter', -apple-system, sans-serif;
    --mono:  'JetBrains Mono', monospace;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
}

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

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-1);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Subtle Background Noise ────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62,207,207,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(59,130,246,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.background-glow { display: none; } /* retired */

.app-container {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    gap: 6px;
}

/* Brand */
.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.brand-logo {
    position: relative;
    width: 32px;
    height: 32px;
}

.logo-inner {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #000;
    letter-spacing: -0.5px;
}

.logo-pulse { display: none; }

.brand-text h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.badge-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.2px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    animation: statusPulse 2.5s ease-in-out infinite;
}

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

/* Nav */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    border: none;
    background: transparent;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
    width: 100%;
}

.nav-item svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.15s; }

.nav-item:hover {
    color: var(--text-2);
    background: var(--bg-hover);
}
.nav-item:hover svg { opacity: 0.8; }

.nav-item.active {
    color: var(--text-1);
    background: var(--bg-active);
}
.nav-item.active svg { opacity: 1; }

/* Voice Widget */
.voice-mode-widget {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.widget-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-mini {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-mini.active {
    background: rgba(34,197,94,0.12);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.25);
}
.badge-mini.idle {
    background: rgba(113,113,122,0.15);
    color: var(--text-3);
    border: 1px solid var(--border-subtle);
}

.mode-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--bg-base);
    padding: 3px;
    border-radius: var(--r-sm);
}

.mode-toggles-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.badge-mini.followup {
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
    animation: pulseGlow 1.5s infinite;
}

.badge-mini.listening {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
    animation: pulseGlow 1s infinite;
}

.badge-mini.thinking {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

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

.mode-btn {
    padding: 5px 6px;
    font-size: 0.75rem;
    font-family: var(--font);
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.mode-btn.active {
    background: var(--bg-elevated);
    color: var(--text-1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.voice-toggle-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-default);
    background: var(--bg-hover);
    color: var(--text-1);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}

.voice-toggle-main:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.voice-toggle-main.muted {
    color: var(--text-3);
    border-color: var(--border-subtle);
    background: transparent;
}

.mic-icon { font-size: 0.9rem; }

/* ─── Main Content ───────────────────────────────────────────────────────── */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-base);
}

/* ─── Top HUD ────────────────────────────────────────────────────────────── */
.top-hud {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-base);
    flex-shrink: 0;
}

/* remove old glass-panel styles from hud */
.top-hud.glass-panel {
    background: var(--bg-base);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hud-left { display: flex; align-items: center; gap: 16px; }
.hud-right { display: flex; align-items: center; gap: 8px; }

.system-time {
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.user-greeting {
    font-size: 0.82rem;
    color: var(--text-3);
}

.user-greeting strong { color: var(--text-2); font-weight: 500; }

/* Neural Core — refined minimal version */
.hud-center { display: flex; align-items: center; }

.neural-core-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.core-outer {
    width: 34px; height: 34px;
    border-top-color: var(--accent);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spinClockwise 3s linear infinite;
    opacity: 0.5;
}

.core-mid {
    width: 24px; height: 24px;
    border-top-color: transparent;
    border-bottom-color: var(--blue);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spinCounter 4s linear infinite;
    opacity: 0.4;
}

.core-inner { display: none; }

.core-center-orb {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.9;
}

.neural-core-wrapper.thinking .core-outer { opacity: 1; animation-duration: 1.2s; }
.neural-core-wrapper.thinking .core-mid  { opacity: 0.8; animation-duration: 1.8s; }
.neural-core-wrapper.thinking .core-center-orb { background: var(--amber); }

.neural-core-wrapper.speaking .core-center-orb { background: var(--green); }

.audio-waves { display: none; }

@keyframes spinClockwise { 100% { transform: rotate(360deg); } }
@keyframes spinCounter   { 100% { transform: rotate(-360deg); } }

/* HUD Buttons */
.hud-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.hud-btn:hover {
    color: var(--text-1);
    border-color: var(--border-default);
    background: var(--bg-hover);
}

.api-health-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-family: var(--mono);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.18);
    color: var(--green);
}

.dot-green {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
    animation: statusPulse 2.5s infinite;
}

/* ─── Tab Panes ──────────────────────────────────────────────────────────── */
.tab-pane {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-pane.active {
    display: flex;
    gap: 0;
}

#chat-view.active {
    display: grid;
    grid-template-columns: 1fr 300px;
}

/* ─── Chat ───────────────────────────────────────────────────────────────── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--border-subtle);
}

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

.chat-history::-webkit-scrollbar { width: 4px; }
.chat-history::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 10px;
}

/* Messages */
.message {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    max-width: 88%;
    animation: fadeUp 0.2s ease-out;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.message.glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
}
.message.glass-card:hover {
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
    border: none;
}

.aiva-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-elevated);
    color: var(--text-3);
    border: 1px solid var(--border-subtle);
}

.aiva-msg .msg-avatar {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(62,207,207,0.2);
}

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

.msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.msg-sender {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
}

.aiva-msg .msg-sender { color: var(--accent); }
.user-msg .msg-sender { color: var(--text-2); }

.msg-time {
    font-size: 0.68rem;
    color: var(--text-4);
}

.msg-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-1);
}

.tag-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(62,207,207,0.2);
}

/* Typing dots */
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dots span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-5px); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Chat Input ─────────────────────────────────────────────────────────── */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-base);
}

/* remove glass-panel on input bar */
.chat-input-bar.glass-panel {
    background: var(--bg-base);
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    padding: 9px 14px;
    color: var(--text-1);
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

.chat-input-bar input::placeholder { color: var(--text-4); }
.chat-input-bar input:focus { border-color: var(--border-strong); }

.icon-btn {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.icon-btn:hover {
    color: var(--text-1);
    border-color: var(--border-default);
    background: var(--bg-hover);
}

.mic-btn.listening {
    border-color: var(--red);
    color: var(--red);
    background: rgba(239,68,68,0.1);
    animation: micPulse 1s infinite alternate;
}

@keyframes micPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--r-md);
    border: none;
    background: var(--accent);
    color: #000;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #5ad8d8;
    transform: translateY(-1px);
}

/* ─── Right Telemetry Panel ──────────────────────────────────────────────── */
.telemetry-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background: var(--bg-surface);
}

/* remove glass-panel styles */
.telemetry-panel.glass-panel {
    background: var(--bg-surface);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}

.quick-tools-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: var(--font);
    width: 100%;
}

.tool-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
    color: var(--text-1);
}

.tool-icon { font-size: 1rem; flex-shrink: 0; }

.tool-meta strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
}

.tool-meta small {
    color: var(--text-3);
    font-size: 0.72rem;
}

/* Stats */
.stat-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stat-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-box.glass-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    backdrop-filter: none;
}

.stat-box.glass-card:hover {
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
    border-color: var(--border-default);
}

.stat-label { font-size: 0.67rem; color: var(--text-3); font-weight: 500; }
.stat-val { font-size: 1rem; font-weight: 700; font-family: var(--mono); color: var(--text-1); }

.text-green  { color: var(--green) !important; }
.text-cyan   { color: var(--accent) !important; }
.text-purple { color: #a78bfa !important; }

/* ─── Workflows Tab ──────────────────────────────────────────────────────── */
.workflows-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.workflows-container.glass-panel {
    background: var(--bg-base);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

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

.pane-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
}

.workflow-tree-view {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 640px;
}

.workflow-node-card {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    position: relative;
}

.workflow-node-card.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    backdrop-filter: none;
}

.workflow-node-card.glass-card:hover {
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
    border-color: var(--border-default);
}

.workflow-node-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
}

.workflow-node-card p {
    font-size: 0.8rem;
    color: var(--text-3);
}

.workflow-node-card code {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 1px 5px;
    border-radius: 3px;
}

.node-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.node-badge.success {
    background: rgba(34,197,94,0.1);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.2);
}

.node-badge.running {
    background: rgba(62,207,207,0.1);
    color: var(--accent);
    border: 1px solid rgba(62,207,207,0.2);
    animation: statusPulse 1.2s infinite;
}

.workflow-connector {
    width: 1px;
    height: 16px;
    background: var(--border-default);
    margin-left: 24px;
}

/* ─── Memory Tab ─────────────────────────────────────────────────────────── */
.memory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.memory-column {
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--border-subtle);
}

.memory-column.glass-panel {
    background: var(--bg-base);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border-right: 1px solid var(--border-subtle);
    border-top: none;
    border-left: none;
    border-bottom: none;
}

.memory-column:last-child { border-right: none; }

.memory-column h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.memory-entry {
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.memory-entry.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    backdrop-filter: none;
}

.memory-entry.glass-card:hover {
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
    border-color: var(--border-default);
}

.memory-entry strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 4px;
}

.memory-entry p {
    font-size: 0.8rem;
    color: var(--text-3);
    font-family: var(--mono);
}

.cap-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-active);
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 500;
    border: 1px solid rgba(62,207,207,0.15);
}

/* ─── System / Vision Tab ────────────────────────────────────────────────── */
.system-monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.monitor-card {
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--border-subtle);
}

.monitor-card.glass-panel {
    background: var(--bg-base);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border-right: 1px solid var(--border-subtle);
    border-top: none;
    border-left: none;
    border-bottom: none;
}

.monitor-card:last-child { border-right: none; }

.monitor-card h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.screen-preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 0.8rem;
    color: var(--text-4);
    text-align: center;
    padding: 20px;
}

.action-btn {
    padding: 8px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.capability-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capability-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-3);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.capability-list li:last-child { border-bottom: none; }

/* ─── Scrollbar global ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 10px; }
