/* Scroll the form body; keep the primary action reachable above the phone keyboard. */
body.ws #modal{overflow:hidden;max-height:calc(100dvh - 24px)}
body.ws #modalForm{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0}
body.ws #modalBody{overflow-y:auto;overscroll-behavior:contain;min-height:0;scroll-padding-block:18px}
body.ws #modalForm>.actions{flex-shrink:0;position:relative;margin:0;border-top:1px solid var(--line);padding-bottom:max(14px,env(safe-area-inset-bottom));display:flex;gap:10px}
body.ws #modalForm>.actions button{flex:1;min-height:46px}
body.ws .ws-compact-form>label{display:block;margin-top:12px;margin-bottom:4px;font-size:12px;color:var(--muted)}
body.ws .ws-compact-form>:is(input,select,textarea){min-height:44px;margin:0;width:100%}
body.ws .ws-compact-form>textarea{min-height:76px}
.ws-draft-bar{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-alt)}
.ws-draft-bar small{flex:1;min-width:0;color:var(--muted);line-height:1.5;font-size:12px}
body.ws .ws-draft-bar button{flex-shrink:0;min-height:44px;max-width:44%;font-size:12px;white-space:normal}
.ws-site-choices{display:grid;gap:8px}.ws-site-choices button{display:flex;align-items:center;gap:10px;text-align:left;min-height:48px}
.ws-optional-fields{margin-top:16px;border:1px solid var(--line);border-radius:10px;padding:0 12px}.ws-optional-fields summary{padding:14px 0;min-height:44px;cursor:pointer;font-size:13px;font-weight:600}.ws-optional-fields>label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px}.ws-optional-fields textarea{min-height:70px}.ws-optional-fields[open]{padding-bottom:12px}
.ws-list-more{text-align:center;padding:18px}.ws-list-more p{color:var(--muted);font-size:13px}.ws-list-more button{min-height:44px}
@media(max-width:600px){body.ws #modal{width:calc(100% - 16px);max-width:100%;border-radius:14px}body.ws #modalBody{padding:18px 16px}body.ws #modalBody h2{font-size:20px;margin-bottom:14px}body.ws #modalForm>.actions{padding-inline:16px}body.ws .ws-compact-form :is(input,select,textarea){font-size:16px}}
