/* Shared header appearance. Existing app controls keep their own menu behavior. */
.hh-header{display:block;width:100%;max-width:none;margin:0;padding:0;border-bottom:1px solid var(--hh-line);background:var(--hh-bg);color:var(--hh-ink)}
.hh-header::before{display:none}
.hh-header,.hh-header *{box-sizing:border-box}
.hh-header .hh-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;width:100%;max-width:1200px;height:auto;min-height:64px;margin:0 auto;padding:10px max(24px,env(safe-area-inset-right)) 10px max(24px,env(safe-area-inset-left))}
.hh-header .hh-brand{display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:0;color:var(--hh-ink);font-family:var(--hh-brand-font,inherit);font-size:17px;font-weight:750;line-height:1.2;letter-spacing:var(--hh-brand-spacing,-.02em);text-decoration:none;white-space:nowrap}
.hh-header .hh-brand>img,.hh-header .hh-brand>svg{display:block;flex:0 0 38px;width:38px;height:38px;max-width:none;margin:0;object-fit:contain;filter:none}
.hh-header .hh-brand-name{position:static;display:block;min-width:0;width:auto;height:auto;clip:auto;clip-path:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hh-header .hh-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;width:auto;margin:0;padding:0}
.hh-header .hh-menu,.hh-header .hh-theme{position:static;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:8px;width:auto;min-height:44px;height:44px;margin:0;padding:0 16px;border:1px solid var(--hh-button-line);border-radius:999px;background:var(--hh-button-bg);color:var(--hh-button-ink);font:650 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none;transform:none}
.hh-header .hh-menu>span{position:static;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible}
.hh-header .hh-menu svg,.hh-header .hh-theme svg{display:block;flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hh-header .hh-theme{width:44px;padding:0;border-color:var(--hh-line);border-radius:12px;background:transparent;color:var(--hh-ink)}
.hh-header #navToggle.hh-menu{display:inline-flex}
.hh-header .hh-menu:hover,.hh-header .hh-theme:hover{background:var(--hh-button-bg);color:var(--hh-button-ink);filter:brightness(.95);text-decoration:none;box-shadow:none;transform:none}
.hh-header .hh-theme:hover{background:transparent;color:var(--hh-ink)}
.hh-header .hh-menu:focus-visible,.hh-header .hh-theme:focus-visible,.hh-header .hh-brand:focus-visible{outline:2px solid var(--hh-ink);outline-offset:3px}
@media(max-width:600px){.hh-header .hh-inner{padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));gap:10px}.hh-header .hh-brand{font-size:16px;gap:8px}.hh-header .hh-menu{padding-inline:13px}.hh-header .hh-inner:has(.hh-theme) .hh-brand{font-size:15px}}
@media(min-width:901px){.hh-header~.wrap>#nav{top:65px;max-height:calc(100vh - 65px)}}
