/* EventsiQ investor overlay form sizing: remove this link to restore base layout. */
/* Build 032: proportional sandbox form fields. Long prose fields remain fluid. */
.eiq-form-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.eiq-form-row>label,.eiq-form-row .search-field{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start;flex:0 0 auto;min-width:0}
.eiq-form-row>label>span,.eiq-form-row .field-label,.eiq-form-row .search-field>span,.eiq-form-row legend{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.035em;margin:0}
.eiq-form-row input:not([type=file]),.eiq-form-row select{min-width:0;flex:none}
input[data-size="xs"],input[name*="state"],input[name*="qty"],input[maxlength="2"],input[maxlength="4"]{width:7ch!important;max-width:7ch!important;text-align:center}
input[data-size="sm"],input[name*="sic"],input[name*="naics"],input[name*="zip"],input[maxlength="5"],input[maxlength="6"]{width:10ch!important;max-width:10ch!important;font-variant-numeric:tabular-nums}
input[data-size="money"],input[name*="deal"],input[name*="budget"],input[name*="cost"],input[name*="price"],input[type="number"]{width:13ch!important;max-width:13ch!important;font-variant-numeric:tabular-nums;text-align:right}
input[type="date"],input[name*="date"]{width:14.5ch!important;max-width:14.5ch!important;font-variant-numeric:tabular-nums}
input[type="tel"],input[name*="phone"]{width:16ch!important;max-width:16ch!important}
select{width:auto!important;min-width:18ch;max-width:26ch!important}
input[type="search"],input[name*="search"],input[name*="company"],input[type="email"]{width:32ch!important;max-width:340px!important}
#plan-form .form-grid,#performance-form{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
#plan-form .form-grid>label,#performance-form>label{flex:0 0 auto;min-width:0}
#plan-form .form-grid>label:has(textarea),#performance-form>label:has(textarea){flex:1 1 100%}
#plan-form .form-grid textarea,#performance-form textarea{width:100%;max-width:100%}
@media(max-width:550px){.eiq-form-row{gap:.65rem}.eiq-form-row>label:has(input[type="search"]){max-width:100%}input[type="search"],input[name*="search"],input[name*="company"],input[type="email"]{max-width:min(32ch,100%)!important}}
input[data-size="xs"]{width:7ch!important;max-width:7ch!important;text-align:center}
input[data-size="sm"]{width:10ch!important;max-width:10ch!important;font-variant-numeric:tabular-nums}
#plan-form .form-grid>label:has(input:not([data-size])),#performance-form>label:has(input:not([data-size])){flex:0 1 32ch;max-width:100%}
#plan-form .form-grid>label:has(input:not([data-size])) input,#performance-form>label:has(input:not([data-size])) input{width:100%;min-width:0}
#plan-form .form-grid>label,#performance-form>label{flex:0 1 auto;max-width:100%}
#plan-form .field-label,#performance-form .field-label{max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.25}

/* Build 032: compact character-width search controls. */
#research-filters.eiq-form-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
#research-filters .search-field{flex:0 0 auto;width:auto;max-width:100%}
#research-filters .search-field input,#research-filters .search-field select{width:auto;min-width:0}
#research-filters .search-wide{flex:0 1 auto}
#research-filters .date-fields{display:flex;flex:0 0 auto;align-items:flex-end;flex-wrap:wrap;gap:.35rem;max-width:100%}
#research-filters .date-fields legend{width:100%;padding:0;line-height:1.2}
#research-filters .date-fields label{flex:0 0 auto;width:auto}
#research-filters .date-fields input{width:14.5ch!important;max-width:14.5ch!important;min-width:0}
#research-filters .quick-chips{flex:1 1 100%;width:100%}
#research-filters .filter-actions{flex:0 0 auto;justify-content:flex-start}
#research-filters .filter-actions .pill{flex:none;width:auto}
#research-query{width:32ch!important;max-width:min(340px,100%)!important}
@media(max-width:550px){#research-filters .date-fields{flex:1 1 100%}#research-filters .search-field{max-width:100%}#research-filters .filter-actions{flex:1 1 100%}}

/* Build 032: proportional ROI prompt fields. */
.roi-profile-form.eiq-form-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.roi-profile-form.eiq-form-row label{display:flex;flex:0 0 auto;flex-direction:column;gap:.25rem;align-items:flex-start;max-width:100%;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.035em}
.roi-profile-form.eiq-form-row select,.roi-profile-form.eiq-form-row input{width:auto;min-width:0}
.roi-profile-form.eiq-form-row input[name="region"]{width:16ch!important;max-width:16ch!important}
.roi-profile-form.eiq-form-row .roi-profile-actions{flex:0 0 auto;align-self:flex-end}
@media(max-width:550px){.roi-profile-form.eiq-form-row{display:flex;gap:.65rem}.roi-profile-form.eiq-form-row label{max-width:100%}}


/* BUILD 033: Eric's compact form field widths. */
.eiq-form-row { display:flex; flex-wrap:wrap; gap:.75rem; align-items:flex-end; }
.eiq-form-row label { display:flex; flex-direction:column; gap:.25rem; }
.eiq-form-row input[data-size="xs"], .eiq-form-row input[name*="state"], .eiq-form-row input[name*="qty"] { width:7ch !important; max-width:7ch !important; text-align:center; flex:none !important; }
.eiq-form-row input[data-size="sm"], .eiq-form-row input[name*="sic"], .eiq-form-row input[name*="naics"], .eiq-form-row input[name*="zip"] { width:10ch !important; max-width:10ch !important; text-align:center; font-variant-numeric:tabular-nums; flex:none !important; }
.eiq-form-row input[data-size="money"], .eiq-form-row input[name*="deal"], .eiq-form-row input[name*="budget"], .eiq-form-row input[name*="cost"], .eiq-form-row input[name*="price"] { width:13ch !important; max-width:13ch !important; text-align:right; font-variant-numeric:tabular-nums; flex:none !important; }
.eiq-form-row input[type="date"] { width:14.5ch !important; max-width:14.5ch !important; font-variant-numeric:tabular-nums; flex:none !important; }
.eiq-form-row select { width:auto !important; max-width:24ch !important; flex:none !important; }
.eiq-form-row select[name="businessType"] { max-width:32ch !important; }
.eiq-form-row input[type="search"] { width:28ch !important; max-width:300px !important; flex:none !important; }


/* BUILD 033: proportional discovery fields. The chip row stays on one line. */
#research-filters .quick-action-row { display:flex; flex-wrap:nowrap; align-items:center; gap:.5rem; min-width:0; width:100%; grid-column:1 / -1; }
#research-filters .quick-chips { display:flex; flex:1 1 0; flex-wrap:nowrap; align-items:center; gap:.35rem; min-width:0; width:auto; overflow-x:auto; scrollbar-width:thin; }
#research-filters .quick-chips button { flex-shrink:0; white-space:nowrap; }
#research-filters .filter-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:.4rem; margin-left:auto; flex-shrink:0; white-space:nowrap; grid-column:auto; }
#research-filters .filter-actions button { flex-shrink:0; white-space:nowrap; }
#research-filters input[type="search"], #research-filters #research-query { width:28ch !important; max-width:300px !important; flex:none !important; }
#research-filters input[type="date"] { width:14.5ch !important; max-width:14.5ch !important; font-variant-numeric:tabular-nums; flex:none !important; }
#research-filters select { width:auto !important; max-width:24ch !important; flex:none !important; }
#roi-profile-form.eiq-form-row input[name="region"] { width:7ch !important; max-width:7ch !important; text-align:center; }
