/* Тема «Моего капитала» (30.11.2026, Руслан): светлая/тёмная на всех тарифах, цвет акцента — на Pro и «Бизнесе».
   html[data-theme=dark] ставит public/theme.js. Жёсткие цвета модулей переведены на переменные с прежним значением по умолчанию:
   --x-field, --x-soft, --x-track, --x-line, --x-good/-fg, --x-warn/-fg, --x-bad/-fg, --x-info/-fg, --x-inv (тёмная плашка), --x-on-acc (текст на акценте).
   В светлой теме они не заданы — работает прежний цвет. */
html[data-theme=dark]{color-scheme:dark;
  --bg:#0F110E;--card:#181B16;--ink:#ECEFE7;--muted:#A3AB9C;--line:#2B3027;--soft:#22261F;
  --moss:#A6D85B;--limeDeep:#A6D85B;--red:#FF6F61;--amber:#F0B43C;--green:#86C94F;--protect:#55665B;
  --c1:#ECEFE7;--c2:#9BD045;--c3:#6E8C45;--c4:#34402A;--c5:#22291C;
  --dark:#0A0B09;--darkline:#2A2E27;--s1:#5CC28A;--s2:#9BD045;
  --x-field:#1D2119;--x-soft:#22261F;--x-track:#3A4034;--x-line:#343A2F;--x-inv:#2F352B;
  --x-text:#D6DAD0;--x-glass:rgba(24,27,22,.88);--x-hover:rgba(255,255,255,.06);--x-good:#1C2914;--x-good-fg:#A6D85B;--x-warn:#2D2512;--x-warn-fg:#F0C063;--x-bad:#331917;--x-bad-fg:#FF8A7E;--x-info:#15223A;--x-info-fg:#93BCF2}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html.embed[data-theme=dark],html.embed[data-theme=dark] body{background:transparent}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background-color:var(--x-field);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#6F776A}
/* графики: цвета заданы атрибутами SVG — меняем тёмные на светлые и наоборот */
html[data-theme=dark] svg [stroke="#0D0D0D"],html[data-theme=dark] svg [stroke="#0d0d0d"]{stroke:var(--ink)}
html[data-theme=dark] svg [fill="#0D0D0D"],html[data-theme=dark] svg [fill="#0d0d0d"]{fill:var(--ink)}
html[data-theme=dark] svg [stroke="#fff"],html[data-theme=dark] svg [stroke="#FFF"],html[data-theme=dark] svg [stroke="#ffffff"],html[data-theme=dark] svg [stroke="#FFFFFF"]{stroke:var(--card)}
html[data-theme=dark] svg [fill="#fff"],html[data-theme=dark] svg [fill="#FFF"],html[data-theme=dark] svg [fill="#FFFFFF"]{fill:var(--card)}
html[data-theme=dark] svg [fill="#F4F5F1"]{fill:var(--bg)}
html[data-theme=dark] svg [stroke="#EEF0EA"],html[data-theme=dark] svg [stroke="#E1E5DB"],html[data-theme=dark] svg [stroke="#E4E8DF"],html[data-theme=dark] svg [stroke="#C9CFC2"],html[data-theme=dark] svg [stroke="#EEF1EA"]{stroke:var(--line)}
html[data-theme=dark] svg [fill="#EEF0EA"],html[data-theme=dark] svg [fill="#EEF1EA"],html[data-theme=dark] svg [fill="#E4E8DF"],html[data-theme=dark] svg [fill="#E1E5DB"]{fill:var(--soft)}
html[data-theme=dark] svg [fill="#5E655B"],html[data-theme=dark] svg [fill="#8A9185"],html[data-theme=dark] svg [fill="#8A9384"]{fill:var(--muted)}
html[data-theme=dark] svg text:not([fill]){fill:var(--ink)}
html[data-theme=dark] img[src$="logo-mp.png"]{background:#fff;border-radius:10px}
/* переключатель оформления */
.look{display:grid;gap:8px;margin:14px 8px 0;padding-top:12px;border-top:1px solid var(--line)}
.look .lk-h{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.look .lk-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;border-radius:11px;background:var(--soft)}
.look .lk-seg button{border:0;background:none;padding:6px 4px;border-radius:9px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer}
.look .lk-seg button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.look .lk-sw{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.look .lk-sw button{width:24px;height:24px;border-radius:50%;border:2px solid var(--card);box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.look .lk-sw button[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}
.look .lk-sw button:disabled{cursor:not-allowed;opacity:.45}
.look .lk-lock{font-size:12px;color:var(--muted)}.look .lk-lock a{color:var(--ink);font-weight:700}

/* светлые цвета внутри графиков и легенд → тёмные пары (собрано скриптом 30.11.2026) */
html[data-theme=dark] svg [fill="#CFD3C8" i]{fill:#19220D}html[data-theme=dark] svg [stroke="#CFD3C8" i]{stroke:#19220D}html[data-theme=dark] [style*="background:#CFD3C8" i]{background:#19220D!important}
html[data-theme=dark] svg [fill="#CFE0FF" i]{fill:#00143B}html[data-theme=dark] svg [stroke="#CFE0FF" i]{stroke:#00143B}html[data-theme=dark] [style*="background:#CFE0FF" i]{background:#00143B!important}
html[data-theme=dark] svg [fill="#D5DACF" i]{fill:#18220D}html[data-theme=dark] svg [stroke="#D5DACF" i]{stroke:#18220D}html[data-theme=dark] [style*="background:#D5DACF" i]{background:#18220D!important}
html[data-theme=dark] svg [fill="#D5DCCB" i]{fill:#192609}html[data-theme=dark] svg [stroke="#D5DCCB" i]{stroke:#192609}html[data-theme=dark] [style*="background:#D5DCCB" i]{background:#192609!important}
html[data-theme=dark] svg [fill="#D5ECA8" i]{fill:#224600}html[data-theme=dark] svg [stroke="#D5ECA8" i]{stroke:#224600}html[data-theme=dark] [style*="background:#D5ECA8" i]{background:#224600!important}
html[data-theme=dark] svg [fill="#D9DED3" i]{fill:#18220D}html[data-theme=dark] svg [stroke="#D9DED3" i]{stroke:#18220D}html[data-theme=dark] [style*="background:#D9DED3" i]{background:#18220D!important}
html[data-theme=dark] svg [fill="#D9E4C8" i]{fill:#1A2D00}html[data-theme=dark] svg [stroke="#D9E4C8" i]{stroke:#1A2D00}html[data-theme=dark] [style*="background:#D9E4C8" i]{background:#1A2D00!important}
html[data-theme=dark] svg [fill="#DADFD3" i]{fill:#18230C}html[data-theme=dark] svg [stroke="#DADFD3" i]{stroke:#18230C}html[data-theme=dark] [style*="background:#DADFD3" i]{background:#18230C!important}
html[data-theme=dark] svg [fill="#DCE3D3" i]{fill:#182609}html[data-theme=dark] svg [stroke="#DCE3D3" i]{stroke:#182609}html[data-theme=dark] [style*="background:#DCE3D3" i]{background:#182609!important}
html[data-theme=dark] svg [fill="#DDDDDD" i]{fill:#181B16}html[data-theme=dark] svg [stroke="#DDDDDD" i]{stroke:#181B16}html[data-theme=dark] [style*="background:#DDDDDD" i]{background:#181B16!important}
html[data-theme=dark] svg [fill="#DDEDC5" i]{fill:#1B3500}html[data-theme=dark] svg [stroke="#DDEDC5" i]{stroke:#1B3500}html[data-theme=dark] [style*="background:#DDEDC5" i]{background:#1B3500!important}
html[data-theme=dark] svg [fill="#DDF1E4" i]{fill:#0B2A13}html[data-theme=dark] svg [stroke="#DDF1E4" i]{stroke:#0B2A13}html[data-theme=dark] [style*="background:#DDF1E4" i]{background:#0B2A13!important}
html[data-theme=dark] svg [fill="#DDF3E4" i]{fill:#0A2C12}html[data-theme=dark] svg [stroke="#DDF3E4" i]{stroke:#0A2C12}html[data-theme=dark] [style*="background:#DDF3E4" i]{background:#0A2C12!important}
html[data-theme=dark] svg [fill="#E1E5DB" i]{fill:#18210E}html[data-theme=dark] svg [stroke="#E1E5DB" i]{stroke:#18210E}html[data-theme=dark] [style*="background:#E1E5DB" i]{background:#18210E!important}
html[data-theme=dark] svg [fill="#E3E8DC" i]{fill:#18230C}html[data-theme=dark] svg [stroke="#E3E8DC" i]{stroke:#18230C}html[data-theme=dark] [style*="background:#E3E8DC" i]{background:#18230C!important}
html[data-theme=dark] svg [fill="#E4E8DF" i]{fill:#18210F}html[data-theme=dark] svg [stroke="#E4E8DF" i]{stroke:#18210F}html[data-theme=dark] [style*="background:#E4E8DF" i]{background:#18210F!important}
html[data-theme=dark] svg [fill="#E6E9E1" i]{fill:#18200F}html[data-theme=dark] svg [stroke="#E6E9E1" i]{stroke:#18200F}html[data-theme=dark] [style*="background:#E6E9E1" i]{background:#18200F!important}
html[data-theme=dark] svg [fill="#E6F2D2" i]{fill:#1B3000}html[data-theme=dark] svg [stroke="#E6F2D2" i]{stroke:#1B3000}html[data-theme=dark] [style*="background:#E6F2D2" i]{background:#1B3000!important}
html[data-theme=dark] svg [fill="#E6F4EA" i]{fill:#0F2613}html[data-theme=dark] svg [stroke="#E6F4EA" i]{stroke:#0F2613}html[data-theme=dark] [style*="background:#E6F4EA" i]{background:#0F2613!important}
html[data-theme=dark] svg [fill="#E7EEF6" i]{fill:#0D1A21}html[data-theme=dark] svg [stroke="#E7EEF6" i]{stroke:#0D1A21}html[data-theme=dark] [style*="background:#E7EEF6" i]{background:#0D1A21!important}
html[data-theme=dark] svg [fill="#E8ECE2" i]{fill:#18210E}html[data-theme=dark] svg [stroke="#E8ECE2" i]{stroke:#18210E}html[data-theme=dark] [style*="background:#E8ECE2" i]{background:#18210E!important}
html[data-theme=dark] svg [fill="#E8F0FE" i]{fill:#091827}html[data-theme=dark] svg [stroke="#E8F0FE" i]{stroke:#091827}html[data-theme=dark] [style*="background:#E8F0FE" i]{background:#091827!important}
html[data-theme=dark] svg [fill="#E9EDE3" i]{fill:#18210E}html[data-theme=dark] svg [stroke="#E9EDE3" i]{stroke:#18210E}html[data-theme=dark] [style*="background:#E9EDE3" i]{background:#18210E!important}
html[data-theme=dark] svg [fill="#EAF3DC" i]{fill:#1A2A04}html[data-theme=dark] svg [stroke="#EAF3DC" i]{stroke:#1A2A04}html[data-theme=dark] [style*="background:#EAF3DC" i]{background:#1A2A04!important}
html[data-theme=dark] svg [fill="#EAF6E3" i]{fill:#152909}html[data-theme=dark] svg [stroke="#EAF6E3" i]{stroke:#152909}html[data-theme=dark] [style*="background:#EAF6E3" i]{background:#152909!important}
html[data-theme=dark] svg [fill="#EAF7D6" i]{fill:#1B3100}html[data-theme=dark] svg [stroke="#EAF7D6" i]{stroke:#1B3100}html[data-theme=dark] [style*="background:#EAF7D6" i]{background:#1B3100!important}
html[data-theme=dark] svg [fill="#ECEFE7" i]{fill:#18200F}html[data-theme=dark] svg [stroke="#ECEFE7" i]{stroke:#18200F}html[data-theme=dark] [style*="background:#ECEFE7" i]{background:#18200F!important}
html[data-theme=dark] svg [fill="#EEF0EA" i]{fill:#181E11}html[data-theme=dark] svg [stroke="#EEF0EA" i]{stroke:#181E11}html[data-theme=dark] [style*="background:#EEF0EA" i]{background:#181E11!important}
html[data-theme=dark] svg [fill="#EEF1E9" i]{fill:#18200F}html[data-theme=dark] svg [stroke="#EEF1E9" i]{stroke:#18200F}html[data-theme=dark] [style*="background:#EEF1E9" i]{background:#18200F!important}
html[data-theme=dark] svg [fill="#EEF1EA" i]{fill:#181F10}html[data-theme=dark] svg [stroke="#EEF1EA" i]{stroke:#181F10}html[data-theme=dark] [style*="background:#EEF1EA" i]{background:#181F10!important}
html[data-theme=dark] svg [fill="#EEF2E6" i]{fill:#19220C}html[data-theme=dark] svg [stroke="#EEF2E6" i]{stroke:#19220C}html[data-theme=dark] [style*="background:#EEF2E6" i]{background:#19220C!important}
html[data-theme=dark] svg [fill="#EEF3E4" i]{fill:#1A2409}html[data-theme=dark] svg [stroke="#EEF3E4" i]{stroke:#1A2409}html[data-theme=dark] [style*="background:#EEF3E4" i]{background:#1A2409!important}
html[data-theme=dark] svg [fill="#EEF4FF" i]{fill:#0C1823}html[data-theme=dark] svg [stroke="#EEF4FF" i]{stroke:#0C1823}html[data-theme=dark] [style*="background:#EEF4FF" i]{background:#0C1823!important}
html[data-theme=dark] svg [fill="#EEF6E2" i]{fill:#192806}html[data-theme=dark] svg [stroke="#EEF6E2" i]{stroke:#192806}html[data-theme=dark] [style*="background:#EEF6E2" i]{background:#192806!important}
html[data-theme=dark] svg [fill="#F2F3EF" i]{fill:#181D12}html[data-theme=dark] svg [stroke="#F2F3EF" i]{stroke:#181D12}html[data-theme=dark] [style*="background:#F2F3EF" i]{background:#181D12!important}
html[data-theme=dark] svg [fill="#F3E2B8" i]{fill:#3C2700}html[data-theme=dark] svg [stroke="#F3E2B8" i]{stroke:#3C2700}html[data-theme=dark] [style*="background:#F3E2B8" i]{background:#3C2700!important}
html[data-theme=dark] svg [fill="#F3F6EE" i]{fill:#18200F}html[data-theme=dark] svg [stroke="#F3F6EE" i]{stroke:#18200F}html[data-theme=dark] [style*="background:#F3F6EE" i]{background:#18200F!important}
html[data-theme=dark] svg [fill="#F3F8EA" i]{fill:#19240A}html[data-theme=dark] svg [stroke="#F3F8EA" i]{stroke:#19240A}html[data-theme=dark] [style*="background:#F3F8EA" i]{background:#19240A!important}
html[data-theme=dark] svg [fill="#F3FBE4" i]{fill:#1B2903}html[data-theme=dark] svg [stroke="#F3FBE4" i]{stroke:#1B2903}html[data-theme=dark] [style*="background:#F3FBE4" i]{background:#1B2903!important}
html[data-theme=dark] svg [fill="#F4F5F1" i]{fill:#181D12}html[data-theme=dark] svg [stroke="#F4F5F1" i]{stroke:#181D12}html[data-theme=dark] [style*="background:#F4F5F1" i]{background:#181D12!important}
html[data-theme=dark] svg [fill="#F4F7EF" i]{fill:#18200F}html[data-theme=dark] svg [stroke="#F4F7EF" i]{stroke:#18200F}html[data-theme=dark] [style*="background:#F4F7EF" i]{background:#18200F!important}
html[data-theme=dark] svg [fill="#F6F7F3" i]{fill:#181D12}html[data-theme=dark] svg [stroke="#F6F7F3" i]{stroke:#181D12}html[data-theme=dark] [style*="background:#F6F7F3" i]{background:#181D12!important}
html[data-theme=dark] svg [fill="#F7D9B5" i]{fill:#461D00}html[data-theme=dark] svg [stroke="#F7D9B5" i]{stroke:#461D00}html[data-theme=dark] [style*="background:#F7D9B5" i]{background:#461D00!important}
html[data-theme=dark] svg [fill="#F7F9F3" i]{fill:#181E11}html[data-theme=dark] svg [stroke="#F7F9F3" i]{stroke:#181E11}html[data-theme=dark] [style*="background:#F7F9F3" i]{background:#181E11!important}
html[data-theme=dark] svg [fill="#F8FAF4" i]{fill:#181E11}html[data-theme=dark] svg [stroke="#F8FAF4" i]{stroke:#181E11}html[data-theme=dark] [style*="background:#F8FAF4" i]{background:#181E11!important}
html[data-theme=dark] svg [fill="#FAFBF8" i]{fill:#181C13}html[data-theme=dark] svg [stroke="#FAFBF8" i]{stroke:#181C13}html[data-theme=dark] [style*="background:#FAFBF8" i]{background:#181C13!important}
html[data-theme=dark] svg [fill="#FBE3DC" i]{fill:#321203}html[data-theme=dark] svg [stroke="#FBE3DC" i]{stroke:#321203}html[data-theme=dark] [style*="background:#FBE3DC" i]{background:#321203!important}
html[data-theme=dark] svg [fill="#FBE7E4" i]{fill:#2C1209}html[data-theme=dark] svg [stroke="#FBE7E4" i]{stroke:#2C1209}html[data-theme=dark] [style*="background:#FBE7E4" i]{background:#2C1209!important}
html[data-theme=dark] svg [fill="#FBF2DF" i]{fill:#291F00}html[data-theme=dark] svg [stroke="#FBF2DF" i]{stroke:#291F00}html[data-theme=dark] [style*="background:#FBF2DF" i]{background:#291F00!important}
html[data-theme=dark] svg [fill="#FBF4E6" i]{fill:#251E05}html[data-theme=dark] svg [stroke="#FBF4E6" i]{stroke:#251E05}html[data-theme=dark] [style*="background:#FBF4E6" i]{background:#251E05!important}
html[data-theme=dark] svg [fill="#FBFCF9" i]{fill:#181C13}html[data-theme=dark] svg [stroke="#FBFCF9" i]{stroke:#181C13}html[data-theme=dark] [style*="background:#FBFCF9" i]{background:#181C13!important}
html[data-theme=dark] svg [fill="#FCEBE9" i]{fill:#29130B}html[data-theme=dark] svg [stroke="#FCEBE9" i]{stroke:#29130B}html[data-theme=dark] [style*="background:#FCEBE9" i]{background:#29130B!important}
html[data-theme=dark] svg [fill="#FDECEC" i]{fill:#28120D}html[data-theme=dark] svg [stroke="#FDECEC" i]{stroke:#28120D}html[data-theme=dark] [style*="background:#FDECEC" i]{background:#28120D!important}
html[data-theme=dark] svg [fill="#FFE2C7" i]{fill:#401A00}html[data-theme=dark] svg [stroke="#FFE2C7" i]{stroke:#401A00}html[data-theme=dark] [style*="background:#FFE2C7" i]{background:#401A00!important}
html[data-theme=dark] svg [fill="#FFF1E0" i]{fill:#2D1C00}html[data-theme=dark] svg [stroke="#FFF1E0" i]{stroke:#2D1C00}html[data-theme=dark] [style*="background:#FFF1E0" i]{background:#2D1C00!important}
html[data-theme=dark] svg [fill="#FFF3D6" i]{fill:#312300}html[data-theme=dark] svg [stroke="#FFF3D6" i]{stroke:#312300}html[data-theme=dark] [style*="background:#FFF3D6" i]{background:#312300!important}
html[data-theme=dark] svg [fill="#FFF4D6" i]{fill:#302400}html[data-theme=dark] svg [stroke="#FFF4D6" i]{stroke:#302400}html[data-theme=dark] [style*="background:#FFF4D6" i]{background:#302400!important}
html[data-theme=dark] svg [fill="#FFF4DC" i]{fill:#2E2100}html[data-theme=dark] svg [stroke="#FFF4DC" i]{stroke:#2E2100}html[data-theme=dark] [style*="background:#FFF4DC" i]{background:#2E2100!important}
html[data-theme=dark] svg [fill="#FFF4E0" i]{fill:#2C1F00}html[data-theme=dark] svg [stroke="#FFF4E0" i]{stroke:#2C1F00}html[data-theme=dark] [style*="background:#FFF4E0" i]{background:#2C1F00!important}
html[data-theme=dark] svg [fill="#FFF6EC" i]{fill:#251B08}html[data-theme=dark] svg [stroke="#FFF6EC" i]{stroke:#251B08}html[data-theme=dark] [style*="background:#FFF6EC" i]{background:#251B08!important}
html[data-theme=dark] svg [fill="#FFF8E5" i]{fill:#272000}html[data-theme=dark] svg [stroke="#FFF8E5" i]{stroke:#272000}html[data-theme=dark] [style*="background:#FFF8E5" i]{background:#272000!important}
/* пастельные баночки детской копилки остаются светлыми — текст на них тёмный */
html[data-theme=dark] .bkb .s,html[data-theme=dark] .bkb .t,html[data-theme=dark] .bkb .p,html[data-theme=dark] .bkb .i,
html[data-theme=dark] .bkb .s *,html[data-theme=dark] .bkb .t *,html[data-theme=dark] .bkb .p *,html[data-theme=dark] .bkb .i *{color:#0D0D0D}
/* свечение на фоне — цвета акцента */
html[data-acc] .aurw .a1{background:radial-gradient(circle,color-mix(in srgb,var(--lime) 45%,transparent) 0,transparent 70%)}

/* кнопка темы в шапке сайта */
.thm{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink);display:inline-grid;place-items:center;cursor:pointer;padding:0}
.thm:hover{border-color:var(--ink)}.thm:empty::before{content:"";width:16px;height:16px}
@media (max-width:520px){.top .thm{margin-left:auto}}
html[data-theme=dark] .top,html[data-theme=dark] header.top{border-color:var(--line)}
