#ace-partner-assistant{position:fixed;z-index:1100;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));font-family:inherit;color:#17212f}
#ace-partner-assistant[hidden]{display:none!important}
.ace-ai-launch{display:flex;align-items:center;gap:12px;width:252px;max-width:calc(100vw - 32px);border:1px solid #435e80;background:#101e32;color:white;border-radius:12px;padding:13px 16px;box-shadow:0 5px 22px #0003;font-family:inherit;text-align:left;cursor:pointer}
.ace-ai-launch[hidden]{display:none!important}.ace-ai-launch-icon{font-size:23px;color:#b3d4ff}.ace-ai-launch-copy{display:flex;flex:1;flex-direction:column;gap:3px}.ace-ai-launch-copy strong{font-size:13px;font-weight:600}.ace-ai-launch-copy small{font-size:11px;color:#b9cbe1}.ace-ai-launch-chevron{font-size:20px;color:#b3d4ff}
.ace-ai-panel{position:absolute;bottom:0;right:0;width:392px;max-width:calc(100vw - 32px);height:min(620px,calc(100dvh - 40px));background:#fff;border:1px solid #d8e0e8;border-radius:20px;box-shadow:0 18px 70px #08152740;display:flex;flex-direction:column;overflow:hidden}
.ace-ai-panel header{padding:16px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5eaf0;background:#f6f8fb;flex-shrink:0}
.ace-ai-panel header strong{font-size:15px}.ace-ai-panel header small{display:block;font-size:11px;color:#617187;margin-top:3px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ace-ai-tools{display:flex;gap:3px}.ace-ai-tools button{width:30px;height:30px;border:0;background:transparent;border-radius:8px;font-size:22px;color:inherit;cursor:pointer}
.ace-ai-tools .ace-ai-minimize{display:flex;align-items:center;gap:4px;width:auto;padding:0 6px;font-size:11px}.ace-ai-minimize span:first-child{font-size:22px}.ace-ai-tools button:hover{background:#e7edf5}.ace-ai-messages{padding:18px 16px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;display:flex;flex-direction:column;gap:18px}
.ace-ai-welcome{text-align:left;padding:14px 4px 4px}.ace-ai-mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eef4fc;color:#36669c;font-size:25px}.ace-ai-welcome h3{font-size:19px;margin:15px 0 9px;line-height:1.3}.ace-ai-welcome p{font-size:13px;color:#617187;line-height:1.6;margin-bottom:18px}.ace-ai-welcome button{display:block;width:100%;padding:11px 12px;margin:8px 0;border:1px solid #dce4ee;border-radius:10px;background:#fafbfd;color:inherit;text-align:left;font-size:12px;cursor:pointer}
.ace-ai-message{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.ace-ai-message>div{white-space:pre-wrap}.ace-ai-message>small{display:block;font-size:10px;color:#66788d;margin-bottom:5px}.ace-ai-message.from-user{align-self:flex-end;max-width:92%;padding:10px 13px;border-radius:13px 13px 3px 13px;background:#edf3fb}.ace-ai-message.from-assistant{max-width:100%}
.ace-ai-compose{display:flex;align-items:flex-end;gap:8px;margin:0 14px;padding:8px 8px 8px 12px;border:1px solid #cad5e2;border-radius:13px;background:#fff;flex-shrink:0}.ace-ai-compose textarea{resize:none;border:0!important;box-shadow:none!important;background:transparent!important;color:inherit;min-height:42px;max-height:100px;width:100%;padding:3px 0;font:inherit;font-size:13px;line-height:1.5}.ace-ai-compose button{background:#1c3859;border:0;color:#fff;border-radius:9px;width:34px;height:34px;flex-shrink:0;font-size:22px;cursor:pointer}.ace-ai-footnote{font-size:10px;line-height:1.5;text-align:center;color:#718096;margin:8px 12px 12px;flex-shrink:0}.ace-ai-thinking{font-size:12px;color:#60748c}.ace-ai-error{font-size:12px;line-height:1.5;color:#a12f29;background:#fff1ef;margin:0 14px 10px;padding:10px;border-radius:8px;max-height:100px;overflow:auto}
.ace-ai-review{padding:13px;border:1px solid #bbcee6;background:#f6f9fd;border-radius:13px;font-size:12px}.ace-ai-review>p{font-size:10px;color:#60748c;margin:5px 0 14px}.ace-ai-change{padding:11px 0;border-top:1px solid #dce5f0}.ace-ai-change b{display:block;overflow-wrap:anywhere}.ace-ai-change small{display:block;margin:7px 0 2px;color:#617187}.ace-ai-change pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 inherit;margin:0;background:#eaf0f7;padding:7px;border-radius:6px}.ace-ai-change p{font-size:10px;line-height:1.6;margin-top:8px}.ace-ai-review-actions{display:flex;gap:8px;margin-top:12px}.ace-ai-review-actions .btn{font-size:11px;padding:9px 11px;min-height:36px}.ace-ai-links{display:flex;gap:6px;flex-wrap:wrap}.ace-ai-links a{border:1px solid #c9d6e7;border-radius:8px;padding:7px 10px;font-size:12px;color:#315f94}.ace-ai-panel button:disabled{opacity:.5;cursor:wait}.ace-ai-panel button:focus-visible,.ace-ai-launch:focus-visible,.ace-ai-panel a:focus-visible{outline:2px solid #3984d8;outline-offset:3px}
:root[data-theme=dark] #ace-partner-assistant{color:#e2eaf4}:root[data-theme=dark] .ace-ai-panel{background:#121d2b;border-color:#334357}:root[data-theme=dark] .ace-ai-panel header{background:#192638;border-color:#334357}:root[data-theme=dark] .ace-ai-compose{background:#192638;border-color:#41536a}:root[data-theme=dark] .ace-ai-welcome button,:root[data-theme=dark] .ace-ai-message.from-user,:root[data-theme=dark] .ace-ai-review,:root[data-theme=dark] .ace-ai-change pre,:root[data-theme=dark] .ace-ai-mark{background:#203249;border-color:#3b506c;color:#e3edfa}:root[data-theme=dark] .ace-ai-change{border-color:#3b506c}:root[data-theme=dark] .ace-ai-panel small,:root[data-theme=dark] .ace-ai-welcome p,:root[data-theme=dark] .ace-ai-review>p,:root[data-theme=dark] .ace-ai-footnote,:root[data-theme=dark] .ace-ai-thinking{color:#a4b5cb}:root[data-theme=dark] .ace-ai-links a{color:#a6ccff}:root[data-theme=dark] .ace-ai-error{background:#412622;color:#ffb8ae}
@media(max-width:600px){#ace-partner-assistant{right:12px;bottom:calc(78px + env(safe-area-inset-bottom))}.ace-ai-launch{width:224px;padding:10px 13px}.ace-ai-panel{bottom:0;width:calc(100vw - 24px);max-width:420px;height:min(600px,calc(100dvh - 102px - env(safe-area-inset-bottom)));border-radius:16px}.ace-ai-compose textarea{font-size:16px}.ace-ai-panel header small{max-width:160px}}

.ace-ai-scope{display:flex;flex-direction:column;gap:5px;padding:10px 16px;border-bottom:1px solid #dce4ee;font-size:11px;flex-shrink:0}.ace-ai-scope select{width:100%;font:inherit;font-size:13px;color:inherit;background:transparent;border:1px solid #bccbdb;border-radius:8px;padding:7px}.ace-ai-scope small{color:#617187;font-size:10px}:root[data-theme=dark] .ace-ai-scope{border-color:#334357}:root[data-theme=dark] .ace-ai-scope select{background:#192638;border-color:#41536a}

.ace-ai-reviewed{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;margin:14px 0}.ace-ai-reviewed input{flex-shrink:0;margin-top:4px}.ace-ai-review details{margin:12px 0}.ace-ai-review summary{cursor:pointer;font-weight:600}.ace-ai-review details pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.ace-ai-review li{margin-bottom:10px}.ace-ai-review code{overflow-wrap:anywhere;white-space:pre-wrap}.ace-ai-attachment,.ace-ai-attached{margin:0 15px 8px;font-size:11px;overflow-wrap:anywhere}.ace-ai-attachment{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#edf3fb;border-radius:8px;padding:8px}.ace-ai-attachment button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:20px}.ace-ai-compose .ace-ai-attach{background:#edf3fb;color:#1c3859}.ace-ai-panel button:disabled{opacity:.5;cursor:not-allowed}
