.escape-chat{max-width:850px;margin:16px auto;padding:0 16px 24px;color:#f6f3ef}.chat-heading{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #ffffff15}.chat-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#ff913c22;color:#ff913c}.chat-heading h1{font-size:22px;margin:0}.chat-heading p{margin:3px 0 0;color:#b9b8c1;font-size:13px}.chat-heading button{margin-left:auto;background:#ffffff08;color:#ffad76;border:1px solid #ffffff20;border-radius:14px;width:44px;height:44px;font-size:26px;cursor:pointer}.chat-thread{padding:24px 0;min-height:42vh}.chat-bubble{width:fit-content;max-width:88%;padding:13px 16px;border-radius:18px 18px 18px 4px;background:#282b32;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 16px}.chat-user{margin-left:auto;background:#ff913c;color:#24180f;border-radius:18px 18px 4px 18px}.chat-turn{margin:18px 0}.chat-cards{display:grid;gap:10px}.chat-card{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid #ffffff15;border-radius:16px;background:#22252b;color:inherit;text-decoration:none}.chat-card img,.chat-photo-placeholder{width:85px;height:94px;object-fit:cover;border-radius:10px;flex-shrink:0;background:#33363e}.chat-photo-placeholder{display:grid;place-items:center;color:#ffad76}.chat-card>span{min-width:0;flex:1}.chat-card strong{display:block;font-size:15px;line-height:1.4}.chat-card small{display:block;margin-top:6px;color:#c1bec7;font-size:12px;line-height:1.5}.chat-card>.icon{width:16px;flex-shrink:0}.chat-count{color:#a9a6b0;font-size:12px}.chat-more{width:100%;padding:12px;border:1px solid #ff913c66;border-radius:12px;background:#ff913c10;color:#ffbd89;cursor:pointer}.chat-composer{position:sticky;bottom:calc(82px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:10px;background:#24272e;border:1px solid #ffffff25;border-radius:20px;box-shadow:0 8px 30px #0004}.chat-composer textarea{resize:vertical;min-width:0;flex:1;background:transparent;border:0;color:#fff;font:inherit;font-size:16px;padding:6px;max-height:150px}.chat-composer button{width:44px;height:44px;border:0;border-radius:14px;background:#ff913c;color:#21180e;font-size:26px;cursor:pointer}.escape-chat button:disabled{opacity:.5;cursor:wait}.escape-chat a:focus-visible,.escape-chat button:focus-visible{outline:2px solid #ffad76;outline-offset:3px}@media(min-width:850px){.chat-composer{bottom:20px}.chat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.escape-chat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.escape-chat .chat-composer textarea:focus,.escape-chat .chat-composer textarea:focus-visible{outline:none;box-shadow:none;border:0}
.escape-chat .chat-composer:focus-within{border-color:#ffad76;box-shadow:0 0 0 1px #ffad7655,0 8px 30px #0004}
.chat-heading-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}
.chat-heading .chat-heading-actions button{margin:0;min-height:44px}
.chat-heading .chat-history-toggle{width:auto;padding:0 10px;font:inherit;font-size:12px;font-weight:650}
.chat-heading-actions [data-chat-reset]{width:38px;font-size:25px}
.chat-history{margin:16px 0;border:1px solid #ffffff1c;border-radius:18px;background:#1d2027;padding:14px;min-width:0}
.chat-history[hidden]{display:none}
.chat-history-top strong{display:block;font-size:14px;line-height:1.5}
.chat-history-top small{display:block;color:#aeb5bf;font-size:12px;margin:3px 0 12px}
.chat-history input{display:block;width:100%;padding:12px;border-radius:12px;background:#292d35;border:1px solid #ffffff20;color:#fff;font:inherit;font-size:16px;margin-bottom:8px}
.chat-history input:focus-visible{outline:2px solid #ffad76;outline-offset:2px}
.chat-history-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid #ffffff0d;padding:5px 0}
.chat-history-row:last-child{border-bottom:0}
.chat-history-row>button:first-child{flex:1;min-width:0;text-align:left;padding:10px;border-radius:10px;border:0;color:#f6f3ef;background:transparent;cursor:pointer}
.chat-history-row>button[aria-current=true]{background:#ff913c15;color:#ffc89c}
.chat-history-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.4}
.chat-history-row small{display:block;color:#aeb5bf;font-size:12px;margin-top:4px}
.chat-history-delete{width:40px;height:44px;border:0;border-radius:10px;background:transparent;color:#abaeb8;font-size:22px;cursor:pointer;flex-shrink:0}
.chat-history-empty,.chat-save-error{font-size:13px;line-height:1.5;color:#c5bec0;padding:8px 0;margin:0}
.chat-save-error{color:#ffbd89}
@media(max-width:390px){.chat-heading{gap:8px}.chat-heading p{font-size:12px;max-width:140px}.chat-avatar{width:36px;height:40px;flex-shrink:0}.chat-heading .chat-history-toggle{padding-inline:8px}}
