/* Only the theme control is added to the existing navigation. */
.theme-picker{position:relative;flex:none;z-index:85;font-family:Arial,"Microsoft YaHei",sans-serif;color:#183e61;line-height:1.5;text-align:left;letter-spacing:0}
.theme-picker>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;white-space:nowrap;height:36px;padding:0 12px;background:#fff;border:1px solid #c4d3e1;border-radius:7px;font-size:12px;font-weight:500;box-sizing:border-box;user-select:none}
.theme-picker>summary::-webkit-details-marker{display:none}
.theme-picker>summary svg{display:block;width:15px;height:15px;flex:none}
.theme-picker>summary .theme-chevron{width:12px;height:12px;margin-left:3px;transition:transform .18s}
.theme-picker[open]>summary .theme-chevron{transform:rotate(180deg)}
.theme-picker>summary:hover,.theme-picker[open]>summary{border-color:#6284a5;background:#f7fafc}
.theme-picker>summary:focus-visible{outline:2px solid #5385b8;outline-offset:4px}
.theme-picker .theme-options{position:absolute;right:0;top:calc(100% + 12px);width:268px;padding:9px;background:#fff;border:1px solid #e2e8ef;border-radius:14px;box-shadow:0 16px 48px #17355224;display:grid;gap:5px;z-index:90;box-sizing:border-box}
.theme-picker .theme-options-heading{margin:6px 9px 8px;color:#8995a2;font-size:10px;font-weight:400}
.theme-picker .theme-option{display:flex;align-items:center;gap:12px;padding:12px 10px;color:#25394d;text-decoration:none;border-radius:9px;transition:background .15s;line-height:1.5;box-sizing:border-box;background:transparent;border:0;width:100%;text-align:left;font:inherit;cursor:pointer}
.theme-picker .theme-option:hover,.theme-picker .theme-option:focus-visible{background:#f3f6fa;outline-offset:-2px}
.theme-picker .theme-option[aria-pressed=true]{background:#edf3f9}
.theme-picker .theme-option b{display:block;font-size:13px;font-weight:600}
.theme-picker .theme-option small{display:block;font-size:10px;color:#8995a2;margin-top:4px}
.theme-picker .theme-option-check{font-size:14px;color:#36648b;margin-left:auto;visibility:hidden}
.theme-picker .theme-option[aria-pressed=true] .theme-option-check{visibility:visible}
.theme-picker .theme-swatch{width:42px;height:35px;flex:none;border:1px solid #d7e0e9;border-radius:6px;overflow:hidden;display:block;background:linear-gradient(#edf2f7 0 25%,#193f63 25% 40%,#fafcff 40% 100%);position:relative}
.theme-picker .theme-swatch:after{content:"";position:absolute;left:6px;right:6px;top:19px;height:8px;border-radius:2px;background:#d8e4f0}
.theme-picker .theme-swatch-minimal{background:linear-gradient(#fff 0 25%,#ececec 25% 28%,#fff 28% 100%);border-color:#dedede}
.theme-picker .theme-swatch-minimal:after{height:11px;background:linear-gradient(90deg,#222 0 28%,transparent 28% 35%,#eee 35% 100%);top:16px;left:7px;right:7px}
.nav .theme-picker{color:#333}
.nav .theme-picker>summary{border-color:#e5e5e5;border-radius:22px;color:#444;height:35px;background:#fff;font-size:11px}
.nav .theme-picker .theme-option[aria-current=true]{background:#f2f2f2}
.nav .theme-picker .theme-option-check{color:#333}
.theme-preview-note{font-size:11px!important;color:#8190a0!important;margin-top:10px!important}
.theme-inquiry-result{white-space:pre-line;margin-top:16px;padding:18px;background:#f2f4f7;color:#333;border-radius:10px;font-size:13px}
body[data-theme-preview] .site-masthead.is-hidden{transform:none!important;pointer-events:auto;box-shadow:0 1px 0 #eee}
/* Keep the full official desktop navigation visible in narrow preview panels. */
@media(min-width:760px){
 body[data-theme-preview] .site-masthead .site-nav{display:block!important}
 body[data-theme-preview] .site-masthead .site-nav .nav-inner{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap;justify-content:center;align-items:stretch;height:auto;max-height:none;overflow:visible;background:transparent;box-shadow:none;gap:0;padding:0 18px}
 body[data-theme-preview] .site-masthead .site-nav .nav-item{display:block;flex:0 0 auto;width:auto!important;text-align:center}
 body[data-theme-preview] .site-masthead .site-nav .nav-link{display:flex;align-items:center;justify-content:center;white-space:nowrap;height:44px;padding:0 13px;font-size:12px}
 body[data-theme-preview] .site-masthead .site-nav .nav-dropdown{position:absolute!important;top:100%;left:0;display:none!important;width:230px;text-align:left;z-index:110}
 body[data-theme-preview] .site-masthead .site-nav .nav-item:hover .nav-dropdown,body[data-theme-preview] .site-masthead .site-nav .nav-item:focus-within .nav-dropdown{display:block!important}
 body[data-theme-preview] .site-masthead .site-nav .nav-item:after{display:none!important}
 body[data-theme-preview] .site-masthead .menu-toggle{display:none!important}
}
@media(max-width:1200px){.header-controls:has(.theme-picker){gap:10px!important;padding-left:14px!important}.theme-picker>summary{padding-inline:9px;font-size:11px}}
@media(max-width:700px){.theme-picker>summary{height:32px}.theme-picker .theme-current{display:none}.theme-picker .theme-options{right:0;width:244px}.nav-right:has(.theme-picker){gap:8px}.nav-right:has(.theme-picker) .nav-phone{display:none}}
@media(prefers-reduced-motion:reduce){.theme-picker *{transition:none!important}}
