/* Extracted from pages/chat.html */
.chat-layout { max-width: 900px; margin: 0 auto; }

/* Void disclosure — the most important element on this page */
.void-disclosure {
    background: rgba(255,68,68,0.08); border: 2px solid var(--red);
    border-radius: 8px; padding: 1.5rem; margin: 1.5rem 0;
}
.void-disclosure h2 { color: var(--red); font-size: 1.1rem; margin-bottom: 0.75rem; }
.void-disclosure p { color: var(--text-dim); font-size: 0.9rem; margin: 0.5rem 0; }
.void-score {
    font-family: var(--font-mono); background: var(--bg-card); border-radius: 4px;
    padding: 0.75rem; margin: 0.75rem 0; font-size: 0.85rem;
}
.void-score .label { color: var(--text-dim); }
.void-score .score { color: var(--red); font-weight: 700; }

/* Guardrail display */
.guardrails {
    background: rgba(61,220,132,0.08); border: 1px solid var(--green);
    border-radius: 8px; padding: 1.25rem; margin: 1rem 0;
}
.guardrails h3 { color: var(--green); font-size: 1rem; margin-bottom: 0.5rem; }
.guardrails ul { color: var(--text-dim); font-size: 0.85rem; padding-left: 1.25rem; }
.guardrails li { margin: 0.35rem 0; }

/* Monitoring notice */
.monitoring {
    background: rgba(255,170,51,0.1); border: 1px solid var(--orange);
    border-radius: 8px; padding: 1rem; margin: 1rem 0; text-align: center;
}
.monitoring strong { color: var(--orange); }
.monitoring p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

/* System prompt toggle */
.prompt-toggle {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    margin: 1rem 0; overflow: hidden;
}
.prompt-toggle summary {
    padding: 0.75rem 1rem; cursor: pointer; color: var(--accent);
    font-size: 0.9rem; font-family: var(--font-mono);
}
.prompt-toggle summary:hover { background: var(--bg-hover); }
.prompt-toggle pre {
    margin: 0; border: none; border-top: 1px solid var(--border);
    border-radius: 0; max-height: 400px; overflow-y: auto;
    font-size: 0.8rem; line-height: 1.5; color: var(--text-dim);
}

/* Chat interface */
.chat-container {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    margin: 1.5rem 0; overflow: hidden;
}
.chat-header {
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); }
.session-limit { color: var(--orange); font-family: var(--font-mono); font-size: 0.8rem; }
.chat-messages {
    height: 400px; overflow-y: auto; padding: 1rem;
}
.msg { margin: 0.75rem 0; padding: 0.75rem; border-radius: 6px; font-size: 0.9rem; line-height: 1.6; }
.msg-system {
    background: rgba(74,158,255,0.08); border-left: 3px solid var(--accent);
    font-size: 0.85rem; color: var(--text-dim);
}
.msg-user { background: rgba(255,255,255,0.05); border-left: 3px solid var(--text-dim); }
.msg-assistant { background: var(--bg); border-left: 3px solid var(--green); }
.msg-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.chat-input-area {
    display: flex; border-top: 1px solid var(--border);
}
.chat-input {
    flex: 1; padding: 0.75rem 1rem; background: var(--bg); border: none;
    color: var(--text); font-family: var(--font-sans); font-size: 0.9rem;
    outline: none;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
    padding: 0.75rem 1.25rem; background: var(--accent-dim); border: none;
    color: white; font-family: var(--font-mono); font-size: 0.85rem;
    cursor: pointer; transition: background 0.2s;
}
.chat-send:hover { background: var(--surface-3); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Vocab tracker */
.vocab-tracker {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    padding: 1rem; margin: 1rem 0;
}
.vocab-tracker h3 { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.vocab-bars { display: flex; gap: 1rem; flex-wrap: wrap; }
.vocab-bar { flex: 1; min-width: 100px; }
.vocab-bar-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.vocab-bar-track {
    height: 6px; background: var(--bg); border-radius: 3px; margin-top: 0.25rem; overflow: hidden;
}
.vocab-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.vocab-l1 .vocab-bar-fill { background: var(--green); }
.vocab-l2 .vocab-bar-fill { background: var(--orange); }
.vocab-l3 .vocab-bar-fill { background: var(--red); }
