/* Compact mobile cards share one text edge across all three reading views. */
body.mobile-layout .workspace .person-card{height:208px;min-height:208px;max-height:208px;padding:12px 14px;gap:7px;overflow:hidden;flex:none}
body.mobile-layout .workspace .person-card .card-identity{flex:none;min-height:82px;height:82px;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:auto 1fr;gap:0 10px}
body.mobile-layout .workspace .person-card .card-identity h3{font-size:18px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.mobile-layout .workspace .person-card .card-identity .english{font-size:13px;line-height:1.4;margin:3px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.mobile-layout .workspace .person-card .card-identity img{width:48px;height:62px;object-fit:contain;margin:0}
body.mobile-layout .workspace .person-card .card-metadata{flex-direction:column;align-items:flex-start;gap:4px;min-height:48px}
body.mobile-layout .workspace .person-card .card-metadata .tag{font-size:12px;line-height:1.45;padding:1px 5px;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;min-width:0;max-width:100%}
body.mobile-layout .workspace .person-card .card-metadata .card-dates{flex-shrink:0;max-width:100%}
body:not(.mobile-layout) .workspace .person-card{min-height:168px;padding:12px 16px;gap:8px}
body:not(.mobile-layout) .workspace .person-card .card-identity{min-height:76px;flex:1}
body:not(.mobile-layout) .workspace .person-card .card-metadata{gap:4px}
body:not(.mobile-layout) .workspace .person-card .card-metadata .tag{margin:0;line-height:1.45}
body .workspace .card-style-tags.typed-facets:empty{min-height:0;padding:0;height:0}
body .workspace .cards>.styled-person-card,body .workspace .cards>.style-member>.styled-person-card{grid-row:span 1;grid-template-rows:1fr;row-gap:0}
body .workspace .cards>.style-member{grid-row:span 2}
body .workspace .person-card .card-branch-label{padding:0;text-indent:0;margin-left:0}
body.mobile-layout .workspace .person-card .branch-text{display:flex;align-items:baseline;gap:8px;min-height:0;margin:0;padding:0;line-height:1.5;text-indent:0}
body.mobile-layout .workspace .person-card .card-branch-label{flex:none;display:inline;margin:0;padding:0;font-size:12px;line-height:1.5}
body.mobile-layout .workspace .person-card .card-field-value{min-width:0;margin:0;padding:0;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.mobile-layout .workspace .card-style-tags.typed-facets{min-height:0;padding:5px 0 8px;gap:5px}
body.mobile-layout .workspace .cards{row-gap:10px}
body.mobile-layout .workspace .cards>.styled-person-card,body.mobile-layout .workspace .cards>.style-member>.styled-person-card{row-gap:5px}
body.mobile-layout .workspace .classification-pending{font-size:11px;line-height:1.5}
body.mobile-layout .people-group>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;line-height:1.6}
body.mobile-layout .people-group>summary .group-facet{font-size:11px}
.mobile-copy-control{display:none}
body.mobile-layout .mobile-copy-control{display:block}
body.mobile-layout:not(.mobile-copy-enabled) :is(.workspace,#reader,header,.filters){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.mobile-layout.mobile-copy-enabled :is(.workspace,#reader){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
body.mobile-layout :is(button,a,summary,label,[role=button],[role=tab],[role=menuitemradio]),body.mobile-layout :is(button,a,summary,label,[role=button],[role=tab],[role=menuitemradio]) *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
body.mobile-layout :is(input,textarea,[contenteditable=true]){-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
