.group-tools{display:flex;align-items:center;gap:9px;flex-shrink:0}.header nav{gap:18px}.install-app{background:var(--gold);color:var(--petrol);border:0;border-radius:7px;padding:8px 12px;min-height:42px;font-size:12px;white-space:nowrap}.group-control{position:relative}.group-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;border:1px solid #71837d;border-radius:7px;background:none;color:inherit}.group-toggle span{width:20px;height:2px;background:currentColor;border-radius:2px}.group-links{position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:min(300px,calc(100vw - 40px));max-height:70vh;overflow:auto;padding:13px;background:var(--cream);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 40px #07191e40;z-index:20}.group-links[hidden]{display:none}.group-links>b{display:block;font-size:12px;color:var(--muted);padding:2px 9px 8px}.group-links a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 9px;border-radius:7px;border-bottom:1px solid var(--line)}.group-links a:last-child{border-bottom:0}.group-links a:hover,.group-links a:focus-visible{background:#e7bd7c33}.group-links strong{font-size:13px;white-space:nowrap}.group-links small{font-size:10px;line-height:1.6;color:var(--muted)}.install-help-body{padding:12px 22px 26px}.install-help-body p{font-size:14px}.install-help-body .primary{display:inline-flex;margin-top:6px}#install-help{max-width:520px;width:calc(100% - 32px)}#close-install-help{border:0;background:none;font-size:26px;min-width:44px;min-height:44px;margin-inline-start:auto}.install-app:disabled{opacity:.65}.install-app[hidden]{display:none}@media(max-width:1000px) and (min-width:761px){.header{gap:10px}.header nav{gap:8px}.header nav button{font-size:12px}.header nav .outline{padding:8px 10px}}@media(max-width:760px){.header .brand{order:1}.group-tools{order:2;width:100%;justify-content:flex-end}.header nav{order:3}.group-links{inset-inline-end:0}}

/* Compact, persistent header; scoped to navigation, with page sections untouched. */
body>header{position:sticky;top:0;z-index:40;isolation:isolate;box-shadow:0 2px 10px #07191e18}
body>header .header{height:auto;min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding-block:10px}
body>header .brand{grid-column:1;grid-row:1;min-width:0;gap:0;order:initial}
body>header .brand-wordmark{width:220px;max-width:100%;height:auto;aspect-ratio:5.3/1}
body>header .brand-wordmark img{width:100%;top:0;transform:translateY(-20%)}
body>header .brand>small{font-size:9px;line-height:1.4;margin-top:2px}
body>header nav{grid-column:2;grid-row:1;display:flex;width:auto;gap:8px;order:initial}
body>header nav button{min-height:40px;border:1px solid #71837d;border-radius:7px;padding:6px 12px;white-space:nowrap;font-size:12px;background:transparent}
body>header .group-tools{grid-column:3;grid-row:1;width:auto;gap:7px;order:initial}
body>header .install-app{min-height:40px;padding:7px 10px;font-size:11px}
body>header .group-toggle{width:40px;height:40px}
body>header .group-links{max-height:calc(100dvh - 140px)}
html{scroll-padding-top:88px}
#dialog>.dialog-head,#install-help>.dialog-head{position:sticky;top:0;z-index:2;background:var(--cream);padding-bottom:8px;border-bottom:1px solid var(--line)}
@media(max-width:900px){
 body>header .header{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;min-height:0;padding-block:8px}
 body>header .brand-wordmark{width:190px}
 body>header .group-tools{grid-column:2;grid-row:1}
 body>header nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
 body>header nav button{width:100%;min-width:0;min-height:38px;padding:5px 8px}
 html{scroll-padding-top:124px}
}
@media(max-width:360px){body>header .header{gap:7px 8px}body>header .brand-wordmark{width:160px}body>header .brand>small{font-size:8px}body>header .install-app{padding-inline:7px;font-size:10px}body>header .group-tools{gap:5px}body>header nav button{font-size:11px;padding-inline:5px}}
