:root{color-scheme:light}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #b7c6d8;border-radius:50%;background:#fff;color:#173750;cursor:pointer;touch-action:manipulation}.theme-toggle svg{width:23px;height:23px;display:block;flex:none}.theme-toggle:hover{background:#eaf3ff}.theme-toggle:focus-visible{outline:3px solid #a65d00;outline-offset:3px}.theme-toggle-floating{position:fixed;right:18px;top:18px;z-index:60;box-shadow:0 3px 18px #123b5c26}
html[data-theme=dark]{color-scheme:dark;--bg:#111923;--paper:#1b2734;--ink:#edf3fa;--muted:#b3c2d2;--brand:#0a66c2;--soft:#243a50;--line:#3b4d60;--accent:#0a66c2;--cream:#252c30;--street-ink:#edf3fa;--street-muted:#b3c2d2;--street-blue:#91c7ff;--street-border:#3b4d60}
html[data-theme=dark] body{background:#111923!important;color:#edf3fa!important}
html[data-theme=dark] :is(.topbar,.mobile-nav,dialog,.dialog-header,.edge-sidebar-dialog .dialog-header,.community-sidebar-dialog .dialog-header){background:#16212e!important;color:#edf3fa;border-color:#3b4d60!important}
html[data-theme=dark] :is(.card,.signature-card,.refined-filters,.daily-note,.series-guide,.mobile-feature-home,.street-timeline-row,.community-browse,.provider-tile,.connection-card,.inbox-link,.apps-card,.download-card){background:#1b2734!important;color:#edf3fa!important;border-color:#3b4d60!important;box-shadow:none}
html[data-theme=dark] :is(input,select,textarea){background:#15212e!important;color:#edf3fa!important;border-color:#53677b!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#b3c2d2;opacity:1}
html[data-theme=dark] :is(.searchbox,.composer-prompt,.compose-prompt,.upload-zone,.media-preview,.signature-composer,.permission,.message,.refined-lens,.latest-post-media,.street-timeline-preview,.mobile-feature-grid>a,.mobile-feature-grid>button,.mobile-feature-directory a,.mobile-feature-directory button,.edge-sidebar-dialog .mobile-feature-directory a){background:#223448!important;color:#dceafa!important;border-color:#3b4d60!important}
html[data-theme=dark] .searchbox input{background:transparent!important}
html[data-theme=dark] :is(.btn.secondary,.chip,.chips button,.floating-edge-button,.theme-toggle){background:#1b2734!important;color:#dceafa!important;border-color:#53677b!important}
html[data-theme=dark] :is(.btn.secondary:hover,.theme-toggle:hover,.nav-item:hover,#main-nav .nav-item:hover,.post-action:hover){background:#2c4259!important;color:#fff!important}
html[data-theme=dark] :is(.nav-item.active,#main-nav>.nav-item.active,.mobile-nav a.active,.chip.active,.chips button.active,.chips button[aria-pressed=true],.message.mine){background:#244a70!important;color:#e5f3ff!important}
html[data-theme=dark] :is(.street-welcome h1,.daily-note h2,.brand-wordmark strong,.brand-wordmark span,.signature-card h3,.signature-intro h1,.signature-intro p,.signature-empty p,.daily-wisdom-frame h2,.wisdom-banner-caption,.street-timeline-title){color:#edf3fa!important}
html[data-theme=dark] :is(.muted,.small,.field-help,.nav-item,.community-label,.sidebar-bottom small,.sidebar-bottom p,.street-welcome p,.street-timeline-caption,.latest-post-meta,.latest-post-heading>span,.signature-number,.signature-card p,.signature-intro .eyebrow,.mobile-directory-intro,.mobile-feature-title>span,.refined-filters summary,.mobile-more,.post-action,.icon-button,.tab){color:#b3c2d2!important}
html[data-theme=dark] :is(.text-button,.btn.ghost,.street-install-link,.latest-post-open,.signature-open,.signature-back,.signature-section-heading>a,.series-public a,.refined-account-links a,.sidebar-bottom a){color:#91c7ff!important}
html[data-theme=dark] :is(.daily-wisdom-frame,.series-public .series-note){background:#302c22!important;color:#f5e9c9!important;border-color:#73613a!important}
html[data-theme=dark] :is(.wisdom-banner-reflection,.wisdom-banner-foot,.wisdom-banner-date,.daily-wisdom-frame .eyebrow){color:#dbccaa!important}
html[data-theme=dark] #community-side-frame.community-sidebar-inline{background:#162330!important;border-color:#3b4d60}
html[data-theme=dark] :is(.global-launch,.signature-hero,#wider-horizons-home,#daily-lens-home){background:#123d66!important;color:#f5f9ff!important;border-color:#446b90!important}
html[data-theme=dark] :is(.global-launch,.signature-hero,#wider-horizons-home,#daily-lens-home) :is(h1,h2,h3,p,.eyebrow,.hero-foot,.lens-foot,.lens-caption,.lens-reflection){color:inherit!important}
html[data-theme=dark] :is(.global-launch,.signature-hero,#wider-horizons-home,#daily-lens-home) a:not(.btn){color:#d9edff!important}
html[data-theme=dark] :is(.global-launch,.signature-hero) .btn{background:#edf5ff!important;color:#123d66!important}
html[data-theme=dark] :is(.signature-post-badge,.avatar,.empty-icon){background:#244a70!important;color:#d9edff!important;border-color:#50749a}
html[data-theme=dark] .error-box{background:#492c27;color:#ffd6cb}html[data-theme=dark] .success-box{background:#203b30;color:#c7f4d9}
html[data-theme=dark] :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#ffcf77!important}html[data-theme=dark] dialog::backdrop{background:#0009}
@media(max-width:760px){.top-inner .theme-toggle{order:0;flex:0 0 44px;margin:0}.top-inner .language-control{flex:0 0 80px;width:80px;max-width:80px}.theme-toggle-floating{top:12px;right:12px}}

/* Public installation and editorial pages use the same accessible palette. */
html[data-theme=dark] .theme-standalone :is(header,.app-tile,.steps article,.download-grid article,.series-guide,.card){background:#1b2734!important;color:#edf3fa!important;border-color:#3b4d60!important}
html[data-theme=dark] .theme-standalone .app-feature{background:#223448!important;border-color:#3b4d60!important}
html[data-theme=dark] .theme-standalone :is(h1,h2,h3,.brand,.brand strong,.close){color:#edf3fa!important}
html[data-theme=dark] .theme-standalone :is(p,li,.lead,.fine,.muted,.small-note,.platform,.share-url){color:#b3c2d2!important}
html[data-theme=dark] .theme-standalone :is(a:not(.primary):not(.secondary):not(.download),.status,.eyebrow){color:#91c7ff!important}
html[data-theme=dark] .theme-standalone :is(.secondary,.download,.outline,.number){background:#243a50!important;color:#edf3fa!important;border-color:#53677b!important}
html[data-theme=dark] .street-welcome .eyebrow{color:#91c7ff!important}
.header-inner .theme-toggle{margin-left:8px}.header-inner nav{margin-left:auto}
