/* Social/account reference treatment. Existing state, nodes, native scrollers,
   profile images, presence dots, file inputs and call consent keep their owners.
   No generated labels/media, animation or scene-wide backdrop is introduced. */
body :is(#overliveAccountPanel,#social,.social-action-dialog,.social-confirm-dialog,.private-call-panel,.private-call-dock,#space .interface-background-picker){
 --social-reference-ink:var(--ref-ink,#f5f1f6);
 --social-reference-muted:var(--ref-muted,#b1afc0);
 --social-reference-accent:var(--ref-accent,#ff9b45);
 --readable-ink:var(--social-reference-ink);
 --readable-muted:var(--social-reference-muted);
 --readable-placeholder:#aeb9ce;
 --readable-panel:rgb(11 13 22 / .88);
 --readable-surface:rgb(11 13 22 / .88);
 --readable-label:rgb(11 13 22 / .94);
 --readable-field:rgb(8 11 20 / .94);
 --readable-button:var(--ref-control,rgb(22 24 37 / .96));
 --readable-control:var(--ref-control,rgb(22 24 37 / .96));
 --readable-border:rgb(255 255 255 / .2);
 --readable-focus:#ffba7c;
 color:var(--social-reference-ink);
 font-family:'DM Sans',system-ui,sans-serif;
 font-size:14px;
 line-height:1.5;
}
body #space #overliveAccountPanel,
body:not(.social-keyboard-compact) #social.overlive-social{
 padding:20px 18px 16px;
 border:1px solid rgb(255 255 255 / .12)!important;
 border-radius:18px;
 background:rgb(11 13 22 / .88)!important;
 box-shadow:0 14px 40px rgb(0 0 0 / .18)!important;
}

/* Account hierarchy and profile editor remain a single native scrolling page. */
body #overliveAccountPanel .account-heading{gap:14px;margin-bottom:16px;}
body #overliveAccountPanel .account-heading h2{
 margin:3px 0 0;font-family:'Space Grotesk',system-ui,sans-serif;
 font-size:28px;line-height:1.2;letter-spacing:-.7px;
}
body #overliveAccountPanel .account-heading .eyebrow{color:#ffb16f;letter-spacing:.12em;font-size:11px;}
body #overliveAccountPanel .account-avatar{
 border:1px solid rgb(255 155 69 / .45);border-radius:18px;
 background:rgb(22 27 41 / .94);box-shadow:none;
}
body #overliveAccountPanel .account-identity{gap:5px;margin-bottom:18px;}
body #overliveAccountPanel .account-identity strong{font-size:24px;line-height:1.25;letter-spacing:-.5px;}
body #overliveAccountPanel .account-identity>span{font-size:14px;line-height:1.45;}
body #overliveAccountPanel .account-app-role{
 align-self:flex-start;width:max-content;max-width:100%;padding:3px 9px;
 border:1px solid rgb(255 155 69 / .4)!important;border-radius:8px;
 background:#251c18!important;color:#ffd8b8!important;font-size:12px;
}
body #overliveAccountPanel .account-tabs{
 gap:5px;padding:4px;margin-bottom:18px;border:1px solid rgb(255 255 255 / .12);
 border-radius:14px;background:rgb(8 11 20 / .78);
}
body #overliveAccountPanel .account-tabs>button{
 min-height:44px;padding:9px 12px;border-radius:10px;font-size:14px;line-height:1.4;
}
body #overliveAccountPanel .account-tabs>button[aria-selected='true']{
 border-color:rgb(255 155 69 / .55)!important;background:#2d211b!important;
 color:#ffd5b1!important;box-shadow:none;
}
body #overliveAccountPanel .account-form{gap:14px;}
body #overliveAccountPanel .field{font-size:14px;line-height:1.45;gap:7px;}
body #overliveAccountPanel input:not([type='file']):not([type='checkbox']):not([type='hidden']){
 min-height:48px;border:1px solid rgb(173 177 197 / .56)!important;
 border-radius:12px;padding:11px 12px;font-size:16px;line-height:1.45;
}
body #overliveAccountPanel .account-password-row input{padding-right:92px!important;}
body #overliveAccountPanel .account-password-toggle{
 min-width:80px;min-height:44px;border-radius:10px;font-size:12px;
}
body #overliveAccountPanel .account-profile-editor{
 border:1px solid rgb(255 255 255 / .12)!important;border-radius:16px;
 background:rgb(15 19 31 / .9)!important;margin-bottom:16px;
}
body #overliveAccountPanel .account-profile-editor>summary{
 background:transparent!important;
 min-height:48px;padding:12px 14px;border-radius:16px;font-size:14px;
}
body #overliveAccountPanel .account-profile-form{padding:2px 14px 16px;gap:14px;}
body #overliveAccountPanel .account-photo-editor{gap:14px;}
body #overliveAccountPanel .account-photo-preview{
 border:1px solid rgb(255 255 255 / .16);border-radius:16px;box-shadow:none;
}
body #overliveAccountPanel .account-photo-controls{gap:8px;font-size:14px;}
body #overliveAccountPanel #accountPhotoChoose{
 min-height:44px;padding:10px 13px;border:1px solid rgb(255 255 255 / .25);
 border-radius:12px;background:var(--ref-control,rgb(22 24 37 / .96))!important;color:var(--social-reference-ink)!important;font-size:14px;
}
body #overliveAccountPanel .account-photo-gallery{gap:10px;margin-top:2px;}
body #overliveAccountPanel .account-gallery-photo{
 padding:5px;border-color:rgb(255 255 255 / .14);border-radius:14px;box-shadow:none;
 background:rgb(8 11 20 / .6);
}
body #overliveAccountPanel .account-gallery-photo[data-main='true']{
 border-color:#ff9b45;box-shadow:0 0 0 1px rgb(255 155 69 / .22);
}
body #overliveAccountPanel .account-gallery-action{border-radius:9px;border-color:rgb(255 255 255 / .18)!important;background:var(--ref-control,rgb(22 24 37 / .96))!important;color:var(--social-reference-ink)!important;}
body #overliveAccountPanel .account-gallery-main{border-radius:10px;}
body #overliveAccountPanel .account-security{margin:0 14px 16px;padding-top:16px;border-color:rgb(255 255 255 / .12);}
body #overliveAccountPanel :is(.account-security h3,.account-reset-panel h3,.account-recovery-code h3){font-size:17px;line-height:1.35;letter-spacing:-.25px;}
body #overliveAccountPanel :is(.account-description,.account-security p,.account-reset-panel>p,.account-recovery-code p,.account-remember-options label,.account-connection-options summary){font-size:14px;line-height:1.5;}
body #overliveAccountPanel :is(.account-field-hint,.account-recovery-help,.account-remember-options p){font-size:12px!important;line-height:1.5;}
body #overliveAccountPanel .account-connection-options summary{min-height:44px;}
body #overliveAccountPanel .account-recovery-code{
 border:1px solid rgb(255 155 69 / .4);border-radius:16px;background:#201b1b;
}
body #overliveAccountPanel .account-recovery-code code{
 border:1px dashed rgb(255 155 69 / .5)!important;border-radius:12px;
 padding:12px;font-size:16px;line-height:1.6;letter-spacing:.08em;
}
body #overliveAccountPanel :is(.account-submit,.account-visitor,.account-recovery-actions button,.account-photo-remove,.account-text-button){
 min-height:44px;border-radius:12px;font-size:14px;line-height:1.4;
}
/* Explicit fills win over each control's local RGB/readable variables. */
body #overliveAccountPanel :is(.account-visitor,.account-password-toggle,.account-photo-remove,.account-text-button){
 background:var(--ref-control,rgb(22 24 37 / .96))!important;
 color:var(--ref-ink,#f5f1f6)!important;border-color:rgb(255 255 255 / .2)!important;
 text-shadow:none;
}
body #overliveAccountPanel .account-submit{
 background:#ff9b45!important;border-color:#ffb879!important;color:#21140d!important;
 text-shadow:none;font-weight:700;
}
body #overliveAccountPanel #accountLogout{
 min-height:46px;padding:11px 16px;border-radius:12px;
 background:#8c263e!important;color:#fff!important;border-color:#cf637b!important;
 font-size:14px;line-height:1.4;
}
body #overliveAccountPanel .overlive-presence-control{margin:0 0 16px;}
body #overliveAccountPanel .overlive-presence-field{
 border:1px solid rgb(255 255 255 / .2);border-radius:12px;background:#161b29;
 font-size:14px;color:#f3f5fb;
}
body #overliveAccountPanel .overlive-presence-feedback{font-size:12px;line-height:1.45;}
/* The transparent native select over the status caption is intentionally untouched. */
/* The real expandable application options keep their existing geometry. */
body #space #accountAppOptions.app-secondary-options{
 background:var(--ref-panel,rgb(10 12 21 / .94))!important;
 color:var(--ref-ink,#f5f1f6)!important;border-color:var(--ref-line,rgb(225 225 244 / .14))!important;
 box-shadow:none!important;
}
body #space #accountAppOptions.app-secondary-options>summary{
 background:transparent!important;color:var(--ref-ink,#f5f1f6)!important;
 border-color:var(--ref-line,rgb(225 225 244 / .14))!important;box-shadow:none!important;
}
body #space .interface-background-picker{
 padding:18px;border:1px solid rgb(255 255 255 / .12)!important;border-radius:18px;
 background:rgb(11 13 22 / .88)!important;box-shadow:none;
}
body #space .interface-background-picker h3{font-size:19px;line-height:1.3;margin:0 0 14px;letter-spacing:-.35px;}
body #space .interface-background-picker .background-preview{border-radius:14px;}
body #space .interface-background-picker .background-buttons{gap:8px;}
body #space .interface-background-picker .background-buttons>button{min-height:44px;border-radius:12px;font-size:14px;}

