.chat-shell{display:flex;flex-direction:column;min-height:230px;max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);background:var(--surface-solid);border:1px solid var(--line);border-radius:14px;overflow:hidden}.chat-heading{padding:12px 16px;border-bottom:1px solid var(--line);flex:none}.chat-heading h1{font-size:21px;margin:0 0 6px}.chat-heading label{display:flex;align-items:center;gap:10px;font-size:13px}.chat-heading select{flex:1;min-width:0;padding:8px}.chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:14px}.chat-bubble{max-width:78%;min-width:95px;padding:9px 12px;border-radius:14px;background:var(--soft);align-self:flex-start;overflow-wrap:anywhere}.chat-bubble.outgoing{align-self:flex-end;background:#d9ecff;color:#14283c}.chat-bubble p{margin:0;white-space:pre-wrap}.chat-meta{display:flex;justify-content:flex-end;gap:7px;font-size:10px;margin-top:5px;color:#697785}.chat-ticks{color:#66717d;font-size:14px;white-space:nowrap;letter-spacing:-4px;padding-right:4px}.chat-ticks.read{color:#008fe0}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;background:var(--surface-solid)}.chat-compose textarea{width:100%;min-height:44px;max-height:100px;margin:0;resize:none;box-sizing:border-box;font-size:16px}.chat-compose button{align-self:center;min-height:44px}.chat-compose p{grid-column:1/-1;margin:0;font-size:12px}.chat-compose p:empty{display:none}@media(max-width:600px){.chat-heading{padding:9px 12px}.chat-history{padding:10px}.chat-bubble{max-width:85%}}
