:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --panel: rgba(18, 26, 45, .84);
  --panel-strong: rgba(24, 35, 59, .94);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f5f7fb;
  --muted: #9aa7bd;
  --blue: #6ea8fe;
  --violet: #a78bfa;
  --green: #8bd18b;
  --amber: #f7c46c;
  --red: #ff8a8a;
  --cyan: #6ee7f9;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(110,168,254,.18), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(167,139,250,.13), transparent 28%),
    linear-gradient(180deg, var(--bg2), var(--bg) 52%, #05070d);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 24px;
  border-right: 1px solid var(--line); background: rgba(7,11,20,.72); backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand-mark { width: 42px; height: 42px; border-radius: 15px; display:grid; place-items:center; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 16px 40px rgba(110,168,254,.22); }
.brand strong, .brand span { display:block; }
.brand span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav { display:grid; gap: 8px; }
.nav a { padding: 10px 12px; border-radius: 13px; color: var(--muted); border: 1px solid transparent; }
.nav a.active, .nav a:hover { color: var(--text); background: rgba(255,255,255,.055); border-color: var(--line); }
.sidebar-card { position:absolute; left:24px; right:24px; bottom:24px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.04); }
.sidebar-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.workspace { min-width: 0; padding: 30px; }
.command-hero { display:flex; justify-content:space-between; align-items:flex-start; gap: 24px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); box-shadow: var(--shadow); }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
h1 { margin: 8px 0; font-size: clamp(32px, 4vw, 54px); line-height: .98; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
h3 { margin: 0 0 4px; font-size: 14px; }
p { margin: 0; }
#ops-summary { color: var(--muted); line-height: 1.55; max-width: 760px; }
.hero-actions { display:flex; gap: 10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.dashboard { display:grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span5 { grid-column: span 5; } .span6 { grid-column: span 6; } .span7 { grid-column: span 7; } .span12 { grid-column: span 12; }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 18px; background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.2); overflow: hidden; }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; gap: 14px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.status-chip, .pill { display:inline-flex; align-items:center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.055); color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-chip span { width: 9px; height: 9px; border-radius: 99px; background: var(--muted); box-shadow: 0 0 16px currentColor; }
.status-chip.ok span, .pill.ok { color: var(--green); } .status-chip.ok span { background: var(--green); }
.status-chip.warn span, .pill.warn { color: var(--amber); } .status-chip.warn span { background: var(--amber); }
.status-chip.err span, .pill.err { color: var(--red); } .status-chip.err span { background: var(--red); }
.pill.ok { background: rgba(139,209,139,.1); border-color: rgba(139,209,139,.25); }
.pill.warn { background: rgba(247,196,108,.1); border-color: rgba(247,196,108,.25); }
.pill.err { background: rgba(255,138,138,.1); border-color: rgba(255,138,138,.25); }

.btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 13px; padding: 9px 13px; cursor:pointer; }
.btn.primary { background: linear-gradient(135deg, rgba(110,168,254,.95), rgba(167,139,250,.85)); border: none; color: #08101f; font-weight: 800; }
.btn:hover, .action-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }

.live-strip { display:grid; grid-template-columns: 220px 1fr 170px; align-items:center; gap: 16px; }
.refresh-meter { height: 8px; overflow:hidden; border-radius:999px; background: rgba(255,255,255,.08); }
.refresh-meter span { display:block; height:100%; width:0%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s linear; }

