/* Reference-inspired structure for existing account and contact interfaces.
   Original content, account behavior, personal media and keyboard budgets stay
   with their existing owners. Load before readable-theme-v1.css. */

/* The account reads as one portrait panel, with quieter inset editing areas. */
body #space #overliveAccountPanel{
  min-width:0;
  max-width:100%;
  padding:22px 20px;
  border-radius:28px;
  box-shadow:inset 0 1px 0 rgb(255 220 200 / .08),0 16px 32px rgb(0 0 0 / .18);
}
body #overliveAccountPanel .account-heading{
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
body #overliveAccountPanel .account-heading>div{min-width:0;}
body #overliveAccountPanel .account-heading h2{
  font-size:clamp(25px,5vw,31px);
  line-height:1.12;
  letter-spacing:-.9px;
  margin:6px 0 0;
}
body #overliveAccountPanel .account-avatar{
  width:58px;
  height:58px;
  flex-basis:58px;
  border-radius:19px;
  border-color:rgb(255 165 122 / .48);
  box-shadow:0 0 0 4px rgb(255 117 68 / .05);
}
body #overliveAccountPanel .account-identity{
  gap:7px;
  margin:0 0 16px;
}
body #overliveAccountPanel .account-identity strong{
  font-size:clamp(22px,4.5vw,27px);
  line-height:1.2;
  letter-spacing:-.65px;
}
body #overliveAccountPanel .account-tabs{
  gap:8px;
  padding:4px;
  margin-bottom:20px;
  border-radius:999px;
}
body #overliveAccountPanel .account-tabs>button{
  min-height:44px;
  padding:9px 14px;
  border-radius:999px;
}
body #overliveAccountPanel .account-tabs>button[aria-selected='true']{
  box-shadow:inset 0 -2px 0 rgb(255 141 104 / .65);
}
body #overliveAccountPanel .account-profile-editor{
  border-radius:20px;
  margin-bottom:14px;
}
body #overliveAccountPanel .account-profile-editor>summary{
  min-height:50px;
  padding:13px 15px;
  border-radius:20px;
}
body #overliveAccountPanel .account-profile-form{
  padding:3px 15px 16px;
  gap:15px;
}
body #overliveAccountPanel .account-form{gap:14px;}
body #overliveAccountPanel :is(.account-submit,.account-visitor,.account-recovery-actions button){
  min-height:46px;
  border-radius:18px;
}
body #overliveAccountPanel .account-photo-editor{gap:12px;align-items:center;}
body #overliveAccountPanel .account-photo-preview{
  width:82px;
  height:98px;
  border-radius:18px;
  box-shadow:0 0 0 3px rgb(255 129 91 / .06);
}
body #overliveAccountPanel #accountPhotoChoose{border-radius:999px;}
body #overliveAccountPanel .account-photo-gallery{gap:10px;margin-top:4px;}
body #overliveAccountPanel .account-gallery-photo{
  border-radius:18px;
  padding:5px;
  box-shadow:inset 0 0 0 1px rgb(255 179 139 / .08);
}
body #overliveAccountPanel .account-gallery-photo[data-main='true']{
  box-shadow:0 0 0 1px rgb(255 153 110 / .65),0 5px 16px rgb(255 72 31 / .07);
}
body #overliveAccountPanel .account-gallery-main{border-radius:13px;}

