/* Shared ExamStudio TOEFL AI tutor, intentionally compact and monochrome. */
.esc-chat-root{position:fixed;right:18px;bottom:max(18px,env(safe-area-inset-bottom));z-index:6000;font:inherit;color:#26363a}
.esc-chat-root *{box-sizing:border-box}
.esc-chat-launcher{border:1px solid #cdd9d6;border-radius:999px;background:#143c39;color:#fff;box-shadow:0 5px 22px #143c3928;min-width:54px;height:45px;padding:0 16px;font-size:13px;font-weight:650;cursor:pointer}
.esc-chat-launcher:hover{background:#0d302d}
.esc-chat-launcher:focus-visible,.esc-chat-root button:focus-visible,.esc-chat-root textarea:focus-visible{outline:2px solid #367b74;outline-offset:2px}
.esc-chat-panel{width:min(354px,calc(100vw - 24px));height:min(520px,calc(75dvh - 24px));min-height:300px;max-height:calc(100dvh - 110px);margin-bottom:12px;border:1px solid #d9e2e1;border-radius:16px;background:#fff;box-shadow:0 10px 42px #243e3c2b;overflow:hidden;display:flex;flex-direction:column}
.esc-chat-panel[hidden]{display:none!important}
.esc-chat-head{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#f8faf9;border-bottom:1px solid #e6ebea}
.esc-chat-head strong{font-size:14px;color:#153c39;font-weight:700}
.esc-chat-close{border:0;background:transparent;font:inherit;color:#486260;font-size:26px;padding:0 7px;cursor:pointer;line-height:1}
.esc-chat-feed{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;display:flex;flex-direction:column;gap:10px}
.esc-chat-message{display:flex;max-width:97%}
.esc-chat-message.user{align-self:flex-end}
.esc-chat-message.assistant{align-self:flex-start}
.esc-chat-bubble{background:#f1f5f4;border:1px solid #ebefee;border-radius:12px;padding:9px 11px;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#243536}
.esc-chat-message.user .esc-chat-bubble{background:#e9f3f0;border-color:#d5e6e1}
.esc-chat-notice{margin:0;font-size:12px;color:#7a5f4d;text-align:center;line-height:1.55}
.esc-chat-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 10px 5px;border-top:1px solid #f1f4f3;scrollbar-width:thin}
.esc-chat-quick button{flex:none;background:white;border:1px solid #dce6e4;border-radius:99px;color:#4c6764;padding:6px 9px;font-size:11px;cursor:pointer;white-space:nowrap}
.esc-chat-quick button:hover{background:#f5f9f8}
.esc-chat-form{display:flex;flex-direction:column;gap:6px;padding:8px 10px 6px;min-width:0}
.esc-chat-form textarea{flex:1;min-width:0;resize:vertical;max-height:110px;min-height:42px;border:1px solid #d6e0de;border-radius:10px;background:#fff;padding:9px 10px;font-size:13px;font-family:inherit;line-height:1.4;color:#263b39}
.esc-chat-send{flex:none;border:none;border-radius:9px;padding:11px 12px;min-height:42px;background:#24554f;color:white;font-size:12px;font-weight:650;cursor:pointer}
.esc-chat-send:disabled{opacity:.55;cursor:not-allowed}
.esc-chat-status{font-size:10px;line-height:1.4;color:#748987;min-height:19px;padding:0 11px 7px}
@media(max-width:620px){
 .esc-chat-root{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
 .esc-chat-launcher{height:42px;padding:0 13px;font-size:12px}
 .esc-chat-panel{width:min(355px,calc(100vw - 24px));height:min(480px,65dvh);max-height:calc(100dvh - 92px);margin-bottom:9px}
 .esc-chat-feed{padding:10px}
}
/* Compact image composer, drag/drop, and one-image preview. */
.esc-chat-composer{display:flex;align-items:end;gap:7px;width:100%;min-width:0}
.esc-chat-attach{flex:none;display:grid;place-items:center;width:38px;height:42px;border:1px solid #d4e0dc;border-radius:9px;background:#f7faf9;color:#27615a;font-size:23px;line-height:1;cursor:pointer}
.esc-chat-attach:hover{background:#edf6f3}
.esc-chat-attach:disabled{opacity:.5;cursor:not-allowed}
.esc-chat-file-input{display:none!important}
.esc-chat-preview[hidden]{display:none!important}
.esc-chat-preview{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;background:#f7faf9;border:1px solid #dce7e3;border-radius:10px;min-height:60px}
.esc-chat-preview img{width:53px;height:47px;object-fit:contain;background:white;border:1px solid #e0e5e4;border-radius:5px}
.esc-chat-preview-info{min-width:0;flex:1;font-size:11px;color:#526663;line-height:1.5}
.esc-chat-remove{border:0;background:transparent;color:#647b78;font-size:22px;line-height:1;padding:5px 8px;cursor:pointer}
.esc-chat-message-photo{display:block;max-width:min(200px,66vw);max-height:180px;object-fit:contain;border-radius:7px;margin-bottom:6px}
.esc-chat-message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.esc-chat-drag-over{outline:2px dashed #35796e;outline-offset:-6px;background:#f6faf8}
@media(prefers-reduced-motion:reduce){.esc-chat-root *{scroll-behavior:auto!important}}
