/* Shared form presentation; navigation, lists, checkboxes and sliders retain their layout. */
#sheet [hidden],#app form [hidden]{display:none!important}
#sheet .sheet-body form,#sheet .sheet-body fieldset,#sheet .sheet-body label,#app form,#app form fieldset,#app form label{min-width:0;min-inline-size:0;max-width:100%}
#sheet .sheet-body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]):not([type=submit]):not([type=button]),
#sheet .sheet-body select,#sheet .sheet-body textarea,
#app form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]):not([type=submit]):not([type=button]),#app form select,#app form textarea{
 display:block;width:100%;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;box-sizing:border-box;min-height:48px;
 font-size:16px;font-size:max(16px,1rem);line-height:1.4;padding:11px 12px;border:2px solid #879b9d;border-radius:11px;background:var(--surface,#fff);color:inherit;
}
#sheet .sheet-body input:focus-visible,#sheet .sheet-body select:focus-visible,#sheet .sheet-body textarea:focus-visible,#app form input:focus-visible,#app form select:focus-visible,#app form textarea:focus-visible{outline:3px solid var(--gold,#e8c886);outline-offset:2px}
#sheet .form-field-label,#app .form-field-label{display:flex;align-items:center;gap:7px;min-width:0;line-height:1.4}
#sheet .form-field-label>svg,#app .form-field-label>svg{width:18px;height:18px;flex:0 0 18px;color:var(--muted)}
#sheet .form-field-label>span,#app .form-field-label>span{min-width:0;overflow-wrap:anywhere}
#sheet input:is([type=date],[type=time],[type=datetime-local],[type=month],[type=week]),#app form input:is([type=date],[type=time],[type=datetime-local],[type=month],[type=week]){appearance:none;-webkit-appearance:none;min-inline-size:0;inline-size:100%;max-inline-size:100%}
#sheet input::-webkit-date-and-time-value,#app form input::-webkit-date-and-time-value{min-width:0;text-align:start}
#sheet input::-webkit-datetime-edit,#app form input::-webkit-datetime-edit{min-width:0;padding:0}
#sheet .calendar-form-grid>*,#sheet .contract-form-grid>*,#sheet .recipe-fields>*,#sheet .form-date-grid>*{min-width:0;max-width:100%}
#sheet .row>label{min-width:0;flex:1}
@media(max-width:600px){#sheet .form-date-grid,#app form .form-date-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#sheet .form-date-grid>*{width:100%;max-width:100%;min-width:0;flex:initial}}

.wellbeing-notice{padding:14px;border:1px solid var(--line);border-radius:12px;margin:16px 0}.wellbeing-notice p{margin-bottom:0;line-height:1.5}[data-wellbeing-form] details{margin:12px 0}[data-wellbeing-form] li{padding:5px 0}

.energy-breakdown{margin:16px 0}.energy-breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.energy-breakdown dd{margin:0;white-space:nowrap}.energy-summary small{display:block;margin:8px 0}.energy-summary h3{margin:0}.energy-summary .row{flex-wrap:wrap}.energy-breakdown dt{min-width:0}
