/* TEPANTI dark mode (auto-generated overrides, loaded last) */
html[data-theme="dark"]{color-scheme:dark;--bg:#0E1512;--card:#17211C;--surface:#1E2A24;--border:#2A3931;--text:#E4EDE8;--muted:#9AAAA2;--green-soft:#173A2B;--danger-soft:#3A1E1B;--warn-soft:#382D13;--shadow:0 2px 12px rgba(0,0,0,.35);--shadow-lg:0 10px 30px rgba(0,0,0,.5)}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .backdrop{background:rgba(0,0,0,.6)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:var(--muted)}
:where(html[data-theme="dark"]) .site-header{background:var(--card)}
:where(html[data-theme="dark"]) .icon-btn .dot{border-color:var(--card)}
:where(html[data-theme="dark"]) .chips{background:var(--card)}
:where(html[data-theme="dark"]) .btn-outline{background:var(--card)}
:where(html[data-theme="dark"]) .pill-gray{background:var(--surface)}
:where(html[data-theme="dark"]) .ev-card{background:var(--card)}
:where(html[data-theme="dark"]) .ev-media .pill.state:not(.pill-dark):not(.pill-warn):not(.pill-danger):not(.pill-gray){background:var(--card)}
:where(html[data-theme="dark"]) .input,:where(html[data-theme="dark"]) .select,:where(html[data-theme="dark"]) .textarea{background:var(--card)}
:where(html[data-theme="dark"]) .notice{color:var(--muted)}
:where(html[data-theme="dark"]) .stat{background:var(--card)}
:where(html[data-theme="dark"]) .table-wrap{background:var(--card)}
:where(html[data-theme="dark"]) .table th{background:var(--surface)}
:where(html[data-theme="dark"]) .pagination a,:where(html[data-theme="dark"]) .pagination span{background:var(--card)}
:where(html[data-theme="dark"]) .drawer{background:var(--card)}
:where(html[data-theme="dark"]) .drawer a.btn-outline{background:var(--card)}
:where(html[data-theme="dark"]) .search-pop{background:var(--card)}
:where(html[data-theme="dark"]) .sheet{background:var(--card)}
:where(html[data-theme="dark"]) .bottom-nav{background:var(--card)}
:where(html[data-theme="dark"]) .bn-center .bn-circle{border-color:var(--card)}
:where(html[data-theme="dark"]) .type-tile{background:var(--card)}
:where(html[data-theme="dark"]) .pill-link{background:var(--card)}
:where(html[data-theme="dark"]) .org-chip{background:var(--card)}
:where(html[data-theme="dark"]) .banner.info{color:var(--muted)}
:where(html[data-theme="dark"]) .info-card{background:var(--card)}
:where(html[data-theme="dark"]) .cta-card{background:var(--card)}
:where(html[data-theme="dark"]) .org-card{background:var(--card)}
:where(html[data-theme="dark"]) .btn-white{background:var(--card)}
:where(html[data-theme="dark"]) .btn-white:hover{background:var(--surface)}
:where(html[data-theme="dark"]) .hp-type{background:var(--card)}
:where(html[data-theme="dark"]) .h2-stat{background:var(--card)}
:where(html[data-theme="dark"]) .h2-type{background:var(--card)}
:where(html[data-theme="dark"]) .h2-why .c{background:var(--card)}
:where(html[data-theme="dark"]) .h2-how .s{background:var(--card)}
:where(html[data-theme="dark"]) .rv-card{background:var(--card)}
:where(html[data-theme="dark"]) .rv-nav{background:var(--card)}
:where(html[data-theme="dark"]) .cat-card{background:var(--card)}
:where(html[data-theme="dark"]) details.div{background:var(--card)}
:where(html[data-theme="dark"]) .org-item{background:var(--card)}
:where(html[data-theme="dark"]) .org-hero{background:var(--card)}
:where(html[data-theme="dark"]) .tab-pills a{background:var(--card)}
:where(html[data-theme="dark"]) .about-step{background:var(--card)}
:where(html[data-theme="dark"]) .seg{background:var(--surface)}
:where(html[data-theme="dark"]) .seg a.active{background:var(--card)}
:where(html[data-theme="dark"]) .radio-card{background:var(--card)}
:where(html[data-theme="dark"]) .org-tabs a{background:var(--card)}
:where(html[data-theme="dark"]) .pn-card{background:var(--card)}
:where(html[data-theme="dark"]) .pn-quick a{background:var(--card)}
:where(html[data-theme="dark"]) .pn-progress{background:var(--surface)}
:where(html[data-theme="dark"]) .pn-top .bar{background:var(--surface)}
:where(html[data-theme="dark"]) .step-dot b{background:var(--surface)}
:where(html[data-theme="dark"]) .cat-row{background:var(--surface)}
:where(html[data-theme="dark"]) .org-row{background:var(--card)}
:where(html[data-theme="dark"]) .filter-tabs a{background:var(--card)}
:where(html[data-theme="dark"]) .ntf{background:var(--card)}
:where(html[data-theme="dark"]) .ntf.unread{background:var(--surface)}
:where(html[data-theme="dark"]) .ntf .tm{color:var(--muted)}
:where(html[data-theme="dark"]) .save-btn.full{background:var(--surface)}
:where(html[data-theme="dark"]) .ev-cd{color:var(--muted)}
:where(html[data-theme="dark"]) .ev-cd.cd-live .cd-v{color:var(--muted)}
:where(html[data-theme="dark"]) .evc{background:var(--card)}
:where(html[data-theme="dark"]) .evc .save-btn,:where(html[data-theme="dark"]) .evc .share-btn{background:var(--surface)}
:where(html[data-theme="dark"]) .evc-pills .pill-line{background:var(--card)}
:where(html[data-theme="dark"]) .icon-picker-label{color:var(--text)}
:where(html[data-theme="dark"]) .icon-picker-btn{background:var(--card);color:var(--text);border-color:var(--border)}
:where(html[data-theme="dark"]) .icon-picker-preview{background:var(--surface)}
:where(html[data-theme="dark"]) .icon-picker-arrow{color:var(--muted)}
:where(html[data-theme="dark"]) .icon-picker-box{background:var(--card)}
:where(html[data-theme="dark"]) .icon-picker-header{border-bottom-color:var(--border)}
:where(html[data-theme="dark"]) .icon-picker-header h3{color:var(--text)}
:where(html[data-theme="dark"]) .icon-picker-header p{color:var(--muted)}
:where(html[data-theme="dark"]) .icon-picker-close{background:var(--surface);color:var(--text)}
:where(html[data-theme="dark"]) .icon-picker-search{border-color:var(--border)}
:where(html[data-theme="dark"]) .icon-option{background:var(--card);color:var(--muted);border-color:var(--border)}
:where(html[data-theme="dark"]) .icon-option:hover,:where(html[data-theme="dark"]) .icon-option.selected{background:var(--surface);color:var(--muted)}
:where(html[data-theme="dark"]) .icon-picker-empty{color:var(--muted)}
:where(html[data-theme="dark"]) .icon-picker-footer{border-top-color:var(--border)}
:where(html[data-theme="dark"]) .cm-box{background:var(--card)}
:where(html[data-theme="dark"]) .cm-form{background:var(--card)}
:where(html[data-theme="dark"]) .cm-note{color:var(--muted)}
html[data-theme="dark"] [style*="background:#fff" i]{background:var(--card)!important}
:where(html[data-theme="dark"]) .pn-title,:where(html[data-theme="dark"]) .pn-sec .st,:where(html[data-theme="dark"]) .step-title,:where(html[data-theme="dark"]) .fs-title{color:var(--text)}
:where(html[data-theme="dark"]) .btn-white{background:#fff;color:#0D241B}
:where(html[data-theme="dark"]) .filter-tabs a.active{background:var(--green);border-color:var(--green)}
:where(html[data-theme="dark"]) .site-header,:where(html[data-theme="dark"]) .bottom-nav{background:var(--card);border-color:var(--border)}
:where(html[data-theme="dark"]) .logo{color:var(--text)}
:where(html[data-theme="dark"]) .icon-btn{background:var(--surface);color:var(--text)}
:where(html[data-theme="dark"]) .evc .save-btn,:where(html[data-theme="dark"]) .evc .share-btn{background:var(--surface)}
:where(html[data-theme="dark"]) .evc .save-btn.on{background:#119B62;color:#fff}
:where(html[data-theme="dark"]) .drawer a.btn-outline{background:transparent}
