/* Native radio inputs keep the city cards usable with keyboard and assistive technology. */
.proposal-locality-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.proposal-locality-option{position:relative;min-width:0;cursor:pointer}
.proposal-locality-option>input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.proposal-locality-card{display:flex;align-items:center;gap:14px;min-height:112px;height:100%;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);transition:border-color .15s,background .15s,box-shadow .15s}
.proposal-locality-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
.proposal-locality-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}
.proposal-locality-text strong{font-size:15px;color:var(--ink)}
.proposal-locality-text>span{font-size:12px;color:var(--muted)}
.proposal-locality-check{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--line);border-radius:50%;color:transparent}
.proposal-locality-option:hover .proposal-locality-card{border-color:var(--brand)}
.proposal-locality-option>input:checked+.proposal-locality-card{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 1px var(--brand),var(--shadow)}
.proposal-locality-option>input:checked+.proposal-locality-card .proposal-locality-check{border-color:var(--brand);background:var(--brand);color:#fff}
.proposal-locality-option>input:focus-visible+.proposal-locality-card{outline:3px solid var(--brand);outline-offset:4px}
.broker-form-footer>.proposal-locality-continue{margin-left:auto}
@media(max-width:1200px){.proposal-locality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.proposal-locality-grid{grid-template-columns:1fr;gap:12px}.proposal-locality-card{min-height:90px;padding:16px}}
@media(prefers-reduced-motion:reduce){.proposal-locality-card{transition:none}}

/* Contract-first proposal flow: compact controls, individual people and large PJ lists. */
.proposal-contract-wizard .form-grid{gap:20px}
.proposal-contract-wizard .field input,.proposal-contract-wizard .field select{min-height:44px;border-radius:9px}
.proposal-plan-price,.proposal-payment-fixed{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:var(--brand-soft)}
.proposal-plan-price>span,.proposal-payment-fixed>span{font-size:12px;color:var(--muted);font-weight:600}
.proposal-plan-price>strong{font-size:20px;color:var(--brand)}
.proposal-plan-price>small,.proposal-payment-fixed>small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.proposal-waiting-preview{display:grid;gap:18px;margin-top:20px}
.proposal-add-person.btn{width:auto;flex:none;min-height:40px;padding:10px 15px;gap:9px;font-size:13px;border-radius:11px;white-space:normal}
.proposal-person-search{display:flex;align-items:end;gap:12px;margin:20px 0}
.proposal-person-search>.field{flex:1;min-width:0;margin:0}
.proposal-person-list{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.proposal-person-option{display:flex;align-items:center;gap:13px;text-align:left;color:var(--ink);background:var(--surface);border:0;border-bottom:1px solid var(--line);padding:15px;font:inherit;cursor:pointer;width:100%;min-width:0}
.proposal-person-option:last-child{border-bottom:0}
.proposal-person-option:hover,.proposal-person-option.is-selected{background:var(--brand-soft)}
.proposal-person-option:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.proposal-person-option>.grow{min-width:0;display:flex;flex-direction:column;gap:5px}
.proposal-person-option strong{font-size:13px;overflow-wrap:anywhere}
.proposal-person-option small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.proposal-person-option>span:first-child{color:var(--brand)}
.proposal-person-option>span:last-child,.proposal-person-option>strong:last-child{font-size:13px;white-space:nowrap}
.proposal-person-editor{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-top:20px}
.proposal-proof{padding:18px;margin-top:20px;background:var(--brand-soft);border-radius:12px;display:grid;gap:12px}
.proposal-proof .field{margin:0}
.proposal-beneficiaries>.between{gap:14px;align-items:center;flex-wrap:wrap}
.proposal-contract-wizard .broker-summary{align-self:start}
@media(max-width:620px){.proposal-person-search{align-items:stretch;flex-direction:column}.proposal-person-search>.btn{align-self:flex-end}.proposal-person-option{gap:9px;padding:12px}.proposal-person-option>span:first-child{display:none}.proposal-person-editor{padding:16px}.proposal-beneficiaries>.between{align-items:flex-start}.proposal-waiting-preview>.between{flex-wrap:wrap;gap:10px}.proposal-contract-wizard .form-grid{grid-template-columns:minmax(0,1fr)}.proposal-proof input[type=file]{max-width:100%}}
.proposal-editable-fields{border:0;padding:0;margin:0;min-width:0}
.proposal-editable-fields[disabled]{opacity:.7}
.proposal-proof .between{gap:12px;min-width:0;flex-wrap:wrap}
.proposal-proof .between>.small{min-width:0;overflow-wrap:anywhere;flex:1 1 180px}
.proposal-proof .between>.btn{flex:none}
.proposal-proof .field{min-width:0}

/* PJ draft roster follows the grouped, striped records used throughout regulation. */
.proposal-member-table{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
.proposal-member-heading,.proposal-member-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(110px,.65fr) 50px;gap:18px;align-items:center;padding:18px}
.proposal-member-heading{background:var(--brand-soft);font-size:11px;font-weight:600;color:var(--muted)}
.proposal-member-heading>span:nth-child(3){text-align:right}
.proposal-member-row{border-top:1px solid var(--line);min-width:0;background:var(--surface)}
.proposal-member-row:nth-child(odd){background:color-mix(in srgb,var(--brand-soft) 40%,var(--surface))}
.proposal-member-row.is-selected{box-shadow:inset 3px 0 var(--brand);background:color-mix(in srgb,var(--brand-soft) 65%,var(--surface))}
.proposal-member-row small,.proposal-member-row strong,.proposal-member-row span:not(.proposal-member-avatar){display:block}
.proposal-member-row small{color:var(--muted);font-size:10px;margin-bottom:5px}
.proposal-member-row strong{font-size:13px;overflow-wrap:anywhere}
.proposal-member-row [role=cell]>span,.proposal-member-identity>div>span{font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.proposal-member-identity{display:flex;gap:12px;align-items:center;min-width:0}
.proposal-member-identity>div{min-width:0}
.proposal-member-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:var(--brand-soft);color:var(--brand)}
.proposal-member-plan{min-width:0}
.proposal-member-plan [data-person-gender]{display:inline!important}
.proposal-member-price{text-align:right}
.proposal-member-price>strong{font-size:16px;color:var(--brand);font-variant-numeric:tabular-nums}
.proposal-member-actions{justify-self:end}
.proposal-proof-picker{display:flex;gap:14px;align-items:center;position:relative;min-height:92px;padding:18px;border:1px dashed color-mix(in srgb,var(--brand) 45%,var(--line));border-radius:13px;background:var(--surface);cursor:pointer;min-width:0}
.proposal-proof-picker:hover{border-color:var(--brand);background:color-mix(in srgb,var(--brand-soft) 35%,var(--surface))}
.proposal-proof-picker:focus-within{outline:3px solid var(--brand);outline-offset:3px}
.proposal-proof-picker>input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.proposal-proof-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;color:var(--brand);background:var(--brand-soft)}
.proposal-proof-copy{display:grid;gap:4px;min-width:0;flex:1}
.proposal-proof-copy strong{font-size:13px;overflow-wrap:anywhere}
.proposal-proof-copy small{font-size:11px;color:var(--muted)}
.proposal-proof-choose{display:flex;align-items:center;gap:7px;flex:none;padding:10px 14px;border:1px solid var(--line);border-radius:10px;color:var(--brand);font-size:12px;font-weight:600;background:var(--surface)}
.proposal-proof-file{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);min-width:0}
.proposal-proof-remove{color:var(--danger)!important}
@media(max-width:1100px){.proposal-member-heading,.proposal-member-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(95px,.65fr) 42px;gap:12px;padding:14px}.proposal-member-avatar{display:none}.proposal-proof-picker{flex-wrap:wrap}.proposal-proof-choose{margin-left:54px}}
@media(max-width:620px){.proposal-member-heading{display:none}.proposal-member-row{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px}.proposal-member-row:first-of-type{border-top:0}.proposal-member-identity{grid-column:1;grid-row:1}.proposal-member-avatar{display:grid}.proposal-member-plan{grid-column:1;grid-row:2}.proposal-member-price{grid-column:1;grid-row:3;text-align:left}.proposal-member-actions{grid-column:2;grid-row:1;align-self:start}.proposal-member-row strong{font-size:14px}.proposal-member-price>strong{font-size:18px}.proposal-proof-file{flex-wrap:wrap}.proposal-proof-remove{margin-left:auto}.proposal-proof-picker{padding:14px}.proposal-proof-choose{margin-left:0;justify-content:center;width:100%}.proposal-proof{padding:14px}.proposal-contract-wizard .pagination{gap:12px;flex-wrap:wrap}}
@media(max-width:620px){.proposal-proof-file{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start}.proposal-proof-file>.proposal-proof-copy{min-width:0}.proposal-proof-file>.proposal-proof-remove{grid-column:1/-1;justify-self:end;margin-left:0}}
