/* =========================================================
   LIFE OS v24 — ТЁМНАЯ И СВЕТЛАЯ ТЕМЫ
   ========================================================= */
.theme-choice{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.theme-choice__btn{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 9px;
  border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025);
  color:var(--muted);font-size:9px;cursor:pointer;transition:.22s ease
}
.theme-choice__btn:hover{transform:translateY(-1px);color:var(--text);border-color:var(--line-strong)}
.theme-choice__btn.active{color:var(--text);border-color:rgba(239,63,78,.34);box-shadow:0 0 20px rgba(239,63,78,.06)}
.theme-choice__swatch{width:17px;height:17px;border-radius:6px;display:block;box-shadow:inset 0 0 0 1px rgba(90,74,51,.20)}
.theme-choice__swatch--dark{background:linear-gradient(145deg,#171c25,#090a0e)}

body[data-theme="light"]{
  --bg:#e9dfcf;--bg-2:#e2d5c1;--panel:rgba(248,241,230,.90);--panel-2:rgba(239,228,210,.92);
  --line:rgba(77,61,43,.11);--line-strong:rgba(77,61,43,.19);
  --text:#2c271f;--muted:#7b705f;--accent:#b59a5d;--accent-2:#6f8b82;--danger:#b85d5d;
  --shadow:0 24px 70px rgba(82,63,40,.13);
  --panel-glow:0 26px 70px rgba(82,63,40,.11),0 0 36px rgba(183,155,91,.055);
  --neon-green:rgba(181,154,93,.28);--neon-blue:rgba(111,139,130,.22);
  background:
    radial-gradient(circle at 88% 8%,rgba(183,155,91,.11),transparent 25%),
    radial-gradient(circle at 8% 92%,rgba(111,139,130,.07),transparent 28%),
    var(--bg);
  color:var(--text)
}
body[data-theme="light"] ::selection{background:rgba(183,155,91,.25);color:#2b251d}
body[data-theme="light"] .sidebar{background:rgba(235,225,209,.90);box-shadow:10px 0 42px rgba(82,63,40,.055);border-right-color:rgba(77,61,43,.10)}
body[data-theme="light"] .topbar{background:linear-gradient(to bottom,rgba(235,225,209,.94),rgba(235,225,209,.74),transparent);backdrop-filter:blur(16px)}
body[data-theme="light"] .nav__item{color:#746957}
body[data-theme="light"] .nav__item:hover{background:rgba(86,67,42,.055);color:#30291f}
body[data-theme="light"] .nav__item.active{background:rgba(249,242,231,.94);color:#2d271f;box-shadow:0 10px 30px rgba(82,63,40,.08),inset 0 0 0 1px var(--line)}
body[data-theme="light"] .panel,
body[data-theme="light"] .goal-card,
body[data-theme="light"] .goal-detail,
body[data-theme="light"] .task-column,
body[data-theme="light"] .task-insight,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .horizon-card,
body[data-theme="light"] .calendar-day,
body[data-theme="light"] .calendar-event-item,
body[data-theme="light"] .calendar-all-item,
body[data-theme="light"] .review-card,
body[data-theme="light"] .fact,
body[data-theme="light"] .expense-category-card,
body[data-theme="light"] .habit-card,
body[data-theme="light"] .subtask-row,
body[data-theme="light"] .planning-subtask-editor-row,
body[data-theme="light"] .category-toggle,
body[data-theme="light"] .block-manager-list__row{background:rgba(248,241,230,.88);color:var(--text);box-shadow:0 15px 38px rgba(82,63,40,.045)}
body[data-theme="light"] .hero-card{background:linear-gradient(145deg,rgba(249,243,233,.94),rgba(236,224,206,.91));box-shadow:0 24px 70px rgba(82,63,40,.11)}
body[data-theme="light"] .hero-card--focus{background:radial-gradient(circle at 82% 14%,rgba(111,139,130,.10),transparent 32%),linear-gradient(145deg,rgba(249,243,233,.95),rgba(232,218,197,.92))}
body[data-theme="light"] .finance-panel,body[data-theme="light"] .finance-entry-panel{background:linear-gradient(145deg,rgba(249,243,233,.92),rgba(235,222,202,.90))}
body[data-theme="light"] .modal__backdrop{background:rgba(65,52,37,.30)}
body[data-theme="light"] .modal__dialog,
body[data-theme="light"] .calendar-context-menu,
body[data-theme="light"] .weekly-review-context-menu,
body[data-theme="light"] .life-robot__panel,
body[data-theme="light"] .block-manager-toolbar{background:rgba(246,238,226,.98);color:var(--text);box-shadow:0 28px 80px rgba(82,63,40,.20);border-color:rgba(77,61,43,.13)}
body[data-theme="light"] input,body[data-theme="light"] select,body[data-theme="light"] textarea,
body[data-theme="light"] .field input,body[data-theme="light"] .field select,body[data-theme="light"] .field textarea,
body[data-theme="light"] .command-assistant-input,body[data-theme="light"] .inline-finance-form input,
body[data-theme="light"] .report-export-controls select,body[data-theme="light"] .planning-subtask-editor-row input[type="text"]{
  background:rgba(240,229,212,.92);color:#2c271f;border-color:rgba(77,61,43,.12)
}
body[data-theme="light"] input::placeholder,body[data-theme="light"] textarea::placeholder{color:#9e917f}
body[data-theme="light"] .ghost-btn,body[data-theme="light"] .icon-btn,body[data-theme="light"] .row-action,body[data-theme="light"] .small-action-btn,body[data-theme="light"] .calendar-nav-btn,body[data-theme="light"] .calendar-add-small{background:rgba(83,65,43,.035);color:#746957;border-color:rgba(77,61,43,.11)}
body[data-theme="light"] .ghost-btn:hover,body[data-theme="light"] .icon-btn:hover{background:rgba(183,155,91,.11);color:#4e402c;border-color:rgba(183,155,91,.26)}
body[data-theme="light"] .primary-btn{background:linear-gradient(135deg,#c3a66a,#a98c51);color:#2b2318;box-shadow:0 10px 28px rgba(169,140,81,.20)}
body[data-theme="light"] .progress,body[data-theme="light"] .bar-track,body[data-theme="light"] .load-meter,body[data-theme="light"] .horizon-mini-progress{background:rgba(77,61,43,.09)}
body[data-theme="light"] .progress i,body[data-theme="light"] .bar-track i{background:linear-gradient(90deg,#b99b5e,#d2bd8d)}
body[data-theme="light"] .score-ring{box-shadow:inset 0 0 0 10px #eee3d2}
body[data-theme="light"] .score-ring:after{background:#eee3d2}
body[data-theme="light"] .inline-finance-form{background:linear-gradient(145deg,rgba(249,243,233,.95),rgba(235,222,202,.94));border-color:var(--line)}
body[data-theme="light"] .task-item:hover,body[data-theme="light"] .upcoming-payment-row:hover,body[data-theme="light"] .debt-row:hover,body[data-theme="light"] .expense-row:hover{background:rgba(183,155,91,.065)}
body[data-theme="light"] .habit-toggle:hover,body[data-theme="light"] .category-toggle:hover{background:rgba(77,61,43,.045)}
body[data-theme="light"] .habit-check-ui,body[data-theme="light"] .subtask-check,body[data-theme="light"] .planning-subtask-editor-row input[type="checkbox"]{background:#eadfce;color:#8e806e;border-color:rgba(77,61,43,.14)}
body[data-theme="light"] .brand__mark{background:linear-gradient(145deg,#ccb477,#aa8e53);color:#2e261b;box-shadow:0 8px 28px rgba(169,140,81,.24)}
body[data-theme="light"] .life-robot__button{background:linear-gradient(145deg,#f7efe2,#dfceb2);box-shadow:0 18px 50px rgba(82,63,40,.16);border-color:rgba(183,155,91,.24)}
body[data-theme="light"] .robot-face{background:#e9decc;border-color:rgba(77,61,43,.13)}
body[data-theme="light"] .theme-choice__btn{background:rgba(239,229,212,.88)}
body[data-theme="light"] .theme-choice__btn.active{background:#f8f0e3;box-shadow:0 7px 22px rgba(82,63,40,.10),0 0 0 1px rgba(183,155,91,.13)}

@media(max-width:650px){
  .report-export-box__head{align-items:flex-start;flex-direction:column}
  .theme-choice{width:100%}
  .theme-choice__btn{flex:1;justify-content:center}
}