/* Contact lists are light rows, with real photos and actions retained. */
body:not(.social-keyboard-compact) #social.overlive-social{gap:12px;}
body #social .social-heading h1{
 margin:3px 0 0;font-family:'Space Grotesk',system-ui,sans-serif;
 font-size:28px;line-height:1.2;letter-spacing:-.7px;
}
body #social .social-heading>div>span{font-size:11px;letter-spacing:.12em;color:#bdc5d7;}
body #social .social-tabs{
 padding:4px;gap:5px;border:1px solid rgb(255 255 255 / .12);
 border-radius:14px;background:rgb(8 11 20 / .8);
}
body #social .social-tabs>button{background:transparent!important;color:var(--social-reference-muted)!important;min-height:44px;padding:9px 12px;border-radius:10px;font-size:14px;line-height:1.4;}
body #social .social-tabs>button[aria-selected='true']{
 border:1px solid rgb(255 155 69 / .5)!important;background:#2d211b!important;
 color:#ffd5b1!important;box-shadow:none;
}
body #social .social-content{gap:6px;}
body #social .social-row{
 min-height:80px;padding:12px 2px;gap:8px;border:0;
 border-bottom:1px solid rgb(255 255 255 / .1);border-radius:0;
 background:transparent;box-shadow:none;
}
body #social .social-row-main{background:transparent!important;border:0!important;color:var(--social-reference-ink)!important;min-height:52px;gap:12px;border-radius:12px;}
body #social .social-row-main .social-avatar{
 border:1px solid rgb(255 255 255 / .18);border-radius:14px;
}
body #social .social-row-text{gap:5px;}
body #social .social-row-text strong{font-size:14px;line-height:1.4;}
body #social .social-row-text>span{color:var(--social-reference-muted)!important;font-size:14px;line-height:1.4;}
body #social .social-list-title{margin:18px 0 3px;font-size:15px;line-height:1.4;letter-spacing:-.1px;}
body #social .social-find{gap:8px;margin:4px 0 8px;}
body #social .social-find input{min-height:46px;padding:10px 13px;border:1px solid rgb(173 177 197 / .56)!important;border-radius:12px;font-size:16px;}
body #social :is(.social-find-feedback,.social-status,.social-empty){font-size:14px;line-height:1.5;}
body #social .social-status{max-height:64px;}
body #social :is(.social-pill,.social-older){background:var(--ref-control,rgb(22 24 37 / .96))!important;color:var(--social-reference-ink)!important;min-height:44px;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.4;}
body:not(.social-keyboard-compact) #social :is(.social-refresh,.social-more,.social-refuse,.social-thread-back){
 min-width:44px;min-height:44px;border-radius:12px;
}
body #social .social-unread{
 min-width:22px;padding:3px 7px;border:1px solid rgb(255 155 69 / .3)!important;
 border-radius:9px;background:#ff9b45!important;color:#21140d!important;font-size:12px;
}

