.subject-detail .main-image-envelope{height:350px}
.subject-image-open{border:0;background:transparent;width:100%;height:100%;padding:0;cursor:zoom-in}
.subject-detail .thumbnail-strip{display:flex;gap:6px;overflow:auto;margin:8px 0}
.subject-thumbnail{padding:0;border:1px solid #ddd;background:white;cursor:pointer}.subject-thumbnail img{height:60px;max-width:90px;object-fit:contain}
.image-credit,.map-caption,.evidence-date{font-size:11px;color:#607080;overflow-wrap:anywhere}
.subject-detail .chart-wrapper{height:200px;width:100%;background:white;margin:5px 0 18px}
.subject-detail .map-wrapper{height:220px;width:100%;background:#e9e9e9;margin-top:5px}
.subject-location{margin-top:18px}.subject-detail .rating-widget{text-align:center;margin:16px 0}.empty-stars{color:#eaa12c;font-size:26px}
.subject-history,.source-table{width:100%;table-layout:fixed;background:white}.subject-history td,.subject-history th,.source-table td,.source-table th{overflow-wrap:anywhere;padding:6px}
.source-table{font-size:12px}.source-table th{background:#59677e;color:white}.social-profile,.subject-report,.tracker-section,.linked-gallery{background:#f9f9f9;padding:12px;margin-bottom:16px;overflow-wrap:anywhere}
.subject-report pre{white-space:pre-wrap}.subject-amount{font-size:18px;font-weight:bold}.subject-report h2{margin-top:0}
.linked-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px}.linked-card{background:white;padding:10px;min-width:0}
.linked-gallery .linked-card-grid{max-height:720px;overflow:auto;overscroll-behavior:contain;padding-right:4px}.subject-map-history{margin:8px 0}.subject-map-history>div{max-height:300px;overflow:auto}
.linked-card-image{display:flex;height:175px;align-items:center;justify-content:center;background:#edf1f4}.linked-card-image img{max-height:100%;max-width:100%;object-fit:contain}.linked-card p{font-size:12px}
.linked-thumbnails{display:flex;gap:5px;overflow:auto}.linked-thumbnails img{height:45px;max-width:60px;object-fit:contain}
.subject-detail textarea{width:100%;max-width:100%;min-height:100px}.subject-detail .form-row label{overflow-wrap:anywhere}
.subject-dialog{width:90vw;max-width:1400px;height:85vh;border:0;padding:30px;background:#fff}.subject-dialog::backdrop{background:rgba(0,0,0,.85)}
.subject-dialog-close{position:absolute;right:4px;top:2px;font-size:25px;background:white;border:0;cursor:pointer;z-index:2000}#subject-map-large{width:100%;height:100%}#subject-large-image{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:900px){.subject-detail .main-image-envelope{height:300px}.subject-detail .form-row>div{display:flex;flex-wrap:wrap}.subject-detail .aligned .help{margin-left:0}}
@media print{.subject-dialog,#display-currency{display:none}.subject-detail{display:block}.linked-card{break-inside:avoid}}
.structured-input{display:flex;flex-direction:column;clear:both;margin:0 0 12px}.structured-input label{float:none!important;width:auto!important;padding:0!important;font-weight:600}.structured-fields{max-width:100%;min-width:0}.structured-fields input,.structured-fields textarea{box-sizing:border-box}.object-name-link{display:inline-block;overflow-wrap:anywhere}

.profile-location-record{border:1px solid #8a9eaa;border-radius:4px;padding:12px;margin:10px 0;scroll-margin-top:90px}.profile-location-record .record-field{margin:8px 0;overflow-wrap:anywhere}.address-row label:first-of-type{grid-column:1/-1}.profile-location-record:target{outline:2px solid #007e91}

.subject-detail .history-chart{margin:8px 0;background:#fff;border:1px solid #bccbd6;padding:8px}.subject-detail .history-chart svg{width:100%;height:auto}.current-valuation{width:100%;table-layout:fixed}.current-valuation td{overflow-wrap:anywhere;padding:8px}

/* Only Entity Person cards: bounded pages, compact three-column directory. */
.entity-person-directory{container-type:inline-size}
.entity-person-directory .linked-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:none;overflow:visible;padding:0}
.entity-person-directory .linked-card{padding:6px;font-size:11px}
.entity-person-directory .linked-card-image{height:100px}
.entity-person-directory .linked-card-image .profile-image-placeholder{height:100%;min-height:0}
.entity-person-directory .linked-card-image svg{max-height:55px;max-width:55px}
.entity-person-directory .linked-card h3{font-size:12px!important;line-height:1.2;margin:4px 0!important}
.entity-person-directory .linked-card p,.entity-person-directory .linked-person-value{font-size:11px!important;line-height:1.25;margin:2px 0!important}
.entity-person-directory .linked-person-stars{font-size:13px!important}
.entity-directory-controls{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.entity-directory-controls label{display:flex;flex-direction:column;font-size:11px;min-width:0;flex:1 1 90px}
.entity-directory-controls input,.entity-directory-controls select{width:100%;min-width:0;box-sizing:border-box}
.entity-directory-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 0;font-size:12px}
@container(max-width:310px){.entity-person-directory .linked-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:190px){.entity-person-directory .linked-card-grid{grid-template-columns:1fr}}



/* Shared Person/Entity directory controls must not inherit editor label widths. */
.subject-detail .entity-directory-controls{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.8fr);gap:6px;align-items:end;width:100%;box-sizing:border-box}
.subject-detail .entity-directory-controls label{display:flex!important;float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;flex-direction:column;gap:3px;font-size:11px!important}
.subject-detail .entity-directory-controls :is(input:not([type="hidden"]),select){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;padding:5px 7px!important;margin:0!important;box-sizing:border-box}
.subject-detail .entity-directory-controls button{height:34px!important;min-height:34px!important;padding:5px 9px!important;margin:0!important;width:auto!important;line-height:1.2!important;white-space:nowrap;box-sizing:border-box}
.subject-detail .inline-profile-report{height:907px!important;max-height:none}
@container(max-width:340px){.subject-detail .entity-directory-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.subject-detail .entity-directory-controls button{justify-self:start}}
