





#top {
--hd-h: 56px; --ctl: 36px;
position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px;
height: var(--hd-h); padding: 0 24px; background: var(--ink); border-bottom: 1px solid var(--line2);
}


#top .logo {
flex: none; order: 0; display: flex; align-items: center; height: 100%; text-decoration: none; color: var(--paper);
font: 400 19px/1 var(--f-head); letter-spacing: -.01em; white-space: nowrap;
}
#top .logo b { color: var(--hi); font-weight: 400; }
#top .logo:focus-visible { outline-offset: 4px; }


#top .hd-r { display: contents; }
.nav { order: 1; flex: none; display: flex; align-items: stretch; align-self: stretch; gap: 2px; min-width: 0; }
.nav a {
position: relative; display: flex; align-items: center; padding: 0 12px; text-decoration: none; white-space: nowrap;
color: var(--mute); font: 700 var(--t-body)/1 var(--f-mono); letter-spacing: .1em; transition: color .15s;
}
.nav a .n { display: none; }
.nav a::after {
content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--mute2);
transform: scaleX(0); transform-origin: left center; transition: transform .2s cubic-bezier(.2, .7, .1, 1);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--acid); }
.nav a:focus-visible { outline-offset: -6px; }


#top .hd-c { order: 2; flex: none; margin-left: auto; display: flex; align-items: center; }
.hsearch {
display: flex; align-items: center; gap: 10px; width: clamp(220px, 24vw, 360px); height: var(--ctl); padding: 0 5px 0 11px;
background: var(--ink2); border: 1px solid var(--line2); color: var(--mute); text-align: left;
font: 700 var(--t-meta)/1 var(--f-mono); letter-spacing: .08em; transition: border-color .15s;
}
.hsearch svg { flex: none; color: var(--mute); transition: color .15s; }
.hsearch .ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 1px; }
.hsearch kbd {
flex: none; display: grid; place-items: center; height: 24px; min-width: 24px; padding: 1px 6px 0; border: 1px solid var(--line2);
background: var(--ink); color: var(--mute); font: 800 var(--t-label)/1 var(--f-mono); letter-spacing: .1em; transition: color .15s, border-color .15s;
}
.hsearch kbd::before, .hsearch kbd::after { content: none; }
.hsearch:hover { border-color: var(--mute2); }
.hsearch:hover svg, .hsearch:hover kbd { color: var(--paper); }
.hsearch:focus-visible { border-color: var(--acid); outline: 0; }
.hsearch:active { border-color: var(--paper); }


