/* Controles de leitura: o tema padrão preserva o fundo creme aprovado. */
:root{color-scheme:light}
button{color:inherit}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:8px 9px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);font-size:11px;cursor:pointer;flex-shrink:0}
.theme-toggle:hover{border-color:var(--ink)}
.theme-toggle svg{width:19px;height:19px;flex-shrink:0}
.theme-sun{display:none}
.back-to-top{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:60;width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--ink);color:var(--cream);padding:12px;cursor:pointer}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:var(--blue);color:#fff}
.article-topics{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.article-topics .breadcrumb{margin:0}
.article-topics>span{color:var(--muted)}
html[data-theme="dark"]{color-scheme:dark;--cream:#191a1d;--ink:#f2ede7;--muted:#bcb6af;--line:#48494e;--blue:#8bb7ff;--brand-blue:#8bb7ff;--purple:#b39dff;--interactive-blue:#245fb7}
html[data-theme="dark"] .theme-moon{display:none}
html[data-theme="dark"] .theme-sun{display:block}
html[data-theme="dark"] .preview-bar{background:#232428;color:var(--muted)}
html[data-theme="dark"] .preview-bar span{color:var(--muted)}
html[data-theme="dark"] .featured-read:hover{background:#303238}
html[data-theme="dark"] :is(.article-prose blockquote,.editorial-note,.download-pending,.signup-pending){background:#282a30;color:var(--ink)}
html[data-theme="dark"] :is(.format-tab,.share-button,.dialog-close,.search-field input,.material-dialog input){color:var(--ink)}
html[data-theme="dark"] input::placeholder{color:var(--muted)}
html[data-theme="dark"] :is(.library-card,.library-filter,.connection-card,.reference-related){border-color:var(--line)}
html[data-theme="dark"] .library-filter:not(.active) svg{color:color-mix(in srgb,var(--filter-accent),#fff 45%)}
html[data-theme="dark"] .topic-folder{--folder-readable:color-mix(in srgb,var(--folder-color),#fff 42%)}
html[data-theme="dark"] :is(.folder-icon,.topic-folder.active .folder-title){color:var(--folder-readable)}
html[data-theme="dark"] .folder-outline path{stroke:var(--line)}
html[data-theme="dark"] .topic-folder:is(:hover,:focus-visible,.active) .folder-outline path{stroke:var(--folder-readable)}
html[data-theme="dark"] .mint-card{background:#203d34}
html[data-theme="dark"] .conversation-card{background:#453916}
html[data-theme="dark"] .conversation-illustration g{fill:var(--ink)}
html[data-theme="dark"] .conversation-illustration path{stroke:var(--purple)}
html[data-theme="dark"] .curation-card .conversation-status{color:var(--ink)}
html[data-theme="dark"] :is(.tone-mint,.tone-purple,.tone-yellow,.tone-blue,.tone-cream){color:#151413}
html[data-theme="dark"] .upcoming-image .status-tag{color:#151413}
html[data-theme="dark"] .upcoming-connection .upcoming-label{color:#e5c76d}
html[data-theme="dark"] .button-blue{background:#245fb7;color:#fff}
html[data-theme="dark"] .button-blue:hover{background:#1c4d96}
html[data-theme="dark"] .social-link svg g{stroke:var(--cream)}
html[data-theme="dark"] .about-art{background:#24304c}
@media(min-width:981px){.header-inner{gap:16px}.header-actions{gap:13px}}
@media(max-width:1160px){.theme-label{display:none}}
@media(max-width:600px){.header-actions{gap:9px}.theme-toggle{padding:8px;min-width:40px;min-height:44px}.back-to-top{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important}}

html[data-theme="dark"] ::selection{background:#feb238;color:#151413}
