/* Keep the same rail and sidebar as the ask view on the other site pages. */
body:not([data-page=ask]){--rail:304px;--secondary:0px;--shell-canvas:#fcfbf7;--shell-panel:#f6f4ed;--shell-hover:#eae9e5;--shell-selected:#171715;padding-left:var(--rail);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans",sans-serif;background:var(--shell-panel)}
body:not([data-page=ask])::before,body:not([data-page=ask])::after{content:"";position:fixed;inset:5px 7px 6px 54px;border-radius:12px;pointer-events:none}
body:not([data-page=ask])::before{background:var(--shell-canvas);border:1px solid rgba(0,0,0,.12);box-shadow:0 0 4px rgba(0,0,0,.1);z-index:0}
body:not([data-page=ask])::after{background:url('/assets/figma/ask-landscape.jpg') center/cover no-repeat;opacity:.06;z-index:0}
body:not([data-page=ask])>header{left:54px;top:5px;bottom:6px;width:250px;padding:16px 20px 20px;gap:20px;border:0;border-right:1px solid rgba(0,0,0,.04);border-radius:12px 0 0 12px;background:rgba(246,244,237,.42);overflow:visible}
body:not([data-page=ask]) .wordmark{font-size:20px;font-weight:600;letter-spacing:0;margin:0 6px}
body:not([data-page=ask]) #new-chat{height:34px;padding:5px 10px;border:0;border-radius:17px;background:transparent;font-size:13px;text-align:left}
body:not([data-page=ask]) #new-chat::before{content:"";display:inline-block;width:20px;height:20px;vertical-align:middle;margin-right:7px;background:currentColor;mask:url('/assets/figma/new-chat.svg') center/contain no-repeat}
body:not([data-page=ask]) header nav{position:fixed;left:0;top:69px;width:54px;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:21}
body:not([data-page=ask]) header nav::before{content:"";position:fixed;left:5px;top:17px;width:44px;height:33px;background:url('/assets/figma/cloud.png') center/contain no-repeat;pointer-events:none}
body:not([data-page=ask]) header nav a{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:12px;color:var(--text);font-size:0;text-decoration:none;transition:background .18s,color .18s}
body:not([data-page=ask]) header nav a::before{content:"";flex:0 0 20px;width:20px;height:20px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat}
body:not([data-page=ask]) header nav a:nth-child(1){--nav-icon:url('/assets/figma/planet.svg')}
body:not([data-page=ask]) header nav a:nth-child(2){--nav-icon:url('/assets/figma/ask.svg')}
body:not([data-page=ask]) header nav a:nth-child(3){--nav-icon:url('/assets/figma/read.svg')}
body:not([data-page=ask]) header nav a:nth-child(4){--nav-icon:url('/assets/figma/profile.svg')}
body:not([data-page=ask]) header nav a:hover,body:not([data-page=ask]) #new-chat:hover,body:not([data-page=ask]) #secondary :is(a,button):hover{background:var(--shell-hover);color:var(--text)}
body:not([data-page=ask]) header nav a[aria-current]{background:var(--shell-selected);color:#fff;text-decoration:none}
body:not([data-page=ask]) #secondary{position:static;inset:auto;width:auto;min-height:0;padding:0;background:transparent;border:0;overflow:auto;transform:none;flex:0 1 auto}
body:not([data-page=ask]) #secondary h2{font-size:12px;font-weight:400;color:var(--meta);margin:0 12px 12px}
body:not([data-page=ask]) #secondary>a,body:not([data-page=ask]) #secondary>button{min-height:34px;padding:7px 12px;margin:2px 0;border-radius:17px;font-size:13px;line-height:20px}
body:not([data-page=ask]) #secondary button span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not([data-page=ask]) #secondary small{font-size:10px;margin-top:0;line-height:1.4;opacity:.7}
body:not([data-page=ask]) #secondary .meta{font-size:10px;margin:20px 12px 0}
body:not([data-page=ask]) #secondary [aria-current]{background:var(--shell-selected);color:#fff}
body:not([data-page=ask]) .sidebar-bottom{margin-top:auto;padding:0 10px;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}
body:not([data-page=ask]) .sidebar-bottom label{margin:3px 0;font-size:11px}
body:not([data-page=ask]) .sidebar-bottom select{border-radius:6px;padding:4px;font-size:11px}
body:not([data-page=ask]) #quota,body:not([data-page=ask]) .sidebar-bottom>a{grid-column:1/-1;font-size:11px}
body:not([data-page=ask]) .content-demo,body:not([data-page=ask]) main,body:not([data-page=ask])>footer{position:relative;z-index:1}
body:not([data-page=ask]) .content-demo{width:min(720px,calc(100% - 64px));margin:20px auto 0;color:var(--meta);font-size:11px}
html[data-theme=dark] body:not([data-page=ask]){--shell-canvas:#252523;--shell-panel:#141413;--shell-hover:#30302e;--shell-selected:#080808}
html[data-theme=dark] body:not([data-page=ask])::after{background:none;opacity:0}
html[data-theme=dark] body:not([data-page=ask])>header{background:#21211f;border-color:rgba(255,255,255,.08)}
html[data-theme=dark] body:not([data-page=ask]) header nav a[aria-current]{background:#f6f4ed;color:#171715}
html[data-theme=dark] body:not([data-page=ask]) .sidebar-bottom>a{color:var(--text)}
@media(max-width:1020px) and (min-width:761px){body:not([data-page=ask]){--rail:264px}body:not([data-page=ask])>header{width:210px;padding:16px 14px 20px}}
@media(max-width:760px){
 body:not([data-page=ask]){--rail:0px;padding-left:0}
 body:not([data-page=ask])::before,body:not([data-page=ask])::after{inset:56px 5px 5px;border-radius:12px}
 body:not([data-page=ask])>header{left:0;top:0;bottom:0;width:min(300px,calc(100% - 48px));padding:24px 20px;overflow-y:auto;background:var(--surface);border-radius:0 12px 12px 0;transform:translateX(-100%)}
 html[data-theme=dark] body:not([data-page=ask])>header{background:#21211f}
 body:not([data-page=ask]).drawer-open>header{transform:none}
 body:not([data-page=ask]) header nav{position:static;width:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
 body:not([data-page=ask]) header nav::before{display:none}
 body:not([data-page=ask]) header nav a{width:100%;height:52px;display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:10px;line-height:1;white-space:nowrap}
 body:not([data-page=ask]) header nav a::before{flex:none}
 body:not([data-page=ask]) .mobile-bar{z-index:15}
 body:not([data-page=ask]) .content-demo,body:not([data-page=ask]) main,body:not([data-page=ask])>footer{width:calc(100% - 36px)}
 body:not([data-page=ask]) .content-demo{margin:12px auto 0}
}
@media(prefers-reduced-motion:reduce){body:not([data-page=ask]) header nav a{transition:none}}

/* The standalone footer block is not shown in the shared page shell. */
body:not([data-page=ask])>footer{display:none}

/* Match the updated light surfaces used by the ask page. */
html:not([data-theme=dark]) body:not([data-page=ask]){--shell-canvas:#fff;--shell-panel:#f6f4ed}
html:not([data-theme=dark]) body:not([data-page=ask])::before{border:0;box-shadow:0 0 4px rgba(0,0,0,.06)}
html:not([data-theme=dark]) body:not([data-page=ask])::after{background:none;opacity:0}
html:not([data-theme=dark]) body:not([data-page=ask])>header{
 background:#fcfbf7;border-right:0;box-shadow:0 0 4px rgba(0,0,0,.02)
}
