.ai-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;box-shadow:0 16px 70px #18334c45;color:#152e42;font:14px/1.6 Arial,sans-serif;overflow:auto}.ai-dialog::backdrop{background:#10293955}.ai-dialog *{box-sizing:border-box}.ai-head{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#075c8a,#149fc9);color:white}.ai-head h2{font-size:20px;margin:0}.ai-head p{font-size:12px;margin:3px 0 0;opacity:.9}.ai-close{border:0;background:#ffffff20;color:white;width:34px;height:34px;border-radius:50%;font-size:26px;cursor:pointer}.ai-body{padding:16px 20px}.ai-notice{font-size:12px;line-height:1.6;color:#607380;margin:0 0 12px}.ai-agree{margin-bottom:12px}.ai-context{font-size:12px;margin-bottom:8px}.ai-log{max-height:36dvh;min-height:100px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:2px}.ai-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;border-radius:12px;max-width:94%;text-align:start}.ai-assistant{background:#f0f6f9;align-self:flex-start}.ai-user{background:#087eb0;color:white;align-self:flex-end}.ai-status{font-size:12px;color:#087ca4;margin:8px 0}.ai-error{font-size:13px;color:#a53619;margin:8px 0}.ai-label{display:block;font-size:12px;margin:8px 0 4px}.ai-input{resize:vertical;width:100%;min-height:70px;max-height:140px;padding:10px;border:1px solid #c6d3dd;border-radius:8px;background:white;color:#152e42;font:inherit}.ai-input:focus{outline:2px solid #64bee4;outline-offset:1px}.ai-actions{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.ai-actions button{font-size:13px;padding:8px 18px;min-height:40px}.ai-dialog button:disabled{opacity:.55;cursor:wait}.ai-browse{display:inline-block;font-size:12px;margin-top:12px;text-decoration:underline}.ai-product{display:block;padding:10px;border:1px solid #cde0eb;border-radius:8px;background:#fff;color:#075c8a;text-decoration:none}.ai-product strong,.ai-product span,.ai-product small{display:block}.ai-product strong{font-size:12px;line-height:1.5}.ai-product span{font-size:14px;margin-top:4px}.ai-product small{font-size:11px}.ai-dialog [hidden]{display:none!important}@media(max-width:520px){.ai-body{padding:14px}.ai-head{padding:14px}.ai-log{max-height:34dvh}.ai-dialog{margin:auto;max-height:calc(100dvh - 16px)}}