/* Private-message history keeps its own flex sizing and native read anchor. */
body:not(.social-keyboard-compact) #social .social-thread-heading{
 gap:10px;padding:4px 0 12px;border-bottom:1px solid rgb(255 255 255 / .12);
}
body:not(.social-keyboard-compact) #social .social-thread-heading strong{font-size:16px;line-height:1.35;}
body #social .social-thread-tools{padding-bottom:6px;}
body #social .social-delete{min-height:44px;padding:8px 2px;font-size:12px;line-height:1.4;}
body #social .social-private-log{gap:12px;padding:12px 2px;}
body #social .social-private-message{
 max-width:88%;padding:11px 47px 10px 13px;
 border:1px solid rgb(255 255 255 / .12)!important;border-radius:16px 16px 16px 5px;
 background:#171e2d!important;box-shadow:none;
}
body #social .social-private-message.mine{
 border-color:rgb(255 155 69 / .24)!important;border-radius:16px 16px 5px 16px;
 background:#30241e!important;box-shadow:none;
}
body #social .social-private-message p{font-size:14px;line-height:1.55;}
body #social .social-private-message time{font-size:11px!important;line-height:1.4;}
body #social .social-message-more{min-width:44px;min-height:44px;right:0;top:0;border-radius:10px;background:transparent!important;}
body:not(.social-keyboard-compact) #social .social-private-form{gap:8px;margin-top:10px;}
body:not(.social-keyboard-compact) #social .social-private-form textarea{
 min-height:48px;padding:12px 13px;border:1px solid rgb(173 177 197 / .56)!important;
 border-radius:14px;font-size:16px;line-height:1.4;
}
body:not(.social-keyboard-compact) #social .social-private-form>.social-pill{min-height:48px;}
body #social :is(.social-refuse,.social-more,.social-thread-back,.social-delete){background:transparent!important;}
body #social .social-refresh{background:var(--ref-control,rgb(22 24 37 / .96))!important;}
body #social .social-private-call{border-color:rgb(255 155 69 / .4)!important;color:#ffd5b1!important;}

