.site-preferences{
 display:flex;
 align-items:center;
 gap:.375rem;
 flex:none;
}
.site-preferences select{
 min-width:44px;
 min-height:44px;
 padding:.25rem .35rem;
 border:1px solid #758499;
 border-radius:.375rem;
 background:var(--navy);
 color:#f2f2f2;
 font-size:.8rem;
 cursor:pointer;
}
.site-header .nav-shell{gap:clamp(.6rem,2vw,2.25rem)}
.site-preferences option{background:var(--navy);color:#f2f2f2}
@media(max-width:800px){
 .site-header .menu-toggle{margin-left:auto}
}
@media(max-width:390px){
 .site-header .brand>span{display:none}
 .site-header .nav-shell{gap:.35rem}
}

/* Keep dark backgrounds neutral across the public layouts, including the controls. */
:root[data-site-theme="dark"]{
 color-scheme:dark;
 --ink:#f2f2f2;
 --ink-soft:#bdbdbd;
 --muted:#bdbdbd;
 --paper:#111111;
 --tint:#1d1d1d;
 --navy:#161616;
 --navy-2:#1d1d1d;
 --border:#3d3d3d;
 --blue:#8ab4ff;
}
:root[data-site-theme="dark"] :is(.site-header,.main-navigation.open,.nav-group-links,.site-footer){background:var(--navy);border-color:var(--border)}
:root[data-site-theme="dark"] :is(.product-index,.manual-hero,.closing,.manual-sidebar details,.plan-card,.download-card,.availability-note,.article-note,.overview-block,.subscription-summary,.manual-search,.shortcut-table th,.shortcut-table kbd,.desktop-login-card,.guest-story,.guest-access){
 background:var(--tint);
 border-color:var(--border);
 color:var(--ink);
}
:root[data-site-theme="dark"] :is(.article-section p,.article-steps,.article-note p,.availability-note strong,.availability-note p,.page-lead,.section-heading>p,.section-heading>div>p:not(.eyebrow),.workflow-columns p,.split-story>div>p:not(.eyebrow),.product-feature>div>p:not(.eyebrow),.feature-list li,.capability-table p,.guide-link p,.guide-category,.guide-reading,.product-shot figcaption,.product-shot figcaption>span:last-child,.manual-version,.manual-categories h2,.manual-categories button,.manual-categories button>span,.manual-results-heading p,.manual-home-link,.manual-search-link,.sidebar-group h2,.sidebar-group>a,.breadcrumbs,.article-lead,.article-meta,.article-toc>strong,.article-toc>a,.article-footer-note p,.legal-updated,.tax-note,.price>span:last-child,.status-row p,.service-status,.setup-steps p,.empty-search p,.store-distribution p,.desktop-login-message,.subscription-summary p){color:var(--muted)}
:root[data-site-theme="dark"] :is(.eyebrow,.nav-account>span,.text-link>span:last-child,.guide-link:hover,.sidebar-group>a[aria-current="page"],.manual-categories button.active,.manual-categories button.active>span){color:var(--blue)}
:root[data-site-theme="dark"] :is(.status-label,.access-badge,.manual-categories button,.manual-categories button:hover,.manual-categories button.active,.sidebar-group>a:hover,.sidebar-group>a[aria-current="page"],.gallery-tabs button[aria-selected="true"],.button-outline:hover){background:#292929;border-color:#7a7a7a;color:var(--ink)}
:root[data-site-theme="dark"] :is(.button-dark,.button-light){background:#292929;border-color:#7a7a7a;color:var(--ink)}
:root[data-site-theme="dark"] :is(.button-dark,.button-light):hover{background:#3d3d3d}
:root[data-site-theme="dark"] .button-outline{border-color:#7a7a7a}
:root[data-site-theme="dark"] .skip-link{background:var(--paper)}
:root[data-site-theme="dark"] .desktop-login-card h1{color:var(--ink)}

@media(max-width:950px){.nav-shell{height:74px;width:calc(100% - 36px);justify-content:space-between}.brand>span{font-size:25px}.brand>img{width:40px;height:40px}.menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;width:42px;height:40px;border:1px solid #3a536f;border-radius:5px;background:transparent}.menu-toggle>span{width:18px;height:1px;background:#c3d7ed;transition:transform .2s}.menu-toggle[aria-expanded=true]>span:first-child{transform:translateY(4px) rotate(45deg)}.menu-toggle[aria-expanded=true]>span:last-child{transform:translateY(-4px) rotate(-45deg)}.main-navigation{display:none;position:absolute;left:0;right:0;top:74px;background:#132237;border-bottom:1px solid #375273;padding:24px;flex-direction:column;align-items:stretch;gap:0;font-size:17px;box-shadow:0 20px 35px #08132433}.main-navigation.open{display:flex}.main-navigation>a{padding-block:16px;border-bottom:1px solid #2c415d}.main-navigation>a[aria-current=page]{box-shadow:none;color:#71b4ff}.nav-actions{margin:25px 0 0;gap:28px;justify-content:space-between}.nav-account{font-size:16px;gap:12px;margin-left:auto}.locale-control select{font-size:15px;padding:8px}.nav-search{display:flex}.home-hero{padding-block:40px 45px}.release-pill{font-size:12px}}

:root[data-site-theme="dark"]{
 --portal-border-input:#7A7A7A;
 --portal-selection-surface:#292929;
 --portal-selection-text:#D8E5FF;
 --portal-link:#D8E5FF;
 --portal-danger:#FDA29B;
 --portal-danger-surface:#382323;
 --portal-success:#86EFAC;
 --portal-success-surface:#183025;
 --portal-warning:#FDE68A;
 --portal-warning-surface:#352F21;
}
:root[data-site-theme="dark"] .manual-search input,
:root[data-site-theme="dark"] :is(.admin-search,.grant-form,.billing-profile-grid,.admin-customer-filters,.withdrawal-dialog,.withdrawal-admin-form) :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){
 background:var(--paper);
 border-color:var(--portal-border-input);
 color:var(--ink);
}
:root[data-site-theme="dark"] :is(.manual-search,.admin-customer-filters) input::placeholder{color:var(--muted)}
:root[data-site-theme="dark"] :is(.account-guest,.account-sidebar,.billing-profile-section,.admin-table-scroll,.admin-customer-detail,.admin-record,.grant-form,.withdrawal-dialog,.withdrawal-identity){
 background:var(--tint);
 border-color:var(--border);
 color:var(--ink);
}
:root[data-site-theme="dark"] :is(.guest-story,.guest-access,.account-content,.admin-dashboard,.withdrawal-dialog) :is(p,label,dt,small){color:var(--muted)}
:root[data-site-theme="dark"] :is(.account-loading,.admin-export-note,.admin-pagination>p,.admin-customer-toolbar>p,.admin-detail-list dt,.admin-table td small){color:var(--muted)}
:root[data-site-theme="dark"] :is(.admin-page-heading h2,.admin-empty h3,.admin-detail-heading h3,.admin-detail-section h4,.admin-detail-list dd,.admin-record h5,.admin-table td,.admin-table td:first-child,.withdrawal-section h3,.withdrawal-receipt h4,.withdrawal-receipt-details dd){color:var(--ink)}
:root[data-site-theme="dark"] :is(.notice,.admin-feedback,.withdrawal-receipt,.withdrawal-handling-note,.admin-badge,.admin-private-mark,.subscription-badge,.consumer-price-note,.account-download-icon,.avatar){
 background:var(--portal-selection-surface);
 border-color:var(--portal-border-input);
 color:var(--ink);
}
:root[data-site-theme="dark"] :is(.subscription-summary .consumer-price-note,.admin-table th,.account-tabs a.active,.admin-table .selected td,.admin-table tbody tr:hover td){
 background:var(--portal-selection-surface);
 color:var(--portal-selection-text);
}
:root[data-site-theme="dark"] :is(.billing-profile-privacy a,.account-security,.account-tabs a>span:first-child,.admin-view-nav>button[aria-selected=true],.admin-detail-heading>.text-button){color:var(--portal-link)}
:root[data-site-theme="dark"] :is(.notice.error,.admin-feedback.error){background:var(--portal-danger-surface);color:var(--portal-danger)}
:root[data-site-theme="dark"] :is(.admin-feedback.error p,.billing-profile-status.error){color:var(--portal-danger)}
:root[data-site-theme="dark"] .withdrawal-error{color:var(--portal-danger)!important}
:root[data-site-theme="dark"] :is(.admin-badge-active,.subscription-badge.active){background:var(--portal-success-surface);color:var(--portal-success)}
:root[data-site-theme="dark"] :is(.admin-badge-attention,.admin-record .admin-inline-warning){background:var(--portal-warning-surface);color:var(--portal-warning)}
