.manual-ai{margin:0 0 24px;border:1px solid #c7bfe7;border-radius:18px;background:var(--surface);box-shadow:0 8px 30px #4b38780b;overflow:hidden}.manual-ai:not([data-started=true]){border-color:transparent;background:transparent;box-shadow:none}.mai-head{display:flex;align-items:center;gap:4px;padding:32px 24px 20px}.mai-head h2{flex:1;min-width:0;margin:0;font-size:27px;line-height:1.4;text-align:center}.mai-toolbar{display:flex;align-items:center;flex-shrink:0}.manual-ai[data-started=true] .mai-head{padding:12px 16px;border-bottom:1px solid var(--line)}.manual-ai[data-started=true] .mai-head h2{font-size:18px;text-align:left}.manual-ai button,.mai-login{font:inherit;font-size:14px;line-height:1.5;min-height:44px;border-radius:10px;border:1px solid var(--line);padding:8px 12px;background:#fff;color:var(--act);cursor:pointer;text-decoration:none;text-align:center}.manual-ai button:hover:not(:disabled),.mai-login:hover{background:var(--act-soft)}.manual-ai button:disabled{cursor:default;opacity:.45}.manual-ai button:focus-visible,.manual-ai textarea:focus-visible,.manual-ai a:focus-visible,.manual-ai summary:focus-visible,.mai-log:focus-visible{outline:3px solid #9581e1;outline-offset:2px}.manual-ai [hidden]{display:none!important}.mai-head button{flex-shrink:0;border-color:transparent;background:transparent;padding:8px;font-size:13px}.mai-body{padding:0 24px 28px}.manual-ai[data-started=true] .mai-body{padding:0 16px 16px}.mai-auth-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:0 0 12px}.manual-ai[data-started=true] .mai-auth-row{padding-top:12px;border-bottom:1px solid var(--line)}.mai-auth{flex:1 1 240px;margin:0;font-size:14px;color:var(--ink-2);line-height:1.6}.mai-auth[data-state=unavailable],.mai-auth[data-state=forbidden]{color:#985522}.mai-login{background:var(--act)!important;color:#fff!important;border-color:var(--act)}.mai-log{height:380px;max-height:52svh;min-height:220px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:14px;padding:20px 3px 20px 0;scroll-behavior:auto}.mai-message{flex-shrink:0;max-width:88%;width:fit-content;min-width:0;padding:11px 15px;border-radius:16px;font-size:16px;line-height:1.75;overflow-wrap:anywhere}.mai-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.mai-question{align-self:flex-end;background:var(--act);color:#fff;border-bottom-right-radius:5px}.mai-answer{align-self:flex-start;background:var(--code-bg);color:var(--ink);border-bottom-left-radius:5px}.mai-thinking{color:var(--muted);font-size:14px}.mai-sources{margin-top:9px;padding-top:8px;border-top:1px solid #dcd5ed;font-size:13px;line-height:1.6}.mai-sources summary{width:fit-content;cursor:pointer;color:var(--act)}.mai-source-links{display:flex;flex-direction:column;gap:6px;margin-top:8px}.mai-source-links a{display:block;padding:4px 0;text-decoration:none;overflow-wrap:anywhere}.mai-source-links a:hover{text-decoration:underline}.mai-form{display:flex;align-items:flex-end;gap:8px;padding:7px;border:1px solid #c5bade;border-radius:25px;background:#fff;max-width:720px;margin:0 auto}.mai-form:focus-within{border-color:var(--act)}.manual-ai[data-started=true] .mai-form{max-width:none}.mai-form textarea{display:block;flex:1;min-width:0;width:100%;height:44px;min-height:44px;max-height:132px;resize:none;border:0;border-radius:18px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:24px;overflow-y:auto}.mai-form textarea:focus-visible{outline:0}.mai-form:has(textarea:focus-visible){outline:2px solid #9581e1;outline-offset:2px}.manual-ai .mai-send,.manual-ai .mai-stop{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;border:0;background:var(--act);color:#fff}.manual-ai .mai-send:hover:not(:disabled),.manual-ai .mai-stop:hover{background:#5740b5}.mai-send span{font:28px/1 system-ui}.mai-stop span{font:17px/1 system-ui}.mai-feedback:has(.mai-error:not([hidden])){padding:0 0 10px}.mai-error{margin:0 0 5px;color:#913d34;font-size:14px;line-height:1.6}.manual-ai .mai-retry{font-size:13px;min-height:36px;padding:5px 10px;background:var(--code-bg);border-color:transparent}.mai-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width:640px){.mai-head{padding:26px 12px 18px}.mai-head h2{font-size:25px}.manual-ai[data-started=true] .mai-head{padding:8px 12px}.manual-ai[data-started=true] .mai-head h2{font-size:17px}.mai-head button{font-size:12px;padding:8px 6px}.mai-body{padding:0 12px 20px}.manual-ai[data-started=true] .mai-body{padding:0 12px 12px}.mai-log{height:340px;padding-top:16px;padding-bottom:16px;gap:12px}.mai-message{max-width:92%;padding:10px 13px;font-size:16px}.mai-auth{flex-basis:100%}.mai-auth-row .mai-login,.mai-auth-row button{flex:1 1 auto}.mai-form{gap:4px;padding:5px}.mai-form textarea{padding-left:9px;padding-right:9px}}
