/* Чат: поток, базы, запись, плеер, сканер, помощь ИИ */
.icon-button.stopping { background: var(--danger); }
.thought { font-size: 13px; color: var(--muted); margin: 6px 0; }
.thought-text { white-space: pre-wrap; max-height: 160px; overflow-y: auto; border-left: 2px solid var(--line); padding-left: 10px; }
#use-search { position: relative; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#use-search::after { content: attr(data-count); position: absolute; right: 1px; top: 0; font-size: 10px; font-weight: 700; }
#base-picker, #scanner { width: min(440px, 94vw); }
#base-picker h3 { margin: 0 0 6px; }
#base-list { max-height: 55vh; overflow-y: auto; }
.item > .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--accent); }
.base-label { display: flex; align-items: center; gap: 8px; }
.model-choice { display: flex; align-items: center; gap: 8px; }
.model-choice .meter { flex: 1; min-width: 0; }
.player { margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 6px 8px; outline: none; }
.player:focus-visible { border-color: var(--accent); }
.player audio { display: none; }
.player-row { display: flex; align-items: center; gap: 6px; }
.player-play { width: 34px; height: 34px; }
.wave-box { position: relative; flex: 1; min-width: 60px; }
.wave { display: block; width: 100%; height: 34px; cursor: pointer; touch-action: none; color: var(--accent); border-top-color: var(--line); }
.wave-tip { position: absolute; bottom: 38px; background: var(--text); color: var(--bg); border-radius: 6px; padding: 1px 7px; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 4; }
.player-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-speed { background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; padding: 1px 6px; }
.player-words { position: relative; max-height: 110px; overflow-y: auto; border-top: 1px solid var(--line); margin-top: 6px; padding: 6px 4px 2px; font-size: 14px; line-height: 1.7; }
.player-words span { cursor: pointer; border-radius: 4px; }
.player-words span:hover { background: var(--hover); }
.player-words span.now { background: var(--accent); color: #fff; }
@media (max-width: 520px) { .player-row > a { display: none; } }
.scan-box { position: relative; aspect-ratio: 1; background: #000; border-radius: 14px; overflow: hidden; }
#scan-view { display: block; width: 100%; height: 100%; }
.scan-source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scan-frame { position: absolute; inset: 16%; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 200px #0006; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-right: 4px; }
.segmented button { display: grid; place-content: center; width: 34px; height: 30px; background: none; border: 0; color: var(--muted); }
.segmented button.active { background: #1e96eb1c; color: var(--accent); }
.segmented .icon { width: 17px; height: 17px; }
#enrichment { border-top: 1px solid var(--line); padding: 6px max(14px, calc(50% - 390px)); max-height: 40%; overflow-y: auto; font-size: 13px; color: var(--muted); }
