
/* Dark appearance: midnight blue, clear type, distinct paper surfaces. */
html[data-appearance="dark"]{color-scheme:dark;--bg:#0d1622;--ink:#e4edf7;--muted:#a5b8cc;--border:#31445b;--peach:#1e3046;--surface:#172536;--surface-raised:#1d2e43;--input-bg:#101d2c;--button-bg:#326b9f;--button-hover:#3976aa}
html[data-appearance="dark"] body{background:var(--bg);color:var(--ink)}
html[data-appearance="dark"] :is(.sidebar,.topbar){background:#111e2e;border-color:#2c4057}
html[data-appearance="dark"] :is(.nav-item,.icon-btn,.profile-edit){color:#a9bfd3}
html[data-appearance="dark"] .nav-item:hover{background:#1d3249}
html[data-appearance="dark"] .nav-item.active{background:var(--soft);color:#e0efff}
html[data-appearance="dark"] .nav-item i{background:#35536e;color:#e8f5ff}
html[data-appearance="dark"] .little-note{border-color:#3b536b;color:#b7cde0}
html[data-appearance="dark"] .avatar{background:#3c4756;color:#e9dcb9}
html[data-appearance="dark"] .slash{color:#718ba5}
html[data-appearance="dark"] :is(h1,h2,h3,.dialog-heading h2){color:#eff5fc}
html[data-appearance="dark"] h1>span{color:#d9bb7b}
html[data-appearance="dark"] :is(.card,.stat,.finance-metric,dialog){background:var(--surface);border-color:var(--border);color:var(--ink)}
html[data-appearance="dark"] :is(.primary,.check.done,.day.today .day-num){background:var(--button-bg);border-color:var(--button-bg);color:#f7fbff}
html[data-appearance="dark"] .primary:hover{background:var(--button-hover);border-color:var(--button-hover)}
html[data-appearance="dark"] :is(.outline,.quiet,.icon-btn){color:#c7d9e9;border-color:#3c5570}
html[data-appearance="dark"] .outline{background:#1b2c40}
html[data-appearance="dark"] :is(.outline:hover,.quiet:hover,.icon-btn:hover){background:#28415a}
html[data-appearance="dark"] :is(input,select,textarea){background:var(--input-bg);border-color:#425c76;color:#e7f1fb}
html[data-appearance="dark"] :is(input,textarea)::placeholder{color:#91a7bf}
html[data-appearance="dark"] :is(label,.help-list){color:#b6cadc}
html[data-appearance="dark"] :is(button,input,select,textarea,a):focus-visible{outline-color:#9cceff}
html[data-appearance="dark"] input:disabled{background:#162333;border-color:#314257;color:#778ca3}
html[data-appearance="dark"] dialog{box-shadow:0 26px 110px #0009}
html[data-appearance="dark"] dialog::backdrop{background:#030914b3}
html[data-appearance="dark"] .danger{color:#f2aa9d}
html[data-appearance="dark"] :is(.stat-icon,.mini-pill,.tag,.notice){background:var(--tint);color:#b9ddff}
html[data-appearance="dark"] .stat:nth-child(2) .stat-icon{background:#3f3528;color:#f2cf92}
html[data-appearance="dark"] .stat:nth-child(3) .stat-icon{background:#352f47;color:#ddc8f4}
html[data-appearance="dark"] .stat-extra{color:#7799b8}
html[data-appearance="dark"] .stat-label{color:#afc3d8}
html[data-appearance="dark"] :is(.task-row,.money-table td,.due-item,.work-history-item){border-color:#2b3e53}
html[data-appearance="dark"] .task-title{color:#e5eff9}
html[data-appearance="dark"] .task-main.done .task-title{color:#9aaec4}
html[data-appearance="dark"] .task-meta{color:#a7bdd0}
html[data-appearance="dark"] .task-time{color:#a9d5ff}
html[data-appearance="dark"] .tag.content{background:#443827;color:#f0cd97}
html[data-appearance="dark"] .tag.study{background:#3b3151;color:#dac4f6}
html[data-appearance="dark"] .tag.personal{background:#233e4d;color:#b6deeb}
html[data-appearance="dark"] :is(.row-menu,.profile-edit){color:#a7bdd0}
html[data-appearance="dark"] .check{background:#111f2e;border-color:#7596b7}
html[data-appearance="dark"] :is(.overdue,.work-late,.f-outgoing){color:#f3b397!important}
html[data-appearance="dark"] :is(.task-plan-missed,.important-star){color:#e2c28b}
html[data-appearance="dark"] :is(.task-deadline,.work-row-result){color:#aec8de}
html[data-appearance="dark"] .task-star-btn{color:#8ba3bc}
html[data-appearance="dark"] .task-star-btn.is-important{color:#efcd87}
html[data-appearance="dark"] :is(.add-inline,.work-small-btn){border-color:#3a5874;background:#182b40;color:#badcff}
html[data-appearance="dark"] .add-inline:hover{background:#203a53}
html[data-appearance="dark"] .work-finish{background:#284965}
html[data-appearance="dark"] .empty h3{color:#c1d6e9}
html[data-appearance="dark"] .empty-icon{color:#96b9d7}
html[data-appearance="dark"] :is(.calendar-week,.section-label,.count-text){color:#a3bad0}
html[data-appearance="dark"] .calendar-week span:first-child{color:#e2b09d}
html[data-appearance="dark"] .day{color:#c6d9eb}
html[data-appearance="dark"] .day.outside{color:#70869f}
html[data-appearance="dark"] .day:hover{background:#22374d}
html[data-appearance="dark"] .day.selected{background:#233e58;box-shadow:inset 0 0 0 1px #597e9e}
html[data-appearance="dark"] .day.selected:not(.today) .day-num{color:#deefff}
html[data-appearance="dark"] .calendar-legend{border-color:#2c4157;color:#a9bdd0}
html[data-appearance="dark"] :is(.dot,.day-dots i){background:#87b8de}
html[data-appearance="dark"] :is(.dot.content,.day-dots i.content){background:#d6ad79}
html[data-appearance="dark"] :is(.dot.study,.day-dots i.study){background:#c3a7e3}
html[data-appearance="dark"] :is(.dot.personal,.day-dots i.personal){background:#8bc4cf}
html[data-appearance="dark"] :is(.day-dots .deadline-dot,.dot.deadline-dot){border-color:#edc48c}
html[data-appearance="dark"] .banner{background:#20374e}
html[data-appearance="dark"] .banner p{color:#d6e9fa}
html[data-appearance="dark"] .banner small{color:#a4c9e8}
html[data-appearance="dark"] .plant{color:#abcce5;opacity:1}
html[data-appearance="dark"] .mood-card{background:#1d3045;border-color:#3b536c}
html[data-appearance="dark"] :is(.mood-title>span,.mood-card p){color:#afc6dc}
html[data-appearance="dark"] .mood-btn{color:#bfd1e2}
html[data-appearance="dark"] :is(.mood-btn:hover,.mood-btn.chosen){background:#36526d}
html[data-appearance="dark"] .mood-btn>span{filter:none}
html[data-appearance="dark"] .mood-day{background:#1e3249;color:#b7cce0}
html[data-appearance="dark"] .note-card textarea{background:repeating-linear-gradient(transparent,transparent 29px,#30465e 29px,#30465e 30px);color:#d5e5f4}
html[data-appearance="dark"] :is(.note-foot,.time-hint,.small-text,.settings-data p){color:#a7bbce}
html[data-appearance="dark"] .note-card textarea::placeholder{color:#92a8bf}
html[data-appearance="dark"] .journal-note{background:#1d3045}
html[data-appearance="dark"] .journal-note p{color:#dbe8f5}
html[data-appearance="dark"] .journal-note time{color:#a6d1f3}
html[data-appearance="dark"] :is(.toolbar,.money-table th){border-color:#344a62;color:#b2c8dc}
html[data-appearance="dark"] .tab{color:#a7c0d5}
html[data-appearance="dark"] .tab.active{background:#294760;color:#e0effb}
html[data-appearance="dark"] :is(.finance-tabs,.work-tabs,.finance-mini-totals){background:#15283c;border-color:#354c65}
html[data-appearance="dark"] :is(.finance-tabs button,.work-tabs button){color:#afc6db}
html[data-appearance="dark"] :is(.finance-tabs button.active,.work-tabs button.active){background:#2a4660;color:#e5f2ff;box-shadow:0 2px 7px #0003}
html[data-appearance="dark"] :is(.finance-quick>span,.finance-metric>small,.finance-hint,.finance-footnote,.finance-table td:first-child small){color:#a8bfd3}
html[data-appearance="dark"] .f-metric-top{color:#bbd1e4}
html[data-appearance="dark"] .f-metric-top i{color:#a8d4f6}
html[data-appearance="dark"] .finance-metric:last-child{background:#213c55;border-color:#466886}
html[data-appearance="dark"] .finance-onboard{background:#1b344e;border-color:#527895}
html[data-appearance="dark"] .finance-onboard h3{color:#deefff}
html[data-appearance="dark"] .finance-onboard p{color:#b3cee3}
html[data-appearance="dark"] :is(.finance-onboard>span,.f-emergency-icon){color:#a5cfee}
html[data-appearance="dark"] .finance-flow>div>span{color:#b5c9dc}
html[data-appearance="dark"] .finance-flow .f-flow-total{border-color:#526e88;color:#e0f0ff}
html[data-appearance="dark"] .finance-footnote{background:#122234;border-color:#2c435b}
html[data-appearance="dark"] .f-positive{color:#9bd0ff!important}
html[data-appearance="dark"] .emergency-card{background:#1c344b;border-color:#3c5c78}
html[data-appearance="dark"] :is(.emergency-body>strong,.finance-mini-totals strong){color:#def0ff}
html[data-appearance="dark"] :is(.emergency-body>span,.emergency-body>small,.allocation-row>span,.finance-mini-totals>span){color:#b1cee3}
html[data-appearance="dark"] :is(.allocation-track,.goal-track){background:#30475f}
html[data-appearance="dark"] .goal-track i{background:#85b8de}
html[data-appearance="dark"] .account-card{background:linear-gradient(130deg,#1d344c,#172536);border-color:#3c5670}
html[data-appearance="dark"] :is(.account-type,.account-card>small,.debt-card p,.debt-card>small,.due-item small){color:#adc4d8}
html[data-appearance="dark"] .debt-card{background:#182a3e;border-color:#3b526c}
html[data-appearance="dark"] .due-symbol{background:#423a31;color:#e4c198}
html[data-appearance="dark"] :is(.payment-status,.money-table .pending){background:#25445d;color:#d4ebff}
html[data-appearance="dark"] .payment-status.pending{background:#463c2b;color:#f0d09a}
html[data-appearance="dark"] :is(.planning-scopes button,.work-small-btn){background:#182b40;color:#bad3e8;border-color:#395672}
html[data-appearance="dark"] .planning-scopes button.active{background:#2a4863;border-color:#6284a1;color:#f0f7ff}
html[data-appearance="dark"] .planning-scopes button>span{background:#35546e;color:#e1f1ff}
html[data-appearance="dark"] .planning-overview{background:#1b3148;border-color:#41627e;color:#bbd7eb}
html[data-appearance="dark"] :is(.planning-hint,.planning-date-tools>span,.work-review-explainer,.work-week-heading p,.work-elapsed,.work-elapsed small,.work-history-item small,.board-dialog-hint){color:#a9bfd3}
html[data-appearance="dark"] .planning-important{background:#3a352b;border-color:#63563d;color:#f1d39b}
html[data-appearance="dark"] .day-due-header{border-color:#496079;color:#e7c69b}
html[data-appearance="dark"] .work-history-item p{color:#b5ccdf}
html[data-appearance="dark"] :is(.work-comparison,.work-social-hint){background:#20384f;color:#c2ddf2}
html[data-appearance="dark"] .work-comparison span{color:#acc3d8}
html[data-appearance="dark"] .work-comparison strong{color:#deedfa}
html[data-appearance="dark"] .work-result{color:#b7ddff}
html[data-appearance="dark"] .work-reason-group legend{color:#c5dbed}
html[data-appearance="dark"] .work-reason-group legend span{color:#a5bdd1}
html[data-appearance="dark"] .work-reason span{background:#162a3f;color:#bed4e7;border-color:#435d77}
html[data-appearance="dark"] .work-reason input:checked+span{background:#355671;border-color:#80acd0;color:#f0f8ff}
html[data-appearance="dark"] .work-cause{color:#b8cee2}
html[data-appearance="dark"] .work-cause>div{background:#30475f}
html[data-appearance="dark"] .work-cause i{background:#8fbde0}
html[data-appearance="dark"] .review-deadline{color:#b1c8dc}
html[data-appearance="dark"] .thought-table{background:#132336;border-color:#405971;box-shadow:0 12px 36px #0002}
html[data-appearance="dark"] :is(.thought-table-bar,.thought-table-foot){background:#172b3e;border-color:#38556d}
html[data-appearance="dark"] .table-wordmark>span{color:#b0d7ef}
html[data-appearance="dark"] .table-wordmark strong{color:#e2f0fb}
html[data-appearance="dark"] :is(.table-wordmark small,.thought-table-foot,.thought-table-note,.table-tiny-star){color:#b0c8db}
html[data-appearance="dark"] .board-tools .outline{background:#223e55;color:#d0e7f8;border-color:#45647d}
html[data-appearance="dark"] .board-tools i{background:#385870;color:#e6f3ff}
html[data-appearance="dark"] .thought-stage{background:#112235;scrollbar-color:#4c6b85 #13283d}
html[data-appearance="dark"] .thought-canvas{background-color:#112235;background-image:linear-gradient(#badcff0b 1px,transparent 1px),linear-gradient(90deg,#badcff0b 1px,transparent 1px),radial-gradient(#b6d9ed09 .7px,transparent .8px)}
html[data-appearance="dark"] .paper-scrap{background:#2c4b68;color:#f0f7ff;border-color:#759bb257;box-shadow:3px 7px 14px #0005,0 1px 1px #d8efff10 inset}
html[data-appearance="dark"] .paper-scrap.paper-cream{background:#4a4535;color:#fff2cb;border-color:#c1b38748}
html[data-appearance="dark"] .paper-scrap.paper-pink{background:#503849;color:#ffe7f1;border-color:#c69ca948}
html[data-appearance="dark"] .paper-scrap.paper-yellow{background:#51482d;color:#fff2b9;border-color:#ccbb7948}
html[data-appearance="dark"] .paper-scrap:hover{box-shadow:4px 10px 20px #0007}
html[data-appearance="dark"] .paper-scrap:before{opacity:.18}
html[data-appearance="dark"] :is(.paper-grip,.paper-edit){color:#d0e1eb}
html[data-appearance="dark"] .paper-bottom>span{color:#d1e0e8}
html[data-appearance="dark"] .paper-scrap.board-drop-target{outline-color:#b0d9ff;filter:brightness(1.12)}
html[data-appearance="dark"] .thought-group path{stroke:#9ec9ec;stroke-width:1.7;opacity:1}
html[data-appearance="dark"] .thought-group path+path{stroke-width:.9;opacity:.6}
html[data-appearance="dark"] .thought-group-label{background:#23425b;color:#e5f4ff;border-color:#94bdd9;box-shadow:0 3px 10px #0004}
html[data-appearance="dark"] .thought-group-label>span{color:#c1e1f7}
html[data-appearance="dark"] .thought-empty-paper{background:#514b37;color:#f2e4b8;box-shadow:4px 8px 15px #0003,12px 4px 0 -3px #29465a}
html[data-appearance="dark"] .thought-empty p{color:#b0cadf}
html[data-appearance="dark"] .thought-empty .primary{background:var(--button-bg);border-color:var(--button-bg);color:#f7fbff}
html[data-appearance="dark"] .thought-pad{background:#4d4734;color:#f6e7b6;box-shadow:3px 3px 0 #6d654c,6px 6px 0 #323a3d,1px 6px 12px #0004}
html[data-appearance="dark"] :is(footer,footer button){color:#9db4ca;border-color:#2b4057}
html[data-appearance="dark"] .footer-flower{color:#aac9e0}
html[data-appearance="dark"] #toast{background:#274d6d;border:1px solid #648daf;color:#f3f9ff;box-shadow:0 8px 30px #0006}
#appearance-toggle{font-size:17px}
@media(max-width:480px){.top-actions{gap:8px}.top-actions .saved{display:none}}
