/* Apple109: local header polish; retain Apple107 focus/keyboard safeguards. */
@media screen {
body>header,body.standalone-ai.composing>header{grid-template-columns:max-content minmax(220px,1fr) max-content!important;grid-template-rows:136px!important;gap:0 14px!important;padding:8px 16px!important}
body>header h1,body.standalone-ai.composing header h1{font-size:28px!important;letter-spacing:-.035em!important}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{grid-area:1/2/2/3!important;width:100%!important;max-width:none!important;height:136px!important;overflow:visible!important}
body>header .header-right{grid-area:1/3/2/4!important;grid-template-columns:30px minmax(0,1fr) 30px!important;grid-template-rows:48px!important;width:max-content!important;max-width:100%!important;justify-self:end!important;align-self:center!important;gap:2px!important}
body>header nav{width:max-content!important;max-width:100%!important;min-width:0!important}
body>header nav a:first-child{margin-inline-start:0!important}
body>header .header-right:not(.nav-overflow){grid-template-columns:minmax(0,1fr)!important}
body>header .header-right:not(.nav-overflow) nav{grid-area:1/1/2/2!important}
body>header .header-right:not(.nav-overflow) .nav-scroll-prev,body>header .header-right:not(.nav-overflow) .nav-scroll-next{display:none!important}
body.standalone-ai{height:var(--vvh,100dvh)!important}
body.standalone-ai .workspace-title{display:block!important;flex:none}
body.standalone-ai .consult-sheet>p{display:block!important;flex:none}
body.standalone-ai .assistant-main{flex:1 1 0!important;min-height:0!important}
body.standalone-ai .ai-panel,body.standalone-ai .consult-sheet{height:auto!important;flex:1 0 auto!important}
@media(min-width:761px) and (max-width:1399px){
body>header .header-right{width:min(54vw,762px)!important}
body>header nav{width:100%!important}
}
@media(max-width:1000px){
body>header,body.standalone-ai.composing>header{grid-template-columns:max-content minmax(0,1fr)!important;grid-template-rows:96px 48px!important;gap:4px 16px!important}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{height:96px!important}
body>header .header-right{grid-area:2/1/3/-1!important;width:max-content!important}
}
@media(max-width:760px){
body>header,body.standalone-ai.composing>header{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px auto 48px!important;gap:3px!important;padding:6px 16px!important}
body>header>div:first-child{grid-area:1/1/2/2!important;justify-self:center!important}
body>header h1,body.standalone-ai.composing header h1{font-size:22px!important}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{grid-area:2/1/3/2!important;width:100%!important;height:auto!important;aspect-ratio:1000/302!important}
body>header .header-right{grid-area:3/1/4/2!important;width:100%!important}
body>header nav{width:100%!important}
}
@media(max-height:500px) and (min-width:761px){
body>header,body.standalone-ai.composing>header{grid-template-rows:64px 48px!important;padding-block:4px!important}
body>header .skyline-slot,body.standalone-ai.composing header .skyline-slot{height:64px!important}
}
}
