/* Person details follow one reading path: identity, images, setting and voice,
   then one action. Scope every rule so other asset types stay unchanged. */
html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail { gap:18px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; min-width:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-heading>div { min-width:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-eyebrow { font-size:12px; color:var(--studio-muted); margin-bottom:3px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-heading h2 { margin:0!important; font-size:25px!important; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail-view { grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr); gap:28px; align-items:start; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail :is(.person-detail-gallery,.person-detail-info,.asset-detail-primary) { min-width:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-section-head { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:34px; margin-bottom:10px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-section-head h3 { margin:0!important; font-size:15px!important; font-weight:650; line-height:1.5; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-section-head h3 span { padding-left:7px; font-size:12px; font-weight:400; color:var(--studio-muted); white-space:nowrap; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-section-head>button { padding:6px 10px!important; min-height:32px; font-size:12px!important; border-radius:8px; white-space:nowrap; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-image-showcase { display:grid; gap:10px; padding:0; border:0; background:transparent; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail .asset-detail-primary-preview { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:clamp(230px,32vh,330px)!important; border-radius:12px!important; border:1px solid var(--studio-line)!important; overflow:hidden; cursor:zoom-in; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-primary-preview img { width:100%; height:100%; max-height:100%; object-fit:contain; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-zoom { position:absolute; right:10px; bottom:10px; padding:4px 8px; border:1px solid var(--studio-line); border-radius:6px; color:var(--studio-sub); background:var(--studio-surface); font-size:11px; opacity:0; transition:opacity .15s; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-primary-preview:is(:hover,:focus-visible) .person-detail-zoom { opacity:1; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-image-caption { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-height:40px; padding:6px 1px 0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-image-caption>strong { font-size:12px; font-weight:550; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-sync { color:var(--studio-muted); font-size:11px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-selected-actions { margin-left:auto; display:block; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-angle-strip { display:flex; gap:8px; padding:3px 2px 5px; overflow-x:auto; align-items:stretch; scrollbar-width:thin; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail .asset-detail-angle-thumb { position:relative; display:flex; flex-direction:column; flex:0 0 76px!important; width:76px!important; min-width:0; gap:0; border:1px solid var(--studio-line)!important; border-radius:9px!important; box-shadow:none!important; overflow:hidden; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-angle-thumb.active { outline:2px solid var(--studio-accent); outline-offset:1px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-angle-thumb img { display:block; width:100%; height:60px; object-fit:contain; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .asset-detail-angle-thumb small { position:static; display:block; width:100%; padding:4px 5px; background:var(--studio-surface); color:var(--studio-sub); font-size:11px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-info { display:grid; gap:24px; padding-top:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-info>section { min-width:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-description { padding-bottom:20px; border-bottom:1px solid var(--studio-line); }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-prompt { display:-webkit-box; -webkit-line-clamp:7; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 10px!important; font-size:14px; line-height:1.85; color:var(--studio-sub); white-space:pre-wrap; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-description.is-expanded .person-detail-prompt { display:block; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail .person-detail-link { padding:4px 0!important; min-height:28px; border:0!important; border-radius:4px; background:transparent!important; color:var(--studio-accent)!important; box-shadow:none!important; font-size:12px!important; line-height:1.5; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-copy { margin-left:16px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-copy:first-of-type { margin-left:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-empty,.person-detail-caption) { margin:0!important; line-height:1.75; color:var(--studio-muted); font-size:12px; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-empty { font-size:14px; margin-bottom:8px!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-voice-name { display:block; font-size:14px; font-weight:550; margin:0 0 10px; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-voice audio { display:block; width:100%; height:42px; margin:0 0 10px; border-radius:8px; color-scheme:dark; }
html[data-zq-theme=light] body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-voice audio { color-scheme:light; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu) { position:relative; flex:none; border:0; background:transparent; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>summary { list-style:none; display:block; border:1px solid var(--studio-line); border-radius:8px; background:var(--studio-surface); padding:6px 10px; color:var(--studio-sub); font-size:12px; line-height:1.6; cursor:pointer; white-space:nowrap; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-image-menu>summary { padding:4px 8px; border-color:transparent; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>summary::-webkit-details-marker { display:none; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>summary::after { content:none!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)[open] { z-index:20; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>div { position:absolute; right:0; top:calc(100% + 6px); z-index:20; display:grid; width:180px; padding:6px; border:1px solid var(--studio-line); border-radius:10px; background:var(--studio-surface); box-shadow:var(--studio-shadow); }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>div>button { width:100%; border:0!important; background:transparent!important; text-align:left; padding:9px 10px!important; min-height:36px; color:var(--studio-text); border-radius:6px; font-size:12px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>div>button:hover { background:var(--studio-soft)!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer :is(.person-detail-more,.person-detail-image-menu)>div>button.danger { color:var(--refine-danger)!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>.asset-detail-unified-editor:not([open]) { display:none!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>:is(.asset-detail-advanced,.asset-detail-related) { border:0!important; border-top:1px solid var(--studio-line)!important; border-radius:0; margin:0!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>:is(.asset-detail-advanced,.asset-detail-related)>summary { padding:10px 0!important; min-height:38px; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>:is(.asset-detail-advanced,.asset-detail-related)>summary span { font-size:12px!important; color:var(--studio-sub); }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>:is(.asset-detail-advanced,.asset-detail-related)>summary small { font-size:11px!important; color:var(--studio-muted); }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail>.asset-detail-related { margin-top:-18px!important; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:20px; z-index:8; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer>div { display:grid; gap:3px; min-width:0; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer strong { font-size:13px; font-weight:550; overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer span { font-size:12px; line-height:1.5; color:var(--studio-muted); overflow-wrap:anywhere; }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer span.is-unavailable { color:var(--refine-warning); }
html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer>button { min-width:148px; flex:none; padding:10px 20px!important; font-size:14px; border-radius:10px!important; }
@media(max-width:760px) {
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail-view { grid-template-columns:minmax(0,1fr); gap:22px; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-heading h2 { font-size:21px!important; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-info { gap:18px; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail .asset-detail-primary-preview { height:260px!important; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.studio-asset-dialog:not(.asset-picker-drawer) .person-detail-footer { gap:10px; align-items:center; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer>button { min-width:112px; padding:10px 12px!important; font-size:13px; }
 html body.reference-ui-shell[data-studio-ui] #detailDrawer .person-detail-footer span { font-size:11px; }
}