/* Contacts remain genuine rows, with their existing photo and all actions. */
body:not(.social-keyboard-compact) #social.overlive-social{
  border-radius:28px;
  padding:22px 16px 14px;
  gap:13px;
  box-shadow:inset 0 1px 0 rgb(255 220 200 / .07),0 16px 32px rgb(0 0 0 / .18);
}
body #social .social-heading>div{min-width:0;}
body #social .social-heading h1{
  font-size:29px;
  line-height:1.15;
  letter-spacing:-.9px;
  margin:5px 0 0;
}
body #social .social-tabs{
  border-radius:999px;
  gap:8px;
  padding:4px;
}
body #social .social-tabs>button{
  min-height:44px;
  padding:9px 14px;
  border-radius:999px;
}
body #social .social-tabs>button[aria-selected='true']{
  box-shadow:inset 0 -2px 0 rgb(255 141 104 / .65);
}
body #social .social-content{gap:9px;}
body #social .social-row{
  min-height:82px;
  padding:10px;
  gap:8px;
  border:1px solid rgb(247 209 192 / .13);
  border-radius:20px;
  background:linear-gradient(115deg,rgb(255 137 96 / .06),rgb(4 5 12 / .16));
}
body #social .social-row-main{
  min-height:54px;
  padding:0;
  gap:12px;
  border-radius:14px;
}
body #social .social-row-main .social-avatar{
  width:52px;
  height:58px;
  flex-basis:52px;
  border-radius:15px;
  border-color:rgb(255 177 139 / .38);
}
body #social .social-row-text{gap:5px;}
body #social .social-row-text strong{font-size:14px;line-height:1.3;}
body #social .social-row-text>span{font-size:12px;line-height:1.4;}
body #social :is(.social-pill,.social-older){
  min-height:44px;
  border-radius:999px;
  padding:9px 12px;
}
body:not(.social-keyboard-compact) #social :is(.social-refresh,.social-more,.social-refuse,.social-thread-back){
  min-width:44px;
  min-height:44px;
  border-radius:15px;
}
body #social .social-find{gap:8px;}
body #social .social-find input{min-height:46px;border-radius:999px;}
body #social .social-list-title{margin:15px 2px 3px;font-size:14px;}
body:not(.social-keyboard-compact) #social .social-thread-heading{
  padding:6px 0 12px;
  border-bottom:1px solid rgb(247 209 192 / .16);
}
body #social .social-private-message{
  border:1px solid rgb(232 226 255 / .17);
  border-radius:19px 19px 19px 6px;
}
body #social .social-private-message.mine{
  border-radius:19px 19px 6px 19px;
  box-shadow:inset 2px 0 0 rgb(255 153 110 / .28);
}
body:not(.social-keyboard-compact) #social .social-private-form{gap:8px;}
body:not(.social-keyboard-compact) #social .social-private-form textarea{border-radius:20px;}

/* Contact and personal-appearance sheets borrow the same quiet framing. */
body :is(.social-action-dialog,.social-confirm-dialog){
  border-radius:28px;
  padding:28px 20px 20px;
  box-shadow:0 18px 48px rgb(0 0 0 / .4),inset 0 1px 0 rgb(255 215 190 / .07);
}
body .social-action-dialog .social-contact-heading .social-avatar{
  width:88px;
  height:104px;
  border-radius:22px;
  border-color:rgb(255 169 128 / .5);
}
body .social-action-dialog .social-contact-heading h2{font-size:25px;letter-spacing:-.6px;}
body .social-action-dialog .social-contact-actions{gap:9px;}
body .social-action-dialog .social-contact-button{
  min-height:46px;
  border-radius:16px;
  padding:11px 14px;
}
body .social-confirm-dialog>div{flex-wrap:wrap;}
body .social-confirm-dialog>div>button{min-height:44px;max-width:100%;border-radius:999px;}
body #space .interface-background-picker{
  border-radius:24px;
  box-shadow:inset 0 1px 0 rgb(255 220 200 / .06);
}
body #space .interface-background-picker h3{font-size:19px;line-height:1.25;margin-bottom:15px;}
body #space .interface-background-picker .background-editor{gap:12px;align-items:stretch;}
body #space .interface-background-picker .background-preview{
  width:100px;
  aspect-ratio:1;
  border-radius:19px;
  box-shadow:inset 0 0 0 1px rgb(255 151 104 / .18);
}
body #space .interface-background-picker .background-buttons{align-content:center;}
body #space .interface-background-picker .background-buttons>button{border-radius:999px;}

body :is(#overliveAccountPanel,#social,.social-action-dialog,.social-confirm-dialog) :is(button,input,textarea,summary):focus-visible{
  outline:2px solid var(--readable-focus,#fff);
  outline-offset:3px;
}

/* Preserve the existing special layout for a short software-keyboard viewport. */
body.social-keyboard-compact #social .social-content{gap:2px;}
body.social-keyboard-compact #social .social-tabs{padding:0;}
@media(max-width:370px){
  body #space #overliveAccountPanel{padding:18px 14px;border-radius:24px;}
  body #overliveAccountPanel .account-heading{gap:10px;}
  body #overliveAccountPanel .account-heading h2{font-size:25px;}
  body #overliveAccountPanel .account-avatar{width:50px;height:50px;flex-basis:50px;border-radius:16px;}
  body #overliveAccountPanel .account-profile-form{padding-inline:10px;}
  body #overliveAccountPanel .account-photo-preview{width:70px;height:84px;}
  body:not(.social-keyboard-compact) #social.overlive-social{padding:18px 10px 10px;border-radius:24px;}
  body #social .social-row{padding:8px;gap:6px;}
  body #social .social-row-main{gap:8px;}
  body #social .social-row-main .social-avatar{width:44px;height:52px;flex-basis:44px;border-radius:13px;}
  body #social .social-row-text strong{font-size:13px;}
  body #social .social-row-text>span{font-size:11px;}
  body #social .social-pill{padding-inline:10px;font-size:11px;}
  body #space .interface-background-picker .background-preview{width:80px;}
  body #space .interface-background-picker .background-editor{gap:8px;}
}
