/* Shared header controls and a consistent theme across all five product pages. */
:root{color-scheme:light;--control-bg:#ebe7df;--control-hover:#e2ddd4;--menu-bg:#f0ece4;--menu-selected:#e3ded5;--surface:#fcfaf6}
.header-actions{gap:12px;flex-shrink:0}
.header-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:16px;background:var(--control-bg);color:var(--muted);padding:10px 12px;font:inherit;cursor:pointer;transition:background .18s,color .18s}
.header-control:hover,.header-control[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}
.header-control .icon{width:23px;height:23px;flex-shrink:0;stroke-width:1.8}
.locale-code{font-size:13px;font-weight:550;letter-spacing:.3px}
.theme-toggle{width:46px;padding:10px;color:var(--ink)}
.theme-toggle .sun-icon{display:none}
.header-actions>.github-link{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;color:var(--muted);border-radius:13px;margin:0}
.header-actions>.github-link:hover{color:var(--ink);background:var(--control-bg)}
.header-actions>.github-link .icon{width:25px;height:25px}
.language-picker{position:relative}
.language-menu{position:absolute;right:0;top:calc(100% + 10px);width:202px;padding:5px 0;border:1px solid var(--line);border-radius:17px;background:var(--menu-bg);box-shadow:0 12px 24px #30261b1c;overflow:hidden;z-index:100}
.language-menu[hidden]{display:none}
.language-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:55px;padding:12px 17px;border:0;background:transparent;color:var(--ink);font-family:inherit;font-size:18px;line-height:1.5;text-align:left;cursor:pointer}
.language-menu button:hover,.language-menu button:focus-visible,.language-menu button[aria-checked=true]{background:var(--menu-selected)}
.language-menu button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.language-code{font-size:13px;font-weight:550;letter-spacing:.2px}
.language-check{margin-left:auto;color:var(--accent);font-size:21px;visibility:hidden}
.language-menu button[aria-checked=true] .language-check{visibility:visible}
.header-control:focus-visible,.header-actions>.github-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
html[lang=en] .site-header .brand-english{display:none}
html[lang=en] .site-header .brand{font-size:22px}
html[lang=en] .filter-label{flex-basis:66px}
html[lang=en] .catalog-tags span{font-size:10px}
html[data-theme=dark]{color-scheme:dark;--page:#1c1b19;--ink:#eee8df;--muted:#b6afa3;--accent:#ef966e;--line:#413c34;--footer:#211f1c;--control-bg:#302d28;--control-hover:#3d3831;--menu-bg:#2c2924;--menu-selected:#3b352d;--surface:#26231f}
html[data-theme=dark] .site-header{background:#1c1b19ed;border-color:var(--line)}
html[data-theme=dark] .moon-icon{display:none}
html[data-theme=dark] .theme-toggle .sun-icon{display:block}
html[data-theme=dark] :is(.site-footer,.local-first,.mobile-showcase){background:var(--footer);border-color:var(--line)}
html[data-theme=dark] :is(.catalog-card,.feature-card,.release-card,.platform-panel,.download-history){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(.header-inner,.footer-grid,.site-footer .footer-bottom,.providers){border-color:var(--line)}
html[data-theme=dark] :is(.footer-brand .brand,.footer-column h3,.footer-brand p,.footer-column>a,.footer-github,.footer-bottom,.provider-list>span){color:var(--muted)}
html[data-theme=dark] :is(.footer-brand .brand,.footer-column h3){color:var(--ink)}
html[data-theme=dark] :is(.desktop-nav a,.preview-caption,.filter-options button,.asset-size,.asset-separator,.asset-checksums,.asset-hash button,.download-integrity,.download-intro .download-other,.release-body){color:var(--muted)}
html[data-theme=dark] :is(.desktop-nav a.active,.desktop-nav a:hover,.footer-column>a:hover,.help-group-links a[aria-current=page],.help-feedback a,.catalog-content summary,.catalog-detail a,.package-link,.download-history a,.release-source,.release-body a,.changelog-intro>a,.changelog-more>a,.local-first-help){color:var(--accent)}
html[data-theme=dark] :is(.preview-switcher,.help-search input,.asset-download,.platform-tabs button,.changelog-more button,.release-body pre,.release-body code,.download-integrity code){background:var(--control-bg);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.preview-switcher button,.help-search input){color:var(--muted)}
html[data-theme=dark] :is(.preview-switcher button[aria-pressed=true],.help-group summary:hover,.help-group-links a:hover,.filter-options button:hover,.asset-download:hover,.asset-hash button:hover){background:var(--control-hover);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.filter-options button[aria-pressed=true],.help-group[open] summary,.help-callout,.local-first-badge,.package-platform,.release-badge-small){background:#463025;color:#f2ac87;border-color:#76503b}
html[data-theme=dark] .platform-tabs button[aria-selected=true]{background:#b85531;color:#fff}
html[data-theme=dark] :is(.help-group-links,.help-search kbd,.catalog-detail){border-color:var(--line)}
html[data-theme=dark] .catalog-cover{background:#342e27!important}
html[data-theme=dark] .catalog-tags span{background:#29251fe8;color:var(--muted);border-color:#62503c}
html[data-theme=dark] .catalog-tags span:first-child{color:#f2ac87}
html[data-theme=dark] .button-outline{color:var(--ink);background:transparent;border-color:var(--line)}
html[data-theme=dark] .button:not(.button-outline):not(.download-primary):not(.download-secondary){background:#b95330;border-color:#b95330;color:#fff}
html[data-theme=dark] .preview-frame{background:var(--surface);border-color:var(--line);box-shadow:0 24px 60px #0004}
html[data-theme=dark] .release-badge{color:#f0ac86;background:#3d2d23;border-color:#68402a}
html[data-theme=dark] .mobile-nav{background:var(--page);border-color:var(--line)}
html[data-theme=dark] .mobile-nav a{color:var(--muted)}
html[data-theme=dark] .phone-frame{background:var(--surface);border-color:var(--line)}
@media(min-width:701px) and (max-width:1100px){.header-inner{gap:14px}.desktop-nav{gap:12px}.header-actions{gap:7px}.site-header .brand{font-size:20px}html[lang=en] .site-header .brand{font-size:18px}html[lang=en] .desktop-nav a{font-size:11px}}
@media(max-width:1000px){.site-header .desktop-nav{display:none}.header-actions .menu-toggle{display:block}.header-actions{margin-left:auto}.header-inner{justify-content:space-between}}
@media(max-width:700px){.header-actions{gap:5px}.header-control{min-height:42px;padding:8px 10px;border-radius:14px}.theme-toggle{width:42px}.header-actions>.github-link{width:36px;height:42px}.header-control .icon{width:21px;height:21px}.header-actions>.github-link .icon{width:23px;height:23px}.site-header .brand{font-size:19px}.site-header .brand img{width:31px;height:31px}.site-header .brand-english{font-size:7px}.header-inner{gap:8px}.header-actions .menu-toggle{width:30px;padding:5px}.language-menu{width:195px}.language-menu button{font-size:17px}html[lang=en] .site-header .brand{font-size:15px}}
@media(max-width:390px){.site-header .container{width:calc(100% - 24px)}.site-header .brand{font-size:17px;gap:5px}.site-header .brand img{width:27px;height:27px}.header-actions{gap:3px}.header-control{gap:5px;padding-inline:8px}.theme-toggle{width:38px}.header-actions>.github-link{width:32px}.header-actions .menu-toggle{width:26px}html[lang=en] .site-header .brand{font-size:14px}}
