.chat-screen{height:calc(100dvh - var(--chat-top,240px) - var(--bottom-nav,64px));flex-direction:column;min-height:320px;display:flex}.chat-grid{border:1px solid var(--border);background:var(--card);border-radius:14px;flex:1;grid-template-columns:260px minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.chat-sidebar{border-right:1px solid var(--border);background:var(--card);min-height:0;overflow-y:auto}.chat-thread{flex-direction:column;min-height:0;display:flex}.chat-scroll{overscroll-behavior:contain;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow-y:auto}.chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--muted);border-radius:16px;max-width:85%;padding:10px 14px}.chat-bubble.mine{background:var(--primary);color:var(--primary-foreground)}.chat-bubble.stopped{background:var(--destructive);color:var(--destructive-foreground)}.chat-compose{border-top:1px solid var(--border);background:var(--card);flex-shrink:0;padding:12px}.chat-compose textarea{resize:none;min-width:0}@media (width<=639px){.chat-screen{min-height:240px}.chat-grid{grid-template-columns:minmax(0,1fr)}.chat-sidebar{border-right:0}.chat-screen.has-peer .chat-sidebar,.chat-screen:not(.has-peer) .chat-thread{display:none}.chat-bubble{max-width:92%}}
