/* Phase 23.1: Aano original visual system. Loaded last; no application logic. */
:root { --p23-bg:#f7f9fc; --p23-surface:#fff; --p23-side:#f1f5fa; --p23-text:#132642; --p23-muted:#63738b; --p23-line:#dce4ee; --p23-blue:#245fca; --p23-tint:#e8f0ff; --p23-shadow:0 12px 32px #133b7910; }
:root[data-aano-color="dark"] { --p23-bg:#101826; --p23-surface:#182435; --p23-side:#131e2e; --p23-text:#eef4ff; --p23-muted:#a6b6cc; --p23-line:#334359; --p23-blue:#3275de; --p23-tint:#263c59; --p23-shadow:0 12px 32px #0003; }
html body { background:var(--p23-bg)!important; color:var(--p23-text)!important; }
html body #workspace.shell:not([hidden]) { display:grid!important; grid-template-columns:var(--aano-sidebar-width,248px) minmax(0,1fr)!important; width:100%; height:100dvh!important; overflow:hidden!important; background:var(--p23-bg)!important; }
html body #workspace.shell>aside { background:var(--p23-side)!important; border-right:1px solid var(--p23-line)!important; padding:20px 14px 14px!important; box-shadow:none!important; gap:6px!important; min-width:0!important; color:var(--p23-text)!important; }
html body #workspace.shell>aside .brand { font-size:20px!important; color:var(--p23-text)!important; padding:6px 4px 14px!important; gap:9px!important; margin:0!important; }
html body #workspace.shell>aside #newChat { margin:6px 0 12px!important; width:100%!important; min-height:43px!important; border:0!important; border-radius:10px!important; background:var(--p23-blue)!important; color:#fff!important; font-size:14px!important; text-align:left!important; padding:10px 14px!important; box-shadow:none!important; }
html body #workspace.shell>aside nav .nav:not([hidden]) { border:0!important; background:transparent!important; color:var(--p23-muted)!important; padding:9px 10px!important; min-height:38px!important; border-radius:8px!important; font-size:13px!important; box-shadow:none!important; }
html body #workspace.shell>aside nav .nav.active,html body #workspace.shell>aside nav .nav:hover { background:var(--p23-tint)!important; color:var(--p23-text)!important; }
html body #workspace.shell>aside .eyebrow { font-size:10px!important; letter-spacing:.12em!important; color:var(--p23-muted)!important; margin:14px 6px 5px!important; }
html body #workspace.shell>aside #searchChats { border:1px solid var(--p23-line)!important; background:var(--p23-surface)!important; color:var(--p23-text)!important; border-radius:9px!important; }
html body #workspace.shell>aside #history { font-size:13px!important; color:var(--p23-muted)!important; padding:6px!important; line-height:1.6; }
html body #workspace.shell>aside .profile { border-top:1px solid var(--p23-line)!important; background:transparent!important; color:var(--p23-text)!important; padding:12px 4px 2px!important; }
html body #workspace.shell>aside #signIn { background:var(--p23-blue)!important; color:white!important; font-size:13px!important; border-radius:9px!important; padding:10px!important; box-shadow:none!important; }
html body #workspace.shell>main,html body #workspace.shell #chatView { background:var(--p23-bg)!important; min-width:0!important; }
html body #workspace.shell .top-header { background:var(--p23-surface)!important; border-bottom:1px solid var(--p23-line)!important; padding:10px 22px!important; min-height:62px!important; height:auto!important; box-shadow:none!important; }
html body #workspace.shell .header-name strong { font-size:17px!important; color:var(--p23-text)!important; letter-spacing:-.03em; }
html body #workspace.shell .header-actions { gap:8px!important; }
html body #workspace.shell .header-actions :is(summary,#aanoThemeToggle,.guest-status),html body #workspace.shell #aanoAssistantMenu .aano-assistant-toggle { border:1px solid var(--p23-line)!important; background:var(--p23-surface)!important; color:var(--p23-text)!important; border-radius:9px!important; box-shadow:none!important; padding:8px 11px!important; font-size:12px!important; min-height:36px!important; }
html body #workspace.shell .header-actions .guest-status { background:var(--p23-tint)!important; color:var(--p23-text)!important; }
html body #workspace.shell #messages { padding:20px max(20px,calc((100% - 850px)/2))!important; min-height:0!important; }
html body #workspace.shell #chatView:has(.welcome) { justify-content:center!important; }
html body #workspace.shell #messages:has(.welcome) { flex:0 1 auto!important; overflow:auto!important; }
html body #workspace.shell #messages .welcome { min-height:0!important; padding:24px 0 10px!important; gap:0!important; }
html body #workspace.shell #messages .welcome .orb { display:grid!important; visibility:visible!important; place-items:center!important; width:58px!important; height:58px!important; background:var(--p23-surface)!important; border:1px solid var(--p23-line)!important; border-radius:18px!important; box-shadow:var(--p23-shadow)!important; overflow:hidden; }
html body #workspace.shell #messages .welcome .orb img { width:100%!important; height:100%!important; object-fit:contain!important; }
html body #workspace.shell .workspace-kicker { margin:16px 0 8px; font-size:10px; font-weight:750; letter-spacing:.15em; color:var(--p23-muted); }
html body #workspace.shell #messages .welcome h1 { color:var(--p23-text)!important; font-size:clamp(28px,3vw,43px)!important; font-weight:700!important; letter-spacing:-.045em!important; line-height:1.15!important; margin:0 0 8px!important; }
html body #workspace.shell #messages .welcome>p { display:block!important; color:var(--p23-muted)!important; font-size:15px!important; margin:0!important; }
html body #workspace.shell #messages .suggestions:not([hidden]) { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:10px!important; width:100%!important; max-width:720px!important; margin:26px 0 0!important; }
html body #workspace.shell #messages .suggestions button { background:var(--p23-surface)!important; border:1px solid var(--p23-line)!important; border-radius:14px!important; padding:14px!important; box-shadow:none!important; font-size:13px!important; color:var(--p23-text)!important; min-height:91px!important; font-weight:650!important; text-align:left!important; grid-column:auto!important; }
html body #workspace.shell #messages .suggestions button:hover { border-color:var(--p23-blue)!important; transform:translateY(-2px); }
html body #workspace.shell #messages .suggestions span { color:var(--p23-muted)!important; margin:4px 0 0!important; font-size:11px!important; font-weight:400!important; }
html body #workspace.shell #messages .suggestions .suggestion-icon { display:block!important; color:var(--p23-blue)!important; font-size:20px!important; line-height:1.1; margin:0 0 9px!important; }
html body #workspace.shell .composer-wrap { position:relative!important; width:min(780px,100%)!important; max-width:780px!important; padding:12px 18px 20px!important; margin:0 auto!important; bottom:auto!important; background:transparent!important; }
html body #workspace.shell #chatForm.composer { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:6px!important; min-height:102px!important; padding:13px 14px 10px!important; border-radius:18px!important; background:var(--p23-surface)!important; border:1px solid var(--p23-line)!important; box-shadow:var(--p23-shadow)!important; overflow:visible!important; }
html body #workspace.shell #chatForm.composer #prompt { min-height:37px!important; width:100%!important; max-width:none!important; padding:5px!important; color:var(--p23-text)!important; font-size:15px!important; background:transparent!important; }
html body #workspace.shell #chatForm.composer .composer-bottom { display:flex!important; align-items:center!important; justify-content:flex-start!important; gap:8px!important; width:100%!important; flex-wrap:wrap!important; }
html body #workspace.shell #chatForm.composer .inline-model-selector { display:flex!important; margin-left:auto!important; max-width:150px!important; }
html body #workspace.shell #chatForm.composer #answerMode { color:var(--p23-text)!important; background:var(--p23-tint)!important; border-radius:8px!important; max-width:150px!important; padding:0 8px!important; font-size:12px!important; }
html body #workspace.shell #chatForm.composer :is(#send,#voiceInput) { border-radius:10px!important; }
html body #workspace.shell #chatForm.composer #send { background:var(--p23-blue)!important; color:#fff!important; box-shadow:none!important; }
html body #workspace.shell #chatForm.composer #stop:not([hidden]),html body #workspace.shell #chatForm.composer #removeFile:not([hidden]) { display:inline-flex!important; }
html body #workspace.shell .footnote { color:var(--p23-muted)!important; font-size:10px!important; margin-top:8px!important; text-align:center; }
/* Full-page auth; outer page is the only scroll container. */
html body #auth.auth:not([hidden]) { position:fixed!important; inset:0!important; display:flex!important; align-items:center!important; justify-content:center!important; padding:24px!important; box-sizing:border-box!important; overflow:auto!important; background:radial-gradient(ellipse at 15% 12%,var(--p23-tint),transparent 60%),var(--p23-bg)!important; z-index:10050!important; }
html body #auth.auth:not([hidden]) .auth-card { position:relative!important; display:grid!important; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important; grid-template-rows:auto!important; width:min(900px,100%)!important; max-width:900px!important; height:auto!important; max-height:none!important; min-height:0!important; margin:auto!important; padding:0!important; border:1px solid var(--p23-line)!important; border-radius:24px!important; overflow:hidden!important; background:var(--p23-surface)!important; box-shadow:0 24px 88px #102d5420!important; }
html body #auth.auth:not([hidden]) .aano-auth-content { grid-area:1/1!important; position:relative!important; z-index:1!important; display:block!important; min-width:0!important; padding:32px 40px!important; max-height:none!important; overflow:visible!important; background:var(--p23-surface)!important; color:var(--p23-text)!important; animation:none!important; }
html body #auth.auth:not([hidden]) .aano-auth-visual { grid-area:1/2!important; position:relative!important; inset:auto!important; display:flex!important; align-items:center!important; justify-content:center!important; min-width:0!important; width:100%!important; height:100%!important; clip-path:none!important; background:radial-gradient(circle at 80% 18%,#4c87f780,transparent 45%),linear-gradient(155deg,#102c59,#154b99 60%,#2376d8)!important; animation:none!important; overflow:hidden!important; }
html body #auth.auth:not([hidden]) .aano-auth-visual:before { content:""; position:absolute; width:330px; height:330px; border:1px solid #ffffff27; border-radius:50%; top:-100px; right:-130px; box-shadow:0 0 0 48px #ffffff0a,0 0 0 96px #ffffff08; pointer-events:none; }
html body #auth.auth:not([hidden]) .aano-auth-visual-copy { position:relative!important; display:block!important; width:100%!important; padding:36px!important; text-align:left!important; color:white!important; z-index:1!important; animation:none!important; }
html body #auth.auth:not([hidden]) .aano-auth-visual-copy small { display:block!important; font-size:10px!important; letter-spacing:.17em!important; color:#d7e6ff!important; }
html body #auth.auth:not([hidden]) .aano-auth-visual-copy strong { display:block; color:white!important; font-size:clamp(34px,3.5vw,49px)!important; letter-spacing:-.045em!important; line-height:1.1!important; margin:16px 0!important; }
html body #auth.auth:not([hidden]) .aano-auth-visual-copy p { display:block!important; color:#dce9ff!important; font-size:15px!important; line-height:1.6!important; }
html body #auth.auth:not([hidden]):not([data-auth-stage="signup"]) .aano-auth-new,html body #auth.auth:not([hidden])[data-auth-stage="signup"] .aano-auth-return { display:none!important; }
html body #auth.auth:not([hidden]) .brand { color:var(--p23-text)!important; font-size:23px!important; margin:0 0 8px!important; }
html body #auth.auth:not([hidden]) .brand b,html body #auth.auth:not([hidden]) #authTitle { color:var(--p23-text)!important; }
html body #auth.auth:not([hidden]) .eyebrow { color:var(--p23-muted)!important; font-size:10px!important; letter-spacing:.13em!important; margin:0 0 12px!important; }
html body #auth.auth:not([hidden]) #authTitle { margin:15px 0 6px!important; font-size:32px!important; letter-spacing:-.04em!important; }
html body #auth.auth:not([hidden]) #authHint { margin:0 0 19px!important; font-size:14px!important; color:var(--p23-muted)!important; line-height:1.5!important; }
html body #auth.auth:not([hidden]) label { color:var(--p23-text)!important; font-weight:550!important; font-size:13px!important; gap:5px!important; }
html body #auth.auth:not([hidden]) form { display:grid!important; gap:12px!important; }
html body #auth.auth:not([hidden]) .auth-card input { box-sizing:border-box!important; height:44px!important; width:100%!important; padding:9px 12px!important; background:var(--p23-bg)!important; color:var(--p23-text)!important; border:1px solid var(--p23-line)!important; border-radius:9px!important; font-size:16px!important; box-shadow:none!important; }
html body #auth.auth:not([hidden]) .auth-card input:focus { border-color:var(--p23-blue)!important; outline:2px solid var(--p23-blue)!important; outline-offset:1px!important; }
html body #auth.auth:not([hidden]) .auth-card .primary { min-height:44px!important; border-radius:9px!important; background:var(--p23-blue)!important; color:white!important; font-weight:700!important; box-shadow:none!important; }
html body #auth.auth:not([hidden]) .auth-card :is(button.link,a,.aano-back-signin) { color:var(--p23-blue)!important; background:transparent!important; font-size:13px!important; box-shadow:none!important; text-decoration:none!important; }
:root[data-aano-color="dark"] body #auth.auth:not([hidden]) .auth-card :is(button.link,a,.aano-back-signin) { color:#91baff!important; }
html body #auth.auth:not([hidden]) .aano-google-divider { color:var(--p23-muted)!important; margin:11px 0!important; }
html body #auth.auth:not([hidden]) .aano-google-button { min-height:44px!important; display:flex!important; justify-content:center!important; align-items:center!important; border:1px solid var(--p23-line)!important; border-radius:9px!important; color:var(--p23-text)!important; background:var(--p23-surface)!important; font-size:14px!important; }
html body #auth.auth:not([hidden]) .aano-auth-links { display:flex!important; justify-content:space-between!important; gap:12px!important; flex-wrap:wrap; margin-top:16px!important; }
html body #auth.auth:not([hidden]) :is(#authSecondStep,#resetPanel) { background:transparent!important; color:var(--p23-text)!important; }
html body #auth.auth:not([hidden]) :is(#authError,#authSecondError) { color:#b92b43!important; }
:root[data-aano-color="dark"] body #auth.auth:not([hidden]) :is(#authError,#authSecondError) { color:#ff9cae!important; }
html body #auth.auth:not([hidden]):has(#authSecondStep:not([hidden]),#resetPanel:not([hidden])) .auth-card,
html body #auth.auth:not([hidden])[data-auth-stage="setup"] .auth-card { grid-template-columns:minmax(0,1fr)!important; max-width:520px!important; }
html body #auth.auth:not([hidden]):has(#authSecondStep:not([hidden]),#resetPanel:not([hidden])) .aano-auth-visual,
html body #auth.auth:not([hidden])[data-auth-stage="setup"] .aano-auth-visual,
html body #auth.auth:not([hidden]):has(#authSecondStep:not([hidden]),#resetPanel:not([hidden])) #aanoGoogleLoginBox,
html body #auth.auth:not([hidden])[data-auth-stage="setup"] #aanoGoogleLoginBox { display:none!important; }
html body #auth.auth [hidden],html body #workspace.shell [hidden] { display:none!important; }
@media(max-width:900px){html body #workspace.shell:not([hidden]) {grid-template-columns:220px minmax(0,1fr)!important}html body #workspace.shell .top-header {padding:9px 12px!important}html body #workspace.shell .header-actions {gap:5px!important}html body #workspace.shell .header-actions .guest-status {display:none!important}}
@media(max-width:650px){
 html body #workspace.shell:not([hidden]) {display:block!important}
 html body #workspace.shell>aside {width:min(290px,88vw)!important;padding-top:60px!important;position:fixed!important;transform:translateX(-105%)!important;z-index:30!important}
 html body.sidebar-open #workspace.shell>aside {transform:translateX(0)!important}
 html body #workspace.shell>main {width:100%!important;height:100dvh!important}
 html body #workspace.shell .top-header {padding:8px 10px!important}
 html body #workspace.shell .header-actions :is(summary,#aanoThemeToggle) {padding:6px 8px!important;min-height:32px!important}
 html body #workspace.shell #messages {padding:12px!important}
 html body #workspace.shell #messages .welcome {padding:14px 0 0!important}
 html body #workspace.shell #messages .suggestions:not([hidden]) {grid-template-columns:1fr!important;gap:7px!important;margin-top:16px!important}
 html body #workspace.shell #messages .suggestions button {display:flex!important;align-items:center!important;gap:9px!important;min-height:44px!important;padding:10px!important}
 html body #workspace.shell #messages .suggestions button span:not(.suggestion-icon){display:none!important}
 html body #workspace.shell #messages .suggestions .suggestion-icon{margin:0!important}
 html body #workspace.shell .composer-wrap {width:100%!important;padding:8px 12px max(12px,env(safe-area-inset-bottom))!important}
 html body #workspace.shell #chatForm.composer {min-height:92px!important;padding:10px!important}
 html body #auth.auth:not([hidden]) {padding:12px!important}
 html body #auth.auth:not([hidden]) .auth-card {display:block!important;max-width:470px!important;border-radius:18px!important}
 html body #auth.auth:not([hidden]) .aano-auth-visual {display:none!important}
 html body #auth.auth:not([hidden]) .aano-auth-content {padding:24px!important}
}
@media(prefers-reduced-motion:reduce){html body #workspace.shell *,html body #auth.auth * {animation:none!important;transition:none!important}}
/* Preserve state-driven visibility, including password recovery, 2FA and stop. */
html body #auth.auth:not([hidden]) [hidden],
html body #workspace.shell:not([hidden]) [hidden] { display:none!important; }
html body #auth.auth:not([hidden]) :is(#authForm,#resetPanel)[hidden],
html body #auth.auth:not([hidden]) .aano-auth-links[hidden] { display:none!important; }
html body #auth.auth:not([hidden]):has(#authSecondStep:not([hidden])) .aano-auth-links {display:none!important}
html body #auth.auth:not([hidden]) .auth-card {flex-shrink:0!important}
html body #auth.auth:not([hidden]) {align-items:safe center!important}
html body #auth.auth:not([hidden]) .aano-auth-content .small {color:var(--p23-muted)!important;margin:14px 0 0!important}
html body #auth.auth:not([hidden]) .aano-auth-visual-copy p {max-width:265px}
html body #workspace.shell #chatForm.composer #prompt {order:0!important;align-self:stretch!important;flex:none!important}
html body #workspace.shell #chatForm.composer .composer-bottom {order:1!important}
html body #workspace.shell #chatForm.composer #stop[hidden],html body #workspace.shell #chatForm.composer #removeFile[hidden] {display:none!important}

/* Phase 23.2: composer ordering + strict CSP-compatible auth layout. */
html body #workspace.shell #chatForm.composer .composer-bottom .file-button {order:0!important;flex:0 0 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #removeFile {order:1!important;flex:0 0 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #usage {order:2!important}
html body #workspace.shell #chatForm.composer .composer-bottom .inline-model-selector {order:3!important;margin-left:auto!important;flex:0 1 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #voiceInput {order:4!important;flex:0 0 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #speakAnswer {order:5!important;flex:0 0 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #stop {order:6!important;flex:0 0 auto!important}
html body #workspace.shell #chatForm.composer .composer-bottom #send {order:7!important;flex:0 0 auto!important}
html body #auth.auth:not([hidden]) #authSecondStep {margin-top:15px;padding:12px;border:1px solid var(--p23-line);border-radius:9px}
html body #auth.auth:not([hidden]) .aano-auth-content {padding:28px 36px!important}
html body #auth.auth:not([hidden]) #authForm {gap:10px!important}
html body #auth.auth:not([hidden]) #authHint {margin-bottom:16px!important}
html body #auth.auth:not([hidden]) #authTitle {margin-top:10px!important}
html body #auth.auth:not([hidden]) #authError:empty,html body #auth.auth:not([hidden]) #authSecondError:empty {display:none!important}
html body #auth.auth:not([hidden])[data-auth-stage="setup"] #forgotPassword {display:none!important}
@media(max-width:650px){
 html body #auth.auth:not([hidden]) .aano-auth-content{padding:22px!important}
 html body #workspace.shell #chatForm.composer .composer-bottom{gap:5px!important}
 html body #workspace.shell #chatForm.composer .composer-bottom #answerMode{max-width:128px!important}
}


/* AANO_PHASE23_MOBILE_COMPACT */
@media(max-width:650px){

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) {
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 34px 34px!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:6px!important;
    min-height:52px!important;
    padding:7px 10px!important;
    border-radius:23px!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) .composer-bottom {
    display:contents!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) #prompt {
    grid-column:2!important;
    grid-row:1!important;
    min-height:28px!important;
    align-self:center!important;
    padding:2px 0!important;
    font-size:16px!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) .file-button {
    grid-column:1!important;
    grid-row:1!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) #voiceInput {
    grid-column:3!important;
    grid-row:1!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) #send {
    grid-column:4!important;
    grid-row:1!important;
}

html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) :is(.inline-model-selector,#usage) {
    display:none!important;
}

