#study-chat{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:1000;color:#17263b;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}#study-chat .chat-launch{background:#152640;color:white;border:0;border-radius:30px;box-shadow:0 4px 20px #15264035;padding:14px 20px;font-weight:600}#study-chat .chat-panel{width:360px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 105px);background:#fff;border:1px solid #d9e2ef;box-shadow:0 12px 50px #15264030;border-radius:16px;overflow:auto;margin-bottom:12px;display:flex;flex-direction:column}#study-chat .chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:#152640;color:white;flex-shrink:0}#study-chat .chat-head small{display:block;font-size:11px;margin-top:5px;color:#c5d4e9}#study-chat .chat-close{background:transparent;border:0;color:white;font-size:26px;padding:0 10px;min-height:36px}#study-chat .chat-unlock{padding:18px}#study-chat p{font-size:13px;line-height:1.7}#study-chat label{display:block;font-size:13px}#study-chat input,#study-chat textarea{width:100%;border:1px solid #ccd6e5;border-radius:8px;padding:11px;font:inherit;font-size:16px;margin:8px 0 12px}#study-chat .chat-unlock button,#study-chat .chat-compose button{background:#244f99;color:white;border:0}#study-chat .chat-content{min-height:0;display:flex;flex-direction:column}#study-chat .chat-messages{min-height:140px;max-height:340px;overflow-y:auto;padding:16px;overscroll-behavior:contain}#study-chat .chat-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;padding:12px;border-radius:10px;margin-bottom:12px}#study-chat .chat-message.user{background:#eaf0fa;margin-left:25px}#study-chat .chat-message.assistant{background:#f5f7fa;margin-right:10px}#study-chat .katex-display{overflow-x:auto}#study-chat .chat-compose{padding:12px 16px;border-top:1px solid #e3e9f2}#study-chat .chat-compose textarea{resize:vertical;max-height:120px;margin-bottom:6px}#study-chat .chat-compose>div{display:flex;justify-content:space-between;align-items:center;gap:8px}#study-chat .chat-compose span{font-size:11px;color:#62738b}#study-chat .chat-question-label{font-size:12px;color:#62738b}#study-chat .chat-status{margin:0;padding:0 16px 12px;color:#85590c}#study-chat .chat-status:empty{display:none}@media(max-width:600px){#study-chat{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}#study-chat .chat-panel{width:calc(100vw - 32px)}#study-chat .chat-messages{max-height:36dvh}#study-chat .chat-launch{font-size:14px}}
#study-chat{display:flex;flex-direction:column;align-items:flex-end}#study-chat .chat-panel{order:-1}
