.pr5-requirements{grid-column:1/-1;margin:8px 0;border:1px solid var(--line,#dce5ef);border-radius:10px;padding:12px;background:#f8fafc;font-size:14px}.pr5-requirements summary{cursor:pointer;font-weight:600}.pr5-requirements p{line-height:1.5;color:#53677e}.pr5-requirements label{display:flex;gap:8px;align-items:center;min-height:36px;font-size:14px}.pr5-availability{font-size:14px;line-height:1.5;color:#53677e}.pr5-clients-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #dce5ef;border-radius:14px;color:#183150;background:white;box-shadow:0 22px 70px #122b4940;overflow:hidden}.pr5-clients-dialog[open]{display:flex;flex-direction:column}.pr5-clients-dialog::backdrop{background:#11254066}.pr5-head,.pr5-footer{padding:16px 20px;flex:none;border-bottom:1px solid #e1e8f1;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.pr5-footer{border-bottom:0;border-top:1px solid #e1e8f1}.pr5-head h3{margin:0;font-size:20px}.pr5-head p,.pr5-client p{margin:8px 0;line-height:1.5;font-size:14px}.pr5-body{padding:16px 20px;overflow:auto;min-height:0;flex:1}.pr5-client{border:1px solid #dce5ef;border-radius:10px;padding:16px;margin-bottom:12px;overflow-wrap:anywhere}.pr5-client>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.pr5-client h4{font-size:16px;margin:0}.pr5-client details{margin:12px 0;font-size:14px;line-height:1.5}.pr5-clients-dialog [hidden],#pr5PropertyButton[hidden]{display:none!important}#projectMatchesDialog .pm-badge{white-space:normal}#projectMatchesDialog .pm-comparison{overflow-x:auto}#pmShowAll{margin:12px 0}#pmShowAll[hidden]{display:none!important}@media(max-width:600px){.pr5-head,.pr5-body,.pr5-footer{padding:14px}.pr5-head .btn{flex-shrink:0}.pr5-requirements .property-unit-options{display:grid;grid-template-columns:1fr 1fr}.pr5-client .btn{min-height:42px}}

.pr5-clients-dialog .pm-badge{display:inline-flex;align-items:center;border-radius:16px;padding:5px 10px;background:#edf3fb;color:#24558b;font-size:13px;line-height:1.4;font-weight:600;white-space:normal}
/* PR5.1: compatibilidad comercial e inventario independientes. */
.pr51-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;margin:8px 0}.pr51-badges .pm-badge{font-size:13px;line-height:1.45;padding:5px 10px;border-radius:14px;white-space:normal}.pr51-badges .pr51-exact,.pr51-badges .pr51-compatible{background:#e8f5ef;color:#205c43}.pr51-badges .pr51-effort{background:#fff0da;color:#77510a}.pr51-badges .pr51-insufficient{background:#edf2f8;color:#435c77}.pr51-badges .pr51-incompatible,.pr51-badges .pr51-blocked{background:#f8e9e9;color:#8b3838}.pr51-badges .pr51-pending{background:#fff5df;color:#715a23}.pr51-badges .pr51-verified{background:#eef6f2;color:#335f4a}.pr51-group{margin:18px 0}.pr51-group-title{font-size:15px;color:#294761;margin:12px 0}.pr51-collapsed{border:1px solid var(--line,#dce5ef);border-radius:10px;padding:12px;background:#fafbfd}.pr51-collapsed>summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}.pr51-collapsed>article:first-of-type{margin-top:12px}.pr5-client .pm-comparison{overflow-x:auto;margin:12px 0}.pr5-client .pm-comparison table{border-collapse:collapse;width:100%;min-width:460px;font-size:13px}.pr5-client .pm-comparison th,.pr5-client .pm-comparison td{text-align:left;border-bottom:1px solid #dce5ef;padding:9px}.pr5-client h5{font-size:14px;margin:14px 0 6px}.pr5-client .pm-comparison caption{text-align:left;font-weight:600;padding-bottom:8px}#projectMatchesDialog .pm-card-head>.pr51-badges{max-width:420px}#pr5ClientsCount{font-size:14px;line-height:1.6}@media(max-width:600px){#projectMatchesDialog .pm-card-head>.pr51-badges{max-width:100%;width:100%}.pr51-badges .pm-badge{font-size:13px}.pr51-collapsed{padding:10px}}

/* PERF-05: no transient loading banner, spinner or placeholder.
 * The matching request remains announced with aria-busy to assistive devices. */
#projectMatchesDialog #pmList[aria-busy="true"]{min-height:32px}
#projectMatchesDialog [data-pm-pdf-actions]{display:inline-flex;align-items:center;gap:8px}
