/* Local English homepage owner review only. */
html[data-kbt-header-layout="compact"] .msn-local-header--home {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
    gap: 12px !important; height:64px !important; min-height:64px !important;
}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-brand {grid-column:1!important;grid-row:1!important;justify-self:start;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-actions {grid-column:3!important;grid-row:1!important;justify-self:end;display:flex!important;width:max-content;gap:8px;}
html[data-kbt-header-layout="compact"] .msn-local-category-label {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {position:relative;box-sizing:border-box;grid-column:2;grid-row:1;display:flex!important;align-items:center!important;justify-content:flex-start!important;justify-self:center;flex-wrap:nowrap!important;gap:0!important;width:max-content;max-width:100%;min-width:0;height:54px;margin:0!important;padding:0!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts::-webkit-scrollbar {display:none;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {position:relative;box-sizing:border-box;display:flex;flex:0 0 60px!important;align-items:center;justify-content:center;gap:1px!important;width:60px;min-width:0;height:54px;padding:0!important;border-radius:7px;font-size:12px!important;line-height:14px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon {flex:0 0 36px;width:36px!important;height:36px!important;padding:0!important;border-radius:7px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon svg {width:36px!important;height:36px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut:focus-visible {outline:2px solid var(--msn-link)!important;outline-offset:-2px!important;}
html[data-kbt-header-layout="compact"] body.home-redesign .landing-main > .msn-tool-intro {margin-top:12px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-inline-search {display:none!important;position:absolute!important;grid-column:auto!important;grid-row:auto!important;right:24px;top:calc(100% + 8px);width:min(560px,calc(100vw - 32px));box-sizing:border-box;z-index:1010;box-shadow:0 5px 20px #0003;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-inline-search.is-preview-search-open {display:flex!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-search-results {width:100%;left:0;right:0;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-search-icon {width:40px;min-width:40px;height:40px;padding:8px;}
@media(max-width:1150px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {gap:8px!important;padding-inline:16px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcuts {gap:0!important;height:44px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex-basis:36px!important;width:36px;height:44px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut > span:last-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand {font-size:18px;gap:7px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-actions {gap:4px;}
}
@media(min-width:401px) and (max-width:800px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:44px 46px;gap:6px 4px!important;height:108px!important;min-height:108px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-actions {grid-column:2!important;gap:0;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {grid-column:1 / -1;grid-row:2;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-actions :is(button,a),html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-language > summary {min-width:32px;padding-inline:3px;}
}
@media(max-width:400px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px 46px 44px;gap:6px!important;height:158px!important;min-height:158px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-brand {grid-column:1!important;grid-row:1!important;justify-self:center;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-actions {grid-column:1!important;grid-row:2!important;justify-self:end;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {grid-column:1;grid-row:3;}
}
@media(min-width:401px) and (max-width:440px){
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand {font-size:16px;gap:5px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand :is(svg,img) {width:28px;height:28px;}
}
/* Alternative: a quiet single-line navigation, with no icon tiles. */
html[data-kbt-header-layout="compact"] .msn-local-header--home {padding-block:0!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {height:44px;gap:2px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex:0 0 auto!important;flex-direction:row!important;gap:7px!important;width:auto;height:40px;padding:0 9px!important;border-radius:8px;font-size:13px!important;line-height:20px!important;font-weight:500;white-space:nowrap;transition:background .15s ease,color .15s ease;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon {display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px!important;height:23px!important;background:transparent!important;border-radius:0!important;padding:0!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon svg {width:23px!important;height:23px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut:hover {background:var(--msn-hover)!important;}
@media(min-width:801px) and (max-width:1350px){
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {max-width:calc(100vw - 500px);gap:4px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex:0 0 40px!important;width:40px;padding:0!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut > span:last-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon {flex-basis:28px;width:28px!important;height:28px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon svg {width:28px!important;height:28px!important;}
}
@media(max-width:800px){
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {width:100%;justify-self:stretch;gap:6px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex:0 0 auto!important;width:auto;padding:0 10px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut > span:last-child {position:static;width:auto;height:auto;overflow:visible;clip-path:none;}
}

/* Mobile: compact masthead, one scrollable category row, secondary options menu. */
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more {display:none!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel {display:contents;}
@media(max-width:800px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:52px 44px!important;gap:0 4px!important;padding:0 12px!important;height:96px!important;min-height:96px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-brand {grid-column:1!important;grid-row:1!important;justify-self:start;font-size:16px;gap:5px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand :is(svg,img) {width:28px;height:28px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-actions {grid-column:2!important;grid-row:1!important;gap:0;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {grid-column:1 / -1;grid-row:2;gap:4px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-actions > :is(button,[data-kbt-support-open]) {display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 36px!important;min-width:36px!important;width:36px!important;height:44px!important;border:0!important;padding:0!important;background:transparent;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel {display:none;position:absolute;top:52px;right:12px;z-index:1020;min-width:190px;max-height:calc(100dvh - 110px);overflow:auto;padding:8px;background:var(--msn-card);border:1px solid var(--msn-border);border-radius:12px;box-shadow:0 8px 24px #0003;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel.is-open {display:flex;flex-direction:column;align-items:stretch;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel :is(a,button,summary) {min-height:44px!important;justify-content:flex-start;padding-inline:12px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel .msn-local-language-options {position:static;width:100%;max-height:50dvh;box-shadow:none;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-inline-search {right:12px;width:calc(100vw - 24px);}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {padding:0 10px!important;}
}
@media(max-width:360px){
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand {font-size:15px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-brand-icon {display:none;}
}
/* All mobile categories are visible; the entire header scrolls with the page. */
@media(max-width:800px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {position:relative!important;top:auto!important;grid-template-rows:52px 96px!important;height:148px!important;min-height:148px!important;transform:none!important;visibility:visible!important;pointer-events:auto!important;transition:none!important;box-shadow:none!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,48px);gap:0!important;height:96px;overflow:visible;max-width:100%;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex-direction:column!important;justify-content:center;gap:3px!important;width:100%;height:48px;padding:0!important;font-size:12px!important;line-height:14px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon {flex:0 0 24px;width:24px!important;height:24px!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon svg {width:24px!important;height:24px!important;}
}
/* Blog listing keeps its original ten category links, including All posts. */
html[data-kbt-header-page="blog"] body.blog-page .msn-local-header--home .msn-local-shortcut-icon {border:0!important;}
html[data-kbt-header-page="blog"] body.blog-page .msn-blog {margin-top:12px;}
@media(min-width:1351px){
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {max-width:calc(100vw - 580px);}
html[data-kbt-header-page="blog"] .msn-local-header--home .msn-local-shortcut {gap:5px!important;padding-inline:6px!important;font-size:12px!important;}
}
@media(max-width:800px){
html[data-kbt-header-page="blog"] .msn-local-header--home {grid-template-rows:52px 144px!important;height:196px!important;min-height:196px!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {grid-template-rows:repeat(3,48px);height:144px;}
}
@media(min-width:500px) and (max-width:800px){
html[data-kbt-header-page="blog"] .msn-local-header--home {grid-template-rows:52px 96px!important;height:148px!important;min-height:148px!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,48px);height:96px;}
}
/* Blog: nine category links, all visible with no category scrollbar. */
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {width:max-content!important;overflow:visible!important;scrollbar-width:none!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts::-webkit-scrollbar {display:none!important;}
@media(min-width:801px) and (max-width:1350px){
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {gap:0!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home .msn-local-shortcut {flex:0 0 32px!important;width:32px;padding:0!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home .msn-local-shortcut-icon {flex-basis:24px;width:24px!important;height:24px!important;}
html[data-kbt-header-page="blog"] .msn-local-header--home .msn-local-shortcut-icon svg {width:24px!important;height:24px!important;}
}
@media(max-width:499px){
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:800px){
html[data-kbt-header-page="blog"] .msn-local-header--home > .msn-local-shortcuts {width:100%!important;}
}
/* Shared local preview: translated pages, article templates and RTL. */
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {width:max-content!important;overflow:visible!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut-icon {border:0!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel,
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-inline-search {right:auto;inset-inline-end:12px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel > a {max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(min-width:801px) and (max-width:1350px){
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {gap:0!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {flex:0 0 32px!important;width:32px;padding:0!important;}
}
@media(max-width:800px){
html[data-kbt-header-layout="compact"] .msn-local-header--home {grid-template-rows:52px calc(var(--local-category-rows,2) * 56px)!important;height:calc(52px + var(--local-category-rows,2) * 56px)!important;min-height:calc(52px + var(--local-category-rows,2) * 56px)!important;}
html[data-kbt-header-layout="compact"] .msn-local-header--home > .msn-local-shortcuts {width:100%!important;grid-template-columns:repeat(var(--local-category-columns,4),minmax(0,1fr));grid-template-rows:repeat(var(--local-category-rows,2),56px);height:calc(var(--local-category-rows,2) * 56px);}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut {height:56px;white-space:normal;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-local-shortcut > span:last-child {display:block;max-width:100%;overflow-wrap:anywhere;line-height:14px;}
html[data-kbt-header-layout="compact"] .msn-local-header--home .msn-preview-more-panel > a {max-width:none;}
}
/* Owner local review: remove the introductory notice above the JIS keyboard. */
html[data-kbt-header-layout="compact"] #jis109-browser-note {display:none!important;}