:root{--aao-chat-font:Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.chat,.chat button,.chat input,.chat select,.chat textarea,.chat .bubble{font-family:var(--aao-chat-font)}
.chat .messages{font-size:16px;line-height:1.62}
.chat .bubble{font-size:16px;font-weight:400;line-height:1.62;letter-spacing:-.003em}
.chat .bubble.user{font-size:15px}
.chat .answer-body{font-size:16px;line-height:1.65;letter-spacing:-.004em}
.chat .answer-body strong,.chat .answer-body b{font-weight:700}
.chat .answer-body h1,.chat .answer-body h2,.chat .answer-body h3{font-weight:700;letter-spacing:-.02em}
.chat .answer-body pre,.chat .answer-body code,.code-studio textarea{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}
.messages .bubble.ai::before{content:""!important;display:block!important;float:none!important;width:30px!important;height:30px!important;margin:0 0 10px!important;border:0!important;border-radius:9px!important;background:#111 url("icon-192.png") center/26px 26px no-repeat!important;color:transparent!important;font-size:0!important;line-height:0!important;letter-spacing:0!important}
.messages .bubble.user::before{content:"You"!important;display:block!important;float:none!important;width:auto!important;height:auto!important;margin:0 0 8px!important;background:none!important;color:#8a6b00!important;font-size:10px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:.08em!important}
.chat .bubble.ai{padding-left:18px!important}
.chat form.composer label.attach-button,.chat form.composer label.camera-button{cursor:pointer}
.chat form.composer .attach-button input,.chat form.composer .camera-button input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.chat form.composer svg,.chat .mode-bar svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.chat form.composer svg{width:19px;height:19px}
.chat .mode-bar svg{width:14px;height:14px;flex:0 0 14px}
.chat .mode-bar{display:flex!important;align-items:center!important;gap:7px!important;max-width:900px!important;margin:0 auto 7px!important;padding:0 2px!important;min-height:32px!important}
.chat .mode-bar button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;height:32px!important;padding:6px 11px!important;margin:0!important;white-space:nowrap!important;font-size:12px!important;line-height:1!important}
.chat .mode-bar button span{display:inline!important;margin:0!important;color:inherit!important;font-size:inherit!important;line-height:1!important}
.chat form.composer{position:relative;display:flex!important;align-items:flex-end!important;gap:5px!important;max-width:900px!important;min-height:58px!important;padding:8px!important;overflow:visible!important}
.chat form.composer .attach-button,.chat form.composer .tool-button,.chat form.composer .send-button{display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;border-radius:12px!important;font-size:0!important;line-height:1!important;overflow:hidden!important}
.chat form.composer textarea{flex:1 1 auto!important;min-width:0!important;min-height:40px!important;padding:9px 8px!important;font-size:15px!important;line-height:1.45!important}
.chat .composer-wrap{z-index:12;padding-top:10px;background:linear-gradient(transparent,#fff 20%)}
.chat .composer-note{font:400 10px/1.35 var(--aao-chat-font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.code-toolbar .back-to-chat{margin-right:auto;text-decoration:none;white-space:nowrap}
.pwa-install-prompt[hidden]{display:none!important}
body>.pwa-install-prompt{position:fixed!important;inset:auto 18px 18px auto!important;z-index:10000!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;align-items:center!important;gap:11px!important;width:min(440px,calc(100vw - 36px))!important;height:auto!important;min-height:0!important;max-height:none!important;padding:11px!important;margin:0!important;border:1px solid #dfd7c5!important;border-radius:16px!important;background:#111214!important;color:#fff!important;box-shadow:0 18px 55px rgba(0,0,0,.24)!important;overflow:visible!important}
body>.pwa-install-prompt img{width:34px!important;height:34px!important;object-fit:contain!important;margin:0!important}
body>.pwa-install-prompt div{display:grid!important;gap:2px!important;min-width:0!important}
body>.pwa-install-prompt b{font:700 13px/1.25 var(--aao-chat-font)!important;color:#fff!important}
body>.pwa-install-prompt span{display:block!important;font:400 11px/1.35 var(--aao-chat-font)!important;color:#c9c9c9!important}
body>.pwa-install-prompt button{position:static!important;width:auto!important;height:34px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:10px!important;font:700 12px/1 var(--aao-chat-font)!important;cursor:pointer!important}
body>.pwa-install-prompt .pwa-install{background:#efc83e!important;color:#111!important}
body>.pwa-install-prompt .pwa-close{order:4;width:32px!important;padding:0!important;background:#292a2d!important;color:#fff!important;font-size:17px!important}
@media(max-width:700px){.chat .messages{padding:16px 10px 172px!important}.chat .bubble{font-size:15px;line-height:1.6}.chat .answer-body{font-size:15px;line-height:1.62}.chat .bubble.user,.chat .bubble.ai{margin-left:3px!important;margin-right:3px!important;padding:13px 14px!important}.chat .mode-bar{gap:5px!important;overflow:visible!important}.chat .mode-bar button{height:30px!important;padding:5px 8px!important;font-size:11px!important}.chat #modeStatus{display:none!important}.chat form.composer{gap:3px!important;min-height:54px!important;padding:7px 6px!important;border-radius:20px!important}.chat form.composer .attach-button,.chat form.composer .tool-button,.chat form.composer .send-button{display:grid!important;flex-basis:36px!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;border-radius:11px!important}.chat form.composer textarea{padding:7px 5px!important;font-size:15px!important}.chat .camera-button{display:grid!important}.chat .composer-wrap{padding:8px 8px calc(9px + env(safe-area-inset-bottom))!important}.chat .composer-note{font-size:9px!important}body>.pwa-install-prompt{inset:auto 10px 10px 10px!important;width:auto!important;grid-template-columns:auto minmax(0,1fr) auto!important;padding:10px!important;border-radius:15px!important}body>.pwa-install-prompt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body>.pwa-install-prompt .pwa-close{position:absolute!important;right:5px!important;top:-38px!important;box-shadow:0 4px 18px rgba(0,0,0,.18)!important}}
@media(max-width:390px){.chat form.composer .attach-button,.chat form.composer .tool-button,.chat form.composer .send-button{flex-basis:34px!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important}.chat form.composer textarea{font-size:14px!important}.chat .mode-bar button{padding:5px 7px!important}}

/* V31 responsive workspace, compact history and practical tools */
.chat-shell{grid-template-columns:280px minmax(0,1fr)!important}
.threads{padding:12px 10px!important}
.threads-top{padding-bottom:8px!important}
.threads .brand{margin:0 4px 10px!important;gap:8px!important}
.threads .brand img{width:42px!important;height:30px!important;object-fit:contain!important}
.threads .brand b{font-size:13px!important;line-height:1.2!important}
.threads .new-chat{min-height:40px!important;border-radius:11px!important;font-size:13px!important}
.threads .workspace-links{gap:6px!important;margin-top:7px!important}
.threads .workspace-links a,.threads .workspace-links button{min-height:34px!important;padding:8px!important;font-size:11px!important}
.sidebar-tools{margin-top:9px;padding:10px;border:1px solid #302d27;border-radius:12px;background:#1a1a1a}
.sidebar-tools>b{display:block;margin-bottom:7px;color:#aaa;font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.sidebar-tools>div{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.sidebar-tools a{display:flex;align-items:center;min-height:31px;padding:6px 7px;border-radius:8px;background:#242424;color:#eee;font-size:10.5px;line-height:1.2;text-decoration:none}
.sidebar-tools a:hover{background:#302a1a;color:#f2ce58}
.sidebar-tools .remove-bg-link{color:#f2ce58;border:1px solid #4b4023}
.history-label{display:flex!important;justify-content:space-between;align-items:center;padding:12px 7px 6px!important}
.history-label small{color:#777;font-size:9px;text-transform:none;letter-spacing:0}
.thread{min-height:38px!important;gap:2px!important;padding:2px 3px!important;margin:1px 0!important;border:1px solid transparent}
.thread.current{border-color:#38342b!important;background:#272727!important}
.thread>a{min-width:0;padding:8px 7px!important;font-size:12px!important;line-height:1.25!important}
.thread-actions{display:flex;align-items:center;opacity:0;transition:opacity .15s}
.thread:hover .thread-actions,.thread.current .thread-actions,.thread:focus-within .thread-actions{opacity:1}
.thread-actions form{margin:0!important}
.thread-actions button{display:grid;place-items:center;width:25px!important;height:25px!important;padding:0!important;border-radius:7px!important;color:#aaa!important;font-size:13px!important}
.thread-actions button:hover{background:#3a3a3a!important;color:#fff!important}
.answer-actions{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important}
.answer-actions>button,.answer-actions summary{min-height:30px!important;padding:6px 10px!important;border:1px solid #e4dfd5!important;background:#f7f5f1!important;color:#4d4638!important;font-size:11px!important;font-weight:650!important}
.answer-actions>button:hover,.answer-actions summary:hover{border-color:#cdb15b!important;background:#fffaf0!important}
.remove-bg-feature{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 20px;padding:18px 20px;border:1px solid #dfbd4c;border-radius:16px;background:linear-gradient(135deg,#fff9df,#fff)}
.remove-bg-feature div{display:grid;gap:5px}.remove-bg-feature b{font-size:18px}.remove-bg-feature span{max-width:720px;color:#625b4d;line-height:1.5}.remove-bg-feature button{white-space:nowrap}
@media(min-width:1500px){.chat-shell{grid-template-columns:300px minmax(0,1fr)!important}.chat .messages{padding-left:max(6vw,80px)!important;padding-right:max(6vw,80px)!important}.chat .bubble.ai{max-width:980px!important}}
@media(max-width:1100px) and (min-width:801px){.chat-shell{grid-template-columns:250px minmax(0,1fr)!important}.sidebar-tools>div{grid-template-columns:1fr}.chat .messages{padding-left:3vw!important;padding-right:3vw!important}.chat-tools .badge{display:none}}
@media(max-width:800px){.threads{width:min(88vw,330px)!important;inset:0 auto 0 0!important;padding:12px 10px!important;box-shadow:18px 0 55px #0005}.chat-history-open::after{content:"";position:fixed;inset:0;background:#0007;z-index:45}.chat-history-open .threads{z-index:50}.thread-actions{opacity:1}.remove-bg-feature{align-items:stretch;flex-direction:column;padding:16px}.remove-bg-feature button{width:100%;white-space:normal}.chat-head{gap:8px}.chat-head>#chatTitle{max-width:40vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-tools{gap:5px}.image-mode-link{display:none!important}}
@media(max-width:520px){.sidebar-tools>div{grid-template-columns:1fr 1fr}.chat .messages{padding-left:7px!important;padding-right:7px!important}.chat .bubble{max-width:100%!important}.chat .bubble.user{max-width:92%!important}.answer-actions{opacity:1!important}.answer-actions>button,.answer-actions summary{padding:6px 8px!important}.remove-bg-feature b{font-size:16px}}

/* V32 front-door tools: complete catalog in the main workspace */
aside nav .featured-nav{border:1px solid #5a4820;background:#241f13;color:#f1cb49!important}
.sidebar-tools .all-tools-link{grid-column:1/-1;justify-content:center;background:#332b18!important;color:#f3ce53!important;font-weight:750}
.tool-home{position:static!important;transform:none!important;width:min(1100px,100%)!important;max-width:1100px!important;margin:0 auto!important;padding:30px 0 150px!important;text-align:center!important}
.tool-home>p{max-width:760px;margin:8px auto 18px}
.front-tool-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 12px;padding-top:18px;border-top:1px solid #ebe5d9;text-align:left}
.front-tool-head b{font-size:17px}.front-tool-head a{color:#8a6500;font-size:13px;font-weight:700;text-decoration:none}
.front-tool-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left}
.front-tool-groups>section{min-width:0;padding:14px;border:1px solid #e4ddce;border-radius:16px;background:#fbfaf7}
.front-tool-groups h2{margin:0 0 10px;font-size:14px;letter-spacing:-.01em}
.front-tool-groups section>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.front-tool-groups a{display:flex;align-items:center;gap:9px;min-width:0;min-height:58px;padding:9px;border:1px solid #e7e1d6;border-radius:11px;background:#fff;color:#171717;text-decoration:none;transition:.15s}
.front-tool-groups a:hover{border-color:#d0ad3e;box-shadow:0 7px 18px #0000000c;transform:translateY(-1px)}
.front-tool-groups a>span:last-child{display:grid;gap:2px;min-width:0}.front-tool-groups a b{font-size:12px;line-height:1.2}.front-tool-groups a small{color:#706b62;font-size:10px;line-height:1.3}
.tool-symbol{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#111;color:#efc83e;font-size:11px;font-weight:800}
@media(max-width:1000px){.front-tool-groups{grid-template-columns:1fr}.front-tool-groups section>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tool-home{padding:18px 2px 155px!important}.tool-home>.mark{width:44px!important;height:44px!important}.tool-home>h1{font-size:25px!important}.front-tool-head{align-items:flex-start;flex-direction:column;margin-top:22px}.front-tool-groups{gap:10px}.front-tool-groups>section{padding:11px}.front-tool-groups section>div{grid-template-columns:1fr}.front-tool-groups a{min-height:54px}.front-tool-groups a small{font-size:10px}}
