.web-ai-entry{white-space:nowrap;color:#1e62d8!important;background:#edf3ff!important;border-radius:12px;min-height:44px}
@media(max-width:640px){.topbar:has(.web-ai-entry){height:auto;min-height:60px;flex-wrap:wrap;gap:8px;padding:12px 16px}.topbar:has(.web-ai-entry) .workspace-title{flex:1;order:1}.topbar:has(.web-ai-entry) .demo-switch{order:2}.topbar:has(.web-ai-entry) .topbar-actions{order:3;width:100%;flex-shrink:1;margin:0;justify-content:flex-end;gap:8px}}
dialog.web-ai{position:fixed;box-sizing:border-box;width:min(760px,calc(100vw - 32px));height:min(820px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #e2e8f0;border-radius:24px;overflow:hidden;color:#1e293b;background:#fff;}
dialog.web-ai[open]{display:flex;flex-direction:column}dialog.web-ai::backdrop{background:#0e1b3580;backdrop-filter:blur(3px)}
.web-ai *{box-sizing:border-box}.web-ai button{font:inherit;border:0;border-radius:12px;padding:10px 16px;min-height:44px;cursor:pointer;background:#eff3f8;color:#34496b}.web-ai button:disabled{opacity:.55;cursor:wait}.web-ai button:focus-visible,.web-ai input:focus-visible,.web-ai textarea:focus-visible,.web-ai select:focus-visible{outline:3px solid #6a9bff;outline-offset:3px}.web-ai button.web-ai-primary{background:#2668dd;color:white;font-weight:700}
.web-ai-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 16px;flex:none}.web-ai-header span{font-size:11px;color:#5d7392;letter-spacing:.05em}.web-ai-header h2{font-size:26px;margin:7px 0 0;line-height:1.2}.web-ai-tabs{display:flex;gap:8px;padding:0 24px 16px;flex:none}.web-ai-tabs button{flex:1;padding:10px 5px;font-size:14px}.web-ai-tabs button[aria-pressed=true]{background:#e9f1ff;color:#185bd1}.web-ai-tabs button:last-child{flex:0 0 auto;font-size:12px;background:transparent;color:#66758c}
.web-ai-gate,.web-ai-summary{padding:12px 24px 24px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}.web-ai-gate h3,.web-ai-summary h3{font-size:18px;margin:12px 0}.web-ai-gate p,.web-ai-summary p{line-height:1.7;overflow-wrap:anywhere}.web-ai-gate form{display:grid;gap:18px;margin-top:24px}.web-ai-gate label,.web-ai-summary>label{display:grid;gap:8px}.web-ai input[type=password],.web-ai select,.web-ai textarea{font:inherit;font-size:16px;border:1px solid #d5deeb;border-radius:12px;padding:12px;width:100%;min-width:0;background:#fff;color:#1e293b}.web-ai-check{display:flex!important;align-items:flex-start;gap:10px!important;line-height:1.6;font-size:14px}.web-ai-check input{width:20px;height:20px;flex:0 0 auto;margin-top:2px}
.web-ai-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#f6f8fc;padding:20px 24px}.web-ai-empty{padding:45px 8px;text-align:center;color:#65728a}.web-ai-empty h3{color:#2b3d58;font-size:22px}.web-ai-empty p{line-height:1.7}.web-ai-bubble{background:#fff;border:1px solid #e5ebf4;border-radius:18px;padding:14px 18px;max-width:92%;width:fit-content;margin-bottom:16px}.web-ai-bubble.user{margin-left:auto;background:#eaf2ff;border-color:#dce8ff}.web-ai-bubble strong{font-size:12px;color:#5d7392}.web-ai-bubble p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.web-ai-compose{display:flex;align-items:flex-end;gap:10px;padding:14px 22px 8px;flex:none}.web-ai-compose textarea{flex:1;resize:none;min-height:68px;max-height:110px}.web-ai-compose button{flex:0 0 auto}.web-ai-note{padding:0 22px 8px;margin:0;font-size:12px;color:#66758c;line-height:1.5;flex:none;overflow-wrap:anywhere}.web-ai-gate .web-ai-note{padding:18px 0 0}.web-ai-footer{padding:0 22px 14px;flex:none}.web-ai-footer p{font-size:13px;margin:0;line-height:1.5;overflow-wrap:anywhere}.web-ai-footer button{margin-top:8px}.web-ai-source{background:#f6f8fc;border:1px solid #e2e9f4;padding:16px;border-radius:16px;margin:18px 0}.web-ai-source strong{display:block;margin-top:12px;font-size:13px}.web-ai-source p,.web-ai-result p{white-space:pre-wrap;overflow-wrap:anywhere}.web-ai-result{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:12px}.web-ai-result li{line-height:1.7;overflow-wrap:anywhere}.web-ai-result>button{margin-top:16px}.web-ai-result details{margin:12px 0}.web-ai-summary button{white-space:normal;width:100%}
@media(max-width:700px){dialog.web-ai{margin:0;inset:0;width:100%;height:100dvh;border-radius:0;border:0}.web-ai-header{padding:18px 16px 14px}.web-ai-header h2{font-size:24px}.web-ai-tabs{padding:0 16px 12px;gap:6px}.web-ai-tabs button{font-size:13px}.web-ai-history{padding:16px}.web-ai-bubble{max-width:96%;padding:14px 16px}.web-ai-compose{padding:12px 12px 6px;gap:8px}.web-ai-compose button{padding:12px}.web-ai-note{padding:0 14px 8px;font-size:11px}.web-ai-footer{padding:0 14px max(12px,env(safe-area-inset-bottom))}.web-ai-gate,.web-ai-summary{padding:10px 18px 24px}.web-ai-entry{padding:8px 10px!important}}
