.chat{flex-direction:column;gap:10px;display:flex}.chat-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.chat-head h2{overflow-wrap:anywhere;margin:0}.chat-refresh,.chat-older{min-height:44px;color:var(--pump-500);background:0 0;border:0;border-radius:10px;padding:8px 12px;font-weight:600}.chat-refresh{color:var(--muted);font-size:13px}.chat-older{align-self:center}.chat-picker{flex-direction:column;gap:6px;max-width:360px;font-weight:600;display:flex}.chat-log{overflow-wrap:anywhere;flex-direction:column;gap:8px;max-height:min(60vh,560px);padding:4px 2px;display:flex;overflow-y:auto}.chat-msg{border-radius:14px;max-width:min(80%,560px);padding:8px 12px;line-height:1.45}.chat-msg p{margin:0}.chat-theirs{background:var(--soft);border:1px solid var(--line);border-top-left-radius:4px;align-self:flex-start}.chat-mine{background:var(--lav-50);border:1px solid var(--lav-100);border-top-right-radius:4px;align-self:flex-end}.chat-meta{color:var(--muted);font-size:12px;margin-bottom:2px!important}.chat-meta strong{color:var(--ink);font-weight:700}.chat-composer{background:var(--surface);align-items:flex-end;gap:8px;padding-top:6px;display:flex}.chat-composer textarea{resize:vertical;box-sizing:border-box;flex:1;width:100%;min-height:48px;max-height:160px}.chat-composer .btn{flex-shrink:0}.chat-send{gap:6px}@media (max-width:767px){.chat-msg{max-width:88%}.chat-log{max-height:calc(100vh - 300px - env(safe-area-inset-bottom));max-height:calc(100dvh - 300px - env(safe-area-inset-bottom));min-height:200px;padding-bottom:12px;scroll-padding-bottom:12px}.chat-composer{border-top:1px solid var(--line);scroll-margin-bottom:calc(76px + env(safe-area-inset-bottom));gap:6px;padding:8px 0 0;position:static}.chat-send-icon{justify-content:center;width:48px;min-width:48px;min-height:48px;padding:0}.chat-send-icon .chat-send-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.chat-pending{opacity:.72}.chat-failed{opacity:1;border-color:var(--warning-line);background:var(--warning-bg)}.chat-hint{margin:0;font-size:12px}.chat-empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:20px 8px;display:flex}@media (max-width:767px){.chat-hint{display:none}}.chat-new{animation:.18s ease-out chat-in}@keyframes chat-in{0%{transform:translateY(6px)}to{transform:none}}.chat-skeleton{flex-direction:column;justify-content:flex-end;gap:10px;min-height:160px;padding:8px 2px;display:flex}.chat-skel{background:linear-gradient(90deg,var(--soft) 0%,var(--lav-50) 50%,var(--soft) 100%);background-size:200% 100%;border-radius:14px;height:44px;animation:1.2s linear infinite chat-shimmer;display:block}.chat-skel-l{border-top-left-radius:4px;align-self:flex-start}.chat-skel-r{border-top-right-radius:4px;align-self:flex-end}@keyframes chat-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.chat-new,.chat-skel{animation:none}}
