.forum-main:has(.chat-page){width:100%;max-width:none;padding:1rem 1.25rem}.chat-bubble{border-radius:var(--fc-radius);word-break:break-word;white-space:pre-wrap;max-width:92%;box-shadow:var(--fc-shadow);margin:.5rem .75rem;padding:.6rem .95rem;line-height:1.55}.chat-bubble pre{border:1px solid var(--fc-border);background:#0000000f;border-radius:8px;margin:.5rem 0;padding:.7rem .8rem;font-size:.85rem;overflow-x:auto}[data-theme=dark] .chat-bubble pre{background:#ffffff12}.chat-bubble code{font-family:ui-monospace,Consolas,monospace}.chat-bubble :not(pre)>code{border:1px solid var(--fc-border);background:#0000000f;border-radius:4px;padding:.05rem .3rem;font-size:.88em}[data-theme=dark] .chat-bubble :not(pre)>code{background:#ffffff14}.chat-bubble.assistant{white-space:normal}.chat-bubble.assistant h2,.chat-bubble.assistant h3,.chat-bubble.assistant h4{margin:.6rem 0 .3rem;line-height:1.3}.chat-bubble.assistant h2{font-size:1.1rem}.chat-bubble.assistant h3{font-size:1.02rem}.chat-bubble.assistant h4{font-size:.95rem}.chat-bubble.assistant ul,.chat-bubble.assistant ol{margin:.3rem 0;padding-left:1.4rem}.chat-bubble.assistant li{margin:.15rem 0}.chat-bubble.assistant blockquote{border-left:4px solid var(--fc-accent);background:#6366f114;border-radius:0 6px 6px 0;margin:.5rem 0;padding:.3rem .8rem}[data-theme=dark] .chat-bubble.assistant blockquote{background:#ffffff0f}.chat-bubble.assistant table{border-collapse:collapse;border:2px solid var(--fc-border);border-radius:8px;width:auto;max-width:100%;margin:.6rem 0;font-size:.88rem;display:table;overflow:hidden}.chat-bubble.assistant th,.chat-bubble.assistant td{border:1px solid var(--fc-border);text-align:left;padding:.45rem .75rem}.chat-bubble.assistant th{background:var(--fc-accent);color:#fff;white-space:nowrap;font-weight:600}.chat-bubble.assistant tbody tr:nth-child(2n) td{background:#00000009}[data-theme=dark] .chat-bubble.assistant tbody tr:nth-child(2n) td{background:#ffffff0d}.chat-bubble.assistant a{color:var(--fc-accent);text-decoration:underline}.chat-bubble.assistant hr{border:none;border-top:1px solid var(--fc-border);margin:.6rem 0}.chat-bubble.user{background:var(--fc-accent);color:#fff;margin-left:auto}.chat-bubble.assistant{background:var(--fc-bg-card);border:1px solid var(--fc-border);color:var(--fc-text);margin-right:auto}.chat-bubble img{border-radius:6px;max-width:220px;margin-top:.4rem}.chat-attach{border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm);background:var(--fc-bg-card);padding:.25rem .5rem .25rem .75rem;font-size:.8rem;position:relative}.chat-attach button{cursor:pointer;color:var(--fc-text-muted);background:0 0;border:none;padding:0 .25rem;font-size:.9rem}.chat-loading:after{content:"●●●";color:var(--fc-text-muted);animation:1.2s infinite dots}@keyframes dots{0%,30%{opacity:.2}60%{opacity:1}to{opacity:.2}}.voice-overlay{z-index:9999;backdrop-filter:blur(8px);background:#0f0f19eb;flex-direction:column;justify-content:center;align-items:center;gap:1.5rem;display:flex;position:fixed;inset:0}[data-theme=light] .voice-overlay{background:#f5f5faf2}.voice-orb{background:radial-gradient(circle at 30% 30%, var(--fc-accent), color-mix(in srgb, var(--fc-accent), #000 30%));cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;font-size:3rem;transition:transform .15s,box-shadow .15s;animation:2s infinite voice-pulse;display:flex;box-shadow:0 0 #6366f166}.voice-orb.listening{animation:.8s infinite voice-pulse;box-shadow:0 0 30px 4px #ef444480}.voice-orb.speaking{animation:1.2s infinite voice-pulse;box-shadow:0 0 30px 4px #22c55e66}@keyframes voice-pulse{0%{transform:scale(1)}50%{transform:scale(1.08)}to{transform:scale(1)}}.voice-status{color:#fff;text-align:center;font-size:1.1rem}[data-theme=light] .voice-status{color:var(--fc-text)}.voice-transcript{color:#ffffffe6;background:#ffffff1a;border:1px solid #ffffff26;border-radius:12px;width:90%;max-width:600px;max-height:200px;padding:.75rem 1rem;font-size:.95rem;line-height:1.5;overflow-y:auto}[data-theme=light] .voice-transcript{color:var(--fc-text);border-color:var(--fc-border);background:#0000000d}.voice-controls{align-items:center;gap:1rem;display:flex}.voice-btn{cursor:pointer;border:none;border-radius:24px;padding:.6rem 1.4rem;font-size:.95rem;font-weight:500;transition:opacity .15s}.voice-btn:hover{opacity:.85}.voice-btn-close{color:#fff;background:#ffffff26}[data-theme=light] .voice-btn-close{background:var(--fc-border);color:var(--fc-text)}.voice-hint{color:#ffffff80;text-align:center;font-size:.8rem}[data-theme=light] .voice-hint{color:var(--fc-text-muted)}@media (width<=640px){.chat-page{height:calc(100dvh - 130px)!important;min-height:380px!important}.forum-main:has(.chat-page){padding:.75rem}.chat-page .post-list-header{flex-wrap:wrap;gap:.5rem}.chat-page .post-list-header h1{width:100%;margin-bottom:.25rem}#model-select{flex:1;min-width:0;font-size:.8rem}.chat-bubble{max-width:100%;margin:.4rem}.chat-bubble img{max-width:100%}#chat-input{font-size:16px!important}.voice-orb{width:96px;height:96px;font-size:2.4rem}.voice-transcript{width:100%}}
