:root{color-scheme:dark;background:#09090b;color:#f4f4f6;--social-muted:#9b96a4;--social-accent:#c93670;--social-border:rgba(255,255,255,.08)}.social-main *{box-sizing:border-box}.social-main body{margin:0}.social-main a{color:inherit;text-decoration:none}.social-main button,.social-main input,.social-main textarea,.social-main select{font:inherit}.social-main button{cursor:pointer;background:var(--social-accent);color:white;border:0;border-radius:9px;padding:11px 16px;font-size:13px;font-weight:600}.social-main button:hover{filter:brightness(1.1)}.social-main button:disabled{opacity:.6;cursor:wait}.social-main .secondary{background:#25212c}.social-main .ghost{background:transparent;color:#d7b9c4}.social-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1100px)/2));border-bottom:1px solid var(--social-border);background:#131217}.social-brand{font-size:24px;font-weight:850;letter-spacing:-1px}.social-header nav{display:flex;gap:24px;color:#bbb4c5;font-size:13px}.social-main{max-width:1100px;margin:32px auto;padding:0 20px 80px}.social-profile{overflow:hidden;border-radius:14px;background:#111014;border:1px solid var(--social-border)}.social-banner{height:240px;background:#2e1820}.social-banner img{width:100%;height:100%;object-fit:cover}.social-profile-body{padding:0 32px 32px}.social-avatar{position:relative;margin-top:-42px;width:96px;height:96px;background:#382029;border:5px solid #111014;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-size:36px;color:#f9bbd2}.social-avatar img{width:100%;height:100%;object-fit:cover}.social-profile h1{margin:18px 0 4px;font-size:28px;overflow-wrap:anywhere}.social-muted{font-size:13px;color:var(--social-muted);line-height:1.5}.social-profile-body>.social-muted{margin-top:0}.social-bio{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65;max-width:750px}.social-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.social-account{max-width:440px;margin:60px auto;background:#111014;border:1px solid var(--social-border);padding:26px;border-radius:14px}.social-account h1{font-size:23px;line-height:1.3}.social-tabs{display:flex;gap:6px;margin:24px 0}.social-tabs button{flex:1;background:transparent;color:var(--social-muted)}.social-tabs [aria-selected=true]{background:#c9367022;color:#f9bfd4}.social-main label{display:grid;gap:8px;font-size:13px;color:#d0c9d8;margin-bottom:18px}.social-main input,.social-main textarea,.social-main select{width:100%;min-width:0;border:1px solid #363039;background:#19171e;color:#f4f4f6;padding:11px 12px;border-radius:9px;font-size:15px}.social-main textarea{resize:vertical}.social-main form>button[type=submit]{width:100%}.social-message{font-size:13px;line-height:1.5;color:#e5bad1;overflow-wrap:anywhere}.social-message:empty{display:none}.social-main dialog{color:inherit;width:min(560px,calc(100vw - 28px));max-height:85dvh;border:1px solid var(--social-border);border-radius:14px;background:#111014;padding:24px;box-shadow:0 18px 50px #0007}.social-main dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.social-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.social-dialog-header h2{font-size:19px;margin:0}.social-dialog-header button{font-size:24px}.social-image-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.social-main input[type=file]{font-size:12px;padding:8px}.social-main fieldset{border:0;padding:0;margin-top:20px}.social-main legend{font-weight:650;margin-bottom:12px}.social-main fieldset label{display:flex;align-items:center;justify-content:space-between;gap:12px}.social-main fieldset select{width:150px}.social-main a:focus-visible,.social-main button:focus-visible,.social-main input:focus-visible,.social-main textarea:focus-visible,.social-main select:focus-visible{outline:2px solid #f693b7;outline-offset:3px}.social-main [hidden]{display:none!important}@media(max-width:650px){.social-header{height:62px;padding:0 18px}.social-header nav{gap:14px}.social-main{margin-top:18px;padding:0 12px 30px}.social-banner{height:155px}.social-profile-body{padding:0 20px 24px}.social-profile h1{font-size:23px}.social-account{margin:24px auto;padding:20px}.social-image-fields{grid-template-columns:1fr}.social-main input,.social-main textarea,.social-main select{font-size:16px}.social-main dialog{padding:20px;max-height:90dvh}.social-main fieldset label{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.social-developer{display:inline-flex;padding:4px 8px;margin:8px 0;border-radius:6px;color:#f9b8d0;background:#c9367022;font-size:12px;font-weight:600}body[data-social-page]>.social-main{display:block} @media(max-width:900px){body[data-social-page]>.social-main{padding-bottom:110px}}

.social-image-preview{display:block;max-width:100%;object-fit:cover;border:1px solid var(--social-border)}.social-image-preview.avatar{width:72px;height:72px;border-radius:50%}.social-image-preview.banner{width:100%;aspect-ratio:4/1;border-radius:8px}
.social-main #imageCrop{width:min(560px,calc(100vw - 28px))}.social-crop-stage{position:relative;overflow:hidden;border-radius:10px;background:#050505;max-width:100%;margin:16px auto}.social-crop-stage[data-kind=avatar]{width:min(100%,360px)}.social-crop-stage canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}.social-crop-stage canvas:active{cursor:grabbing}.social-crop-stage[data-kind=avatar]::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle closest-side,transparent calc(100% - 2px),#ffffffaa calc(100% - 1px),#0009 100%)}.social-crop-zoom{margin-top:16px}.social-main #cropZoom{padding:0;accent-color:#c93670}.social-banner{height:auto;aspect-ratio:4/1}.social-banner img{display:block;height:100%}
/* Profile composition: identity above a wide showcase and a compact social rail. */
.social-main:has(.profile-columns){max-width:1280px}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:28px}.profile-heading .social-actions{margin:0;justify-content:flex-end}.profile-identity{min-width:0}.profile-identity h1{margin-top:14px}.profile-identity .social-muted{margin:4px 0 0}.profile-avatar-wrap{position:relative;width:96px}.profile-avatar-wrap .social-avatar{margin-top:-42px}.profile-status-dot{display:block;width:13px;height:13px;border-radius:50%;background:#85818c;border:3px solid #111014}.profile-status-dot[data-status=ONLINE]{background:#70ce94}.profile-avatar-wrap>.profile-status-dot{position:absolute;bottom:7px;right:3px;width:18px;height:18px}.profile-watching:empty{display:none}.profile-watching{padding:0 32px 24px}.profile-watching h2{font-size:16px}.profile-columns{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;margin-top:24px;align-items:start}.profile-central{min-width:0}.profile-friends{padding:20px;background:#111014;border:1px solid var(--social-border);border-radius:14px}.profile-friends-heading{display:block;font-size:16px;font-weight:650;margin-bottom:18px}.profile-friend{position:relative;display:flex;align-items:center;gap:10px;padding:9px 0;min-width:0}.profile-friend-avatar{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#29232d;overflow:hidden}.profile-friend-avatar.user-avatar{border-radius:50%;background:transparent}.profile-friend-avatar img{width:100%;height:100%;object-fit:cover}.profile-friend-identity{display:grid;gap:4px;min-width:0;padding-right:15px}.profile-friend-identity strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-friend-identity small{font-size:11px;color:var(--social-muted)}.profile-friend>.profile-status-dot{position:absolute;right:0;top:22px}.profile-friends-all{display:block;margin-top:14px;padding-top:14px;border-top:1px solid var(--social-border);font-size:12px;color:var(--social-muted)}.profile-columns:has(.profile-friends[hidden]){grid-template-columns:minmax(0,1fr)}
@media(max-width:950px){.profile-heading{align-items:flex-start;gap:18px}.profile-heading .social-actions{max-width:390px;padding-top:18px}.profile-columns{grid-template-columns:minmax(0,1fr) 210px;gap:16px}}
@media(max-width:700px){.profile-heading{display:block}.profile-heading .social-actions{justify-content:flex-start;max-width:none;margin-top:18px;padding-top:0;gap:8px}.profile-heading .social-actions button{padding:10px;font-size:12px}.profile-columns{grid-template-columns:minmax(0,1fr);gap:18px}.profile-watching{padding:0 20px 20px}}

/* Focused image editor: shared avatar/banner controls. */
.social-main #imageCrop{width:min(580px,calc(100vw - 24px));padding:0;max-height:calc(100dvh - 24px);border:1px solid #ffffff12;border-radius:20px;background:#0c0b0e;box-shadow:0 24px 100px #000a;overflow:auto;color:#eee9ed}
#imageCrop::backdrop{background:#050407bb;backdrop-filter:blur(14px)}
#imageCrop .crop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 17px;border-bottom:1px solid #ffffff0c}
#imageCrop h2{font-size:15px;font-weight:600;margin:0;line-height:24px}#imageCrop h2:before{content:'⌗';color:#ed8cb7;font-size:24px;vertical-align:-2px;margin-right:10px}
#imageCrop #cropHint{font-size:12px;line-height:1.6;color:#89828d;margin:8px 0 0}
#imageCrop button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;border-radius:8px;font-size:13px;font-weight:500;padding:8px 12px;background:transparent;color:#99929e;cursor:pointer}
#imageCrop button:disabled{opacity:.35;cursor:default}#imageCrop button:hover:not(:disabled){color:#fff;background:#ffffff08}
#imageCrop #closeCrop{padding:0;min-width:28px;font-size:22px;min-height:28px;color:#d9d1d9}
#imageCrop .crop-workspace{padding:32px 24px 28px}
#imageCrop .social-crop-stage{margin:14px auto 22px;border-radius:14px;background:#141116;isolation:isolate}
#imageCrop .social-crop-stage[data-kind=avatar]{width:min(300px,100%)}
#imageCrop .social-crop-stage[data-kind=avatar]:after{border-radius:0;background:radial-gradient(circle closest-side,transparent calc(100% - 2px),#ed8cb7 calc(100% - 1px),#141116ed 100%)}
#imageCrop .social-crop-stage[data-kind=banner]{width:100%;box-shadow:0 0 0 2px #ed8cb7a8;border-radius:12px}
#imageCrop .social-crop-zoom{display:flex;align-items:center;gap:12px;margin:0}
#imageCrop .social-crop-zoom button{border:1px solid #ffffff10;background:#19161c;min-width:32px;min-height:32px;padding:0;font-size:21px}
#imageCrop #cropPercent{font-size:12px;color:#89828d;font-variant-numeric:tabular-nums;min-width:42px;text-align:right}
.social-main #imageCrop #cropZoom{appearance:none;-webkit-appearance:none;flex:1;min-width:0;width:auto;height:6px;min-height:0;padding:0;border:0;border-radius:20px;background:linear-gradient(to right,#df75a2 var(--crop-fill,0%),#29252c var(--crop-fill,0%));cursor:pointer}
#imageCrop #cropZoom::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:#fff5fa;border:2px solid #df75a2;box-shadow:0 1px 6px #0006}
#imageCrop #cropZoom::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff5fa;border:2px solid #df75a2}
#imageCrop .crop-footer{border-top:1px solid #ffffff0c;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px 24px}
#imageCrop #applyCrop{background:#c93670;color:white;padding:9px 16px}#imageCrop #applyCrop:hover{background:#d5447e}
#imageCrop #cropMessage{margin:10px 0 0}#imageCrop #cropMessage:empty{display:none}
@media(max-width:480px){#imageCrop .crop-header{padding:18px}#imageCrop .crop-workspace{padding:20px 18px}#imageCrop .crop-footer{padding:14px 12px;gap:2px}#imageCrop .social-crop-zoom{gap:8px}#imageCrop .social-crop-stage[data-kind=avatar]{width:min(280px,100%)}#imageCrop button{padding:8px 10px}}

/* Larger profile portrait, including the equipped frame. */
.profile-avatar-wrap{--profile-avatar-size:144px;width:var(--profile-avatar-size)}
.profile-avatar-wrap .social-avatar{--avatar-size:var(--profile-avatar-size)!important;width:var(--profile-avatar-size);height:var(--profile-avatar-size);margin-top:-58px;font-size:48px}
.profile-avatar-wrap>.profile-status-dot{width:21px;height:21px;bottom:10px;right:7px;z-index:10}
@media(max-width:650px){.profile-avatar-wrap{--profile-avatar-size:96px}.profile-avatar-wrap .social-avatar{margin-top:-42px;font-size:36px}.profile-avatar-wrap>.profile-status-dot{width:18px;height:18px;bottom:7px;right:3px}}

/* Profile editor, adapted from the supplied modal mockup. */
.social-main #profileSettings[data-mode=profile]{width:min(460px,calc(100vw - 24px));max-height:88dvh;padding:24px 24px 22px;border-radius:22px;background:linear-gradient(180deg,#17141b,#121016);border:1px solid #ffffff14;box-shadow:0 30px 80px #0009,0 0 60px #e8399e14;scrollbar-width:thin;scrollbar-color:#e8399e40 transparent}
#profileSettings[data-mode=profile]::backdrop{background:#05040799;backdrop-filter:blur(8px)}
#profileSettings[data-mode=profile] .social-dialog-header{align-items:flex-start;margin-bottom:6px;gap:12px}
#profileSettings[data-mode=profile] h2{font-size:19px;line-height:1.35;font-weight:800;letter-spacing:-.01em;margin:0}
#profileSettings[data-mode=profile] #closeSettings{flex:none;width:32px;height:32px;padding:0;border-radius:50%;border:1px solid #ffffff14;background:#ffffff05;color:#9d97a8;font-size:22px}
#profileSettings[data-mode=profile] #profileLogin{font-size:12px;color:#8b8395;margin:0 0 20px}
#profileSettings[data-mode=profile] label{font-size:12.5px;font-weight:600;color:#a49baa;gap:7px;margin-bottom:16px}
#profileSettings[data-mode=profile] input:not([type=file]),#profileSettings[data-mode=profile] textarea{padding:12px 14px;background:#1b171f;border:1px solid #ffffff14;border-radius:13px;color:#f7f3f4;font-size:14px;transition:border-color .2s,box-shadow .2s}
#profileSettings[data-mode=profile] input:focus,#profileSettings[data-mode=profile] textarea:focus{outline:none;}
#profileSettings[data-mode=profile] textarea{min-height:76px;height:80px;resize:vertical;line-height:1.5}
#profileSettings[data-mode=profile] #handleHint{font-size:12px;color:#817888;line-height:1.5;margin:-8px 2px 16px}
.profile-bio-label{display:flex;justify-content:space-between;gap:8px}#profileBioCount{font-size:11px;font-weight:400;color:#817888}
#profileSettings .social-image-fields{grid-template-columns:88px minmax(0,1fr);gap:18px;margin:20px 0 4px;align-items:start}
.profile-upload-label{display:block;font-size:12.5px;font-weight:600;color:#a49baa;margin-bottom:8px}
.profile-upload-wrap{position:relative}.profile-upload-wrap.avatar{width:88px}
#profileSettings .profile-dropzone{position:relative;display:block;width:100%;height:88px;overflow:hidden;padding:0;border:1.5px dashed #ffffff14;background:#1b171f;border-radius:16px;transition:border-color .2s,box-shadow .2s;color:#fff}
#profileSettings .profile-dropzone.avatar{border-radius:50%}
#profileSettings .profile-dropzone:hover,#profileSettings .profile-dropzone:focus-visible,#profileSettings .profile-dropzone.drag-over{border-color:#e8399e99;box-shadow:0 0 20px #e8399e33}
#profileSettings .profile-dropzone .social-image-preview{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:inherit;object-fit:cover;margin:0}
.profile-upload-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#0a070c77;font-size:11px;transition:opacity .2s}
.profile-upload-overlay svg{width:18px;height:18px}.profile-dropzone.has-image .profile-upload-overlay{opacity:0}.profile-dropzone:hover .profile-upload-overlay,.profile-dropzone:focus-visible .profile-upload-overlay{opacity:1}
#profileSettings .profile-remove-image{position:absolute;top:3px;right:3px;z-index:2;width:22px;height:22px;display:grid;place-items:center;padding:0;border-radius:50%;background:#000b;color:#fff;font-size:16px}
#profileSettings .profile-remove-image:hover{background:#e8399e}
#profileSettings .profile-upload-status{display:block;font-size:11px;font-weight:400;line-height:1.45;color:#cc8ba8;margin:8px 0 0;overflow-wrap:anywhere}
#profileSettings[data-mode=profile] #profileForm>.social-actions{margin-top:22px;padding-top:18px;border-top:1px solid #ffffff14;justify-content:center}
#profileSettings[data-mode=profile] #saveProfile{min-width:220px;padding:14px 22px;border-radius:14px;font-size:14px;font-weight:700;background:linear-gradient(135deg,#e8399e,#ff8ac2);box-shadow:0 0 24px #e8399e40,0 8px 20px #0005}
#profileSettings[data-mode=profile] #saveProfile:disabled{box-shadow:none}
@media(hover:none){.profile-dropzone.has-image .profile-upload-overlay{opacity:1;background:linear-gradient(transparent 45%,#0a070c99);justify-content:flex-end;padding-bottom:8px}.profile-dropzone.has-image .profile-upload-overlay svg{display:none}}
@media(max-width:480px){.social-main #profileSettings[data-mode=profile]{padding:20px 18px;max-height:calc(100dvh - 24px)}#profileSettings[data-mode=profile] input:not([type=file]),#profileSettings[data-mode=profile] textarea{font-size:16px}#profileSettings .social-image-fields{gap:14px}#profileSettings[data-mode=profile] #saveProfile{min-width:0;width:100%}}

/* Owner actions share one compact group; guest relationship controls are untouched. */
.profile-heading .profile-owner-actions{gap:8px;justify-content:flex-end;align-items:center}
.profile-owner-actions>button,.profile-owner-actions>.owner-secondary,.profile-owner-actions>details>summary{box-sizing:border-box;min-height:40px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.profile-owner-actions>.owner-secondary{padding:11px 14px;background:#25212c;color:#eee8ef;font-size:13px;font-weight:600;gap:7px}.owner-secondary svg{width:17px;height:17px;color:#edafcb}
.profile-owner-actions>details>summary{width:40px;padding:0;background:#25212c;cursor:pointer;font-size:22px;list-style:none}.profile-owner-actions summary::-webkit-details-marker{display:none}
.profile-owner-actions .graph-menu-items{z-index:120;min-width:140px}.profile-owner-actions #socialLogout{width:100%;text-align:left;color:#c997a8}.profile-owner-actions #socialLogout:hover{color:#f3b1c6;background:#c9367018}
@media(max-width:650px){.profile-heading .profile-owner-actions{justify-content:flex-start;max-width:100%;flex-wrap:wrap}.profile-owner-actions>button,.profile-owner-actions>.owner-secondary{white-space:normal}.profile-owner-actions #editProfile{flex-basis:100%}}
/* Privacy modal: same visual family, existing independent category semantics. */
.social-main #profileSettings[data-mode=privacy]{width:min(480px,calc(100vw - 24px));padding:24px 24px 22px;max-height:88dvh;border-radius:22px;background:linear-gradient(180deg,#17141b,#121016);border:1px solid #ffffff14;box-shadow:0 30px 80px #0009,0 0 60px #e8399e14;scrollbar-width:thin;scrollbar-color:#e8399e40 transparent}
#profileSettings[data-mode=privacy]::backdrop{background:#05040799;backdrop-filter:blur(8px)}
#profileSettings[data-mode=privacy] h2{font-size:19px;font-weight:800;margin:0;line-height:1.35}
#profileSettings[data-mode=privacy] #closeSettings{width:32px;height:32px;padding:0;border:1px solid #ffffff14;border-radius:50%;background:#ffffff05;color:#9d97a8;font-size:22px;flex:none}
#profileSettings[data-mode=privacy] fieldset{margin:12px 0 0}#profileSettings[data-mode=privacy] legend{display:none}
#profileSettings[data-mode=privacy] fieldset>.social-muted{font-size:13px;line-height:1.55;margin:0 0 22px;color:#9d97a8}
#profileSettings .privacy-section-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#f0a8d0;margin:22px 0 10px}
#profileSettings[data-mode=privacy] fieldset label{gap:12px;padding:10px 4px;margin:0;border-radius:10px;font-size:13px;line-height:1.4}
#profileSettings[data-mode=privacy] fieldset label:hover{background:#ffffff05}
#profileSettings[data-mode=privacy] fieldset select{width:148px;flex:none;padding:10px 12px;background:#1b171f;border:1px solid #ffffff14;border-radius:12px;color:#f7f3f4;font-size:13px}
#profileSettings[data-mode=privacy] fieldset select:focus{outline:1px solid #e8399e88;}
#profileSettings[data-mode=privacy] label.privacy-bulk{padding:12px;background:#e8399e0f;border:1px solid #e8399e2e;border-radius:13px;font-weight:600;margin-bottom:10px}
#profileSettings[data-mode=privacy] label.privacy-library-category{margin-left:10px;padding-left:14px;border-left:2px solid #e8399e29;border-radius:0}
#profileSettings[data-mode=privacy] #profileForm>.social-actions{border-top:1px solid #ffffff14;padding-top:18px;margin-top:22px;justify-content:center}
#profileSettings[data-mode=privacy] #saveProfile{padding:14px 22px;border-radius:14px;background:linear-gradient(135deg,#e8399e,#ff8ac2);box-shadow:0 0 24px #e8399e40;font-weight:700;min-width:220px}
@media(max-width:480px){.social-main #profileSettings[data-mode=privacy]{padding:20px 18px;max-height:calc(100dvh - 24px)}#profileSettings[data-mode=privacy] fieldset select{width:128px;font-size:16px;padding:10px 8px}#profileSettings[data-mode=privacy] #saveProfile{width:100%;min-width:0}}

#profileSettings .privacy-select{position:relative;display:block;flex:none;width:148px}
#profileSettings .privacy-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 12px;background:#1b171f;border:1px solid #ffffff14;border-radius:12px;color:#f7f3f4;font-size:13.5px;font-weight:400;min-height:40px}
#profileSettings .privacy-select-trigger:hover,#profileSettings .privacy-select.open .privacy-select-trigger{border-color:#e8399e88;box-shadow:0 0 16px #e8399e2e;color:#ffd8ec}
#profileSettings .privacy-select-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:148px;background:#17131b;border:1px solid #e8399e40;border-radius:12px;padding:5px;box-shadow:0 14px 34px #0008;z-index:30}
#profileSettings .privacy-select.upward .privacy-select-menu{top:auto;bottom:calc(100% + 6px)}
#profileSettings .privacy-select-menu button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;background:transparent;font-size:13px;font-weight:400;color:#9d97a8}
#profileSettings .privacy-select-menu button:hover,#profileSettings .privacy-select-menu button[aria-selected=true]{background:#e8399e24;color:#ffd8ec}
#profileSettings .privacy-locked{opacity:.55}#profileSettings .privacy-locked .privacy-select-trigger{cursor:default}
#profileSettings .privacy-locked .privacy-select-trigger:before{content:'';width:12px;height:14px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none' stroke='%23ff8ac2' stroke-width='1.5'%3E%3Crect x='3' y='8' width='10' height='8' rx='2'/%3E%3Cpath d='M5 8V5a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:480px){#profileSettings .privacy-select{width:132px}#profileSettings .privacy-select-trigger{font-size:13px;padding:10px}}

.profile-owner-actions #editProfile{background:#c93670}.owner-privacy-short{display:none}
@media(max-width:650px){.owner-privacy-full{display:none}.owner-privacy-short{display:inline}}

/* Restore the reference modal's sections, iconography and motion. */
#profileSettings[data-mode=privacy]{--privacy-ease:cubic-bezier(.16,1,.3,1);--privacy-pop:cubic-bezier(.34,1.56,.64,1)}
#profileSettings[data-mode=privacy][open]{animation:privacy-modal-in .4s var(--privacy-ease)}
#profileSettings[data-mode=privacy] .social-dialog-header{align-items:flex-start;margin-bottom:4px}
#profileSettings[data-mode=privacy] fieldset{margin:0}#profileSettings .privacy-title{margin:18px 0 8px;font-size:15px;font-weight:800}
#profileSettings[data-mode=privacy] .privacy-section{margin-bottom:22px}
#profileSettings[data-mode=privacy] .privacy-section-title{margin:0 0 10px;font-size:11px;line-height:normal;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#f0a8d0}
#profileSettings .privacy-rows{display:flex;flex-direction:column}
#profileSettings[data-mode=privacy] label.privacy-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 4px;border-radius:10px;transition:background .2s ease;color:#f7f3f4;font-size:13.5px;line-height:normal}
#profileSettings .privacy-row-label{display:flex;align-items:center;gap:6px;min-width:0;font-size:13.5px;font-weight:400;color:#f7f3f4}
#profileSettings .privacy-row-label-col{display:flex;flex-direction:column}
#profileSettings .privacy-row-sub{display:block;font-size:11.5px;line-height:normal;font-weight:400;color:#635d6e;margin-top:2px}
#profileSettings[data-mode=privacy] label.privacy-bulk{background:#e8399e0f;border:1px solid #e8399e2e;border-radius:13px;padding:12px;margin-bottom:10px}
#profileSettings .privacy-bulk .privacy-row-label{font-weight:700}
#profileSettings .privacy-nested-group{margin-left:10px;padding-left:14px;border-left:2px solid #e8399e29;display:flex;flex-direction:column;gap:0}
#profileSettings[data-mode=privacy] label.privacy-library-category{margin-left:0;padding-left:4px;border-left:0;border-radius:10px;transition:opacity .4s var(--privacy-ease),background .2s}
#profileSettings .privacy-lock-icon{width:13px;height:13px;flex:none;color:#ff8ac2;opacity:0;transform:scale(.6);transition:opacity .3s var(--privacy-ease),transform .3s var(--privacy-pop)}
#profileSettings .privacy-locked .privacy-lock-icon{opacity:1;transform:scale(1)}
#profileSettings .privacy-locked .privacy-select-trigger:before{content:none}
#profileSettings .privacy-divider{height:1px;background:#ffffff14;margin:4px 0 22px}
#profileSettings[data-mode=privacy] #profileForm>.social-actions{margin-top:4px;padding-top:18px}
#profileSettings #closeSettings svg{width:15px;height:15px;display:block;margin:auto}
#profileSettings[data-mode=privacy] #closeSettings{display:flex;align-items:center;justify-content:center;transition:border-color .25s var(--privacy-ease),color .25s var(--privacy-ease),transform .3s var(--privacy-pop),background .25s var(--privacy-ease)}
#profileSettings[data-mode=privacy] #closeSettings:hover{border-color:#e8399e80;color:#ffd8ec;background:#e8399e1a;transform:rotate(90deg)}
#profileSettings .privacy-select-trigger{transition:border-color .25s var(--privacy-ease),box-shadow .25s var(--privacy-ease),color .25s var(--privacy-ease)}
#profileSettings .privacy-select-arrow{width:13px;height:13px;flex:none;color:#9d97a8;transition:transform .3s var(--privacy-ease)}
#profileSettings .privacy-select.open .privacy-select-arrow{transform:rotate(180deg)}
#profileSettings .privacy-select-menu{box-shadow:0 14px 34px #0008,0 0 22px #e8399e1f}
#profileSettings .privacy-select.open .privacy-select-menu{animation:privacy-menu-in .25s var(--privacy-ease)}
#profileSettings .privacy-select-menu button{transition:background .15s ease,color .15s ease}
#profileSettings #saveProfile{display:flex;align-items:center;justify-content:center;gap:8px}
#profileSettings .privacy-save-icon{display:none;width:16px;height:16px;flex:none}
#profileSettings[data-mode=privacy] .privacy-save-icon{display:block}
#profileSettings[data-mode=privacy] #saveProfile{font-size:14.5px;box-shadow:0 0 24px #e8399e59,0 8px 20px #0006;transition:box-shadow .3s var(--privacy-ease),transform .15s var(--privacy-ease),background .3s ease}
#profileSettings[data-mode=privacy] #saveProfile:hover:not(:disabled){box-shadow:0 0 40px #e8399e8c,0 8px 24px #0006}
#profileSettings[data-mode=privacy] #saveProfile:active{transform:scale(.97)}
#profileSettings #saveProfile.saving svg{animation:privacy-spin .8s linear infinite}
@keyframes privacy-spin{to{transform:rotate(360deg)}}
@keyframes privacy-modal-in{from{transform:translateY(16px) scale(.97);opacity:0}to{transform:none;opacity:1}}
@keyframes privacy-menu-in{from{transform:translateY(-6px) scale(.98);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#profileSettings[data-mode=privacy],#profileSettings[data-mode=privacy] *{animation:none!important;transition:none!important}}

/* Only profile artwork: text and image-editing controls remain selectable. */
.social-profile .social-banner,.social-profile .profile-avatar-wrap{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.social-profile .social-banner img,.social-profile .profile-avatar-wrap img{-webkit-user-drag:none;pointer-events:none;-webkit-touch-callout:none;user-select:none}

.profile-owner-actions .graph-menu-items a{display:block;padding:10px 12px;border-radius:8px;color:inherit;text-decoration:none;font-size:13px}.profile-owner-actions .graph-menu-items a:hover{background:#ffffff0b}.profile-owner-actions .graph-menu-items hr{width:100%;border:0;border-top:1px solid #ffffff14;margin:2px 0}
.social-account{max-width:500px;margin:24px auto;width:100%}.social-account form{min-width:0}.social-account input{min-width:0;width:100%;font-size:16px}.auth-password{display:flex;position:relative;align-items:center}.social-account .auth-password input{padding-right:48px}.social-account .auth-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:38px;padding:8px;background:transparent;color:var(--social-muted);border:0}.auth-eye svg{width:22px;height:22px}.social-account .auth-eye:active{transform:translateY(-50%)}.auth-field-error{display:block;color:#ffb0c4;font-size:12px;margin:5px 0;overflow-wrap:anywhere}.auth-field-error:empty{display:none}.social-account input[aria-invalid=true]{border-color:#ef85a9}.social-account .social-muted{font-size:13px;line-height:1.5}.social-account [hidden]{display:none!important}.social-account input:autofill{box-shadow:0 0 0 100px #211c25 inset;-webkit-text-fill-color:#f4eef3}.auth-caps{color:#e6bc78!important}#authAccountState{padding:16px;border:1px solid #8e4a61;border-radius:12px;margin-top:18px}#authAccountState h2{font-size:18px}#authAccountState p{font-size:14px;line-height:1.5}.social-account form>button[type=submit]{width:100%;margin-top:16px;min-height:44px}@media(max-width:450px){.social-account{margin:8px auto}.social-account h1{font-size:25px}.social-account label{overflow-wrap:anywhere}}

/* Profile actions from the supplied visual reference, scoped to owner controls. */
.profile-owner-actions .btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:9px;
    height:44px;
    padding:0 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor:pointer;
    overflow:hidden;
    white-space:nowrap;
    isolation:isolate;
    transition: border-color .35s ease, transform .25s ease, background-color .35s ease;
  }.profile-owner-actions .btn:active{ transform: scale(0.97); }.profile-owner-actions .btn__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    flex-shrink:0;
  }.profile-owner-actions .btn__icon svg{ width:100%; height:100%; display:block; }.profile-owner-actions .btn.is-neutral::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.06) 40%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    z-index:0;
  }.profile-owner-actions .btn.is-neutral:hover::before{ transform: translateX(120%); }.profile-owner-actions .btn.is-neutral:hover{
    border-color: var(--border-hover);
    background: #202024;
  }.profile-owner-actions .btn.is-neutral > *{ position:relative; z-index:1; }.profile-owner-actions .btn--primary{
    border:none;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
    box-shadow: 0 0 0 0 rgba(224,45,134,0.0);
    transition: box-shadow .35s ease, transform .25s ease, filter .35s ease;
  }.profile-owner-actions .btn--primary:hover{
    box-shadow: 0 8px 24px -6px rgba(224,45,134,0.55);
    filter: brightness(1.08);
  }.profile-owner-actions .btn--primary .btn__icon svg{ stroke:#fff; overflow:visible; }.profile-owner-actions .btn--primary .pencil-body{
    transform-origin: 4px 20px; 
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }.profile-owner-actions .btn--primary:hover .pencil-body{ transform: rotate(-14deg); }.profile-owner-actions .btn--appearance .palette-group{
    transform-origin: 12px 12px;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }.profile-owner-actions .btn--appearance:hover .palette-group{ transform: rotate(-12deg); }.profile-owner-actions .btn--appearance .palette-outline{
    transition: stroke .3s ease;
  }.profile-owner-actions .btn--appearance:hover .palette-outline{ stroke: var(--pink-300); }.profile-owner-actions .paint-dab{
    transition: filter .3s ease;
    filter: drop-shadow(0 0 0 rgba(239,77,157,0));
  }.profile-owner-actions .btn--appearance:hover .paint-dab{
    filter: drop-shadow(0 0 2.5px rgba(239,77,157,0.85));
  }.profile-owner-actions .btn--appearance:hover .paint-dab.d1{ transition-delay: 0s; }.profile-owner-actions .btn--appearance:hover .paint-dab.d2{ transition-delay: .08s; }.profile-owner-actions .btn--appearance:hover .paint-dab.d3{ transition-delay: .16s; }.profile-owner-actions .btn--appearance:hover .paint-dab.d4{ transition-delay: .24s; }.profile-owner-actions .btn--appearance:hover span.label{ color: var(--pink-100); }.profile-owner-actions .btn--privacy .shield-shape{
    transition: transform .4s ease, filter .4s ease;
    transform-origin: center;
  }.profile-owner-actions .btn--privacy:hover .shield-shape{
    transform: scale(1.06);
    filter: drop-shadow(0 0 5px rgba(239,77,157,0.55));
  }.profile-owner-actions .btn--privacy .lock-shackle{
    transform-origin: 50% 100%;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
  }.profile-owner-actions .btn--privacy:hover .lock-shackle{ transform: translateY(-1.5px) scale(1.02); }.profile-owner-actions .btn--privacy:hover .btn__icon svg{ stroke: var(--pink-300); }.profile-owner-actions .btn--privacy:hover span.label{ color: var(--pink-100); }.profile-owner-actions .menu-wrap{ position:relative; }.profile-owner-actions .btn--more{
    width:44px;
    padding:0;
    justify-content:center;
  }.profile-owner-actions .dots{
    position:relative;
    width:20px;
    height:16px;
  }.profile-owner-actions .dots span{
    position:absolute;
    top:50%;
    left:50%;
    width:4px;
    height:4px;
    margin:-2px;
    border-radius:50%;
    background: var(--text-dim);
    transform: translateX(-5px);
    transition: transform .32s cubic-bezier(.4,0,.2,1),
                background-color .3s ease,
                opacity .32s ease;
  }.profile-owner-actions .dots span:nth-child(2){ transform: translateX(0); }.profile-owner-actions .dots span:nth-child(3){ transform: translateX(5px); }.profile-owner-actions .btn--more:not([aria-expanded="true"]):hover .dots span{
    background: var(--pink-300);
  }.profile-owner-actions .btn--more:not([aria-expanded="true"]):hover .dots span:nth-child(1){
    transform: translateX(-5px) scale(1.35);
    transition-delay: 0s;
  }.profile-owner-actions .btn--more:not([aria-expanded="true"]):hover .dots span:nth-child(2){
    transform: translateX(0) scale(1.35);
    transition-delay: .05s;
  }.profile-owner-actions .btn--more:not([aria-expanded="true"]):hover .dots span:nth-child(3){
    transform: translateX(5px) scale(1.35);
    transition-delay: .1s;
  }.profile-owner-actions .btn--more[aria-expanded="true"] .dots span{ background: var(--pink-300); }.profile-owner-actions .btn--more[aria-expanded="true"] .dots span:nth-child(1){
    transform: translateX(0) rotate(45deg) scaleX(2.6);
  }.profile-owner-actions .btn--more[aria-expanded="true"] .dots span:nth-child(2){
    transform: translateX(0) scale(0);
    opacity:0;
  }.profile-owner-actions .btn--more[aria-expanded="true"] .dots span:nth-child(3){
    transform: translateX(0) rotate(-45deg) scaleX(2.6);
  }.profile-owner-actions .dropdown{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    min-width:210px;
    padding:6px;
    background: var(--surface-2);
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
    opacity:0;
    transform: translateY(-8px) scale(0.94);
    transform-origin: top right;
    pointer-events:none;
    transition: opacity .2s ease, transform .38s cubic-bezier(.34,1.56,.64,1);
    z-index: 20;
  }.profile-owner-actions .graph-menu[open] .dropdown{
    opacity:1;
    transform: translateY(0) scale(1);
    pointer-events:auto;
  }.profile-owner-actions .dropdown__item{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    padding:10px 12px;
    border-radius:9px;
    border:none;
    background:transparent;
    color: var(--text);
    font-size:13.5px;
    font-weight:500;
    text-align:left;
    cursor:pointer;
    opacity:0;
    transform: translateY(-4px);
    transition: background-color .2s ease, color .2s ease, padding-left .2s ease,
                opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1);
  }.profile-owner-actions .graph-menu[open] .dropdown .dropdown__item:nth-of-type(1){ transition-delay: .06s, .06s, .06s, .08s, .08s; }.profile-owner-actions .graph-menu[open] .dropdown .dropdown__item:nth-of-type(2){ transition-delay: .06s, .06s, .06s, .15s, .15s; }.profile-owner-actions .graph-menu[open] .dropdown .dropdown__item{ opacity:1; transform: translateY(0); }.profile-owner-actions .dropdown__item .btn__icon svg{ stroke: var(--text-dim); transition: stroke .2s ease, transform .3s cubic-bezier(.4,0,.2,1); }.profile-owner-actions .dropdown__item:hover{
    background: rgba(239,77,157,0.10);
    color: var(--pink-100);
    padding-left:16px;
  }.profile-owner-actions .dropdown__item:hover .btn__icon svg{ stroke: var(--pink-300); }.profile-owner-actions .dropdown__item.danger:hover{ background: rgba(255,92,122,0.10); color: var(--danger); }.profile-owner-actions .dropdown__item.danger:hover .btn__icon svg{ stroke: var(--danger); transform: translateX(2px); }.profile-owner-actions .divider{
    height:1px;
    margin:5px 4px;
    background: var(--border);
  }

.profile-owner-actions{
    --bg: #0a0a0c;
    --surface: #141417;
    --surface-2: #1c1c20;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --text: #f2f2f4;
    --text-dim: #9a9aa3;

    --pink-100: #ffd9ec;
    --pink-300: #ff9bcf;
    --pink-500: #ef4d9d;
    --pink-600: #e02d86;
    --pink-700: #b81c6b;

    --danger: #ff5c7a;
  }

.profile-heading .profile-owner-actions{gap:12px;flex-wrap:wrap}
.profile-heading .profile-owner-actions .btn{min-height:44px;height:44px;padding:0 18px;border-radius:12px;font-size:14px;text-decoration:none;box-sizing:border-box}
.profile-owner-actions #editProfile{background:#1c1c20}
.profile-owner-actions #editProfile:hover{background:#202024}
.profile-heading .profile-owner-actions .btn--more{width:44px;padding:0}
.profile-owner-actions .dropdown{position:fixed;min-width:210px}
.profile-owner-actions .graph-menu-items .dropdown__item{display:flex;font-size:13.5px}
.profile-owner-actions .btn:focus-visible{outline:2px solid #ff9bcf;outline-offset:3px}
@starting-style{.profile-owner-actions .graph-menu[open] .dropdown{opacity:0;transform:translateY(-8px) scale(.94)}}
@media(max-width:650px){.profile-heading .profile-owner-actions{gap:8px}.profile-heading .profile-owner-actions .btn{padding:0 12px;font-size:12px}.profile-heading .profile-owner-actions .btn--more{padding:0}.profile-owner-actions #editProfile{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.profile-owner-actions *,.profile-owner-actions *::before{transition:none!important;animation:none!important}}

/* Unified settings shell; imageCrop remains the original independent dialog. */
.profile-owner-actions .btn--settings .gear{transform-origin:center;animation:settings-gear-spin 2.6s linear infinite;animation-play-state:paused}
.profile-owner-actions .btn--settings:hover .gear{animation-play-state:running}
@keyframes settings-gear-spin{to{transform:rotate(360deg)}}
.social-main #profileSettings.settings-unified{width:min(880px,calc(100vw - 28px));height:min(680px,88dvh);max-height:88dvh;padding:0;border-radius:20px;background:#141417;border:1px solid #ffffff29;overflow:hidden;box-shadow:0 40px 90px -30px #000b;animation:none}
.social-main #profileSettings.settings-unified[open]{display:flex}
#profileSettings.settings-unified .settings-sidebar{width:210px;flex-shrink:0;background:#101013;border-right:1px solid #ffffff14;display:flex;flex-direction:column;padding:22px 12px}
#profileSettings .settings-brand{padding:0 10px;margin-bottom:20px;font-size:16px}
#profileSettings .settings-nav{position:relative;display:flex;flex-direction:column;gap:3px}
#profileSettings .settings-indicator{position:absolute;left:0;width:100%;border-radius:11px;background:linear-gradient(120deg,#ef4d9d29,#ff9bcf0f);border:1px solid #ef4d9d59;box-shadow:0 0 16px -4px #ef4d9d80;pointer-events:none;transition:top .32s cubic-bezier(.65,0,.35,1),height .32s}
#profileSettings .settings-tab{position:relative;display:flex;align-items:center;gap:11px;padding:12px;background:transparent;text-align:left;color:#9a9aa3;font-size:13.5px;border-radius:11px;white-space:nowrap}
#profileSettings .settings-tab.is-active{color:#ffd9ec}
#profileSettings .settings-tab svg{width:16px;height:16px;flex:none;transition:transform .2s,filter .2s}
#profileSettings .settings-tab:hover svg{transform:scale(1.14);filter:drop-shadow(0 0 6px #ef4d9d88)}
#profileSettings .settings-content{flex:1;min-width:0;display:flex;flex-direction:column}
#profileSettings.settings-unified .social-dialog-header{padding:20px 26px;margin:0;border-bottom:1px solid #ffffff14;align-items:center;flex:none}
#profileSettings.settings-unified .social-dialog-header h2{font-size:17px}
#profileSettings .settings-scroll{flex:1;min-height:0;overflow:auto;padding:24px 26px;scrollbar-width:thin;scrollbar-color:#ef4d9d55 transparent}
#profileSettings.settings-unified #profileFields,#profileSettings.settings-unified #privacyFields,#profileSettings.settings-unified #settingsSecurity{padding:20px;background:#1c1c20;border:1px solid #ffffff14;border-radius:16px;margin:0;min-width:0;animation:settings-panel-in .25s ease both}
#profileSettings.settings-unified .privacy-title{display:none}
#profileSettings.settings-unified #profileForm>.social-actions{margin-top:18px}
#profileSettings.settings-unified #saveProfile{min-width:0;width:auto;background:linear-gradient(135deg,#ef4d9d,#b81c6b);box-shadow:none;border-radius:10px;padding:12px 20px;color:#fff}
#profileSettings .settings-logout{margin-top:auto;background:transparent;color:#ff809a;text-align:left;font-size:12px}
#profileSettings.settings-unified #settingsSecurity h3{margin:0 0 12px;font-size:16px}
#profileSettings.settings-unified #settingsSecurity button{background:#ff5c7a14;color:#ff8ba0;border:1px solid #ff5c7a33}
#profileSettings.settings-unified #settingsSecurity.security-overview{padding:0;background:transparent;border:0;animation:none}
#settingsSecurity .security-intro{margin:0 0 20px;color:#a6a2ae;font-size:13px;line-height:1.6}
#settingsSecurity .security-shortcuts{display:grid;gap:10px}
#settingsSecurity .security-shortcut{display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid #ffffff14;border-radius:14px;background:#1c1c20;color:#f5eff1;text-decoration:none;min-width:0}
#settingsSecurity .security-shortcut:hover{border-color:#ef75b650;background:#222027}
#settingsSecurity .security-shortcut:focus-visible,#settingsSecurity .security-center-link:focus-visible{outline:2px solid #f185bc;outline-offset:3px}
#settingsSecurity .security-shortcut-icon{width:20px;height:20px;flex:0 0 20px;color:#ed96c2}
#settingsSecurity .security-shortcut>span:not(.security-shortcut-arrow){min-width:0}
#settingsSecurity .security-shortcut strong{display:block;font-size:14px;line-height:1.5}
#settingsSecurity .security-shortcut small{display:block;margin-top:3px;color:#a6a2ae;font-size:12px;line-height:1.5}
#settingsSecurity .security-shortcut-arrow{margin-left:auto;color:#a6a2ae;font-size:23px}
#settingsSecurity .security-overview-footer{margin:18px 0 24px}
#settingsSecurity .security-center-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:10px;border:1px solid #ee79b747;background:#ef4d9d18;color:#ffb4d8;text-decoration:none;font-size:13px;font-weight:600}
#settingsSecurity .security-session-action{padding-top:20px;border-top:1px solid #ffffff14}
#settingsSecurity .security-session-action>strong{font-size:13px;color:#e2dce5}
#settingsSecurity .security-session-action p{margin:7px 0 14px;font-size:12px;line-height:1.6}
#settingsSecurity .security-session-action button{min-height:42px;max-width:100%;white-space:normal;text-align:left}
@media(max-width:650px){#settingsSecurity .security-shortcut{padding:14px 12px;gap:10px}#settingsSecurity .security-center-link{width:100%;box-sizing:border-box}}
@keyframes settings-panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:650px){
.social-main #profileSettings.settings-unified{width:calc(100vw - 16px);height:92dvh;max-height:92dvh;border-radius:16px;flex-direction:column}
#profileSettings.settings-unified .settings-sidebar{width:100%;padding:12px 10px 8px;border-right:0;border-bottom:1px solid #ffffff14;flex:none}
#profileSettings .settings-brand{font-size:14px;margin:0 0 10px;padding:0 8px}
#profileSettings .settings-nav{flex-direction:row;gap:2px}
#profileSettings .settings-tab{flex:1;justify-content:center;padding:10px 4px;font-size:11px;gap:5px}
#profileSettings .settings-indicator{display:none}
#profileSettings .settings-tab.is-active{background:linear-gradient(120deg,#ef4d9d29,#ff9bcf0f);box-shadow:inset 0 0 0 1px #ef4d9d59}
#profileSettings .settings-logout{display:none}
#profileSettings .settings-content{min-height:0}
#profileSettings.settings-unified .social-dialog-header{padding:12px 16px}
#profileSettings .settings-scroll{padding:14px 12px}
#profileSettings.settings-unified #profileFields,#profileSettings.settings-unified #privacyFields,#profileSettings.settings-unified #settingsSecurity{padding:14px 12px}
#profileSettings.settings-unified .privacy-row{flex-wrap:wrap}
#profileSettings.settings-unified .privacy-select{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){#profileSettings.settings-unified *, .profile-owner-actions .btn--settings .gear{animation:none!important;transition:none!important}}

#profileSettings.settings-unified #closeSettings{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;flex:0 0 32px}
#profileSettings.settings-unified #closeSettings svg{width:16px;height:16px}
@media(max-width:650px){#profileSettings.settings-unified{max-width:calc(100vw - 16px)}#profileSettings .settings-tab{min-width:0;flex-basis:0;flex-direction:column;font-size:10.5px;gap:6px}}

/* Exact supplied settings button, isolated from generic profile button styles. */
  .profile-owner-actions #editProfile.btn--settings{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:9px;
    height:44px;
    padding:0 18px;
    border-radius:12px;
    border:1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    overflow:hidden;
    isolation:isolate;
    transition: border-color .35s ease, background-color .35s ease, transform .25s ease;
  }
  .profile-owner-actions #editProfile.btn--settings::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.06) 40%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    z-index:0;
  }
  .profile-owner-actions #editProfile.btn--settings:hover::before{ transform: translateX(120%); }
  .profile-owner-actions #editProfile.btn--settings:hover{ border-color: var(--border-hover); background:#202024; }
  .profile-owner-actions #editProfile.btn--settings:active{ transform: scale(0.97); }
  .profile-owner-actions #editProfile.btn--settings > *{ position:relative; z-index:1; }

  .profile-owner-actions #editProfile .btn__icon{
    display:flex; align-items:center; justify-content:center;
    width:18px; height:18px; flex-shrink:0;
  }
  .profile-owner-actions #editProfile .btn__icon svg{ width:100%; height:100%; display:block; stroke: var(--text-dim); transition: stroke .3s ease; }
  .profile-owner-actions #editProfile.btn--settings:hover .btn__icon svg{ stroke: var(--pink-300); }

  .profile-owner-actions #editProfile .gear{
    transform-origin: center;
    animation: settings-gear-spin 2.6s linear infinite;
    animation-play-state: paused;
  }
  .profile-owner-actions #editProfile.btn--settings:hover .gear{ animation-play-state: running; }
  @keyframes settings-gear-spin{ to{ transform: rotate(360deg); } }

  .profile-owner-actions #editProfile.btn--settings:hover span.label{ color: var(--pink-100); }

.profile-owner-actions #editProfile.btn--settings{--surface-2:#1c1c20;--border:rgba(255,255,255,.08);--border-hover:rgba(255,255,255,.16);--text:#f2f2f4;--text-dim:#c9c9d1;--pink-100:#ffd9ec;--pink-300:#ff9bcf;letter-spacing:normal;filter:none;flex-basis:auto}
@media(prefers-reduced-motion:reduce){.profile-owner-actions #editProfile.btn--settings,.profile-owner-actions #editProfile.btn--settings *,.profile-owner-actions #editProfile.btn--settings::before{animation:none!important;transition:none!important}}

/* Native modal blocks input; also stop document scrolling and scroll chaining. */
html:has(#profileSettings[open]),body:has(#profileSettings[open]){overflow:hidden;overscroll-behavior:none}
html:has(#profileSettings){scrollbar-gutter:stable}
#profileSettings .settings-scroll,#profileSettings textarea{overscroll-behavior:contain}
#profileSettings,#imageCrop{overscroll-behavior:contain}
/* Quiet focus styling: preserve keyboard focus without an added ring/glow. */
.social-main :focus,.social-main :focus-visible{outline:none!important;}
.social-main #profileSettings input:focus,.social-main #profileSettings textarea:focus{}
.social-main #emailVerification{max-width:420px;border-radius:18px;background:#141417;padding:28px 26px}
#emailVerification h1{font-size:21px;font-weight:700;letter-spacing:normal;line-height:1.4;margin:0 0 22px}
#emailVerification p{font-size:13px;color:#a6a2ae;line-height:1.6}
#emailVerification strong{color:#f2f2f4}
#emailVerification #verificationConfirm{margin-top:22px;animation:verification-step .3s ease}
#emailVerification #verificationConfirm>label{margin-bottom:10px}
#emailVerification .verification-otp{position:relative;margin-bottom:18px}
#emailVerification .verification-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#emailVerification .verification-cells span{display:grid;place-items:center;aspect-ratio:1;border:1.5px solid #ffffff14;border-radius:11px;background:#1c1c20;color:#f2f2f4;font-size:22px;font-weight:800;transition:background-color .25s,border-color .25s}
#emailVerification .verification-cells .is-filled{border-color:#ef4d9d66;background:#ef4d9d0f}
#emailVerification .verification-otp input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:text;font-size:20px;padding:0;margin:0;border:0}
#emailVerification .is-error .verification-cells span{border-color:#ff5c7a;background:#ff5c7a14}
#emailVerification .is-success .verification-cells span{border-color:#3ddc84;background:#3ddc841f;color:#8ff2b8}
#emailVerification .is-checking .verification-cells span{animation:verification-scan .5s ease-in-out;animation-delay:calc(var(--otp-index,0)*70ms)}
#emailVerification .verification-cells span:nth-child(2){--otp-index:1}#emailVerification .verification-cells span:nth-child(3){--otp-index:2}#emailVerification .verification-cells span:nth-child(4){--otp-index:3}#emailVerification .verification-cells span:nth-child(5){--otp-index:4}#emailVerification .verification-cells span:nth-child(6){--otp-index:5}
#emailVerification form>button{position:relative;min-height:44px;border-radius:999px;background:linear-gradient(135deg,#ef4d9d,#b81c6b)}
#emailVerification .verification-spinner{display:none;position:absolute;left:calc(50% - 9px);top:calc(50% - 9px);width:18px;height:18px;border:2px solid #ffffff50;border-top-color:#fff;border-radius:50%}
#emailVerification .is-checking .verification-spinner{display:block;animation:verification-spin .7s linear infinite}
#emailVerification .is-checking .verification-button-label{visibility:hidden}
#emailVerification #verificationResend:disabled{background:#1c1c20;color:#9a9aa3;opacity:1}
#emailVerification #verificationSuccess{position:relative;width:64px;height:64px;margin:24px auto 18px;border-radius:50%;background:#3ddc8420;display:grid;place-items:center;animation:verification-badge .5s cubic-bezier(.34,1.56,.64,1)}
#verificationSuccess svg{width:28px;height:28px;stroke:#3ddc84;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#verificationSuccess path{stroke-dasharray:24;stroke-dashoffset:24;animation:verification-check .45s ease .3s forwards}
#verificationSuccess .verification-spark{position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:#8ff2b8;animation:verification-spark .7s ease-out .25s both}
@keyframes verification-spark{0%{opacity:0;transform:translate(0,0) scale(.5)}30%{opacity:1}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(1)}}
#emailVerification>a{display:inline-block;margin-top:12px;font-size:13px;color:#ff9bcf}
@keyframes verification-step{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes verification-scan{50%{border-color:#ff9bcf;background:#ef4d9d22;box-shadow:0 0 10px #ef4d9d66}}
@keyframes verification-spin{to{transform:rotate(360deg)}}
@keyframes verification-badge{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}
@keyframes verification-check{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
@media(max-width:450px){.social-main #emailVerification{padding:22px 18px}#emailVerification .verification-cells{gap:6px}#emailVerification .verification-cells span{font-size:20px;border-radius:9px}}
@media(prefers-reduced-motion:reduce){#emailVerification *,#emailVerification *::before,#emailVerification *::after{animation:none!important;transition:none!important}#verificationSuccess path{stroke-dashoffset:0}#verificationSuccess .verification-spark{display:none}}

/* Streak visibility belongs to privacy; save state must stay legible. */
#profileSettings .ds-privacy{margin-top:28px;padding-top:24px;border-top:1px solid #ffffff10}
#profileSettings .ds-privacy-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
#profileSettings .ds-privacy-copy{min-width:0;flex:1}
#profileSettings .ds-privacy-copy>.privacy-row-label{display:block;color:#f2f2f4;font-weight:600}
#profileSettings .ds-privacy-copy>.privacy-row-sub{margin:6px 0 0;max-width:440px;font-size:12px;line-height:1.6;color:#a9a3ae}
#profileSettings .ds-visibility-switch{flex:none;position:relative;width:46px;height:26px;min-height:0;padding:3px;border:1px solid #ffffff25;border-radius:99px;background:#343039;box-shadow:none;transition:background .18s ease,border-color .18s ease;cursor:pointer}
#profileSettings .ds-visibility-switch>span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;transform:translateX(0);transition:transform .18s ease;box-shadow:0 1px 3px #0005}
#profileSettings .ds-visibility-switch[aria-checked=true]{background:#d22b7c;border-color:#ee5ba0}
#profileSettings .ds-visibility-switch[aria-checked=true]>span{transform:translateX(20px)}
#profileSettings .ds-visibility-switch:focus-visible{outline:2px solid #ff9bcf;outline-offset:4px}
#profileSettings .ds-visibility-switch:disabled{opacity:.65;cursor:wait}
#profileSettings .ds-privacy-status{min-height:36px;margin:10px 0 0;color:#b9aeb8;font-size:12px;line-height:1.5}
/* Keep the original save button; only improve its label readability. */
#profileSettings.settings-unified #saveProfile>span{color:#fff;font-size:14px;font-weight:600;line-height:1.3;opacity:1}
@media(prefers-reduced-motion:reduce){#profileSettings .ds-visibility-switch,#profileSettings .ds-visibility-switch>span{transition:none}}

/* Identical save action in both settings tabs, stable through pending/error. */
#profileSettings.settings-unified #saveProfile{width:240px;max-width:100%;min-width:0;min-height:46px;flex-shrink:0;white-space:nowrap}
#profileSettings.settings-unified #saveProfile .privacy-save-icon{display:block;width:16px;height:16px;flex:0 0 16px;color:inherit}
#profileSettings.settings-unified #saveProfile>span{font:inherit;font-weight:600;color:#fff;line-height:20px}
#profileSettings.settings-unified #saveProfile:active{transform:none}
#profileSettings.settings-unified #saveProfile.saving{opacity:1;color:#fff;cursor:wait}
@media(max-width:480px){#profileSettings.settings-unified #saveProfile{width:100%}}
