:root{--theme-page:#fff;--theme-panel:#fff;--theme-input:#fff;--theme-soft:#f5f4f1;--theme-text:#1c1b19;--theme-muted:#76736d;--theme-line:#e8e5df;--theme-link:#546a30;--theme-selected:#526d42}
:root[data-theme="dark"]{--theme-page:#171918;--theme-panel:#222522;--theme-input:#191c19;--theme-soft:#2d322e;--theme-text:#f0f1eb;--theme-muted:#afb5ac;--theme-line:#3a413b;--theme-link:#b3d19a;--theme-selected:#527a43;--paper:#f0f1eb;--paper-dim:#afb5ac;--line:#3a413b;--sage:#86a96b}
html,body,.widget-top{background:var(--theme-page);color:var(--theme-text)}
.hosted-bar{border-color:var(--theme-line);background:var(--theme-page);color:var(--theme-text)}.hosted-bar a,.profile-bio a{color:var(--theme-link)}.hosted-bar button{border:1px solid var(--theme-line);border-radius:6px;padding:5px 9px;background:var(--theme-soft);color:var(--theme-text);cursor:pointer}
.date-toggle,.view-menu,.profile-dialog{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-line)}
.date-toggle[aria-pressed="true"]{background:var(--theme-selected);border-color:var(--theme-selected);color:#fff}
.view-menu button,.profile-dialog button{background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-line)}
.profile-dialog input:not([type=checkbox]),.profile-dialog textarea{background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-line)}
#saveProfile{background:var(--theme-selected);color:#fff}.profile-dialog p,#viewStatus,.pillar-hint,.appearance-label{color:var(--theme-muted)}
.profile-placeholder,.tile-import,.tile{background-color:var(--theme-soft)}.pillar-menu-section,.appearance-section{border-color:var(--theme-line)}
.appearance-section{border-top:1px solid var(--theme-line);padding-top:10px;margin-top:8px}.appearance-label{font-size:11px;display:block;margin-bottom:6px}.theme-choices{display:flex;gap:6px}.view-menu .theme-choice{width:50%;margin:0;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 6px;font:12px Inter,sans-serif}.view-menu .theme-choice[aria-pressed="true"]{background:var(--theme-selected);border-color:var(--theme-selected);color:#fff}.theme-choice svg{width:14px;height:14px;flex-shrink:0}.theme-choice:focus-visible{outline:2px solid var(--theme-link);outline-offset:2px}
#authGate{background:var(--theme-page);color:var(--theme-text)}#signinForm{background:var(--theme-panel);border-color:var(--theme-line)}#signinForm h1{color:var(--theme-text)}#signinForm p,#authGate .eyebrow{color:var(--theme-muted)}#authGate input{background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-line)}#authSubmit{background:var(--theme-selected);color:#fff}
