/* AI Studio: one page header and a chat opened deliberately at the right edge. */
.tc-atelier .ta-toolbar{padding-top:0}.tc-atelier.tc-studio{padding-top:26px}
#studioChatHost[hidden]{display:none!important}
#ambientToggle[hidden]{display:none!important}
body.ai-studio-chat-open{overflow:hidden}
.aisha-dialog.is-studio-drawer{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(480px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;max-width:none;border:1px solid #756144;border-radius:18px;box-shadow:-24px 12px 90px #0008;background:#11110e}
.aisha-dialog.is-studio-drawer::backdrop{background:#05050460;backdrop-filter:blur(1px)}
.is-studio-drawer .ash-header{padding:20px 20px 17px;background:linear-gradient(120deg,#242015,#12120f);gap:10px}
.is-studio-drawer .ash-mark{width:34px;height:34px;font-size:20px;flex-shrink:0}
.is-studio-drawer .ash-identity{gap:11px;min-width:0}.is-studio-drawer .ash-identity h2{display:block;font-size:31px}.is-studio-drawer .ash-identity h2>span{display:block;font-size:8px;letter-spacing:2px;margin-top:7px}.is-studio-drawer .ash-identity p{font-size:10px;max-width:230px}
.is-studio-drawer .ash-header-actions{gap:3px;flex-shrink:0}.is-studio-drawer .ash-header-actions button{width:42px;height:42px;border:1px solid #79654655;border-radius:9px;background:#211f1880}
.is-studio-drawer #aishaHistoryToggle{display:grid}
.is-studio-drawer .ash-history{display:none;position:absolute;inset:0 auto 0 0;width:min(300px,88%);z-index:10;background:#12120f;box-shadow:18px 0 50px #000a}.aisha-dialog.is-studio-drawer.is-history-open .ash-history{display:flex}
.is-studio-drawer .ash-thread-bar{padding:11px 20px;gap:10px}.is-studio-drawer .ash-language-bar{padding:9px 20px;gap:8px;flex-wrap:wrap}.is-studio-drawer .ash-language-bar label{font-size:10px}
.is-studio-drawer .ash-scroll{padding:16px 20px;min-height:70px}.is-studio-drawer .ash-message-body{font-size:13px;line-height:1.8}.is-studio-drawer .ash-message{padding:16px;margin-bottom:12px;border-radius:10px}
.is-studio-drawer .ash-welcome{padding:22px 0 12px}.is-studio-drawer .ash-welcome h3{font-size:37px}.is-studio-drawer .ash-welcome-copy{font-size:12px;line-height:1.8}.is-studio-drawer .ash-welcome .ash-cosmos{height:60px}.is-studio-drawer .ash-prompt-grid{grid-template-columns:1fr}
.is-studio-drawer .ash-composer{padding:12px 20px 16px;border-top:1px solid #c2a36b25;background:#151510}.is-studio-drawer .ash-composer textarea{font-size:14px;line-height:1.6;min-height:66px;max-height:160px}.is-studio-drawer .ash-send{width:42px;height:42px;border-radius:8px}.is-studio-drawer .ash-composer-meta{font-size:10px;gap:8px;line-height:1.5}
.is-studio-drawer .ash-status{padding-inline:20px}.is-studio-drawer .ash-settings,.is-studio-drawer .ash-links{display:none}.is-studio-drawer .ash-context{margin-inline:20px}.is-studio-drawer .ash-context summary{font-size:11px}
.is-studio-drawer .tc-use-idea{display:block;width:100%;text-align:left;border:1px solid #a58b5860;background:#b1935020;color:#e8cc96;padding:11px 13px;border-radius:7px;font-size:12px;margin-top:13px}
.is-studio-drawer #tcAssistant{border:1px solid #8f79503d;border-radius:9px;padding:0 12px;margin:0 0 14px;background:#b5955120}.is-studio-drawer #tcAssistant>summary{font-size:11px;line-height:1.6;padding:12px 0;cursor:pointer;color:#ccb992}
.is-studio-drawer .tc-brief{border:0;background:none;padding:6px 0 16px;margin:0}.is-studio-drawer .tc-brief h2{font-size:26px}.is-studio-drawer .tc-brief-heading{margin-bottom:10px}.is-studio-drawer .tc-brief-badge{display:none}.is-studio-drawer .tc-eyebrow{font-size:8px;letter-spacing:1.3px;color:#b9a079;margin-bottom:8px}.is-studio-drawer .tc-muted{font-size:11px;line-height:1.7;color:#ada794}.is-studio-drawer .tc-brief-grid{grid-template-columns:1fr;gap:10px}.is-studio-drawer .tc-brief-grid label{font-size:11px}.is-studio-drawer .tc-brief input,.is-studio-drawer .tc-brief select{font-size:13px;padding:10px;border-radius:6px}.is-studio-drawer .tc-brief-actions{gap:7px}.is-studio-drawer .tc-brief-actions button{font-size:11px;width:100%;padding:10px;border-radius:6px}.is-studio-drawer .tc-brief-actions .tc-primary{background:#cfb276;border-color:#cfb276;color:#15140f}.is-studio-drawer #tcBriefStatus{margin-top:12px}
.is-studio-drawer button{animation:none!important;transform:none!important}.is-studio-drawer .ash-guide{padding-inline:18px}.is-studio-drawer .ash-brief-grid{grid-template-columns:1fr}
@media(prefers-reduced-motion:no-preference){.aisha-dialog.is-studio-drawer[open]{animation:studio-chat-in .22s ease-out}@keyframes studio-chat-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}}
@media(max-width:700px){.tc-atelier.tc-studio{padding-top:18px}.aisha-dialog.is-studio-drawer{inset:var(--studio-chat-top,0px) 0 auto;margin:0;width:100vw;height:var(--studio-chat-height,100dvh);border:0;border-radius:0}.is-studio-drawer .ash-header{padding:calc(13px + env(safe-area-inset-top)) 16px 13px}.is-studio-drawer .ash-header-actions button{width:44px;height:44px}.is-studio-drawer .ash-identity h2{font-size:29px}.is-studio-drawer .ash-identity p{max-width:190px;font-size:9px}.is-studio-drawer .ash-scroll{padding-inline:16px}.is-studio-drawer .ash-thread-bar,.is-studio-drawer .ash-language-bar{padding-inline:16px}.is-studio-drawer .ash-composer{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}.is-studio-drawer .ash-composer textarea{font-size:16px;min-height:56px;max-height:100px}.is-studio-drawer .tc-brief input,.is-studio-drawer .tc-brief select{font-size:16px}.is-studio-drawer .ash-message-body{font-size:13px}.is-studio-drawer .ash-welcome{padding-top:14px}}
@media(max-height:560px){.is-studio-drawer .ash-identity p,.is-studio-drawer .ash-identity h2>span,.is-studio-drawer .ash-language-bar,.is-studio-drawer .ash-thread-bar{display:none}.is-studio-drawer .ash-header{padding-block:8px}.is-studio-drawer .ash-composer{padding-block:8px}.is-studio-drawer .ash-composer textarea{min-height:40px;max-height:70px}}
