/* Apple107: one explicit header grid, independent of historical page styles. */
@media screen {
body>header,body.standalone-ai.composing>header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,380px) minmax(0,1fr)!important;grid-template-rows:96px 48px!important;gap:4px 16px!important;padding:8px 16px!important;min-height:0!important;isolation:isolate;z-index:30;align-items:center!important}
body>header>div:first-child{grid-area:1/1/2/2!important;width:max-content!important;max-width:100%!important;min-width:0!important}
body>header h1,body.standalone-ai.composing header h1{display:block!important;font-size:21px!important;line-height:1.3!important;white-space:nowrap!important;width:max-content;max-width:100%}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{display:block!important;grid-area:1/2/2/3!important;position:static!important;inset:auto!important;justify-self:center!important;align-self:center!important;width:100%!important;max-width:380px!important;height:96px!important;aspect-ratio:auto!important;overflow:hidden!important}
body>header .header-skyline{display:block!important;object-position:center!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;clip-path:none!important;opacity:1!important;mix-blend-mode:normal!important;filter:none!important;mask-image:none!important}
body>header .header-right{grid-area:2/1/3/-1!important;display:grid!important;grid-template-columns:30px minmax(0,1fr) 30px!important;grid-template-rows:48px!important;align-self:stretch!important;gap:2px!important;width:100%!important;min-height:0!important}
body>header nav{grid-area:1/2/2/3!important;justify-content:flex-start!important;align-self:stretch!important;align-items:center!important;padding:2px!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x;overscroll-behavior-x:contain}
body>header nav a:first-child{margin-inline-start:auto!important}
body>header .nav-scroll-prev,body>header .nav-scroll-next{display:block!important;position:static!important;align-self:center!important;height:44px!important;line-height:44px!important}
body>header .nav-scroll-prev{grid-area:1/1/2/2!important}body>header .nav-scroll-next{grid-area:1/3/2/4!important}
body.standalone-ai .assistant-main{overflow-y:auto!important;overscroll-behavior:contain}
body.standalone-ai .ai-panel,body.standalone-ai .consult-sheet{flex:1 0 auto!important;overflow:visible!important}
body.standalone-ai #messages{flex:1 1 auto;max-height:35vh!important;overflow:auto!important}
body.standalone-ai.composing{height:var(--vvh,100dvh)!important}
body.standalone-ai .preview-notice{flex:none}
@media(max-width:760px){
body>header,body.standalone-ai.composing>header{grid-template-columns:max-content minmax(0,1fr)!important;grid-template-rows:54px 48px!important;gap:4px 12px!important;padding:6px 16px!important}
body>header h1,body.standalone-ai.composing header h1{font-size:18px!important}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{grid-area:1/2/2/3!important;width:min(100%,240px)!important;max-width:none!important;height:54px!important}
}
@media(max-height:500px){body>header,body.standalone-ai.composing>header{grid-template-rows:54px 48px!important;padding-block:4px!important}body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{height:54px!important}.preview-notice{font-size:11px;padding-block:3px}body.standalone-ai #question{min-height:64px!important;height:64px!important}}
}
