/* MG33: only navigation, search dialog and temporary location markers. */
.mg-page-nav,.mg-page-search{box-sizing:border-box;font:400 15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:#34465f;font-variant-numeric:tabular-nums}
.mg-page-nav{position:sticky;top:0;z-index:120;display:flex;align-items:center;gap:5px;min-height:54px;padding:5px 8px;padding-top:max(5px,env(safe-area-inset-top));margin:0 0 14px;background:#fff;border-bottom:1px solid #dce5ef;box-shadow:0 2px 7px #142c4810;max-width:100%}
.mg-page-nav *,.mg-page-search *{box-sizing:border-box}.mg-page-nav [hidden],.mg-page-search [hidden]{display:none!important}
.mg-page-nav .mg-page-nav-tabs{display:flex;align-items:center;gap:3px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;flex:1;min-width:0;white-space:nowrap}
.mg-page-nav .mg-page-nav-tab{display:inline-flex;align-items:center;min-height:42px;padding:8px 11px;border-radius:4px;color:#465871;text-decoration:none;font-size:14px;flex-shrink:0}
.mg-page-nav .mg-page-nav-tab[aria-current="location"]{color:#174f8e;background:#eaf2fc;font-weight:600}
.mg-page-nav button,.mg-page-search button{font:inherit;cursor:pointer;border:0;background:transparent;color:#1c5fa9;text-align:left}
.mg-page-nav>button{display:flex;gap:5px;align-items:center;justify-content:center;flex-shrink:0;min-height:42px;padding:7px 9px;border-radius:4px;font-size:14px;white-space:nowrap}.mg-page-nav>button:hover,.mg-page-search button:hover{background:#f0f5fb}
.mg-page-nav .mg-page-nav-search{background:#eaf2fc}.mg-page-nav .mg-nav-icon,.mg-page-search .mg-nav-icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}
.mg-page-nav :is(a,button):focus-visible,.mg-page-search :is(input,button):focus-visible{outline:3px solid #4483c2;outline-offset:2px}
.mg-page-search{width:min(620px,calc(100% - 32px));max-width:620px;max-height:var(--mg-available-height,calc(100dvh - 40px));padding:22px;border:1px solid #d4deeb;border-radius:8px;box-shadow:0 12px 52px #132b4730;background:#fff;overflow:hidden;margin:auto}
.mg-page-search[open]{display:flex;flex-direction:column}.mg-page-search::backdrop{background:#182e4b70}
/* The directory keeps the original module order and jump controls. */
.mg-page-search.is-module-directory{width:min(680px,calc(100% - 32px));max-width:680px;padding:24px}
.mg-page-search.is-module-directory .mg-page-search-head{margin-bottom:0}
.mg-page-search.is-module-directory .mg-page-search-status{margin:8px 0 16px;color:#526779}
.mg-page-search.is-module-directory .mg-page-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:none;padding:4px;flex:0 1 auto}
.mg-page-search.is-module-directory .mg-page-search-results li{border:0;min-width:0}
.mg-page-search.is-module-directory .mg-page-module-result{display:grid;grid-template-columns:minmax(0,1fr) 10px;align-items:center;gap:12px;min-height:56px;height:100%;padding:13px 15px;border:1px solid #d9e4ef;border-radius:6px;background:#f8fafc;color:#294b6b;line-height:1.6;white-space:normal;overflow-wrap:break-word}
.mg-page-search.is-module-directory .mg-page-module-result::after{content:'';width:7px;height:7px;border-top:1.5px solid #67849e;border-right:1.5px solid #67849e;transform:rotate(45deg)}
.mg-page-search.is-module-directory .mg-page-module-result[aria-current="location"]{background:#eaf2fc;border-color:#7398be;color:#174f8e;font-weight:600}
.mg-page-search.is-module-directory .mg-page-module-result:hover{background:#edf4fb;border-color:#a4bfd7}
.mg-page-search .mg-page-search-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-shrink:0;margin:0 0 14px}.mg-page-search h2{font-size:22px;font-weight:600;line-height:1.4;color:#102c56;margin:0}.mg-page-search .mg-page-search-close{display:flex;gap:4px;align-items:center;min-height:44px;padding:8px;border-radius:4px;white-space:nowrap}
.mg-page-search .mg-page-search-form{flex-shrink:0}.mg-page-search label{display:block;font-size:13px;color:#627189;margin:0 0 7px}.mg-page-search .mg-page-search-field{display:flex;gap:7px;align-items:center}.mg-page-search input{font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;width:100%;min-width:0;flex:1;min-height:46px;border:1px solid #b8cbe0;background:#fff;color:#243e5e;border-radius:4px;padding:9px 10px}.mg-page-search .mg-page-search-clear{font-size:14px;min-height:44px;padding:8px;flex-shrink:0}
.mg-page-search .mg-page-search-status{font-size:13px;line-height:1.55;color:#627189;flex-shrink:0;margin:12px 0 7px}.mg-page-search .mg-page-search-results{margin:0;padding:0;list-style:none;overflow-y:auto;overscroll-behavior-y:contain;min-height:0;flex:0 1 auto;max-height:440px;scrollbar-gutter:stable}.mg-page-search .mg-page-search-results li{margin:0;padding:0;border-top:1px solid #e3eaf2}
.mg-page-search .mg-page-stock-result,.mg-page-search .mg-page-module-result{display:flex;flex-direction:column;width:100%;gap:5px;padding:12px 9px;min-height:48px;border-radius:3px;color:#34465f}.mg-page-search .mg-page-module-result{color:#174f8e;justify-content:center}.mg-page-search .mg-page-stock-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:#102c56;overflow-wrap:anywhere}.mg-page-search .mg-page-stock-title strong{font-size:17px;font-weight:600}.mg-page-search .mg-page-stock-title>span{font-size:15px}.mg-page-search .mg-page-stock-status{font-size:13px;color:#526681;white-space:normal;overflow-wrap:anywhere}.mg-page-search .mg-page-stock-hint{font-size:12px;color:#627189}.mg-page-search .mg-page-stock-hidden{font-size:13px;color:#8b601b}.mg-page-search .mg-page-search-help{flex-shrink:0;color:#627189;font-size:12px;line-height:1.5;margin:12px 0 0}
#watchlistCollapseWrap .stock-row-extended[data-mg-nav-reveal="temporary"],#watchlistCollapseWrap .stock-col[data-mg-nav-reveal="temporary"]{display:block!important}
#watchlistCollapseWrap .stock-group[data-mg-nav-reveal="temporary"]{display:grid!important}
#watchlistCollapseWrap[data-mg-nav-reveal="temporary"]>.stock-cols{display:block!important}
#watchlistCollapseWrap[data-mg-nav-reveal="temporary"]>.watchlist-collapsed-note{display:none!important}
.stock-row-extended.mg-nav-stock-highlight>.stock-row-top{outline:2px solid #4483c2;outline-offset:3px;background:#edf5ff}
@media(max-width:600px){.mg-page-search.is-module-directory{width:calc(100% - 24px);padding:18px 14px}.mg-page-search.is-module-directory .mg-page-search-results{grid-template-columns:minmax(0,1fr);gap:8px;flex:1 1 auto}.mg-page-search.is-module-directory .mg-page-module-result{min-height:54px;padding:12px 14px}.mg-page-nav{padding:4px 3px;padding-top:max(4px,env(safe-area-inset-top));gap:2px;min-height:52px;margin-bottom:10px}.mg-page-nav .mg-page-nav-tabs{scrollbar-width:none}.mg-page-nav .mg-page-nav-tabs::-webkit-scrollbar{display:none}.mg-page-nav .mg-page-nav-tab{padding:8px 9px;font-size:14px;min-height:44px}.mg-page-nav>button{padding:7px 6px;min-height:44px;font-size:13px;gap:3px}.mg-page-nav .mg-nav-icon{width:18px;height:18px}.mg-page-nav .mg-page-nav-directory{font-size:0;gap:0;min-width:44px}.mg-page-nav .mg-page-nav-directory .mg-nav-icon{width:20px;height:20px}.mg-page-search{position:fixed;top:12px;bottom:auto;left:12px;right:12px;margin:0;width:calc(100% - 24px);max-height:var(--mg-available-height,calc(100dvh - 24px));padding:16px 14px;border-radius:6px;font-size:16px}.mg-page-search h2{font-size:21px}.mg-page-search .mg-page-search-head{margin-bottom:10px}.mg-page-search .mg-page-search-results{max-height:none;flex:1 1 auto}.mg-page-search .mg-page-stock-result{padding:12px 5px;gap:6px}.mg-page-search .mg-page-stock-status{font-size:14px}.mg-page-search .mg-page-search-help{font-size:12px}}