html body #workspace.shell #chatForm.composer :is(#send,#voiceInput) {
    border-radius:50%!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    padding:0!important;
}

html body #workspace.shell #chatForm.composer #voiceInput {
    background:var(--p23-tint)!important;
    color:var(--p23-text)!important;
}

html body #workspace.shell #chatForm.composer.aano-expanded {
    border-radius:20px!important;
    min-height:80px!important;
}

html body #workspace.shell #chatView:has(.welcome) {
    justify-content:normal!important;
}

html body #workspace.shell #messages:has(.welcome) {
    flex:1 1 auto!important;
}

html body #workspace.shell #messages .welcome {
    min-height:100%!important;
}

}


/* Phase 25.3 Desktop Compact */
@media (min-width: 901px) {

 html body #workspace.shell .composer-wrap {
    width: min(740px, 100%) !important;
    max-width: 740px !important;
 }

 html body #workspace.shell #chatForm.composer {
    min-height: 60px !important;
    padding: 10px 12px !important;
    gap: 6px !important;
 }

 html body #workspace.shell #chatForm.composer #prompt {
    min-height: 28px !important;
    padding: 2px 0 !important;
    line-height: 24px !important;
 }

 html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) {
    display: grid !important;
    grid-template-columns: 36px minmax(0,1fr) auto 36px 36px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    border-radius: 22px !important;
 }

 html body #workspace.shell #chatForm.composer:not(.aano-expanded):not(:has(#stop:not([hidden]),#removeFile:not([hidden]))) .composer-bottom {
    display: contents !important;
 }

 html body #workspace.shell #chatForm.composer:not(.aano-expanded) .inline-model-selector {
    margin: 0 !important;
 }

}