/* Contact sheets keep every friendship, block, voice and notification control. */
body :is(.social-action-dialog,.social-confirm-dialog){
 padding:24px 18px 18px;border:1px solid rgb(255 255 255 / .14)!important;
 border-radius:18px;background:rgb(11 13 22 / .94)!important;
 box-shadow:0 20px 60px rgb(0 0 0 / .42);
}
body .social-action-dialog .social-close{min-width:44px;min-height:44px;right:10px;top:10px;border-radius:12px;background:var(--ref-control,rgb(22 24 37 / .96))!important;}
body .social-action-dialog .social-contact-heading .social-avatar{border:1px solid rgb(255 155 69 / .35);border-radius:18px;}
body .social-action-dialog .social-contact-heading h2{font-family:'Space Grotesk',system-ui,sans-serif;font-size:25px;line-height:1.25;letter-spacing:-.5px;}
body .social-action-dialog .social-contact-heading p{font-size:14px;line-height:1.45;}
body .social-action-dialog .social-contact-actions{gap:8px;}
body .social-action-dialog .social-contact-button{
 min-height:46px;padding:11px 13px;border-radius:12px;font-size:14px;line-height:1.4;
 background:var(--ref-control,rgb(22 24 37 / .96))!important;color:var(--social-reference-ink)!important;
 border:1px solid rgb(255 255 255 / .16)!important;box-shadow:none;
}
body :is(.social-action-dialog,.social-confirm-dialog) .profile-public-photos{gap:8px;margin:14px 0;}
body :is(.social-action-dialog,.social-confirm-dialog) .profile-public-photos img{border:1px solid rgb(255 255 255 / .12);border-radius:14px;}
body .social-confirm-dialog h2{font-size:24px;line-height:1.25;letter-spacing:-.4px;}
body .social-confirm-dialog p{font-size:14px;line-height:1.55;}
body .social-confirm-dialog>div{gap:8px;flex-wrap:wrap;}
body .social-confirm-dialog>div>button{background:var(--ref-control,rgb(22 24 37 / .96))!important;min-height:44px;border-radius:12px;font-size:14px;}
body .social-confirm-dialog .social-confirm{background:#8c263e!important;color:#fff!important;border-color:#cf637b!important;}

/* The real voice-call panel remains dismissible/minimizable with its verified
   encryption disclosure and comparison code; no decorative fake call controls. */
body .private-call-panel{
 padding:16px;border:1px solid rgb(255 255 255 / .16);border-radius:18px;
 background:rgb(11 13 22 / .94)!important;color:var(--social-reference-ink)!important;box-shadow:0 16px 48px rgb(0 0 0 / .4);
}
body .private-call-panel>header{gap:12px;padding-bottom:12px;border-bottom:1px solid rgb(255 255 255 / .12);}
body .private-call-panel .private-call-label{font-size:13px;line-height:1.4;letter-spacing:.03em;color:#bdc5d7;}
body .private-call-panel .private-call-minimize{min-width:44px;min-height:44px;padding:0;border-radius:12px;background:var(--ref-control,rgb(22 24 37 / .96))!important;border-color:rgb(255 255 255 / .2);font-size:22px;}
body .private-call-panel .private-call-main{gap:12px;margin:16px 0;}
body .private-call-panel .private-call-avatar{border:1px solid rgb(255 155 69 / .3);border-radius:16px;}
body .private-call-panel .private-call-name{font-family:'Space Grotesk',system-ui,sans-serif;font-size:21px;line-height:1.3;letter-spacing:-.3px;}
body .private-call-panel .private-call-status{margin-top:5px;font-size:14px;line-height:1.5;color:#d4dbea;}
body .private-call-panel .private-call-actions{gap:8px;}
body .private-call-panel .private-call-actions>button{
 min-height:46px;padding:10px 12px;border:1px solid rgb(255 255 255 / .2)!important;border-radius:12px;
 background:var(--ref-control,rgb(22 24 37 / .96))!important;color:var(--social-reference-ink)!important;font-size:14px;line-height:1.4;
}
body .private-call-panel .private-call-actions>.private-call-accept{background:#1d604b!important;border-color:#65b697!important;color:#fff!important;}
body .private-call-panel .private-call-actions>.private-call-end{background:#8c263e!important;border-color:#cf637b!important;color:#fff!important;}
body .private-call-panel .private-call-actions>button[aria-pressed='true']{background:#3a281e!important;border-color:#ff9b45!important;color:#ffd5b1!important;}
body .private-call-panel .private-call-security{margin-top:14px;padding-top:10px;border-top:1px solid rgb(255 255 255 / .12);font-size:13px;line-height:1.5;color:#bdc5d7;}
body .private-call-panel .private-call-security>summary{background:transparent!important;min-height:44px;font-size:14px;color:#f3f5fb;}
body .private-call-panel .private-call-code{padding:9px 10px;border:1px solid rgb(255 155 69 / .25);border-radius:10px;background:#171b29;color:#ffd5b1;font-size:13px;line-height:1.5;}
body .private-call-dock{
 min-height:44px;padding:10px 13px;border:1px solid rgb(255 155 69 / .4);border-radius:14px;
 background:rgb(11 13 22 / .94)!important;color:var(--social-reference-ink)!important;font-size:14px;line-height:1.4;
}

/* The scene keeps its RGB motion; these app-owned controls have quiet edges. */
body :is(#overliveAccountPanel,#social,.social-action-dialog,.social-confirm-dialog,.private-call-panel) :is(button,summary),
body .private-call-dock{box-shadow:none!important;}

/* Errors, disabled/busy states and real native focus remain plainly visible. */
body :is(#overliveAccountPanel,#social,.social-action-dialog,.social-confirm-dialog,.private-call-panel) :is(button,input,textarea,summary):focus-visible,
body .private-call-dock:focus-visible{outline:2px solid #ffba7c!important;outline-offset:3px;}
body :is(#overliveAccountPanel,#social,.social-action-dialog,.social-confirm-dialog,.private-call-panel) :is(button,input,textarea):disabled{
 background:var(--ref-control,rgb(22 24 37 / .96))!important;color:#bdc5d7!important;border-style:dashed!important;border-color:rgb(255 255 255 / .2)!important;cursor:not-allowed;
}
body #overliveAccountPanel :is(.account-status[data-kind='error'],.account-confirm-error),
body #social .social-status[data-error='true'],
body .social-action-dialog .social-action-status:not(:empty){
 color:#ffd5df!important;border-color:rgb(241 113 139 / .45)!important;line-height:1.5;
}
/* Preserve the compact keyboard budget from social-viewport-v3 exactly. */
body.social-keyboard-compact #social .social-tabs{padding:0;}
body.social-keyboard-compact #social .social-content{gap:2px;}
body.social-keyboard-compact #social .social-private-log{padding-block:0;}
body.social-keyboard-compact #social .social-status{max-height:14px;font-size:10px;line-height:14px;}
@media(max-width:370px){
 body #space #overliveAccountPanel,body:not(.social-keyboard-compact) #social.overlive-social{padding:17px 12px 14px;}
 body #overliveAccountPanel .account-heading h2,body #social .social-heading h1{font-size:26px;}
 body #overliveAccountPanel .account-profile-form{padding-inline:11px;}
 body #social .social-row{gap:6px;}
 body #social .social-row-main{gap:9px;}
 body #social .social-pill{padding-inline:10px;}
 body #space .interface-background-picker{padding:15px 12px;}
}
@media(max-height:450px){
 body .private-call-panel{padding:12px 14px;}
 body .private-call-panel>header{padding-bottom:6px;}
 body .private-call-panel .private-call-main{margin:8px 0;}
}
