/* Horse record page: independent information cards, no enclosing panel. */
.horse-record-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-left:auto}
.horse-record-actions :is([data-registry-back],[data-owner-detail-back]) .ph-light{transform:rotate(180deg)}
.horse-record-workspace{display:grid;gap:24px}
.horse-record-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.horse-record-portrait{margin:0;overflow:hidden;min-width:0;position:relative;min-height:280px}
.horse-record-image{position:absolute;inset:0;overflow:hidden;background:linear-gradient(145deg,#d9e1ca,#edf0e7)}
.horse-record-image img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:18% center;max-width:none}
.horse-record-image .catalogue-photo-placeholder{min-height:100%}
.horse-record-portrait figcaption{display:flex;align-items:center;gap:12px;padding:18px 22px;font-size:13px;color:var(--pd-color-muted)}
.horse-record-card{padding:24px;min-width:0}
.horse-record-card h4,.horse-record-history> .panel-title h4{font:400 21px/1.3 Manrope,sans-serif;letter-spacing:-.5px;margin:0 0 18px;color:var(--pd-color-ink)}
.horse-record-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 24px;margin:0}
.horse-record-facts dt,.horse-record-exams dt{font-size:13px;line-height:1.5;color:var(--pd-color-muted)}
.horse-record-facts dd,.horse-record-exams dd{font-size:15px;line-height:1.5;margin:4px 0 0;color:var(--pd-color-ink);overflow-wrap:anywhere}
.horse-record-facts>div:nth-child(-n+2) dd{font-weight:500}
.horse-record-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.horse-record-copy{font-size:15px;line-height:1.65;margin:0;white-space:pre-line}
.horse-record-exams{margin:0;display:grid;gap:14px}
.horse-record-exams>div{display:flex;justify-content:space-between;gap:18px;align-items:baseline;border-bottom:1px solid #e1e5d9;padding-bottom:10px}
.horse-record-exams>div:last-child{border:0;padding-bottom:0}
.horse-record-exams dd{margin:0;text-align:right}
.horse-record-owners{display:grid;gap:12px;margin-top:18px}
.horse-record-owners .text-action{justify-content:flex-start;text-align:left;white-space:normal}
.horse-record-owners .text-action .ph-arrow-right{margin-left:auto}
.horse-record-history> .panel-title{margin:12px 0 20px;align-items:center;gap:20px}
.horse-record-history> .panel-title h4{margin:0 0 6px;font-size:24px}
.horse-record-sales{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.horse-record-history .registry-sale-history{padding:24px;margin:0;border:1px solid #fff;border-radius:24px;min-width:0}
.horse-record-history .registry-sale-history>.panel-title{flex-wrap:wrap;gap:12px}
.horse-record-history .registry-sale-history>.panel-title strong{font-size:17px;font-weight:500;line-height:1.4}
.horse-record-history .registry-visit{padding:18px;margin-top:16px}
.horse-record-sales>.registry-copy{grid-column:1/-1;background:#ffffffb8;border:1px solid white;border-radius:24px;padding:24px}
@media(max-width:1050px){.horse-record-support{grid-template-columns:repeat(2,minmax(0,1fr))}.horse-record-support>.horse-record-card:last-child{grid-column:1/-1}}
@media(max-width:760px){.horse-record-overview,.horse-record-support,.horse-record-sales{grid-template-columns:1fr}.horse-record-support>.horse-record-card:last-child{grid-column:auto}.horse-record-actions{margin-left:0;width:100%}.horse-record-heading{flex-wrap:wrap}.horse-record-card,.horse-record-history .registry-sale-history{padding:22px 20px}.horse-record-history>.panel-title{flex-wrap:wrap}.horse-record-copy{font-size:16px}.horse-record-workspace{gap:20px}}
@media(max-width:420px){.horse-record-actions>.button{width:100%;justify-content:center}.horse-record-actions>.split-action{justify-content:space-between}.horse-record-facts{gap:18px 14px}.horse-record-facts dd{font-size:14px}}

#app-preview .horse-record-workspace .n-sub{font-size:13px!important;line-height:1.5}
#app-preview .horse-record-history>.panel-title .soft-pill{font-size:13px}
#app-preview .horse-record-heading>div>p{font-size:14px}

@media(max-width:760px){.horse-record-portrait{min-height:0;aspect-ratio:1.5}}
.horse-photo-replace{position:absolute;right:16px;bottom:16px;z-index:1;display:grid;place-items:center;width:44px;height:44px;border:1px solid #FFFFFFC9;border-radius:50%;background:#FFFFFFD9;backdrop-filter:blur(12px);color:#354126;cursor:pointer;box-shadow:0 2px 10px #18200F14;transition:background-color 140ms ease}
.horse-photo-replace .ph-light{font-size:22px}.horse-photo-replace:hover{background:#fff}.horse-photo-replace:focus-visible{outline:2px solid #485634;outline-offset:3px}.horse-photo-replace[aria-busy=true]{opacity:.6;cursor:progress}

.horse-form-translations{margin:20px 0;padding:18px 0 0;border:0;border-top:1px solid #E1E4DB;min-width:0}.horse-form-translations legend{font-size:16px;font-weight:400;color:var(--pd-color-ink);padding:0 12px 0 0;margin:0}.horse-form-language-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.horse-form-language-pair>label{min-width:0}.horse-form-language-pair textarea{min-height:110px;resize:vertical}
@media(max-width:600px){.horse-form-language-pair{grid-template-columns:1fr;gap:0}.horse-form-language-pair+.horse-form-language-pair{margin-top:16px}}

.horse-owners-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.horse-owners-heading h4{margin:0}.horse-owners-heading .button{min-height:40px}
.horse-owner-row{display:flex;align-items:center;gap:12px;min-width:0}
.horse-owner-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-align:left;border:0;background:transparent;color:var(--pd-color-ink);font:inherit;padding:4px 0;cursor:pointer}
.horse-owner-identity>span:last-child{overflow-wrap:anywhere}.horse-owner-identity .contact-avatar{flex-shrink:0}
#app-preview .horse-owner-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border:1px solid #DCE2D1;border-radius:50%;background:#fff;color:#9B644A}
#app-preview .horse-owner-remove:hover{background:#F5EDE7}
.horse-owner-choice{display:flex!important;align-items:center;gap:12px;border-bottom:1px solid #E5E8DF;padding:14px 0;cursor:pointer}
.horse-owner-choice:last-child{border-bottom:0}.horse-owner-choice input{width:18px!important;height:18px;flex:0 0 18px}.horse-owner-choice strong{font-weight:500}.horse-owner-choice small{display:block;color:var(--pd-color-muted);margin-top:3px}.horse-owner-choice>span:last-child{min-width:0;overflow-wrap:anywhere}