/* Phase 25.4 Dynamic Dropdown */
@media (min-width:901px) {

 html body #workspace.shell #chatForm.composer .inline-model-selector {
    width:auto!important;
    min-width:0!important;
    max-width:160px!important;
    flex:0 0 auto!important;
 }

 html body #workspace.shell #chatForm.composer #answerMode {
    width:105px!important;
    min-width:0!important;
    max-width:160px!important;
    padding:0 7px!important;
    font-size:12px!important;
 }

 html body #workspace.shell #chatForm.composer #answerMode:has(option[value="fast"]:checked) {
    width:65px!important;
 }

 html body #workspace.shell #chatForm.composer #answerMode:has(option[value="thinking"]:checked) {
    width:150px!important;
 }

 html body #workspace.shell #chatForm.composer #answerMode:has(option[value="research"]:checked) {
    width:125px!important;
 }

 html body #workspace.shell #chatForm.composer #answerMode:has(option[value="creative"]:checked) {
    width:90px!important;
 }

}

/* Phase 31 Premium Composer */

html body #workspace.shell .composer-wrap {
    width: min(800px,100%) !important;
    max-width: 800px !important;
    box-sizing: border-box !important;
    margin-inline: auto !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer {
    display: grid !important;
    grid-template-columns: 40px minmax(0,1fr) auto 40px 40px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 60px !important;
    height: auto !important;
    padding: 8px 12px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    --p31-row: 1;
}

