/* HOME controls: scroll only the settings body; keep close/apply reachable. */
html:root[data-lj-theme] dialog.model-settings-next[open]{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;height:min(760px,90dvh);max-height:90dvh;overflow:hidden!important}
html:root[data-lj-theme] dialog.model-settings-next .model-settings-layout{min-height:0;overflow:auto;overscroll-behavior:contain;margin:0!important;padding:16px 24px 22px;align-content:start}
html:root[data-lj-theme] dialog.model-settings-next .model-settings-footer{position:static;flex-shrink:0}
html:root[data-lj-theme] dialog.model-settings-next .model-settings-controls{min-height:0}
html:root[data-lj-theme] .home-consumption-details{width:min(480px,100%);margin:auto;text-align:left}
html:root[data-lj-theme] .consumption-line{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--ui-border-soft)}
html:root[data-lj-theme] .consumption-total{font-size:20px;padding-top:20px}
html:root[data-lj-theme] .consumption-rule{font-size:12px;line-height:1.8;color:var(--ui-muted)}
@media(max-width:700px){html:root[data-lj-theme] dialog.model-settings-next[open]{height:92dvh;max-height:92dvh}html:root[data-lj-theme] dialog.model-settings-next .model-settings-layout{grid-template-columns:1fr;padding:12px 16px 18px}html:root[data-lj-theme] .consumption-line{gap:12px}}

html:root[data-lj-theme] dialog.home-cost-dialog{width:min(560px,calc(100vw - 28px));max-height:88dvh}html:root[data-lj-theme] dialog.home-cost-dialog .dialog-body{padding:18px 22px}
