/* Two consistent AxorAI palettes and viewport ownership. */
html.ax37.ax37[data-sk-theme="darkgray"]{--ax37-bg:#18191c;--ax37-side:#131417;--ax37-panel:#222429;--ax37-hover:#2d3036;--ax37-border:#383a41;--ax37-text:#f2f1ed;--ax37-muted:#aaa9a3;--ax37-accent:#d8bd91;--ax37-accent-text:#211c13;--ax38-secondary:#272a30;color-scheme:dark}
html.ax37.ax37[data-sk-theme="light"]{--ax37-bg:#f7f4ee;--ax37-side:#eeeae2;--ax37-panel:#fffefa;--ax37-hover:#e8f1f8;--ax37-border:#dcdedb;--ax37-text:#29333b;--ax37-muted:#626b72;--ax37-accent:#406680;--ax37-accent-text:#fff;--ax38-secondary:#edf4f9;color-scheme:light}
html.ax37 body{--bg:var(--ax37-bg)!important;--panel:var(--ax37-panel)!important;--panel2:var(--ax38-secondary)!important;--surface:var(--ax37-panel)!important;--surface2:var(--ax38-secondary)!important;--text:var(--ax37-text)!important;--muted:var(--ax37-muted)!important;--soft:var(--ax37-muted)!important;--line:var(--ax37-border)!important;--border:var(--ax37-border)!important;--accent:var(--ax37-accent)!important;--gold:var(--ax37-accent)!important;--action-hover:var(--ax37-hover)!important;background:var(--ax37-bg)!important;color:var(--ax37-text)!important;height:100%!important;min-height:0!important;overflow:hidden!important;overscroll-behavior:none}
html.ax37{height:100%!important;overflow:hidden!important;overscroll-behavior:none}
html.ax37 #sk-v39-root{position:fixed!important;inset:auto 0 auto 0!important;top:var(--ax38-top,0px)!important;width:100%!important;height:var(--ax38-height,100dvh)!important;max-height:var(--ax38-height,100dvh)!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
html.ax37 #sk-v39-root .sk39-shell{height:100%!important;max-height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important}
html.ax37 #sk-v39-root .sk39-main{height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
html.ax37 #sk-v39-root .sk39-chat{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;padding-bottom:20px!important;overflow:auto!important;scroll-padding:18px;overscroll-behavior:contain}
html.ax37.ax37-empty[data-ax-section="chat"] #sk-v39-root .sk39-chat{flex:0 1 43%!important;min-height:100px!important}
html.ax37 #sk-v39-root .sk39-compose{flex:0 0 auto!important;position:relative!important;inset:auto!important;transform:none!important;margin:0!important;max-height:min(56%,440px)!important;overflow:visible!important}
html.ax37 #sk-v39-root .sk39-compose-v2-wrap{max-width:100%!important;min-width:0!important;transform:none!important}
html.ax37 .ax38-brand{display:block!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;object-fit:contain!important;filter:invert(1)!important;opacity:1!important;max-width:100%;height:auto}
html.ax37.ax37[data-sk-theme="light"] .ax38-brand{filter:none!important}
html.ax37 .ax38-brand-home{width:min(380px,65vw)!important;height:auto!important;max-height:150px!important;margin:0 auto!important}
html.ax37 .ax37-home{gap:0!important;padding-bottom:10px!important;min-height:0!important}


html.ax37 #sk-v39-root .sk39-top-actions{max-width:100%!important;gap:12px!important}
html.ax37 .ax37-avatar>svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important}
html.ax37 .ax37-avatar>svg path{fill:none!important;stroke:currentColor!important}
html.ax37 .ax37-side-plan{background:transparent;border:0;width:100%;text-align:left;cursor:pointer}
html.ax37 .ax37-plus button{padding:8px 11px;border:1px solid var(--ax37-border);border-radius:8px;background:var(--ax37-hover);color:var(--ax37-text);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
html.ax37 .ax37-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:480px}
html.ax37 .ax37-theme-preview.light{background:#f7f4ee!important;border-color:#e7eef4!important}.ax37-theme-preview.light i{background:#b7cbd8!important}
html.ax37 #sk39-account-menu-portal{position:fixed!important;left:var(--sk-account-menu-left)!important;right:auto!important;top:var(--sk-account-menu-top)!important;width:var(--sk-account-menu-width,286px)!important;max-width:calc(100vw - 24px)!important;transform:none!important;margin:0!important;padding:0!important;z-index:2300!important;box-sizing:border-box!important}
html.ax37 #sk39-account-menu-portal .ax37-account{position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;max-height:var(--sk-account-menu-max-h,calc(100dvh - 24px))!important;overflow:auto!important;box-sizing:border-box!important;background:var(--ax37-panel)!important;color:var(--ax37-text)!important;border-color:var(--ax37-border)!important;transform:none!important}
html.ax37 #sk39-account-menu-portal .ax37-account :is(button,a,b,span){color:var(--ax37-text)!important;-webkit-text-fill-color:currentColor!important}
html.ax37 #sk39-account-menu-portal .ax37-account .sk39-account-menu-head span{color:var(--ax37-muted)!important}
html.ax37 #sk39-account-menu-portal .ax37-account svg,html.ax37 #sk39-account-menu-portal .ax37-account svg path{fill:none!important;stroke:currentColor!important;stroke-width:1.6!important}
html.ax37 #sk39-account-menu-portal .ax37-account .sk39-account-item{white-space:normal!important;overflow-wrap:anywhere!important;min-height:39px!important}
html.ax37 :is(.sk39-modal,.sk39-modal-card,.ax38-auth-modal){max-height:var(--ax38-height,100dvh)}
@media(max-width:820px){html.ax37 #sk-v39-root .sk39-top-actions{gap:7px!important}html.ax37 #sk-v39-root .sk39-top{padding:8px 12px!important;flex-basis:60px!important;min-height:60px!important;height:60px!important}html.ax37 #sk-v39-root .sk39-top .ax37-limit{font-size:11px!important;padding:0 8px!important}html.ax37 #sk-v39-root .sk39-top .ax37-media{min-width:32px!important;width:32px!important;padding:0!important}html.ax37 .ax37-media span{display:none!important}html.ax37 #sk-v39-root .sk39-compose{max-height:63%!important}html.ax37.ax37-empty[data-ax-section="chat"] #sk-v39-root .sk39-chat{flex:0 1 39%!important;min-height:78px!important}html.ax37 .ax38-brand-home{width:min(300px,72vw)!important}.ax37-plus{max-width:calc(100% - 24px)}html.ax37 #sk-v39-root .sk39-shell>.sk39-sidebar{height:100%!important;max-height:100%!important}}
@media(max-width:370px){.ax37-plus>div span{display:none!important}}
@media(max-height:540px){html.ax37.ax37-empty[data-ax-section="chat"] #sk-v39-root .sk39-chat{flex:1!important;min-height:0!important}.ax37-plus{display:none!important}html.ax37 #sk-v39-root .sk39-compose{max-height:75%!important}.ax38-brand-home{max-height:90px!important}}
html.ax37 #sk-v39-root :is(h1,h2,h3,h4){color:var(--ax37-text)!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
html.ax37 #sk-v39-root .sk39-compose .sk39-note{color:var(--ax37-muted)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
/* Account controls stay at the right; branding belongs to the sidebar. */
html.ax37 #sk-v39-root .sk39-top .sk39-top-actions{position:static!important;inset:auto!important;transform:none!important;flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;margin-left:0!important;justify-content:flex-end!important}

@media(max-width:480px){html.ax37 #sk-v39-root .sk39-top .sk39-top-actions{gap:6px!important}html.ax37 #sk-v39-root .sk39-top .ax37-media{display:none!important}}

html.ax37 #sk-v39-root .sk39-top{display:flex!important;grid-template-columns:none!important;justify-content:flex-start!important}
@media(max-width:820px){html.ax37 #sk-v39-root .sk39-top .sk39-sidebar-top-toggle{position:static!important;inset:auto!important;transform:none!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important}}
html.ax37 #sk-v39-root .sk39-top .ax37-limit>span:not(.axa39-wallet){display:inline!important}

/* Update 40: transparent wordmark directly after the sidebar toggle. */
html.ax37 #sk-v39-root .ax37-side-head{gap:8px!important;min-width:0!important}
html.ax37 #sk-v39-root .ax37-side-brand{flex:1 1 auto;min-width:0;max-width:156px;text-decoration:none;line-height:0}
html.ax37 #sk-v39-root .ax38-brand-sidebar{width:100%!important;height:auto!important;max-height:52px!important;object-position:left center!important}

/* Keep primary/secondary labels legible despite legacy dialog text overrides. */
html.ax37 #sk-v39-root .ax37-button,html.ax37 body.sk-v39-mounted .ax37-button{background:var(--ax37-panel)!important;color:var(--ax37-text)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--ax37-border)!important;text-shadow:none!important}
html.ax37 #sk-v39-root .ax37-button.primary,html.ax37 body.sk-v39-mounted .ax37-button.primary{background:var(--ax37-accent)!important;color:var(--ax37-accent-text)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--ax37-accent)!important}
html.ax37 #sk-v39-root .ax37-button *,html.ax37 body.sk-v39-mounted .ax37-button *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
