/* AceGPT v11: cohesive premium controls and reliable responsive chat scrolling. */
:root{--ace-accent:#f6c65b;--ace-highlight:rgba(246,198,91,.22)}
.studio-layout{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
.studio-main{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column;isolation:isolate;background:radial-gradient(ellipse 26% 33% at 1% 42%,rgba(255,186,65,.055),transparent 95%),radial-gradient(ellipse 21% 36% at 100% 80%,rgba(245,184,65,.065),transparent 100%),#090807}
.studio-main::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.35;background:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(to bottom,transparent,black 12%,black 85%,transparent)}
.studio-topbar{z-index:3;flex:0 0 auto;min-height:66px}
.studio-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;position:relative;z-index:1}
.studio-thread-space,.studio-thread-space.has-messages{display:flex;flex:1 1 auto;min-height:0;max-height:100%;width:min(1020px,calc(100% - 50px));padding:12px 0 14px;justify-content:unset;overflow:hidden;position:relative}
.studio-thread-space.has-messages .studio-intro{display:none!important}
.studio-thread-space.is-empty{justify-content:center;padding-bottom:3vh}
.studio-messages{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;padding:22px 13px 28px;scrollbar-width:thin;scrollbar-color:#6a5838 transparent}
.studio-bottom{position:relative;z-index:2;flex:0 0 auto;flex-shrink:0;min-height:108px;background:linear-gradient(to top,#090807 75%,rgba(9,8,7,0));padding-top:7px}
.studio-prompt{border-radius:24px!important;background:rgba(25,22,17,.95)!important;border:1px solid #52442d!important;box-shadow:0 13px 40px rgba(0,0,0,.38),0 0 26px rgba(246,198,91,.04)!important}
.studio-prompt:focus-within{border-color:#6c5c3d!important;box-shadow:0 12px 36px rgba(0,0,0,.4)!important}
.studio-prompt textarea{min-height:26px;max-height:144px;font-size:15px!important;color:#f2eee5}
.chat-entry{font-size:15px!important;line-height:1.7!important;flex:0 0 auto}
.chat-entry-name{font-size:13px!important;letter-spacing:0!important;text-transform:none!important}
.chat-entry-content{font-size:15px!important;line-height:1.68!important;max-width:100%;white-space:pre-wrap}
.studio-side-item,.studio-folder-choice,.thread-item{min-height:41px;border-radius:17px!important;transform:none!important;font-size:13px!important;transition:background .22s ease,border-color .22s ease,color .22s ease!important}
.studio-side-item:hover,.studio-folder-choice:hover,.thread-item:hover{transform:none!important;background:rgba(246,198,91,.07)!important}
.studio-side-item.active{background:rgba(246,198,91,.11)!important}
.pill-button,.v5-hero-actions .pill-button,.quick-chip,.ace-top-control,.ace-top-upgrade,.send-circle,.model-result,.ace-btn-accent,.ace-alt-button,.ace-browser-reader button,.ace-address-bar button{border-radius:999px!important;transition:background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease!important}
.pill-button:hover,.quick-chip:hover,.ace-top-control:hover,.ace-top-upgrade:hover,.ace-btn-accent:hover{transform:translateY(-1px)!important}
.pill-button:active,.quick-chip:active{transform:translateY(0)!important}
.ace-top-control{min-height:36px}
.ace-plane-send{width:42px;height:42px;background:var(--ace-accent)!important;color:#161109;border:0;box-shadow:0 6px 24px rgba(246,198,91,.18)}
.ace-plane-send:disabled{opacity:.5;filter:grayscale(.4)}
.model-result.model-locked{opacity:.62}
.model-result.model-locked .select-indicator{color:#bdab85}
.model-result.model-locked:hover{border-color:#7d5e37}
.provider-choice{min-height:40px;border-radius:14px!important}
.models-searchbox input:focus,.ace-address-bar input:focus{outline:none!important;box-shadow:none!important;border-color:#66583e!important}
.landing-nav{border-radius:0 0 16px 16px}
.landing-links{gap:5px;padding:5px;border-radius:999px;background:rgba(20,18,15,.62);border:1px solid rgba(242,203,129,.15);backdrop-filter:blur(20px)}
.landing-links a{border-radius:999px!important;font-size:13px!important;font-weight:650;min-height:38px;display:inline-flex;align-items:center;padding:8px 13px!important;color:#c8c0af;transition:background .22s ease,color .22s ease!important}
.landing-links a:hover,.landing-links a:focus-visible{color:#fff5d9;background:rgba(250,199,88,.13)}
.marketing,.v5-marketing{position:relative;isolation:isolate;overflow-x:clip}
.v5-marketing::after{content:"";position:absolute;inset:0 0 auto 0;height:90vh;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 18% 27% at 0 21%,rgba(247,191,81,.12),transparent 95%),radial-gradient(ellipse 20% 24% at 100% 60%,rgba(255,178,65,.08),transparent 90%)}
.v5-hero-actions .pill-button{min-height:43px;font-size:14px!important;padding:12px 20px!important}
.v5-feature-card{border-radius:26px!important;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease!important}
.v5-feature-card:hover{transform:translateY(-5px) rotateX(1.5deg)!important;box-shadow:0 26px 70px #0006,0 0 45px #f6b84b0d!important}
.v5-section-heading .section-kicker,.v5-steps .section-kicker,.ace-caption,.mini-kicker,.v5-eyebrow,.micro-label{font-size:12px!important;letter-spacing:.05em!important;text-transform:none!important;font-family:'DM Sans',sans-serif!important;font-weight:700!important}
.steps-grid article>span{font-size:13px!important;letter-spacing:normal!important;text-transform:none!important}
.ace-browser-view{position:relative}
.ace-browser-notice{font-size:13px!important}
.ace-locked{opacity:.43;cursor:not-allowed!important}
button:disabled{cursor:not-allowed}
@media(max-width:850px){.landing-links{border-radius:16px}.landing-links a{width:100%;justify-content:flex-start}.studio-thread-space,.studio-thread-space.has-messages{width:calc(100% - 24px)}.studio-top-actions{gap:6px}}
@media(max-width:700px){.studio-main{height:100dvh;max-height:100dvh}.studio-thread-space{padding-bottom:8px}.studio-messages{padding-left:5px;padding-right:5px}.studio-bottom{padding-bottom:env(safe-area-inset-bottom,0px)}.studio-quick-actions{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.studio-quick-actions .quick-chip{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.v5-feature-card,.pill-button,.ace-top-control{transition:none!important}.v5-feature-card:hover{transform:none!important}}

/* Legibility passes for the smallest labels. */
.model-result small{font-size:12px!important;line-height:1.4!important}.model-result strong{font-size:14px!important}.v5-floating-tag{font-size:12px!important;letter-spacing:.025em!important;font-weight:650!important;border-radius:999px!important;color:#ddcca8!important}.v5-eyebrow,.v5-trust span{font-size:13px!important}.ace-app-wordmark,.ace-workspace-tag{font-size:13px!important;letter-spacing:.02em!important}.studio-footnote{font-size:12px!important}