.acct { order: 3; position: relative; flex: none; display: flex; align-items: center; }
#top .me {
display: flex; align-items: center; height: var(--ctl); padding: 1px 14px 0; border: 1px solid var(--paper); background: var(--ink);
color: var(--paper); text-decoration: none; font: 800 var(--t-meta)/1 var(--f-mono); letter-spacing: .1em; white-space: nowrap;
transition: background-color .15s, color .15s;
}
#top .me:hover { background: var(--paper); color: var(--ink); }
#top .me[aria-current="page"] { background: var(--acid); border-color: var(--acid); color: #000; }
#top .me.wait { visibility: hidden; }
.av-b {
display: flex; align-items: center; gap: 10px; height: var(--ctl); padding: 0 8px 0 3px; background: none; border: 1px solid transparent;
color: var(--paper); font: 700 var(--t-meta)/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; transition: background-color .15s, border-color .15s;
}
.av-b .av {
flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--acid); color: #000;
font: 400 var(--t-head)/1 var(--f-disp); padding-top: 1px;
}
.av-b .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; padding-top: 1px; }
.av-b svg { flex: none; color: var(--mute); transition: transform .15s; }
.av-b:hover { background: var(--line3); border-color: var(--line2); }
.av-b[aria-expanded="true"] { background: var(--line3); border-color: var(--paper); }
.av-b[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--paper); }
.av-b.on .nm { color: var(--hi); }
.av-b.on .av { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--acid); }
.acct-menu {
position: absolute; top: calc(100% + (var(--hd-h) - var(--ctl)) / 2 - 1px); right: 0; z-index: 60; width: 240px; background: var(--ink); border: 1px solid var(--paper);
}
.acct-menu .who { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.acct-menu .who .lbl { font: 700 var(--t-label)/1 var(--f-mono); letter-spacing: .13em; color: var(--mute); }
.acct-menu .who b { color: var(--paper); font: 800 var(--t-body)/1.2 var(--f-mono); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button {
display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; height: 44px; padding: 0 14px;
align-items: center; background: none; border: 0; text-decoration: none; text-align: left; color: var(--paper);
font: 700 var(--t-body)/1 var(--f-mono); letter-spacing: .1em;
}
.acct-menu .d { font-size: var(--t-label); letter-spacing: .08em; color: var(--mute2); }
.acct-menu .out { border-top: 1px solid var(--line2); color: var(--mute); }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: var(--paper); color: var(--ink); outline: 0; }
.acct-menu a:hover .d, .acct-menu a:focus-visible .d { color: var(--ink); }


html[data-hdr] .fp-q { display: none; }


.tabbar { display: none; }


html[data-hdr="b"] #top .logo { flex: 1 1 0; min-width: max-content; }
html[data-hdr="b"] #top .hd-c { order: 1; flex: 0 1 600px; min-width: 220px; margin: 0; }
html[data-hdr="b"] .hsearch { width: 100%; padding: 0 5px 0 13px; gap: 12px; }
html[data-hdr="b"] #top .hd-r { order: 2; flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; align-self: stretch; }
html[data-hdr="b"] .nav { gap: 0; }
html[data-hdr="b"] .nav a.pf { display: none; }
html[data-hdr="b"] .av-b .nm { display: none; }


@media (max-width: 1180px) {
#top { gap: 18px; padding: 0 16px; }
.av-b .nm { display: none; }
.av-b { padding-right: 6px; gap: 6px; }
.hsearch { width: clamp(180px, 20vw, 260px); }
.hsearch .ph2 { display: none; }
html[data-hdr="b"] .hsearch .ph2 { display: inline; }
.nav a { padding: 0 10px; }
.nav a::after { left: 10px; right: 10px; }
}
@media (max-width: 960px) and (min-width: 761px) {
html[data-hdr="a"] .hsearch { width: var(--ctl); padding: 0; justify-content: center; }
html[data-hdr="a"] .hsearch .ph, html[data-hdr="a"] .hsearch kbd { display: none; }
html[data-hdr="b"] .hsearch kbd { display: none; }
html[data-hdr="b"] #top .hd-c { min-width: 160px; }
}
@media (max-width: 760px) {
#top { --ctl: 40px; gap: 0 4px; padding: 0 16px; }
.hsearch kbd { display: none; }
#top .me { height: 36px; padding: 1px 12px 0; }
.av-b { width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; }
.av-b:hover, .av-b[aria-expanded="true"] { background: none; border: 0; }
.av-b[aria-expanded="true"] .av { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--paper); }
.av-b .av { width: 30px; height: 30px; }
.av-b svg { display: none; }
.acct-menu { top: calc(100% + 5px); right: -16px; width: min(260px, 100vw); border-right: 0; }


html[data-hdr="a"] { --top-h: 101px; }
html[data-hdr="a"] #top { flex-wrap: wrap; height: auto; }
html[data-hdr="a"] #top .logo { height: 56px; margin-right: auto; }
html[data-hdr="a"] #top .hd-c { margin-left: 0; }
html[data-hdr="a"] .hsearch { width: 44px; height: 44px; padding: 0; justify-content: center; background: none; border-color: transparent; }
html[data-hdr="a"] .hsearch svg { width: 18px; height: 18px; color: var(--paper); }
html[data-hdr="a"] .hsearch:active { background: var(--line3); }
html[data-hdr="a"] .hsearch .ph { display: none; }
html[data-hdr="a"] .nav {
order: 4; flex: 1 0 100%; height: 44px; margin: 0 -16px; padding: 0 6px; gap: 0; border-top: 1px solid var(--line3);
}
html[data-hdr="a"] .nav a { flex: 1 1 0; justify-content: center; padding: 0 2px; font-size: var(--t-meta); letter-spacing: .08em; }
html[data-hdr="a"] .nav a::after { left: 14%; right: 14%; }


html[data-hdr="b"] { --top-h: 56px; --status-h: 57px; }
html[data-hdr="b"] #top { gap: 14px; }
html[data-hdr="b"] #top .logo { flex: none; min-width: 0; }
html[data-hdr="b"] #top .hd-c { flex: 1 1 auto; min-width: 0; }
html[data-hdr="b"] .hsearch { padding: 0 12px; gap: 10px; font-size: var(--t-meta); letter-spacing: .03em; }
html[data-hdr="b"] #top .hd-r { display: none; }
html[data-hdr="b"] #status { display: none; }
html[data-hdr="b"] #app, html[data-hdr="b"][data-route="home"] #app { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
html[data-hdr="b"] .tabbar {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
height: calc(57px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
background: var(--ink); border-top: 1px solid var(--line2);
}
.tabbar a {
position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
color: var(--mute); text-decoration: none; font: 700 var(--t-meta)/1 var(--f-mono); letter-spacing: .1em; -webkit-tap-highlight-color: transparent;
}
.tabbar a svg { color: inherit; }
.tabbar a:active { background: var(--line3); }
.tabbar a[aria-current="page"] { color: var(--paper); }
.tabbar a[aria-current="page"] svg { color: var(--acid); }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 24%; right: 24%; height: 2px; background: var(--acid); }
}

html.inv .nav a[aria-current="page"]::after, html.inv .tabbar a[aria-current="page"]::before { background: var(--paper); }
html.inv .tabbar a[aria-current="page"] svg { color: var(--paper); }
@media (max-width: 379px) { html[data-hdr="b"] .hsearch .ph2 { display: none; } }
@media (prefers-reduced-motion: reduce) {
.nav a::after, .av-b svg { transition: none; }
}
html.nomo .nav a::after, html.nomo .av-b svg { transition: none; }
html.inv .av-b.on .av { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--paper); }
