:root {
    --neon-cyan: #00f2ff;
    --neon-magenta: #ec4899;
    --neon-green: #00ff66;
    --bg-dark: #040406;
    --fast-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background: var(--bg-dark);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.interface-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 460px;
    padding: 25px 0;
}

.selection-matrix {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 14px;
}

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

.control-row label {
    font-size: 10px;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
}

#status {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
}

.pulse-node {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(0, 242, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.4s var(--fast-ease);
}

.pulse-node.staging { border-style: dashed; animation: spin 10s linear infinite; }

.waveform-bar {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: height 0.08s linear, background-color 0.2s;
}

.pulse-node.user-speaking { border-color: var(--neon-magenta); box-shadow: 0 0 25px rgba(236, 72, 153, 0.25); }
.pulse-node.user-speaking .waveform-bar { background: var(--neon-magenta); }

.pulse-node.ai-thinking { border-color: var(--neon-green); box-shadow: 0 0 25px rgba(0, 255, 102, 0.2); }
.pulse-node.ai-thinking .waveform-bar { background: var(--neon-green); animation: bounce 0.5s infinite alternate; }
.pulse-node.ai-thinking .bar2 { animation-delay: 0.12s; }
.pulse-node.ai-thinking .bar3 { animation-delay: 0.24s; }

.pulse-node.ai-speaking { border-color: var(--neon-cyan); box-shadow: 0 0 30px rgba(0, 242, 255, 0.3); }

#caption {
    font-size: 13px;
    color: #e4e4e7;
    min-height: 40px;
    line-height: 1.4;
    text-align: center;
}

#live-transcription-preview {
    font-size: 11px;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
}

/* DICTIONARY MANAGEMENT LEDGER PANEL styles */
.memory-ledger-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    text-align: left;
}

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

.ledger-header h3 {
    margin: 0;
    font-size: 12px;
    color: #f4f4f5;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
}

.ledger-desc {
    font-size: 11px;
    color: #71717a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    max-height: 80px;
    overflow-y: auto;
}

.tag {
    font-size: 10px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.15);
    color: var(--neon-cyan);
    padding: 2px 7px;
    border-radius: 4px;
}

.manual-inject {
    display: flex;
    gap: 6px;
}

.manual-inject input {
    flex: 1;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 10px;
    color: white;
    font-size: 11px;
    outline: none;
}

.manual-inject button {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
.manual-inject button:hover { background: #27272a; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes bounce { 100% { height: 26px; } }
