.live { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; font-family: system-ui, sans-serif; }
.stage { min-width: 0; }
#view { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #222; border-radius: 10px; overflow: hidden; touch-action: none; }
#cv { width: 100%; height: 100%; display: block; }
.status { position: absolute; inset: auto 0 0 0; padding: 8px 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; }
.status.ok { display: none; }
.hud { position: absolute; top: 8px; left: 10px; color: #fff; font-size: 13px; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 6px; }
#bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; transform: translate(-50%, -100%); background: #fff; color: #111; border-radius: 12px; padding: 4px 10px; font: 600 15px/1.3 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: nowrap; transition: opacity .4s; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.babble { color: #777; font-style: italic; }
.bubble.heard { background: #ffeeb0; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; align-items: center; }
.tools button, .say button, .tools select { font: 14px system-ui, sans-serif; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; min-height: 38px; }
.tools button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tools button:disabled { opacity: .55; cursor: not-allowed; }
.chk { font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.say { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.say input { flex: 1 1 220px; font: 16px system-ui, sans-serif; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); min-height: 40px; }
.you { font-size: 13px; color: var(--warn); }
.hint { font-size: 14px; color: var(--mute); margin: 6px 0; }
.chip { display: inline-block; margin: 2px 3px; padding: 2px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; font-size: 13px; color: var(--fg); }
.panel { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; align-self: start; }
.panel h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.15rem; }
.panel h3 { font-size: .98rem; margin: 16px 0 4px; }
.small { font-size: 12.5px; color: var(--mute); margin: 2px 0 8px; line-height: 1.45; }
.row { margin: 8px 0; display: flex; flex-direction: column; gap: 3px; }
.row span { font-size: 12.5px; color: var(--mute); }
.bar { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #3c9a5f; transition: width .3s; }
#spark { width: 100%; height: 46px; background: var(--soft); border-radius: 6px; }
.words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; max-height: 160px; overflow: auto; }
.words li { font-size: 12.5px; padding: 2px 7px; border-radius: 10px; background: var(--soft); }
.words li.k { outline: 1px solid #3c9a5f; }
.genes { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.genes td { padding: 2px 4px; border-bottom: 1px solid var(--line); }
.feed { list-style: none; padding: 0; margin: 0; max-height: 170px; overflow: auto; font-size: 12.5px; color: var(--mute); }
.feed li { padding: 2px 0; border-bottom: 1px dashed var(--line); }
.feed li.nar { color: var(--accent); }
.ad-slot { margin-top: 16px; min-height: 120px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 12px; }
.notes { padding-top: 8px; }
@media (max-width: 900px) { .live { grid-template-columns: 1fr; } #view { aspect-ratio: 4 / 3.4; } .panel { order: 2; } }
