/* Geometry and rendering only: the approved labels, tabs and account data are untouched. */
.royal-profile .profile-title{cursor:grab;touch-action:none;user-select:none}.royal-profile[data-dragging=true] .profile-title{cursor:grabbing}.royal-profile[data-floating=true]{margin:0!important}.royal-profile .profile-cover{border-bottom:1px solid #e4cf9a}.royal-profile .profile-photo{box-shadow:0 0 0 2px #fff2c5,0 0 15px #ecc24c66!important}.royal-profile .profile-pane{background:linear-gradient(110deg,#fff,#fffdf8)}.royal-profile .profile-identity h2{line-height:1.55!important}.royal-profile .profile-tabs button{display:flex;gap:5px;align-items:center;justify-content:center}.royal-profile .profile-tabs button:focus-visible,.royal-profile .royal-info-nav button:focus-visible{outline:2px solid #00a7cf;outline-offset:2px}.royal-profile .profile-message,.royal-profile .royal-about p{line-height:1.9!important}.royal-profile .profile-scroll{scrollbar-color:#d7bf87 #fffaf0;scrollbar-width:thin}.royal-profile .royal-photo-tile{border:1px solid #efdfc5}.royal-profile .royal-photo-tile img{transition:filter .15s}.royal-profile .royal-photo-tile img:hover{filter:brightness(1.04)}.royal-profile .profile-editor input:focus,.royal-profile .profile-editor textarea:focus{outline:2px solid #a4e4f3;outline-offset:1px}
@media(prefers-reduced-motion:reduce){.royal-profile .royal-photo-tile img{transition:none}}
/* Keep upload previews and their existing delete actions visible before saving. */
.royal-profile #profileMediaEditor .profile-media-preview{display:flex!important;align-items:center;gap:8px;grid-column:1/-1;padding:7px!important;border:1px solid #ecdfc6;border-radius:8px;background:#fffaf1;min-width:0}.royal-profile #profileMediaEditor .profile-media-preview img{display:block;width:66px;height:48px;object-fit:cover;border-radius:6px;border:1px solid #e4cb95}.royal-profile #profileMediaEditor .profile-media-preview button{width:auto!important;margin-inline-start:auto;padding:7px 10px!important}.royal-profile .profile-identity .name-kind-mark{filter:drop-shadow(0 1px 3px #e9bc5270)}
/* Full photo manager, adapted to phone dimensions without cropping controls. */
@media(max-width:750px){#profilePhotoWindow.royal-album[open]{display:flex!important;flex-direction:column;width:calc(100vw - 16px)!important;max-width:520px!important;height:min(760px,calc(100dvh - 16px));max-height:calc(100dvh - 16px)!important;margin:auto!important;padding:10px!important;overflow:hidden!important;box-sizing:border-box!important}#profilePhotoWindow.royal-album>header{order:0;flex:none;min-height:38px;margin:0 0 5px;padding:0 3px}#profilePhotoWindow.royal-album>header button{min-width:44px;min-height:38px}#profilePhotoWindow.royal-album>.profile-photo-window-actions{order:1;flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;position:static;margin:0 0 7px;padding:5px 0!important;background:#fffdf8!important}#profilePhotoWindow.royal-album>.profile-photo-window-actions button{min-height:42px;min-width:0;padding:8px 4px!important;font:12px/1.6 Tahoma!important;white-space:normal}#profilePhotoWindow.royal-album>.profile-photo-window-actions button:last-child{grid-column:1/-1;background:linear-gradient(#19c5e7,#00a6cf)!important;color:white!important;font-weight:bold!important;border-color:#00a9d0!important}#profilePhotoWindow.royal-album>.profile-photo-window-preview{order:2;flex:none;width:100%;height:clamp(65px,20dvh,165px);object-fit:contain;margin:0;border:1px solid #e6d6b5;background:#fffaf1}#profilePhotoWindow.royal-album>.profile-photo-window-gallery{order:3;flex:1 1 0;min-height:0;max-height:none;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;padding:2px;align-content:start;overscroll-behavior:contain}#profilePhotoWindow.royal-album .profile-photo-window-gallery>div{min-width:0;gap:4px}#profilePhotoWindow.royal-album .profile-photo-window-gallery img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:#fff}#profilePhotoWindow.royal-album .profile-photo-window-gallery button{min-height:35px;max-width:100%;white-space:normal;font:11px/1.5 Tahoma!important}#profilePhotoWindow.royal-album>button{order:4;flex:none;min-height:36px}#profilePhotoWindow.royal-album>small{order:5;flex:none;font:11px/1.6 Tahoma;line-height:1.6}#profilePhotoWindow.royal-album>[role=status]{order:6;flex:none;max-height:44px;overflow:auto;font:12px/1.6 Tahoma;margin:4px 0 0}}
