/* ACGS Life Phase 1: Sanftes Graphit (selected base design).
 * One subdued graphite palette, high contrast, shared across all mobile screens.
 * Existing 3-variant prototype remains for rollback/comparison; ruhig = graphite.
 */
html[data-acgs-theme="ruhig"] {
  --acgs-canvas:#131619;
  --acgs-surface:#21262b;
  --acgs-surface-muted:#292f35;
  --acgs-sage-soft:#353d45;
  --acgs-sage:#b6c3cf;
  --acgs-forest:#dde6ec;
  --acgs-forest-deep:#f4f6f8;
  --acgs-text:#f0f3f6;
  --acgs-muted:#b9c3cd;
  --acgs-border:#424b53;
  --acgs-focus:#a7c0d9;
  --acgs-shadow:0 12px 30px #02050733;
}
html[data-acgs-theme="ruhig"],html[data-acgs-theme="ruhig"] body{background:#0e1114;color:#f0f3f6}
html[data-acgs-theme="ruhig"] .shell,html[data-acgs-theme="ruhig"] .landing{background:#15191d;color:#f0f3f6;box-shadow:0 0 30px #0004}
html[data-acgs-theme="ruhig"] .main,html[data-acgs-theme="ruhig"] .dashboard,html[data-acgs-theme="ruhig"] .finance-page,html[data-acgs-theme="ruhig"] .mental-page{color:#f0f3f6}
html[data-acgs-theme="ruhig"] :is(.dashboard-card,.finance-card,.finance-goal-card,.finance-plan-fold,.mental-card,.card,.landing-entry){background:#242a30;border-color:#3b454e;color:#f1f4f7;box-shadow:0 8px 28px #03060922;border-radius:19px}
html[data-acgs-theme="ruhig"] :is(.dashboard-task-tile,.dashboard-watch-tile,.mental-mood,.mental-energy-option,.finance-expense-group,.finance-time-grid>div,.finance-editor-group,.mental-input-unit,.mental-select-wrap,.finance-input-wrap input,.finance-text-field input,.mental-journal textarea,.field input,.field select,.field textarea,.finance-rhythm-choice label,.finance-rhythm-summary,.finance-goal-fields input){background:#303840;border-color:#4a5661;color:#eff3f6}
html[data-acgs-theme="ruhig"] :is(.dashboard-task-tile.is-done,.mental-mood.is-active,.mental-energy-option.is-active){background:#3b4e5b;border-color:#9eb7cc;color:#fff}
html[data-acgs-theme="ruhig"] :is(.dashboard-task-symbol,.dashboard-watch-icon,.mental-icon,.finance-section-icon,.finance-group-icon,.finance-goal-icon,.mental-mood-symbol,.finance-rhythm-top-icon){background:#38434c;color:#d3e2ee}
html[data-acgs-theme="ruhig"] :is(.dashboard-kicker,.mental-eyebrow,.finance-kicker,.mental-card-kicker,.eyebrow,.finance-plan-tag){color:#c2cfda}
html[data-acgs-theme="ruhig"] :is(.dashboard-header h1,.dashboard-section-heading h2,.dashboard-money strong,.dashboard-watch-heading h2,.dashboard-watch-tile strong,.mental-header h1,.mental-card-head h2,.mental-energy-row h3,.mental-journal-title strong,.mental-impulse strong,.finance-head h1,.finance-section-title h2,.finance-section-heading h2,.finance-group-summary strong,.finance-goal-title strong,.finance-goal-progress strong,.finance-distribution-row strong,.finance-visual-heading h3,.finance-time-grid strong,.finance-projection-title,.finance-plan-foot strong,.finance-rhythm-top h2,.finance-compare strong,.finance-compare h2,.mental-month-nav strong,.landing-entry h1,.landing-brand strong){color:#f4f6f8}
html[data-acgs-theme="ruhig"] :is(.finance-head h1 em,.mental-header h1 em){color:#c4d5e0}
html[data-acgs-theme="ruhig"] :is(.dashboard-date,.dashboard-watch-subtitle,.dashboard-watch-label,.dashboard-watch-hint,.dashboard-watch-footer,.dashboard-task-bottom,.dashboard-savings-foot>span,.dashboard-money span,.mental-header p,.mental-mood span:last-child,.mental-energy-row span,.mental-journal-title small,.mental-journal-foot>span:first-child,.mental-counter,.mental-footnote,.finance-head p,.finance-section-title p,.finance-section-heading>p,.finance-group-summary small,.finance-footnote,.finance-distribution-row,.finance-distribution-row small,.finance-balance span,.finance-goal-title small,.finance-goal-progress span,.finance-time-grid small,.finance-time-grid span,.finance-rhythm-top p,.finance-rhythm-summary span,.finance-warning,.finance-compare-row span,.small.muted,.muted,.landing-entry-desc,.landing-brand small,.landing-foot){color:#bdc7cf}
html[data-acgs-theme="ruhig"] :is(.finance-field,.finance-input-block>span,.mental-input-block>span,.field label,.mental-journal-body>label,.finance-visual-heading>span,.finance-rhythm-account){color:#dbe4eb}
html[data-acgs-theme="ruhig"] :is(.finance-goal-progress b,.dashboard-count,.dashboard-saving-pct){background:#40515c;color:#e3f1f9}
html[data-acgs-theme="ruhig"] :is(.dashboard-thin-progress,.finance-goal-bar,.finance-distribution-track,.progress,.budgetbar){background:#414b54}
html[data-acgs-theme="ruhig"] :is(.dashboard-thin-progress>span,.finance-goal-bar span,.progress b){background:#aebfcf}
html[data-acgs-theme="ruhig"] :is(.dashboard-finance-link,.dashboard-watch-edit,.dashboard-preview-show,.finance-fold-done,.finance-inline-button,.finance-adopt-button,.finance-secondary-button,.mental-back-today){background:#dce7ef;color:#19232b;border-color:#dce7ef;font-weight:750}
html[data-acgs-theme="ruhig"] :is(.finance-expense-group summary,.finance-goal-fold>summary,.finance-plan-fold>summary,.mental-journal>summary,.mental-history>summary,.finance-adjust-fold>summary){color:#f1f4f7}
html[data-acgs-theme="ruhig"] :is(.finance-compare-head,.finance-compare-row,.finance-plan-foot,.finance-balance,.finance-journal-body,.mental-journal-body,.mental-history-body,.finance-watch-settings,.finance-expense-fields,.finance-goal-fields){border-color:#414b54}
html[data-acgs-theme="ruhig"] :is(.mental-sleep-grid select,.mental-sleep-grid input,.finance-expense-fields input,.finance-adjust-grid input,.finance-goal-fields input,.finance-income input,.mental-journal textarea,.field input,.field textarea,.field select){background:#303840;color:#f1f4f7;border-color:#52606c; color-scheme:dark}
html[data-acgs-theme="ruhig"] :is(input,select,textarea)::placeholder{color:#a9b6c2;opacity:1}
html[data-acgs-theme="ruhig"] :is(.dashboard-info,.finance-watch-select-label select,.dashboard-watch-select-label select){background:#38434b;color:#ecf1f6;border-color:#63717e;color-scheme:dark}
html[data-acgs-theme="ruhig"] :is(.finance-positive,.good){color:#b2e4ca!important}
html[data-acgs-theme="ruhig"] :is(.finance-negative,.high){color:#ffb9af!important}
html[data-acgs-theme="ruhig"] .finance-warning{background:#463834;color:#ffcfb6}
html[data-acgs-theme="ruhig"] :is(.finance-ai-tag,.finance-potential,.finance-ai-notice,.finance-friendly-hint,.finance-rhythm-note,.note,.callout,.ai-placeholder){background:#303840;border-color:#52606c;color:#e3ebf1}
html[data-acgs-theme="ruhig"] .mobile-nav{background:#1b2025;border-color:#414b54;box-shadow:0 -6px 28px #0006}
html[data-acgs-theme="ruhig"] .mobile-nav button{color:#d0d9e1}
html[data-acgs-theme="ruhig"] .mobile-nav button.active{background:#3b4a57;color:#fff}
html[data-acgs-theme="ruhig"] .ai-chat-fab,html[data-acgs-theme="ruhig"] .btn:not(.secondary):not(.danger){background:#e4ebf1;color:#17212a;border-color:#e4ebf1}
html[data-acgs-theme="ruhig"] .ai-chat-panel,html[data-acgs-theme="ruhig"] .ai-chat-messages{background:#21282e;color:#f3f6f8;border-color:#4e5b65}
html[data-acgs-theme="ruhig"] .ai-chat-avatar,html[data-acgs-theme="ruhig"] .ai-chat-message{background:#384650;color:#eaf2f9}
html[data-acgs-theme="ruhig"] .acgs-saved,html[data-acgs-theme="ruhig"] .toast{background:#354753;color:#f4f7fa}
html[data-acgs-theme="ruhig"] :is(.landing-status,.landing-auth-option,.landing-auth-pending,.landing-mobile-quote){background:#313941;border-color:#4c5964;color:#e3edf5}
html[data-acgs-theme="ruhig"] .landing-mobile-quote{border-left-color:#aabfcf}
html[data-acgs-theme="ruhig"] .landing-cta{background:#e1e9ef;color:#18212a;border-color:#e1e9ef}
html[data-acgs-theme="ruhig"] .landing-separator,html[data-acgs-theme="ruhig"] .landing-foot{color:#c6d1dc;border-color:#48545d}
html[data-acgs-theme="ruhig"] :is(.landing-separator::before,.landing-separator::after){background:#47535d}
html[data-acgs-theme="ruhig"] :is(.theme-pick-wrap,.theme-choice){background:#21282e;border-color:#3e4b55;color:#eff3f6}
html[data-acgs-theme="ruhig"] .theme-pick-head,html[data-acgs-theme="ruhig"] .theme-pick-intro h1{color:#f3f6f8}
html[data-acgs-theme="ruhig"] button:focus-visible,html[data-acgs-theme="ruhig"] input:focus-visible,html[data-acgs-theme="ruhig"] select:focus-visible,html[data-acgs-theme="ruhig"] textarea:focus-visible{outline:3px solid #b8d9f4;outline-offset:2px}
@media(prefers-reduced-motion:reduce){html[data-acgs-theme="ruhig"] *{scroll-behavior:auto}}
/* Explicit contrast repairs for formerly green-on-white component copy. */
html[data-acgs-theme="ruhig"] .dashboard-task-title{color:#f1f5f8}
html[data-acgs-theme="ruhig"] .dashboard-task-tile.is-done .dashboard-task-title{color:#c0ccd6}
html[data-acgs-theme="ruhig"] :is(.dashboard-task-bottom,.dashboard-watch-label,.dashboard-watch-hint,.dashboard-watch-tile small,.dashboard-watch-select-label,.mental-mood-symbol,.mental-journal-title small,.mental-calendar-weekday,.mental-month-summary,.mental-history-disclaimer,.finance-rhythm-choice small,.finance-rhythm-period,.finance-rhythm-note,.finance-rhythm-summary,.finance-rhythm-summary span,.finance-rhythm-account,.finance-tip-mini small,.finance-compare-row span){color:#c2ccd6}
html[data-acgs-theme="ruhig"] :is(.finance-rhythm-choice strong,.finance-rhythm-summary strong,.finance-rhythm-top h2,.finance-rhythm-period>span,.mental-month-summary strong,.mental-month-nav strong,.mental-history-disclaimer strong){color:#f0f3f6}
html[data-acgs-theme="ruhig"] .finance-rhythm-choice label:has(input:checked){background:#40505c;border-color:#9eb6ca}
html[data-acgs-theme="ruhig"] .finance-rhythm-choice label:has(input:checked) strong{color:#fff}
html[data-acgs-theme="ruhig"] .finance-rhythm-period select{background:#39434c;color:#eff4f8;border-color:#566575;color-scheme:dark}
html[data-acgs-theme="ruhig"] :is(.mental-month-nav button,.mental-calendar-day){background:#323c44;border-color:#4a5a66;color:#eff3f6}
html[data-acgs-theme="ruhig"] .mental-calendar-day.is-selected{background:#506779;border-color:#b6cde1;color:#fff}
html[data-acgs-theme="ruhig"] :is(.finance-compare-head,.finance-plan-detail-content,.finance-distribution-row,.finance-compare-row){color:#e2eaf0}
html[data-acgs-theme="ruhig"] .finance-compare-head{background:#3a4650;color:#eef4f8}
html[data-acgs-theme="ruhig"] :is(.finance-plan-detail-content .finance-friendly-hint,.finance-tip-mini,.finance-footnote,.mental-journal-foot,.mental-history-disclaimer){color:#c0cad3}
html[data-acgs-theme="ruhig"] .finance-rhythm-summary strong{color:#edf4f9}
html[data-acgs-theme="ruhig"] .dashboard-task-tile input[type=checkbox],html[data-acgs-theme="ruhig"] .finance-rhythm-choice input{accent-color:#b5cada}
