.card-create-heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}.card-create-heading-actions .home-sale-selector{margin:0}.card-create-heading-actions>.button{min-height:48px;white-space:nowrap}
.card-create-dialog{width:min(760px,calc(100vw - 32px))}.card-create-dialog h3{font:400 19px/1.4 Manrope,sans-serif;margin:0 0 14px;color:var(--pd-color-ink)}.card-create-dialog header .n-sub{margin:5px 0 0}.card-create-section+.card-create-section{margin-top:26px;padding-top:24px;border-top:1px solid #E1E4DB}.card-create-tabs{width:fit-content;max-width:100%;margin-bottom:20px}.card-create-tabs button{font-size:14px}.card-create-dialog [hidden]{display:none!important}
.card-broker-choice{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:58px;border:0;border-radius:14px;background:transparent;color:var(--pd-color-ink);padding:9px 12px;font:inherit;cursor:pointer;margin:3px 0}.card-broker-choice:hover,.card-broker-choice.is-selected{background:var(--parade-chart-track,#E3E7DB)}.card-broker-choice>span:last-of-type{flex:1;min-width:0}.card-broker-choice strong{display:block;font-size:15px;font-weight:500}.card-broker-choice small{display:block;font-size:13px;line-height:1.5;color:var(--pd-color-muted);overflow-wrap:anywhere}.card-selected-broker{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#F0F3E9;border-radius:12px;color:#485634;font-size:14px;margin:0 0 10px}.card-account-hint,.card-email-match{font-size:13px;line-height:1.6;color:var(--pd-color-muted)}.card-email-match:empty{display:none}.card-email-match{color:#485634;background:#F0F3E9;border-radius:12px;padding:12px}
.card-create-lots-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.card-create-lots-heading h3{margin:0}.card-lot-choice{display:flex!important;align-items:center;gap:12px;padding:12px 8px;margin:0!important;border-bottom:1px solid #E5E8DF;cursor:pointer}.card-lot-choice:last-child{border:0}.card-lot-choice.is-disabled{opacity:.5;cursor:default}.card-create-dialog .card-lot-choice input{flex:0 0 18px;width:18px!important;height:18px;margin:0;accent-color:#485634}.card-lot-number{flex:0 0 40px;color:#485634;font-size:15px}.card-lot-choice strong{font-size:15px;font-weight:500}.card-lot-choice small{display:block;font-size:12px;line-height:1.5;color:var(--pd-color-muted)}.card-create-dialog footer{align-items:center;flex-wrap:wrap;gap:12px}.card-create-dialog [data-card-count]{color:var(--pd-color-muted);font-size:13px;margin-right:auto}.card-create-footer-actions{display:flex;gap:12px}.card-create-dialog [data-card-error]:empty{display:none}.card-create-dialog .button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.card-create-heading-actions{margin:0;width:100%;align-items:stretch}.card-create-heading-actions .home-sale-selector,.card-create-heading-actions>.button{width:100%}.card-create-heading-actions>.button{justify-content:center}.card-create-dialog .owner-form-row{grid-template-columns:1fr}.card-create-footer-actions{width:100%;flex-direction:column}.card-create-footer-actions>.button{flex:0 0 auto;width:100%;min-height:48px;justify-content:center}.card-create-tabs{display:flex;width:100%}.card-create-tabs button{flex:1}.card-create-dialog{width:calc(100vw - 20px)}}
/* Override the shared form-label column layout for checkbox rows. */
dialog.card-create-dialog.p-dialog{width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
dialog.card-create-dialog .p-dialog-body label.card-lot-choice{flex-direction:row!important;align-items:center;gap:12px;margin:0!important;text-align:left}
dialog.card-create-dialog .p-dialog-body label.card-lot-choice>span{margin:0}
dialog.card-create-dialog .p-dialog-body label.card-lot-choice>span:last-child{min-width:0;flex:1}
dialog.card-create-dialog .p-dialog-body label.card-lot-choice strong{display:block;overflow-wrap:anywhere}
/* Desktop and tablet: parallel broker/lot panels, fixed dialog shell. */
@media(min-width:700px){
 dialog.card-create-dialog.p-dialog.p-dialog-standard{width:min(1080px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}
 dialog.card-create-dialog>.p-dialog-frame{height:100%;max-height:100%;flex:1;min-height:0}
 dialog.card-create-dialog .p-dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) auto;gap:0 26px;overflow:hidden;scrollbar-gutter:auto;min-height:0}
 dialog.card-create-dialog .card-create-section{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;overflow:hidden}
 dialog.card-create-dialog .card-create-section+.card-create-section{border-top:0;border-left:1px solid #E1E4DB;padding:0 0 0 26px;margin:0}
 dialog.card-create-dialog .card-create-section>h3,dialog.card-create-dialog .card-create-tabs,dialog.card-create-dialog .card-create-lots-heading,dialog.card-create-dialog .card-create-section>label{flex-shrink:0}
 dialog.card-create-dialog [data-card-existing]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 dialog.card-create-dialog [data-card-existing]>label,dialog.card-create-dialog [data-card-selected-broker]{flex-shrink:0}
 dialog.card-create-dialog [data-card-brokers],dialog.card-create-dialog [data-card-lots],dialog.card-create-dialog [data-card-new]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:5px}
 dialog.card-create-dialog .owner-form-row{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 dialog.card-create-dialog .owner-form-row>label{min-width:0}
 dialog.card-create-dialog [data-card-error]{grid-column:1/-1;margin:14px 0 0}
}

/* Searchable broker dropdown, using the shared avatar and search primitives. */
dialog.card-create-dialog [data-card-existing]{overflow:visible;flex:0 0 auto}
dialog.card-create-dialog .card-broker-trigger{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:48px;height:48px;padding:4px 14px;border:1px solid var(--parade-field-border,#DEE6D4);border-radius:999px;background:var(--pd-color-panel,#F3F3EF);box-shadow:none;text-align:left;color:var(--pd-color-ink);font:400 14px/1.4 Manrope,sans-serif;cursor:pointer}
.card-broker-trigger .contact-avatar{width:30px;height:30px;flex:0 0 30px;font-size:11px}.card-broker-trigger-copy{flex:1;min-width:0}.card-broker-trigger-copy strong,.card-broker-trigger-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-broker-trigger-copy strong{font-weight:500;font-size:14px}.card-broker-trigger-copy small{font-size:12px;line-height:1.4;color:var(--pd-color-muted)}.card-broker-trigger>.ph-caret-down{font-size:16px;margin-left:auto;transition:transform 140ms ease}.card-broker-trigger[aria-expanded=true]>.ph-caret-down{transform:rotate(180deg)}.card-broker-trigger:focus-visible{outline:2px solid var(--pd-color-focus);outline-offset:2px}
dialog.card-create-dialog .card-broker-dropdown{position:fixed;z-index:5;display:flex;flex-direction:column;min-height:0;padding:8px;border:1px solid #DEE6D4;border-radius:18px;background:#fff;box-shadow:0 14px 44px #26301c26;box-sizing:border-box;overflow:hidden}
.card-broker-dropdown>.p-search-field{flex:0 0 48px;margin-bottom:6px}
dialog.card-create-dialog .card-broker-dropdown [data-card-brokers]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px}
.card-broker-dropdown .card-broker-choice{margin:2px 0;min-height:48px;padding:5px 8px;gap:10px}.card-broker-dropdown .card-broker-choice .contact-avatar{width:30px;height:30px;flex:0 0 30px;font-size:11px}.card-broker-dropdown .card-broker-choice strong{font-size:14px}.card-broker-dropdown .card-broker-choice small{font-size:12px;line-height:1.4}.card-broker-dropdown .card-broker-choice.is-active{background:var(--parade-chart-track,#E3E7DB)}.card-broker-result-count{display:block;flex-shrink:0;padding:9px 8px 0;border-top:1px solid #E5E8DF;font-size:12px;line-height:1.4;color:var(--pd-color-muted)}.card-broker-no-match{padding:12px 8px;line-height:1.6}

/* Read-only identity from the selected broker's shared record. */
.card-broker-details{margin-top:20px;min-width:0}.card-broker-details .broker-record-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin:0}.card-broker-details .broker-record-facts>div{min-width:0}.card-broker-details dt{font-size:12px;line-height:1.5;color:var(--pd-color-muted);margin:0 0 4px}.card-broker-details dd{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere;white-space:pre-line}.card-broker-details .broker-source-footer{margin-top:18px}
@media(min-width:700px){dialog.card-create-dialog .card-broker-details{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:5px}}
@media(max-width:600px){.card-broker-details .broker-record-facts{grid-template-columns:1fr;gap:14px}}

@media(min-width:700px){
 dialog.card-create-dialog .card-create-tabs,dialog.card-create-dialog .card-create-lots-heading{height:48px;min-height:48px;box-sizing:border-box;margin:0 0 16px;flex-shrink:0}
}

.card-edit-passage{display:flex;align-items:center;min-height:48px;height:48px;box-sizing:border-box;margin:0 0 16px;font:400 16px/1.4 Manrope,sans-serif;color:var(--pd-color-ink)}.card-broker-trigger:disabled{cursor:default}.card-broker-trigger:disabled>.ph-caret-down{visibility:hidden}