html body #workspace.shell .composer-wrap #chatForm.composer .composer-bottom {
    display: contents !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #prompt {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 28px !important;
    max-height: 136px !important;
    line-height: 24px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    resize: none !important;
    box-sizing: border-box !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer .file-button {
    grid-column: 1 !important;
    grid-row: var(--p31-row) !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    background: transparent !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer .file-button span {
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: none !important;
    font-size: 24px !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer .inline-model-selector {
    grid-column: 3 !important;
    grid-row: var(--p31-row) !important;
    align-self: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #answerMode {
    height: 36px !important;
    max-width: 160px !important;
    font-size: 12px !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #voiceInput {
    grid-column: 4 !important;
    grid-row: var(--p31-row) !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer :is(#send,#stop) {
    grid-column: 5 !important;
    grid-row: var(--p31-row) !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer :is(#voiceInput,#send,#stop) {
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 12px !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #stop {
    font-size: 0 !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #stop::before {
    content: "\25A0";
    font-size: 15px !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer:has(#stop:not([hidden])) #send,
html body #workspace.shell .composer-wrap #chatForm.composer [hidden] {
    display: none !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #usage:not(:empty) {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer #removeFile:not([hidden]) {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
}

html body #workspace.shell .composer-wrap #chatForm.composer.aano-expanded {
    grid-template-rows: auto 40px !important;
    --p31-row: 2;
}

html body #workspace.shell .composer-wrap #chatForm.composer.aano-expanded #prompt {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    padding-inline: 5px !important;
}

@media (max-width: 650px) {
    html body #workspace.shell .composer-wrap #chatForm.composer {
        grid-template-columns: 36px minmax(0,1fr) auto 36px 36px !important;
        grid-template-rows: auto 36px !important;
        gap: 5px !important;
        padding: 8px 10px !important;
        --p31-row: 2;
    }

    html body #workspace.shell .composer-wrap #chatForm.composer #prompt {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        font-size: 16px !important;
        padding-inline: 5px !important;
    }

    html body #workspace.shell .composer-wrap #chatForm.composer #answerMode {
        max-width: 110px !important;
    }

    html body #workspace.shell .composer-wrap #chatForm.composer :is(.file-button,#voiceInput,#send,#stop) {
        width: 36px !important;
        height: 36px !important;
    }
}