.voice-panel { position:relative; min-height: 250px; display:grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 420px) minmax(220px, 1fr); align-items:center; gap: 20px; background: radial-gradient(circle at 50% 45%, rgba(110,231,249,.18), transparent 34%), linear-gradient(135deg, rgba(12,20,34,.96), rgba(8,9,18,.92)); }
.voice-panel::before, .voice-panel::after { content:''; position:absolute; inset: 12px; border: 1px solid rgba(110,231,249,.12); border-radius: 20px; pointer-events:none; }
.voice-panel::after { inset: 22px; border-color: transparent; background: linear-gradient(90deg, transparent, rgba(110,231,249,.16), transparent); opacity:.38; animation: voice-scan 3.6s linear infinite; }
.voice-copy, .voice-controls { position:relative; z-index:1; }
.voice-copy h2 { margin: 6px 0 8px; font-size: 25px; }
.voice-copy p { color: var(--muted); line-height: 1.55; max-width: 440px; }
.voice-core { position:relative; z-index:1; display:grid; place-items:center; min-height: 210px; }
.voice-orb { position:relative; width: 176px; height: 176px; border-radius:50%; display:grid; place-items:center; color: var(--cyan); filter: drop-shadow(0 0 26px rgba(110,231,249,.42)); }
.voice-orb::before, .voice-orb::after { content:''; position:absolute; inset: 18px; border-radius:50%; border: 1px solid rgba(110,231,249,.58); box-shadow: inset 0 0 28px rgba(110,231,249,.14), 0 0 26px rgba(110,231,249,.18); animation: voice-spin 9s linear infinite; }
.voice-orb::after { inset: 42px; border-style:dashed; animation-duration: 5.2s; animation-direction: reverse; opacity:.8; }
.voice-orb span { position:absolute; inset:0; border-radius:50%; border: 1px solid rgba(110,231,249,.15); animation: voice-pulse 2.8s ease-in-out infinite; }
.voice-orb span:nth-child(2) { inset: 24px; animation-delay:.35s; }
.voice-orb span:nth-child(3) { inset: 48px; animation-delay:.7s; }
.voice-dot { width: 42px; height:42px; border-radius:50%; background: radial-gradient(circle at 35% 30%, #fff, #6ee7f9 38%, #0c7788 78%); box-shadow: 0 0 34px rgba(110,231,249,.78), 0 0 70px rgba(110,231,249,.32); animation: voice-breathe 1.8s ease-in-out infinite; }
.voice-panel:not(.active) .voice-orb { opacity:.38; filter: grayscale(.45) drop-shadow(0 0 10px rgba(154,167,189,.16)); }
.voice-panel:not(.active) .voice-orb *, .voice-panel:not(.active) .voice-orb::before, .voice-panel:not(.active) .voice-orb::after, .voice-panel:not(.active)::after { animation-play-state: paused; }
.voice-controls { display:grid; justify-items:end; gap: 12px; }
.voice-toggle { min-width: 140px; border-color: rgba(110,231,249,.36); background: rgba(110,231,249,.08); color: var(--cyan); font-weight: 900; box-shadow: 0 0 22px rgba(110,231,249,.12); }
.voice-panel.active .voice-toggle { background: linear-gradient(135deg, rgba(110,231,249,.95), rgba(139,209,139,.84)); color:#061018; border:0; }
.voice-meta { display:grid; justify-items:end; gap: 7px; text-align:right; }

.health-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-height: 155px; position:relative; }
.metric-card .value { font-size: 34px; font-weight: 900; letter-spacing: -.04em; margin: 10px 0 8px; }
.metric-card .meta { color: var(--muted); font-size: 13px; line-height:1.45; }
.bar { height: 7px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 14px; overflow:hidden; }
.bar span { display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .4s ease; }
.bar.warn span { background: linear-gradient(90deg, var(--amber), var(--red)); }

.stack, .workflow-list, .timeline, .matrix { display:grid; gap: 10px; max-height: 440px; overflow:auto; padding-right: 3px; }
.item, .workflow, .event, .dataset, .knowledge-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.038); }
.item.critical, .workflow.error { border-color: rgba(255,138,138,.28); background: rgba(255,138,138,.07); }
.item.warning, .dataset.warn { border-color: rgba(247,196,108,.24); background: rgba(247,196,108,.06); }
.item header, .workflow header, .dataset header { display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; margin-bottom: 7px; }
.item p, .workflow p, .event p, .dataset p, .knowledge-item p { color: var(--muted); font-size: 12px; line-height: 1.45; }

