/* Shared field geometry and spacing for every Bostadga page and dynamic module. */
:root{--control-radius:8px;--field-gap:8px;--form-gap:16px}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--line,#dce3d9);border-radius:var(--control-radius);background:#fff;color:var(--ink,#203d36);font:inherit;line-height:1.5}
body textarea{min-height:100px;resize:vertical}
body label:has(:is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea)){display:flex;flex-direction:column;align-items:stretch;gap:var(--field-gap);min-width:0;max-width:100%;line-height:1.5}
body label:has(:is(input[type=checkbox],input[type=radio])){display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.6}
body input:is([type=checkbox],[type=radio]){flex:0 0 auto;width:18px;min-width:18px;height:18px;min-height:18px;margin:3px 0 0;accent-color:var(--green,#285c48)}
body label[for]{display:block;margin-bottom:var(--field-gap)}
body :is(.field,.row,.form-toolbar){gap:12px;flex-wrap:wrap;align-items:flex-end}
body .field{row-gap:var(--form-gap)}
body .field>label{flex:1 1 180px}
body .field>label:has(:is(input[type=checkbox],input[type=radio])){flex-basis:100%}
body :is(.case-form,form){row-gap:var(--form-gap)}
body form>label+label{margin-top:var(--form-gap)}
body .case-form>label+label{margin-top:0}
body :is(input,select,textarea):focus-visible{outline:3px solid #8b9d65;outline-offset:2px}
body :is(fieldset,dialog,.case-solution){border-radius:12px}
body fieldset{min-width:0;padding:18px;margin:16px 0;border:1px solid var(--line,#dce3d9)}
body details{margin-block:16px}
body summary{cursor:pointer;line-height:1.6;padding-block:8px}
body summary+*{margin-top:12px}
body :is(.panelhead,.case-card-top){flex-wrap:wrap;gap:12px}
@media(max-width:650px){body .field>label{flex-basis:100%}body .field>button{max-width:100%}body :is(input,select,textarea){font-size:16px}}
