/* Quiet shared theme control. All palette and radius values use the existing tokens. */
header.has-header-theme-toggle{position:relative}
header .header-theme-toggle{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--radius-control,12px);background:transparent;color:inherit;opacity:.72;box-shadow:none;cursor:pointer;transition:opacity .18s,background .18s}
header .header-theme-toggle:hover{opacity:1;background:rgba(127,160,174,.12);color:inherit}
header .header-theme-toggle:focus-visible{opacity:1;outline:2px solid var(--focus-ring,var(--color-focus));outline-offset:3px}
header .header-theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.has-header-theme-toggle>.member-header-menu{margin-left:auto}
.legal-header-actions{display:flex;align-items:center;gap:16px;margin-left:auto}
.legal-header-actions>.unified-account-link{margin-left:0}
@media(max-width:800px){
 .legal-header.has-header-theme-toggle{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px 16px}
 .legal-header.has-header-theme-toggle>.brand{grid-column:1;grid-row:1}
 .legal-header.has-header-theme-toggle>.header-theme-toggle{grid-column:2;grid-row:1;align-self:start}
 .legal-header-actions{grid-column:1/-1;grid-row:2;justify-self:end;flex-wrap:wrap;justify-content:flex-end;margin-left:0}
 .site-header.has-header-theme-toggle{height:104px}
 .dark-opening:has(.has-header-theme-toggle)::before{height:104px}
 .dark-opening:has(.has-header-theme-toggle)>.mobile-nav{top:104px}
 .site-header.has-header-theme-toggle .header-actions{align-self:flex-end;margin-bottom:4px}
 .site-header.has-header-theme-toggle .header-theme-toggle{position:absolute;right:0;top:8px}
}
@media(max-width:700px){
 header.has-header-theme-toggle:has(>.member-header-menu)>.header-theme-toggle{position:absolute;right:5%;top:22px}
 header.has-header-theme-toggle:has(>.member-header-menu)>.brand{max-width:calc(100% - 52px)}
}

/* Manual theme switches belonged to the review UI, never the public product. */
[data-header-theme-toggle]{display:none!important}