.timeline { position: relative; }
.event { display:grid; grid-template-columns: 12px 1fr; gap: 10px; animation: pop .28s ease both; }
.event-dot { width: 10px; height:10px; margin-top: 4px; border-radius: 99px; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.event.incident .event-dot { background: var(--red); box-shadow: 0 0 14px var(--red); }
.event.data .event-dot { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.event.hermes .event-dot { background: var(--green); box-shadow: 0 0 14px var(--green); }

.segmented { display:flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: rgba(0,0,0,.18); }
.segmented button { border:0; border-radius:999px; padding: 5px 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.segmented button.active { color: var(--text); background: rgba(255,255,255,.09); }

.workflow { display:grid; grid-template-columns: 1fr auto; gap: 12px; align-items:center; }
.workflow .details { grid-column: 1 / -1; display:none; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.workflow.open .details { display:block; }

.context-graph { min-height: 460px; position:relative; border:1px solid var(--line); border-radius: 18px; overflow:hidden; background: radial-gradient(circle at center, rgba(110,168,254,.11), transparent 42%), rgba(0,0,0,.14); cursor: grab; }
.context-graph:active { cursor: grabbing; }
.graph-meta { margin: -4px 0 10px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.graph-toolbar { margin: -2px 0 10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.graph-toolbar .btn { padding: 7px 10px; font-size: 12px; background: rgba(255,255,255,.045); }
.context-graph svg { width:100%; height:460px; display:block; touch-action: none; }
.empty-graph { height: 360px; display:grid; place-content:center; gap:8px; text-align:center; color: var(--muted); }
.empty-graph strong { color: var(--text); }
.graph-depth-stars circle { fill: rgba(255,255,255,.32); filter: blur(.2px); animation: star-drift 7s ease-in-out infinite alternate; }
.community-hull ellipse { fill: var(--hull-color, var(--blue)); opacity: calc(.075 + var(--hull-strength, .35) * .075); stroke: var(--hull-color, var(--blue)); stroke-width: 1.2; stroke-opacity: .22; filter: blur(.2px); }
.community-hull text, .community-legend text { fill: rgba(223,231,248,.72); font-size: 10px; font-weight: 800; letter-spacing: .03em; paint-order: stroke; stroke: rgba(7,11,20,.82); stroke-width: 3px; stroke-linejoin: round; }
.community-legend { opacity: .78; }
.community-legend circle { fill: var(--hull-color, var(--blue)); opacity: .92; stroke: rgba(255,255,255,.34); stroke-width: 1; }
.graph-node { opacity: var(--depth, .72); transition: opacity .18s ease; }
.graph-node circle:not(.node-shine):not(.node-halo) { stroke: rgba(255,255,255,.42); stroke-width: 1; filter: drop-shadow(0 0 12px rgba(110,168,254,.34)); }
.node-halo { fill: var(--node-color, #6ea8fe); opacity: .12; stroke: none; filter: blur(7px); animation: node-pulse 3.8s ease-in-out infinite; }
.node-shine { opacity: .5; stroke: none; pointer-events: none; }
.graph-node.clickable { cursor: grab; }
.graph-node.clickable:active { cursor: grabbing; }
.graph-node.clickable:hover circle:not(.node-halo), .graph-node.clickable:focus circle:not(.node-halo) { stroke: #fff; stroke-width: 2.2; }
.graph-node.selected circle:not(.node-halo) { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 20px rgba(110,231,249,.68)); }
.graph-node.selected .node-halo { opacity: .26; }
.graph-node.dimmed { opacity: .18; }
.node-label { font-size: 11px; font-weight: 800; fill: #dfe7f8; paint-order: stroke; stroke: rgba(7,11,20,.94); stroke-width: 4px; stroke-linejoin: round; pointer-events:none; }
.edge { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.05; stroke-linecap: round; transition: stroke .18s ease, opacity .18s ease; }
.edge.connected { stroke: rgba(110,231,249,.78); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(110,231,249,.22)); }
.edge.dimmed { opacity: .12; }
.edge.links_to { stroke: rgba(110,231,249,.38); }
.edge.contains { stroke: rgba(247,196,108,.22); }
.graph-inspector { margin-top: 10px; display:grid; gap: 10px; border:1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(0,0,0,.18); }
.graph-inspector.empty { color: var(--muted); }
.graph-inspector h3 { margin-top: 4px; font-size: 15px; }
.graph-inspector p, .graph-inspector span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.inspector-actions { display:flex; gap: 8px; flex-wrap: wrap; }
.neighbor-list { display:flex; flex-wrap:wrap; gap: 7px; }
.neighbor-list span { border:1px solid var(--line); border-radius:999px; padding: 5px 8px; background: rgba(255,255,255,.045); }
.neighbor-list strong { color: var(--cyan); font-weight: 800; }

.note-reader-panel { display:flex; flex-direction:column; gap: 12px; }
.search-box { display:grid; gap: 6px; color: var(--muted); font-size: 12px; }
.search-box input { width:100%; border:1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.22); color: var(--text); padding: 10px 12px; outline: none; }
.search-box input:focus { border-color: rgba(110,168,254,.55); box-shadow: 0 0 0 3px rgba(110,168,254,.12); }
.note-list { display:grid; gap: 8px; max-height: 210px; overflow:auto; padding-right: 3px; }
.note-row { display:grid; gap: 3px; width:100%; border:1px solid var(--line); border-radius: 14px; padding: 10px; text-align:left; background: rgba(255,255,255,.035); cursor:pointer; }
.note-row:hover, .note-row.active { border-color: rgba(110,168,254,.44); background: rgba(110,168,254,.09); }
.note-row strong { font-size: 13px; }
.note-row span, .note-row small { color: var(--muted); font-size: 11px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-preview { border:1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(0,0,0,.18); min-height: 260px; max-height: 520px; overflow:auto; }
.note-preview.empty { display:grid; place-content:center; text-align:center; color: var(--muted); }
.note-preview header { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.markdown-body { color: #dfe7f8; font-size: 13px; line-height: 1.58; }
.markdown-body p, .markdown-body li { color: #dfe7f8; font-size: 13px; }
.markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5 { margin: 16px 0 8px; letter-spacing: -.01em; }
.markdown-body ul { padding-left: 20px; }
.markdown-body a, .wikilink { color: var(--cyan); }
.wikilink { border:0; background: rgba(110,231,249,.1); border-radius: 8px; padding: 1px 5px; cursor:pointer; }
.markdown-body code { background: rgba(255,255,255,.08); border:1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.markdown-body pre { overflow:auto; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.34); border:1px solid var(--line); }
.err { color: var(--red); }

.auth-body { min-height: 100vh; display:grid; place-items:center; padding: 24px; }
.auth-shell { width:min(100%, 460px); }
.auth-card { border:1px solid var(--line); border-radius: 28px; padding: 28px; background: var(--panel-strong); box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 22px; }
.auth-card h1 { font-size: clamp(30px, 7vw, 46px); }
.auth-card p { color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.auth-alert { border:1px solid rgba(255,138,138,.28); border-radius: 14px; padding: 11px 12px; margin: 14px 0; color: var(--red); background: rgba(255,138,138,.08); }
.auth-form { display:grid; gap: 13px; margin-top: 18px; }
.auth-form label { display:grid; gap: 7px; color: var(--muted); font-size: 12px; }
.auth-form input { width:100%; border:1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.24); color: var(--text); padding: 11px 12px; outline: none; }
.auth-form input:focus { border-color: rgba(110,168,254,.58); box-shadow: 0 0 0 3px rgba(110,168,254,.13); }
.auth-setup { display:grid; gap: 8px; margin-top: 16px; color: var(--muted); }
.auth-setup code { display:block; border:1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--cyan); background: rgba(0,0,0,.25); }

.quick-actions { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.action-btn { text-align:left; min-height: 92px; border:1px solid var(--line); border-radius: 17px; padding: 13px; background: rgba(255,255,255,.04); cursor:pointer; transition: .18s ease; }
.action-btn strong, .action-btn span { display:block; }
.action-btn span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.toast { min-height: 22px; margin-top: 12px; color: var(--green); font-size: 12px; }

.matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dataset .meter { height: 5px; background: rgba(255,255,255,.08); border-radius:999px; margin-top: 8px; overflow:hidden; }
.dataset .meter span { display:block; height:100%; width:60%; background: var(--green); }
.dataset.warn .meter span { background: var(--amber); width:35%; }
.dataset.err .meter span { background: var(--red); width:20%; }

.links-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.link-group { border:1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.03); }
.link-group a { display:flex; justify-content:space-between; gap:10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--blue); font-size: 13px; }
.link-group a:first-of-type { border-top:0; }

.skeleton:empty::before { content: ''; display:block; height: 130px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.11), rgba(255,255,255,.04)); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.flash { animation: flash .8s ease; }

@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(110,168,254,.0); } 30% { box-shadow: 0 0 0 4px rgba(110,168,254,.22); } 100% { box-shadow: 0 0 0 0 rgba(110,168,254,0); } }
@keyframes pop { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
@keyframes node-pulse { 0%, 100% { transform: scale(.86); opacity: .08; } 45% { transform: scale(1.08); opacity: .18; } }
@keyframes star-drift { from { transform: translate3d(-2px, 1px, 0); opacity: .18; } to { transform: translate3d(3px, -2px, 0); opacity: .42; } }
@keyframes voice-spin { to { transform: rotate(360deg); } }
@keyframes voice-pulse { 0%, 100% { transform: scale(.86); opacity:.08; } 48% { transform: scale(1.14); opacity:.34; } }
@keyframes voice-breathe { 0%, 100% { transform: scale(.86); } 50% { transform: scale(1.06); } }
@keyframes voice-scan { from { transform: translateX(-55%); } to { transform: translateX(55%); } }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height:auto; display:none; }
  .workspace { padding: 18px; }
  .span5, .span6, .span7 { grid-column: span 12; }
  .voice-panel { grid-template-columns: 1fr; text-align:left; }
  .voice-controls { justify-items:start; }
  .voice-meta { justify-items:start; text-align:left; }
}
@media (max-width: 720px) {
  .command-hero, .live-strip { grid-template-columns: 1fr; display:grid; }
  .health-grid, .matrix, .links-grid, .quick-actions { grid-template-columns: 1fr; }
  .section-title { display:grid; }
}

/* Voice chat push-to-talk */
.voice-record {
  min-width: 180px;
  border-color: rgba(110,231,249,.36);
  background: rgba(110,231,249,.08);
  color: var(--cyan);
  font-weight: 800;
  user-select: none;
  -webkit-user-select: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.voice-record.recording {
  background: linear-gradient(135deg, rgba(255,138,138,.9), rgba(247,196,108,.85));
  color: #08101f;
  border: none;
  box-shadow: 0 0 28px rgba(255,138,138,.4);
  animation: voice-pulse-record 1.2s ease-in-out infinite;
}
@keyframes voice-pulse-record { 0%,100%{ box-shadow:0 0 20px rgba(255,138,138,.3);} 50%{ box-shadow:0 0 36px rgba(255,138,138,.55);} }
.voice-record:disabled { opacity: .5; cursor: wait; }

.voice-chat-log {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.voice-chat-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 20px 0; }
.voice-chat-msg {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255,255,255,.035);
  animation: pop .25s ease both;
}
.voice-chat-msg .role { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; display: block; }
.voice-chat-msg.user { border-color: rgba(110,168,254,.3); background: rgba(110,168,254,.07); }
.voice-chat-msg.user .role { color: var(--blue); }
.voice-chat-msg.assistant { border-color: rgba(139,209,139,.28); background: rgba(139,209,139,.06); }
.voice-chat-msg.assistant .role { color: var(--green); }
.voice-chat-msg.error { border-color: rgba(255,138,138,.3); background: rgba(255,138,138,.07); }
.voice-chat-msg.error .role { color: var(--red); }
.voice-chat-msg audio { margin-top: 8px; width: 100%; border-radius: 10px; }
.voice-chat-msg .meta { color: var(--muted); font-size: 11px; margin-top: 6px; }
