.chat-modal{height:min(880px,94dvh);display:flex;flex-direction:column;gap:8px;padding-bottom:20px}.chat-modal>.section-heading{flex-shrink:0;margin-bottom:0}.chat-modal>.muted{margin-top:-5px}.chat-log{flex:1;min-height:130px;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;scroll-behavior:smooth}.chat-message{margin:0 0 13px;max-width:92%;display:flex;flex-direction:column;align-items:flex-start}.chat-message>span{font-size:10px;color:var(--muted);margin:0 4px 3px}.chat-message p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;border-radius:3px 15px 15px;background:white;border:1px solid var(--line);line-height:1.7}.chat-message.user{margin-left:auto;align-items:flex-end}.chat-message.user p{background:#e0eddf;border-color:#d2e2ce;border-radius:15px 3px 15px 15px}.chat-preview{margin:0 0 10px}.chat-preview img{max-height:300px;width:auto;max-width:100%;margin:auto}.chat-transactions{flex-shrink:0;max-height:155px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff}.chat-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;padding:9px 10px;border-bottom:1px solid var(--line)}.chat-row:last-child{border-bottom:0}.chat-row.focused{background:#edf3e8}.chat-row>button{text-align:left;min-width:0;padding:0}.chat-row strong{font-weight:550;font-size:12px;display:block;overflow-wrap:anywhere}.chat-row small{display:block;font-size:10px;color:var(--muted)}.chat-row .row-memory{grid-column:2;font-size:10px;overflow-wrap:anywhere;align-items:flex-start}.chat-row .row-memory input{width:15px;height:15px}.chat-question{background:#eaf0e6;border-radius:12px;padding:10px 12px;flex-shrink:0;max-height:190px;overflow-y:auto}.chat-question>p{font-size:12px}.chat-categories{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.chat-categories .secondary{font-size:11px;min-height:30px;border-radius:20px;padding:5px 9px}.modal .chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0;flex-shrink:0}.chat-composer textarea{resize:none;font-size:16px;min-height:58px;max-height:100px;padding:8px 10px}.chat-composer .primary{margin:0!important;align-self:stretch;padding:10px 14px}.chat-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}.chat-tools>.primary{margin-left:auto}.chat-tools>.primary,.chat-tools>.secondary{font-size:12px;min-height:38px;padding:8px 10px}.chat-tools .quiet{font-size:11px}.chat-modal>.hint{font-size:10px;margin:0}.chat-modal>.quiet{align-self:flex-start;padding:0 4px;font-size:11px}.chat-modal>.form-error{margin:0}.chat-modal .notice{margin:0}.memory-row small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:480px){.chat-modal{height:96dvh;max-height:96dvh;gap:7px;padding:16px 12px calc(12px + env(safe-area-inset-bottom))}.chat-modal>.section-heading h2{font-size:17px}.chat-log{min-height:100px}.chat-transactions{max-height:130px}.chat-question{max-height:170px;padding:9px}.chat-modal>.hint{font-size:9px}}@media(max-height:640px){.chat-modal{overflow-y:auto}.chat-log{flex:none;max-height:160px;min-height:80px}.chat-transactions{max-height:95px}.chat-question{max-height:135px}}
