/* ACGS Life v0.6.22 - input reliability, clear monthly totals and personal demo assistant. */
/* Keep native number spinners out of the field: they collide with narrow suffixes. */
.mental-input-unit input[type="number"],.body-input input[type="number"]{
 appearance:textfield!important;-moz-appearance:textfield!important;
 flex:1 1 0!important;width:1px!important;min-width:0!important;max-width:100%!important;
 box-sizing:border-box!important;background:transparent!important;
 border:0!important;outline:0!important;font-size:16px!important;
 padding:10px 5px 10px 11px!important;line-height:1.35!important;
}
.mental-input-unit input[type="number"]::-webkit-inner-spin-button,
.mental-input-unit input[type="number"]::-webkit-outer-spin-button,
.body-input input[type="number"]::-webkit-inner-spin-button,
.body-input input[type="number"]::-webkit-outer-spin-button{
 -webkit-appearance:none!important;appearance:none!important;margin:0!important;display:none!important;
}
.mental-input-unit,.body-input{display:flex;align-items:center;min-width:0;max-width:100%;box-sizing:border-box}
.mental-input-unit small,.body-input small{flex:0 0 auto;white-space:nowrap;margin-left:3px;font-size:12px!important}
.body-number{grid-template-columns:minmax(0,1fr) minmax(120px,148px)}
.body-input{padding:3px 8px!important;gap:3px!important}
.body-input input[type="number"]{min-height:42px!important;padding:7px 2px!important}
.mental-input-unit input[type="number"]{min-height:47px!important}
.finance-expenses-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px 12px;
 padding:15px 13px;margin:12px 0 15px;background:#2f3941;border:1px solid #687784;
 border-radius:13px;color:#e6eef5;font-weight:670;line-height:1.4}
.finance-expenses-total span{font-size:15px}.finance-expenses-total strong{font-size:19px;color:#fff;font-variant-numeric:tabular-nums}
.finance-split-direction{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#d0dee8;font-size:12px;line-height:1.45}
.finance-savings-split input[type="range"]{direction:ltr!important;touch-action:pan-y}
.ai-chat-name-field{display:flex;flex-direction:column;gap:7px;margin-top:14px;padding:12px;
 border:1px solid #536775;background:#26323b;border-radius:13px;color:#eff5f8}
.ai-chat-name-field span{font-size:14px;font-weight:760}.ai-chat-name-field small{font-size:12px;line-height:1.4;color:#bdced9}
.ai-chat-name-field input{width:100%;min-height:44px;border-radius:10px;border:1px solid #768c9b;
 background:#19242b;color:#fff;padding:9px 12px;font-size:16px}
.ai-chat-name-field input:focus-visible{outline:2px solid #b9d6e8;outline-offset:1px}
@media(max-width:350px){.mental-sleep-grid{grid-template-columns:1fr!important}.body-number{grid-template-columns:minmax(0,1fr) 122px}.finance-expenses-total span{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ai-chat-overlay,.ai-chat-panel{transition:none!important}}
/* Unified assistant modal: graphite header and a scrollable, keyboard-friendly body. */
html[data-acgs-theme="ruhig"] .ai-chat-panel{height:min(610px,calc(100dvh - 18px));background:#212a31;border-color:#5a6b77;color:#f1f5f8}
html[data-acgs-theme="ruhig"] .ai-chat-header{background:#29343d;border-bottom:1px solid #526470;color:#f2f7fa}
html[data-acgs-theme="ruhig"] .ai-chat-heading h2{color:#fff;font-size:17px;line-height:1.3}
html[data-acgs-theme="ruhig"] .ai-chat-heading span:not(.ai-chat-avatar){color:#c5d5de;font-size:12px}
html[data-acgs-theme="ruhig"] .ai-chat-close{background:#354550;border:1px solid #536a78;color:#f3f8fb}
html[data-acgs-theme="ruhig"] .ai-chat-messages{background:#212a31;color:#f1f5f8;overflow-y:auto;overscroll-behavior:contain;padding:15px 16px;min-height:0}
html[data-acgs-theme="ruhig"] .ai-chat-message{background:#303e48;border:1px solid #627683;color:#f4f7f8}
html[data-acgs-theme="ruhig"] .ai-chat-message p{color:#d4e0e7}
html[data-acgs-theme="ruhig"] .ai-chat-composer{background:#29343d;border-top:1px solid #526470}
html[data-acgs-theme="ruhig"] .ai-chat-composer input{background:#1e292f;border-color:#4e606c;color:#b2c3ce}
html[data-acgs-theme="ruhig"] .ai-chat-composer button{background:#40505a;color:#cfdae1}
