/* Shared mobile form primitives; keep native selects, validation and autofill. */
form,fieldset,.field,.form-panel{min-width:0}
@media(max-width:900px),(pointer:coarse){
 form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),form select,form textarea{box-sizing:border-box;min-width:0;max-width:100%;font-size:16px!important;line-height:1.5;scroll-margin-block:24px}
 form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),form select{min-height:48px}
 form select{padding-right:2.4rem}
 .field{overflow-wrap:anywhere}
 .field label,.field .help,.field-error{max-width:100%;overflow-wrap:anywhere}
 form .actions{flex-wrap:wrap;gap:12px}
 form button,form .button{white-space:normal;min-height:44px;max-width:100%}
 .form-panel .grid-two,.form-panel .form-grid{grid-template-columns:minmax(0,1fr)}
}

/* The page already reserves navigation space through scroll-padding. */
[data-form-feedback]{scroll-margin-block:0 24px}

/* A long submitted query must wrap inside a flex result heading. */
[data-search-results]>p{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* The private search sits outside .field; give it the same usable control shell
   on desktop as on touch screens, without restyling specialized search pickers. */
.dashboard-search-controls>input[type=search]{box-sizing:border-box;min-width:0;max-width:100%;min-height:50px;padding:11px 13px;border:1px solid #dcd5e0;border-radius:10px;background:#fcfbfd;color:var(--ink);font:inherit;line-height:1.5}
