/* Theme system: same layout and hierarchy, recalibrated surfaces for night use. */
.theme-toggle{position:relative;overflow:hidden;font-size:20px}.theme-toggle span{position:absolute;transition:transform .25s ease,opacity .25s ease}.theme-moon{opacity:0;transform:translateY(12px)}:root[data-theme="dark"] .theme-sun{opacity:0;transform:translateY(-12px)}:root[data-theme="dark"] .theme-moon{opacity:1;transform:translateY(-1.5px)}
:root[data-theme="dark"]{--paper:#17161b;--paper-2:#201e25;--paper-3:#2b2931;--ink:#f5f1ea;--ink-soft:#d6d0d7;--on-ink:#f7f3ed;--on-ink-soft:#c6c0c8;--line:#38353e;--muted:#aaa4ad;--muted-2:#706b75;--amber:#e4b74f;--amber-soft:#443924;--violet:#b9a6f3;--violet-soft:#312a4a;--green:#6fcb96;--green-soft:#1e3d30;--red:#f1877e;--red-soft:#45292b}html[data-theme="dark"],:root[data-theme="dark"] body{background:#17161b;color:var(--ink)}:root[data-theme="dark"] .atmosphere{opacity:.32}:root[data-theme="dark"] .tabbar{background:rgba(35,33,40,.9);box-shadow:0 18px 42px -22px #000}:root[data-theme="dark"] .tab-icon.active{background:#f4eee5;color:#1c1b20}:root[data-theme="dark"] .glass{background:rgba(45,42,51,.72);border-color:rgba(255,255,255,.08)}:root[data-theme="dark"] .card,:root[data-theme="dark"] .premium-task,:root[data-theme="dark"] .mission-panel,:root[data-theme="dark"] .rewards-panel,:root[data-theme="dark"] .finance-section,:root[data-theme="dark"] .room-device,:root[data-theme="dark"] .room-device-placeholder,:root[data-theme="dark"] .air-reference-card{background:#242229;color:var(--ink);box-shadow:0 16px 32px -25px #000}:root[data-theme="dark"] .date-strip button,:root[data-theme="dark"] .task-filters button,:root[data-theme="dark"] .task-bell,:root[data-theme="dark"] .quick-ai-card,:root[data-theme="dark"] .automation-warning,:root[data-theme="dark"] .room-power,:root[data-theme="dark"] .room-overview header>span,:root[data-theme="dark"] .room-scenes button{background:#29272f;color:var(--ink);border-color:#3a3741}:root[data-theme="dark"] .date-strip button.selected,:root[data-theme="dark"] .task-filters button.selected,:root[data-theme="dark"] .task-add,:root[data-theme="dark"] .schedule-title button{background:#f4eee5;color:#1d1b21}:root[data-theme="dark"] .rank-banner b,:root[data-theme="dark"] .coin-count b{color:var(--ink)!important}:root[data-theme="dark"] .rank-banner small,:root[data-theme="dark"] .rank-banner span{color:var(--muted)!important}:root[data-theme="dark"] .rank-track{background:#393640!important}:root[data-theme="dark"] .premium-check{background:#242229;border-color:#6d6771}:root[data-theme="dark"] .project-chip,:root[data-theme="dark"] .task-more{background:#35313a;color:#d7d1d9}:root[data-theme="dark"] .reward-card{background:#302c35}:root[data-theme="dark"] .reward-card small{color:#beb7c0}:root[data-theme="dark"] .balance-card{background:radial-gradient(circle at 80% 8%,#716ac5,#423b65 39%,#242229 100%)}:root[data-theme="dark"] .budget-bar,:root[data-theme="dark"] .mission-line i{background:#3b3841}:root[data-theme="dark"] .finance-item>span,:root[data-theme="dark"] .fixed-item>span{background:#35323a}:root[data-theme="dark"] .automation-reference .air-reference-card{background:linear-gradient(145deg,#252b31,#1f252b)}:root[data-theme="dark"] .room-head b,:root[data-theme="dark"] .air-ref-heading b{color:#d8e4eb}:root[data-theme="dark"] .room-head small,:root[data-theme="dark"] .air-ref-heading small,:root[data-theme="dark"] .air-ref-heading>span,:root[data-theme="dark"] .air-ref-temperature>span,:root[data-theme="dark"] .room-overview header small,:root[data-theme="dark"] .room-scenes>small{color:#9eabb4}:root[data-theme="dark"] .air-ref-slider{background:#34434d}:root[data-theme="dark"] .air-ref-options button{background:#303b43;color:#bccdd7}:root[data-theme="dark"] .air-ref-options button.selected,:root[data-theme="dark"] .room-device.active{background:#167db9;color:#fff}:root[data-theme="dark"] .quick-ai-card{box-shadow:0 18px 35px -22px #000!important}:root[data-theme="dark"] .quick-ai-card .dock-input{color:var(--ink)!important}:root[data-theme="dark"] .quick-ai-card .dock-send{background:#f4eee5!important;color:#1d1b21!important}:root[data-theme="dark"] .premium-sheet{background:linear-gradient(145deg,#29262d,#3a3342)}:root[data-theme="dark"] .premium-sheet input,:root[data-theme="dark"] .premium-sheet textarea,:root[data-theme="dark"] .finance-sheet select{background:#201e24;color:var(--ink)}:root[data-theme="dark"] .sheet-top button{background:#2b2832;color:var(--ink);border-color:#3e3a46}:root[data-theme="dark"] .sheet-top button.sheet-save{background:#f4eee5!important;color:#1c1b20!important}:root[data-theme="dark"] .overdue-chip{background:#422325;color:#fca59d}:root[data-theme="dark"] .premium-priorities button{background:#2b2832;color:var(--ink)}:root[data-theme="dark"] .premium-priorities button.selected{background:#f4eee5;color:#1c1b20}:root[data-theme="dark"] .premium-submit{background:#f4eee5;color:#1c1b20}
