/* Preserve a landscape ID at every viewer width. */
.identity-card{container-type:inline-size;aspect-ratio:43/27;display:grid;grid-template-rows:15% 43% 10% 12% 20%;flex-shrink:0}
.id-heading{padding:0 4cqw;gap:2cqw;min-height:0}
.id-heading strong{font-size:3.25cqw;letter-spacing:.42cqw;white-space:nowrap}
.id-heading span{font-size:1.85cqw;letter-spacing:.16cqw;line-height:1.3}
.id-person{gap:4cqw;padding:4cqw 5cqw 2cqw;min-height:0;align-items:center}
.id-person>img{width:20.7cqw;height:20.7cqw;padding:1.2cqw}
.identity-card small{font-size:1.86cqw;letter-spacing:.3cqw;margin-bottom:1cqw}
.id-person h2{font-size:4.2cqw;line-height:1.2;letter-spacing:-.09cqw;margin:.5cqw 0 3cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.id-fields{gap:8cqw}.id-fields strong{font-size:3.72cqw}
.id-code{margin:0 5cqw;padding:1cqw 0 0;gap:2.3cqw;min-width:0}
.id-code small{margin:0}.id-code strong{font-size:3cqw;letter-spacing:.23cqw;white-space:nowrap}
.identity-card>p{margin:0 5cqw;display:flex;align-items:center;font-size:2.32cqw}
.id-bottom{padding:2cqw 5cqw;gap:2cqw;align-items:center;min-height:0}
#id-barcode{width:44cqw;max-width:48%;height:8.4cqw}
#id-footer-number{font-size:1.65cqw;letter-spacing:.16cqw}
.profile-actions{flex-wrap:nowrap;flex-shrink:0;overflow-x:auto;overscroll-behavior-x:contain}
.profile-actions .xp-button{white-space:nowrap;flex-shrink:0}
@media(max-width:650px),(max-width:950px) and (max-height:500px){
 #desktop #profile-window:has(#id-panel:not([hidden])):not(.maximized){height:auto!important}
 #profile-window:has(#id-panel:not([hidden])) .profile-content{flex:0 0 auto}
 #id-panel{height:auto}
 .profile-actions{justify-content:flex-start;padding:5px 4px;gap:3px;min-height:39px}
 .profile-actions .xp-button{font-size:9px;min-width:0;min-height:28px;padding:4px;flex-grow:1}
 #previous-profile,#next-profile{width:22px;flex:0 0 22px;padding:3px;font-family:Arial,sans-serif}
 #profile-download:not([aria-disabled="true"])>span,#profile-link>span,#redo>span{display:none}
 #profile-download:not([aria-disabled="true"])::after{content:'Save pic'}
 #profile-link::after{content:'Profile'}
 #redo::after{content:'Redo'}
}
