/* Original Miyobi AI emblem and compact, draft-only conversation panel. */
body .medical-mascot{display:grid;place-items:center;width:56px;height:56px;padding:12px;right:20px;bottom:max(20px,env(safe-area-inset-bottom));border:1px solid #ffffff55;border-radius:50%;background:#e60033;color:white;box-shadow:0 6px 22px #ae002c30;pointer-events:auto;cursor:pointer;transition:transform .2s,box-shadow .2s}
body .medical-mascot:hover{transform:translateY(-2px);box-shadow:0 9px 26px #ae002c40}body .medical-mascot:focus-visible{outline:2px solid #e60033;outline-offset:4px}.miyobi-ai-mark{display:block;width:100%;height:100%}
#study-chat{position:fixed;inset:auto 20px 90px auto;margin:0;width:min(380px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 114px);padding:0;border:1px solid #e8e0d6;border-radius:26px;background:#fffdf9;color:#24211e;z-index:80;box-shadow:0 18px 65px #38231626;overflow:auto;overscroll-behavior:contain;font-family:var(--friendly-font)}
#study-chat[open]{display:flex;flex-direction:column;animation:chat-enter .22s ease-out}#study-chat:not([open]){display:none}
.chat-heading{display:flex;gap:11px;align-items:center;flex-shrink:0;padding:20px 22px}.chat-brand-mark{width:38px;height:38px;padding:5px;color:#e60033;background:#fae9ec;border-radius:12px;flex-shrink:0}.chat-heading h2{font-size:16px;font-weight:700;line-height:1.35;margin:0;letter-spacing:-.3px!important}.chat-status{display:block;font-size:11px;color:#82766d;margin-top:3px}.chat-heading #chat-close{display:grid;place-items:center;flex:0 0 36px;margin-left:auto;min-height:36px;width:36px;padding:8px;border:0;border-radius:50%;background:transparent;color:#81776c}.chat-heading #chat-close:hover{background:#f0ece5}.chat-heading #chat-close svg{width:20px;height:20px}
.chat-body{padding:16px 24px 26px;overflow:auto;min-height:0}.chat-welcome{text-align:center}.chat-welcome h3{font-size:28px;line-height:1.18;margin:12px 0 16px}.chat-welcome p{font-size:13px;line-height:1.7;color:#82766d;margin:0}.chat-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:26px}.chat-suggestions button{min-height:40px;border:1px solid #e8e0d6;border-radius:12px;padding:10px 12px;color:#63574e;background:transparent;font-size:12px}.chat-suggestions button:hover{background:#f9e6e9;color:#b3002b;border-color:#efc4ce}
.chat-composer{padding:0 16px 16px;flex-shrink:0}.chat-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.chat-input-box{border:1px solid #e4ddd3;border-radius:20px;background:#f7f4ef;padding:12px}.chat-input-box:focus-within{border-color:#e60033;box-shadow:0 0 0 2px #e6003310}.chat-composer textarea{display:block;width:100%;resize:none;border:0;background:transparent;border-radius:0;padding:4px;min-height:66px;font:16px/1.5 var(--friendly-font);color:#29231f;outline:0}.chat-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}.chat-compose-actions #chat-copy{min-height:36px;padding:8px;border:0;border-radius:10px;font-size:11px;background:transparent;color:#796a60}.chat-compose-actions #chat-send{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:50%;background:#e60033;color:white}.chat-compose-actions button:disabled{opacity:.4;cursor:not-allowed}.chat-compose-actions svg{width:20px;height:20px}.chat-composer small{display:block;text-align:center;font-size:10px;line-height:1.5;color:#82766d;margin-top:10px}#chat-feedback{font-size:12px;text-align:center;margin:8px 0 0;color:#725047}#chat-feedback:empty{display:none}body:has(#study-chat[open]) .medical-mascot{visibility:visible}.account-onboarding #study-chat{display:none!important}
@keyframes chat-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:700px){body .medical-mascot{width:48px;height:48px;padding:10px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}#study-chat{right:12px;bottom:max(74px,calc(env(safe-area-inset-bottom) + 62px));width:calc(100vw - 24px);max-height:calc(100dvh - 100px);border-radius:22px}.chat-heading{padding:16px 18px}.chat-body{padding:10px 20px 24px}.chat-welcome h3{font-size:26px}}
@media(prefers-reduced-motion:reduce){#study-chat[open]{animation:none}body .medical-mascot{transition:none}}
