.dict-band{background:#fff;border-bottom:1px solid rgba(0,0,0,0.05);padding:15px 0;color:#202020}
.dict-band-inner{display:flex;align-items:center;gap:16px;max-width:1100px;margin:0 auto;padding:0 20px}
.dict-band-logo{display:inline-flex;align-items:center;flex:none}
.dict-band-logo img{display:block;height:1.9rem;width:auto}
.dict-band-logo:focus-visible{outline:2px solid #9B111E;outline-offset:2px}
.dict-band-lang{flex:none;display:flex;align-items:center;gap:0}
.dict-band-lang .gg-account{order:-1}
.gg-search{flex:1 1 auto;max-width:540px;margin:0 auto;display:flex;flex-direction:column;gap:3px;min-width:0}
.gg-search-form{display:flex;align-items:center;width:100%;background:#fff;border-radius:12px;border:2px solid #ddd;padding:4px 6px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.gg-search-form:focus-within{border-color:#9B111E;box-shadow:0 6px 16px rgba(155,17,30,.1)}
.gg-search-form input[type=search]{flex:1;min-width:0;border:none;outline:none;padding:8px 12px;font:inherit;font-size:1rem;background:transparent;color:#333}
.gg-search-submit{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border:none;border-radius:8px;background:#9B111E;color:#fff;cursor:pointer}
.gg-search-submit:hover{background:#7d0d18}
.gg-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gg-search-toggle,.gg-search-close,.gg-lang-open{display:none;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#202020;cursor:pointer}
.gg-search-close{width:40px;height:40px}
.gg-search-toggle:hover,.gg-lang-open:hover,.gg-search-close:hover{background:rgba(0,0,0,0.03)}
.gg-search-toggle svg,.gg-lang-open svg{width:20px;height:20px;stroke-width:2}
.gg-lang-open svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.gg-search-close svg{width:14px;height:14px;stroke-width:2}
.gg-search-examples{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0;padding:0 8px;color:#666;font-size:12px;line-height:1.6}
.gg-search-examples a{color:#9B111E;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.gg-search-examples a[lang=ja]{font-family:var(--gg-font-ui-ja)}
.gg-search-examples a[lang=ko]{font-family:var(--gg-font-ui-ko)}
.gg-search-sep{color:#666}
.lang-menu{position:relative}
.lang-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#202020;font-size:.85rem;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap}
.lang-menu>summary::-webkit-details-marker{display:none}
.lang-menu>summary:hover{background:rgba(0,0,0,0.03)}
.lang-menu svg{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lang-menu .lang-chevron{width:10px;height:6px;transition:transform .15s ease-out}
.lang-menu[open] .lang-chevron{transform:rotate(180deg)}
.lang-menu-list{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:160px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,0.1)}
.lang-menu-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-radius:6px;color:#444;font-size:.85rem;font-weight:600;text-decoration:none}
.lang-menu-item:hover{background:#F7F5F2;color:#9B111E}
.lang-menu-item[aria-current]{font-weight:800;color:#202020}
.lang-menu-item[aria-current]::after{content:"";margin-left:auto;width:7px;height:7px;border-radius:50%;background:#9B111E}
[lang=ja].lang-name,.lang-menu [lang=ja],.gg-lang-sheet [lang=ja]{font-family:var(--gg-font-ui-ja)}
.lang-menu [lang=ko],.gg-lang-sheet [lang=ko]{font-family:var(--gg-font-ui-ko)}
.lang-menu>summary:focus-visible,.lang-menu-item:focus-visible,.gg-search-toggle:focus-visible,.gg-lang-open:focus-visible,.gg-search-close:focus-visible,.gg-search-examples a:focus-visible,.gg-account:focus-visible{outline:2px solid #9B111E;outline-offset:2px}
dialog.gg-lang-sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:85vh;padding:0;border:0;border-radius:16px 16px 0 0;background:#fff;color:#202020;box-shadow:0 10px 30px rgba(0,0,0,0.1)}
dialog.gg-lang-sheet::backdrop{background:rgba(32,32,32,0.4)}
.gg-lang-sheet-body{padding:8px 0 calc(14px + env(safe-area-inset-bottom))}
.gg-lang-sheet h2{margin:10px 20px 6px;color:#666;font-size:.85rem;font-weight:700;letter-spacing:0}
.gg-lang-sheet ul{margin:0;padding:0;list-style:none}
.gg-lang-item{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 20px;border-top:1px solid rgba(0,0,0,0.05);color:#202020;font-size:1.15rem;font-weight:600;text-decoration:none}
a.gg-lang-item:hover,a.gg-lang-item:active{background:#F7F5F2}
.gg-lang-item[aria-current]{font-weight:800;color:#9B111E}
.gg-lang-item[aria-current]::after{content:"";margin-left:auto;width:9px;height:9px;border-radius:50%;background:#9B111E}
.gg-lang-item:focus-visible,.gg-lang-close:focus-visible{outline:2px solid #9B111E;outline-offset:-2px}
.gg-lang-close{display:block;width:calc(100% - 40px);min-height:48px;margin:12px 20px 0;border:1px solid rgba(0,0,0,0.08);border-radius:10px;background:#F7F5F2;color:#202020;font:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.gg-account{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:44px;padding:0;border:0;border-radius:999px;background:transparent;color:#666;cursor:pointer}
.gg-account:hover{background:rgba(0,0,0,0.03)}
.gg-account .icon-nav{width:17px;height:17px;stroke:#666;fill:none}
.gg-hint-strip{border-bottom:1px solid rgba(0,0,0,0.08)}
.gg-hint{display:flex;align-items:center;gap:8px;max-width:1100px;margin:0 auto;padding:1px 14px 1px 20px;color:#666;font-family:var(--gg-font-ui-base);font-size:12.5px;line-height:1.5}
.gg-hint[lang=ja]{font-family:var(--gg-font-ui-ja)}
.gg-hint[lang=ko]{font-family:var(--gg-font-ui-ko)}
.gg-hint p{flex:1 1 auto;min-width:0;margin:0;padding:4px 0}
.gg-hint a{color:#9B111E;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.gg-hint.is-quiet a{color:#666;font-weight:600}
.gg-hint button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;padding:0;border:0;background:none;color:#666;cursor:pointer}
.gg-hint button:hover{color:#202020}
.gg-hint a:focus-visible,.gg-hint button:focus-visible{outline:2px solid #9B111E;outline-offset:2px}
.gg-hint svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}
.gg-band{position:sticky;top:0;z-index:60;transition:transform .2s ease-out}
.gg-band.is-hidden{transform:translateY(-100%)}
body.word-detail-surface .tabs-outer,body.word-detail-surface:lang(vi) .tabs-outer{top:var(--gg-band-offset,0px);transition:top .2s ease-out}
@media (prefers-reduced-motion: reduce){.gg-band,body.word-detail-surface .tabs-outer,body.word-detail-surface:lang(vi) .tabs-outer{transition:none}}
@media(max-width:640px){
.dict-band{padding:12px 0}
.dict-band-inner{gap:4px;padding:0 15px}
.gg-search{order:2;flex:0 0 auto;max-width:none;margin:0 0 0 auto}
.gg-band-js .gg-search-toggle{display:inline-flex}
.gg-band-js .gg-search-form,.gg-band-js .gg-search-examples{display:none}
html:not(.gg-band-js) .dict-band-inner{flex-wrap:wrap}
html:not(.gg-band-js) .gg-search{order:9;flex:1 1 100%;margin:8px 0 0}
html:not(.gg-band-js) .gg-search-examples{display:none}
.dict-band-lang{order:3}
.gg-band-modal .lang-menu{display:none}
.gg-band-modal .gg-lang-open{display:inline-flex}
.dict-band-lang .gg-account{order:2}
.dict-band-inner.is-searching>:not(.gg-search){display:none}
.is-searching .gg-search{flex:1 1 100%;margin:0}
.is-searching .gg-search-toggle{display:none}
.is-searching .gg-search-form,.is-searching .gg-search-examples{display:flex}
.is-searching .gg-search-close{display:inline-flex}
.gg-hint{padding:1px 6px 1px 15px}
}
