/* Flexible text layouts, including Android's larger font preferences. */
button,select,input,textarea{max-width:100%;box-sizing:border-box}
button,h1,h2,h3,strong,.home-icon-label{overflow-wrap:anywhere}
button{white-space:normal;line-height:1.25}
.row{flex-wrap:wrap}.row .grow{flex-basis:45%;overflow-wrap:anywhere}
.field input,.field select{min-height:2.8em;line-height:1.4}
.date-month-heading{height:auto!important;min-height:2.7em;gap:6px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px;line-height:1.3}
.date-month-heading>span:first-child{min-width:0;flex:1;overflow-wrap:anywhere}
.annual-page-controls{flex:none;white-space:nowrap}
.annual-page-controls button{min-width:1.8em;min-height:1.8em}
.annual-paged,.dates-lines,.cycle-box,.vision-box,.finance-box,.budget-box,.fitness-box{height:auto!important;min-height:0}
.date-line{height:auto!important;min-height:2em;align-items:center;min-width:0}
.date-line input{min-width:0;min-height:1.9em;height:auto!important;line-height:1.4;padding-top:3px;padding-bottom:3px}
.date-line .line-date{flex-shrink:0;min-height:1.9em;height:auto!important;line-height:1.4}
#app>.banner,.vision-view .banner{height:auto;min-height:57px;align-items:center}
#app>.banner h1:not(.original-title){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}
.home-icon-label{white-space:normal!important;line-height:1.2!important}
.pill-month-icon{aspect-ratio:auto;min-height:5em;padding:12px 4px}
.pill-month-icon strong{line-height:1.25}.pill-month-icon small{line-height:1.4}
.fitness-category-grid button,.meal-category-grid button{height:auto;min-height:9em}
.task-switch{flex-wrap:wrap}.task-switch>span:first-child{min-width:0;overflow-wrap:anywhere}
.exercise-head,.meal-line-head{line-height:1.3}
.exercise-row input{min-height:2.5em;line-height:1.4}
.meal-line textarea{height:3.6em;min-height:3.6em;max-height:3.6em;line-height:1.4;padding-top:.3em;padding-bottom:.3em}
dialog{overflow-y:auto;overflow-x:hidden}dialog .toolbar{flex-wrap:wrap}
@media(max-width:400px){.row{gap:7px}.row>button{padding:7px}.exercise-head,.exercise-row{grid-template-columns:minmax(0,1fr) 48px 40px 40px}.meal-month-controls{flex-wrap:wrap}.meal-month-controls .field{flex-basis:40%}}
/* Panel: separate layout slots instead of absolute overlapping labels. */
.home-modules{min-height:0;align-items:start;gap:18px}
.home-modules .module .home-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative;overflow:visible;width:100%;max-width:170px;min-height:9em;height:auto;aspect-ratio:1;padding:12px 8px;border-width:3px}
.home-modules .home-icon img.original-home-symbol{position:static;inset:auto;width:52%;height:2.4em;max-width:72px;object-fit:contain;flex:none}
.home-modules .module .home-icon-label{position:static;inset:auto;transform:none;display:block;width:100%;height:auto;flex:none;font:650 12px/1.25 system-ui,sans-serif!important;overflow-wrap:normal;word-break:normal;white-space:normal!important;text-transform:none}
.home-modules .panel-extra-symbol{font-size:32px;line-height:1.2;margin:0;height:auto}
#tabs button[data-month]{white-space:nowrap!important;overflow-wrap:normal;word-break:normal;flex-wrap:nowrap;min-height:4.8em;height:auto;line-height:1.15;padding:8px 5px}
@media(max-width:480px){.home-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.home-content{padding:18px 10px}.home-modules .module .home-icon{min-height:9em;max-width:160px}}
/* Avoid content-dependent circle sizes and keep long labels inside. */
.home-modules .module .home-icon{width:100%;max-width:none;height:auto;min-height:0;aspect-ratio:1;box-sizing:border-box;padding:14px 10px;gap:6px}
.home-modules .module .home-icon-label{font-size:11px!important;line-height:1.2!important;overflow-wrap:normal;hyphens:none}
.home-modules .home-icon img.original-home-symbol{width:48%;height:32px;max-width:60px}
.home-modules .panel-extra-symbol{font-size:27px;line-height:1;height:32px;display:grid;place-items:center}
.pill-month-icons{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pill-month-icon{width:100%;min-height:78px;aspect-ratio:2/1;padding:10px 6px}
.pill-month-icon strong{font-size:14px;line-height:1.3;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.pill-month-icon small{font-size:10px}
@media(max-width:480px){.home-modules .module .home-icon{min-height:0;max-width:none}.home-modules .module .home-icon-label{font-size:10px!important}}
.home-modules .module .home-icon{width:145px;height:145px;min-height:145px;max-width:145px;aspect-ratio:auto}.home-modules .module{width:100%;justify-self:stretch}
#app .banner select#year{max-width:none;width:5em;min-width:5em;padding:6px;font-size:13px}
@media(max-width:480px){.home-modules .module .home-icon{width:calc((100vw - 104px)/2);height:calc((100vw - 104px)/2);min-height:calc((100vw - 104px)/2);max-width:none}.home-modules .module .home-icon-label{font-size:10px!important}}
