html body .common-nav{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #d9e1d4;border-radius:12px;background:#f5f6ee;width:max-content;animation:none!important;flex-shrink:0}html body .common-nav a,html body .common-nav button{font:500 11px 'DM Sans',system-ui!important;line-height:1!important;color:#687c68!important;text-decoration:none!important;background:transparent!important;border:0!important;border-radius:8px!important;padding:9px 11px!important;box-shadow:none!important;min-height:0!important;transform:none!important;animation:none!important;transition:none!important;opacity:1!important}html body .common-nav .active{background:#173f35!important;color:#fffdf7!important}html body .common-nav a:focus-visible,html body .common-nav button:focus-visible{outline:2px solid #648967;outline-offset:2px}html body .toolbar{gap:12px;flex-wrap:wrap}html body .toolbar .common-nav{margin-left:auto}html body .about-nav{gap:12px;flex-wrap:wrap}html body .about-nav .common-nav{margin-left:auto}html body .toolbar>.common-nav+*{margin-left:0}html body .toolbar:has(.common-nav){background:transparent;padding:0;box-shadow:none}html body .toolbar:has(#configGuide){padding-right:120px}html[data-theme=dark] body .common-nav{background:#233c33;border-color:#405649}html[data-theme=dark] body .common-nav a,html[data-theme=dark] body .common-nav button{color:#c2d2bf!important}@media(max-width:600px){html body .common-nav a,html body .common-nav button{font-size:10px!important;padding:8px 9px!important}html body .toolbar .common-nav{margin-left:0}html body .toolbar:has(#configGuide){padding-right:0}html body .about-nav .common-nav{margin-left:0}html body .about-nav{justify-content:center}}

@media(max-width:620px){html body .about-nav{height:auto;min-height:62px;padding:12px 14px;box-sizing:border-box}.about-nav .common-nav{margin:0!important}}

/* One shared header grid keeps the navigation in the same place on every page. */
html body .toolbar,html body .about-nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;width:100%;height:64px;min-height:64px;padding:0 24px!important;margin:0!important;border-bottom:1px solid #d9e1dc;align-self:stretch;box-sizing:border-box;justify-content:normal}
html body .common-nav{grid-column:2;margin:0!important;justify-self:center}
html body .tb-brand,html body .nav-brand{grid-column:1;margin:0!important;justify-self:start;color:#173f35;font:700 18px Georgia;text-decoration:none;border:0;background:none;padding:0;box-shadow:none;display:flex;gap:8px;align-items:center;white-space:nowrap}
.nav-brand img,.brand-icon{width:25px;height:25px;object-fit:contain}
html body .nav-status{grid-column:3;justify-self:end;display:flex;gap:10px;align-items:center}
body:has(#configGuide){padding:0 20px 60px}.card{margin-top:24px}
html[data-theme=dark] body .tb-brand,html[data-theme=dark] body .nav-brand{color:#e8efe9}

body:has(#configGuide){padding:0 0 60px}body:has(#configGuide)>.card{width:min(1320px,calc(100% - 40px))}
html body .about-nav{max-width:none;border-radius:0;border:0;border-bottom:1px solid #d9e1dc;position:relative}
html body .common-nav a,html body .common-nav button{letter-spacing:normal!important;font-family:system-ui,sans-serif!important}
@media(max-width:600px){html body .toolbar .common-nav,html body .about-nav .common-nav{margin:0!important;gap:4px!important;padding:4px!important}}
@media(max-width:600px){html body:has(#configGuide) .toolbar{max-width:none!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}html body .toolbar .common-nav a,html body .toolbar .common-nav button{padding:8px 9px!important;font-size:10px!important}}
@media(max-width:600px){html body:has(#configGuide) .toolbar{padding:8px 14px!important}}

/* Header follows the same effective theme as the chat. */
html body .common-nav{background:var(--paper,#fffdf7);border-color:var(--line,#d9e1dc)}html body .common-nav a,html body .common-nav button{color:var(--mut,var(--muted,#63736c))!important}html body .common-nav .active{background:var(--brand,var(--accent,#173f35))!important;color:var(--on-brand,var(--on-accent,#fff))!important}html body .common-nav a:focus-visible,html body .common-nav button:focus-visible{outline-color:var(--brand,var(--accent,#173f35))}html body .tb-brand,html body .nav-brand{color:var(--brand,var(--accent,#173f35))}
@media(max-width:360px){html.preview body .toolbar .common-nav{width:100%!important;max-width:100%!important;gap:0!important;padding:3px!important;box-sizing:border-box}html.preview body .toolbar .common-nav a,html.preview body .toolbar .common-nav button{padding:6px 4px!important;font-size:9px!important;min-width:0!important}html.preview body .toolbar{padding-left:8px!important;padding-right:8px!important}}
/* Touch targets stay usable even in the compact shared header. */
.common-nav a,.common-nav button{min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center}
html body .common-nav a,html body .common-nav button{min-height:44px!important}
@media(max-width:600px){html body .nav-status{max-width:100%}.acct-btn{max-width:100px}.acct-menu{z-index:500!important}}
html body :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--brand,#173f35);outline-offset:3px}
html body .common-nav a,html body .common-nav button{transition:background-color .16s cubic-bezier(.2,.8,.2,1),color .16s cubic-bezier(.2,.8,.2,1)!important}
@media(prefers-reduced-motion:reduce){html body .common-nav a,html body .common-nav button{transition:none!important}}html[data-motion=none] body .common-nav a,html[data-motion=none] body .common-nav button{transition:none!important}

html body .common-nav a,html body .common-nav button{white-space:nowrap!important}



/* Mobile: brand and status on row 1, tabs wrap on their own row below. */
@media(max-width:640px){
html body .toolbar,html body .about-nav{height:auto!important;min-height:48px;padding:8px 12px!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:none;gap:6px!important;align-items:center}
html body .tb-brand,html body .nav-brand{grid-column:1;grid-row:1;justify-self:start}
html body .nav-status{grid-column:2;grid-row:1;justify-self:end;max-width:none}
html body .common-nav{grid-column:1/-1!important;grid-row:2!important;justify-self:stretch;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%!important;max-width:100%;box-sizing:border-box;padding:4px!important}
html body .common-nav a,html body .common-nav button{text-align:center;padding:8px 4px!important;min-width:0!important;white-space:normal!important;line-height:1.2!important}
}
