/* Visual profile studio. Public profile styles remain in profile-custom.css. */
.profile-visual-studio{--gallery-accent:#aaa;--studio-rgb:170,170,170}
.profile-visual-studio [hidden]{display:none!important}
.profile-visual-studio svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.studio-fields{border:0;padding:0;margin:0;min-width:0}
.studio-sr-only,.studio-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
.profile-visual-studio .studio-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px}
.studio-section-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:5px;border:1px solid var(--feature-line);border-radius:15px;margin:0 0 24px;background:#ffffff03}
.studio-section-nav [role="tab"]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:70px;padding:10px 4px;border:1px solid transparent;border-radius:10px;background:none;color:var(--feature-muted);font:inherit;font-size:14px;cursor:pointer}
.studio-section-nav [role="tab"][aria-selected="true"]{background:#f3f3f3;color:#111;border-color:#f3f3f3}
.studio-section-nav [role="tab"]:hover:not([aria-selected="true"]){background:#ffffff09;color:var(--feature-ink)}
.studio-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.profile-visual-studio .studio-gallery-heading h3{font-size:18px;line-height:1.5;margin:0;font-weight:550}
.studio-gallery-heading>span{font-size:13px;color:var(--feature-muted)}
.profile-visual-studio .studio-presets{max-height:none;overflow:visible;scrollbar-gutter:auto;padding:0;margin:0;gap:12px}
.profile-visual-studio .studio-preset{position:relative;padding:8px;border-radius:13px;box-shadow:none;transition:border-color .18s,background .18s}
.profile-visual-studio .studio-preset-art{height:85px;border-radius:8px}
.profile-visual-studio .studio-preset strong{font-size:14px;line-height:1.4;margin-top:10px;padding:0 3px 5px}
.profile-visual-studio .studio-preset small{display:none}
.profile-visual-studio .studio-preset[aria-pressed="true"]{border-color:#eee;background:#ffffff06;box-shadow:none}
.studio-picked{position:absolute;right:7px;top:7px;border:1px solid #ffffff65;border-radius:50%;width:21px;height:21px;display:none;place-items:center;background:#f2f2f2;color:#111;z-index:5;pointer-events:none}
.studio-picked svg{width:13px;height:13px;stroke-width:2.2}
[aria-pressed="true"]>.studio-picked{display:grid}
.studio-visual-grid{display:grid;gap:12px}
.studio-visual-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;border:1px solid var(--feature-line);border-radius:13px;background:#ffffff02;color:var(--feature-ink);padding:7px;font:inherit;cursor:pointer;transition:border-color .18s,background .18s}
.studio-visual-choice:hover{border-color:#888;background:#ffffff05}
.studio-visual-choice[aria-pressed="true"]{border-color:#eee;background:#ffffff08}
.studio-choice-label{display:block;font-size:14px;line-height:1.4;padding:7px 2px 5px;text-align:center;overflow-wrap:anywhere}
.studio-frame-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.profile-visual-studio .studio-frame-sample.hero{display:grid!important;place-items:center!important;width:100%!important;min-width:0;min-height:96px!important;height:96px!important;padding:17px 0!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;position:relative!important;overflow:visible!important;isolation:isolate}
.profile-visual-studio .studio-frame-sample.hero::before{display:none!important}
.studio-frame-sample [data-profile-avatar]{display:grid!important;place-items:center;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin:0!important;border:0!important;border-radius:50%;background:#3d3f44;color:#ddd;font-size:24px;flex:none!important}
.studio-frame-sample [data-profile-avatar] :is(img,picture){display:block;width:100%;height:100%;object-fit:cover}
.studio-detail-tools{border-top:1px solid var(--feature-line);margin-top:24px;padding-top:4px}
.profile-visual-studio .studio-color-row{margin:18px 0;gap:12px}
.profile-visual-studio .studio-color-row label{font-size:14px}
.profile-visual-studio .studio-color-row input[type="color"]{width:44px;height:36px;border-radius:9px;cursor:pointer}
.profile-visual-studio .taste-create-action{font-size:14px;white-space:nowrap}
.studio-intensity{display:block;margin:0 0 12px;font-size:14px}
.studio-intensity>span{display:flex;justify-content:space-between;margin-bottom:10px;color:var(--feature-muted)}
.studio-intensity output{font-size:13px;font-variant-numeric:tabular-nums}
.studio-intensity input{width:100%;accent-color:#ddd;cursor:pointer}
.studio-avatar-upload{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--feature-line);border-radius:13px;margin:0 0 24px}
.studio-avatar-upload>[data-upload-avatar]{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#34363b}
.studio-avatar-upload [data-upload-avatar] :is(img,picture){width:100%;height:100%;object-fit:cover}
.studio-avatar-upload>div{flex:1;min-width:0}.studio-avatar-upload strong{font-size:14px;display:block;font-weight:500}.studio-avatar-upload>div>span{font-size:13px;color:var(--feature-muted)}
.profile-visual-studio .social-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;min-height:40px;padding:10px 14px}
.studio-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-art-sample{display:block;position:relative;height:94px;border-radius:8px;overflow:hidden;background-color:#15171b}
.studio-cover-sample{background-image:var(--cover-art);background-size:cover;background-position:center}
.studio-background-sample{background-color:#111316;background-image:var(--studio-backdrop);background-size:var(--studio-backdrop-size,100% 100%)}
.studio-background-sample::after{content:'';position:absolute;inset:0;border:1px solid #ffffff08;border-radius:inherit}
.studio-background-sample .studio-mini-avatar{left:17px;top:34px;width:22px;height:22px;z-index:1}
.studio-background-sample .studio-mini-lines{left:49px;right:14px;top:38px;z-index:1}
.studio-background-sample[data-profile-background="stars"]{--studio-backdrop-size:45px 60px,80px 65px,100% 100%}
.studio-background-sample:is([data-profile-background="snow"],[data-profile-background="embers"]){--studio-backdrop-size:40px 45px,65px 70px,100% 100%}
.studio-background-sample[data-profile-background="grid"]{--studio-backdrop-size:18px 18px,18px 18px,100% 100%}
.studio-background-sample[data-profile-background="topography"]{background-size:200% 160%}
.studio-art-sample[data-art="image"],.studio-art-sample[data-art="none"]{display:grid;place-items:center;border:1px dashed #ffffff20;background-image:none;color:#777}
.studio-art-sample.has-art{background-size:cover;background-position:center;color:#eee}.studio-art-sample.has-art svg{background:#151515b3;border-radius:7px;width:30px;height:30px;padding:6px}
.studio-no-art{font-size:23px}
.studio-upload-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:20px}
.studio-palette{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}
.studio-palette>button{position:relative;display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:auto;align-self:start;padding:0;line-height:0;border:1px solid transparent;border-radius:9999px;background:none;cursor:pointer}
.studio-palette>button::before{content:"";display:block;padding-top:100%}
.studio-palette>button>span:first-child{position:absolute;display:block;inset:5px;width:auto;height:auto;border-radius:9999px;background:var(--swatch)}
.studio-palette>button[aria-pressed="true"]{border-color:#eee}
.studio-palette .studio-picked{inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#1119;border-color:transparent;color:#fff}
.studio-surface-grid,.studio-font-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 22px}
.studio-surface-sample{display:block;height:82px;position:relative;background:#141516;border:1px solid #ffffff15;border-radius:8px;color:#aaa}
.studio-surface-sample[data-surface="graphite"]{background:linear-gradient(130deg,#30343a,#15171c);color:#ced0d4}
.studio-surface-sample[data-surface="paper"]{background:#e9e5de;color:#626065}
.studio-mini-avatar{position:absolute;left:14px;top:27px;width:25px;height:25px;border-radius:50%;background:currentColor;opacity:.55}
.studio-mini-lines{position:absolute;left:49px;right:13px;top:33px;display:grid;gap:7px}.studio-mini-lines>i{height:3px;border-radius:2px;background:currentColor;opacity:.65}.studio-mini-lines>i:last-child{width:65%;opacity:.3}
.studio-name-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:26px}
.profile-visual-studio .studio-name-sample.hero{display:grid!important;place-items:center!important;min-height:88px!important;padding:15px 6px!important;margin:0!important;border:0!important;border-radius:8px!important;background:#17191c!important;box-shadow:none!important;--profile-accent:var(--gallery-accent)}
.profile-visual-studio .studio-name-sample .name{font-size:19px!important;line-height:1.4!important;margin:0!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-font-sample{display:grid;place-items:center;height:82px;border-radius:8px;background:#17191c}.studio-font-sample .name{font-size:32px;margin:0}
.profile-visual-studio .studio-preview-column{top:0}
.profile-visual-studio .studio-section-heading{margin:0 0 18px;min-height:28px}
.profile-visual-studio .studio-section-heading h3{font-size:18px;margin:0;font-weight:550}
.studio-reset{display:inline-flex;align-items:center;gap:7px}.studio-reset svg{width:16px;height:16px}
.profile-visual-studio .studio-preview-page{padding:24px;min-height:375px;display:flex;flex-direction:column;justify-content:center;gap:18px;border-radius:18px}
.profile-visual-studio .studio-profile-preview.hero{padding:27px!important;min-height:205px;border-radius:14px;box-shadow:0 8px 25px #0002}
.profile-visual-studio .studio-profile-preview.hero.has-plus-cover{padding-top:145px!important}
.profile-visual-studio .studio-profile-preview.hero.has-plus-cover::before,.profile-visual-studio .studio-profile-preview.hero.has-plus-cover::after{height:116px}
.profile-visual-studio .studio-profile-preview{--preview-avatar-size:68px}
.profile-visual-studio .studio-profile-preview :is(#avatar,[data-profile-avatar]){width:var(--preview-avatar-size)!important;height:var(--preview-avatar-size)!important;min-width:var(--preview-avatar-size)!important;max-width:var(--preview-avatar-size)!important;min-height:var(--preview-avatar-size)!important;max-height:var(--preview-avatar-size)!important;flex:0 0 var(--preview-avatar-size)!important}
.profile-visual-studio .studio-profile-preview .name{font-size:25px!important}
.profile-visual-studio .studio-preview-identity{gap:20px;min-width:0}.profile-visual-studio .studio-preview-identity>div:last-child{min-width:0}
.profile-visual-studio .studio-preview-identity .feature-muted{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.profile-visual-studio .studio-preview-stats{font-size:13px;margin-top:30px;gap:11px}
.profile-visual-studio .studio-preview-badges{margin-top:18px;gap:8px}
.studio-preview-content{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.studio-preview-content>i{display:block;border:1px solid #ffffff12;border-radius:9px;height:60px;background:linear-gradient(135deg,rgba(var(--studio-rgb),.08),#15171bd9)}
.studio-motion-toggle{display:flex;align-items:center;justify-content:space-between;position:relative;padding:17px 0 12px;font-size:14px;cursor:pointer}.studio-motion-toggle>span{display:flex;align-items:center;gap:8px}.studio-motion-toggle svg{width:16px;height:16px}
.studio-motion-toggle input{position:absolute;right:0;width:42px;height:24px;opacity:0;cursor:pointer}
.studio-motion-toggle>i{width:40px;height:23px;border-radius:16px;border:1px solid #666;background:#25262a;position:relative;pointer-events:none}.studio-motion-toggle>i::after{content:'';position:absolute;width:15px;height:15px;border-radius:50%;background:#999;top:3px;left:3px;transition:transform .18s}
.studio-motion-toggle input:checked+i{background:#eee;border-color:#eee}.studio-motion-toggle input:checked+i::after{transform:translateX(17px);background:#222}.studio-motion-toggle input:focus-visible+i{outline:2px solid #ddd;outline-offset:3px}
.studio-preview-caption{margin:0;text-align:center;color:var(--feature-muted);font-size:13px}
.profile-visual-studio .studio-save{gap:10px;margin-top:26px;bottom:-29px}.profile-visual-studio .studio-save>[data-state]{font-size:13px;line-height:1.5;margin-right:auto}
.profile-visual-studio .studio-crop h3{font-size:16px}.profile-visual-studio .studio-crop .feature-field{font-size:14px}
.profile-visual-studio button:focus-visible{outline:2px solid #eee;outline-offset:3px}
@media(max-width:1050px){.studio-section-nav{grid-template-columns:repeat(3,1fr)}.studio-section-nav [role="tab"]{min-height:48px;flex-direction:row;gap:7px}.studio-frame-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-avatar-upload{flex-wrap:wrap}.profile-visual-studio .studio-preview-identity{gap:14px}.profile-visual-studio .studio-profile-preview .name{font-size:21px!important}.studio-palette{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.profile-visual-studio .studio-layout{display:flex;flex-direction:column;gap:24px}.profile-visual-studio .studio-preview-column{position:static;order:-1;width:100%}.studio-controls{width:100%}.profile-visual-studio .studio-section-heading{margin-bottom:12px}.profile-visual-studio .studio-preview-page{padding:16px;min-height:0;border-radius:14px}.profile-visual-studio .studio-profile-preview.hero{padding:20px!important;min-height:160px}.profile-visual-studio .studio-profile-preview.hero.has-plus-cover{padding-top:103px!important}.profile-visual-studio .studio-profile-preview.hero.has-plus-cover::before,.profile-visual-studio .studio-profile-preview.hero.has-plus-cover::after{height:80px}.profile-visual-studio .studio-profile-preview{--preview-avatar-size:52px}.profile-visual-studio .studio-profile-preview .name{font-size:20px!important}.profile-visual-studio .studio-preview-stats{font-size:12px;margin-top:20px;gap:9px}.profile-visual-studio .studio-preview-badges,.studio-preview-content,.studio-preview-caption{display:none}.studio-motion-toggle{padding:14px 0 0}.studio-section-nav{margin-bottom:22px}.studio-section-nav [role="tab"]{min-height:46px}.studio-section-nav [role="tab"] svg{width:17px;height:17px}.profile-visual-studio .studio-presets{gap:9px}.profile-visual-studio .studio-preset-art{height:70px}.profile-visual-studio .studio-preset strong{font-size:14px}.studio-frame-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-art-sample{height:100px}.studio-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.studio-surface-grid,.studio-font-grid{gap:8px}.studio-font-grid .studio-choice-label{font-size:13px}.profile-visual-studio .studio-save{flex-wrap:wrap;bottom:-20px;padding-top:14px!important}.profile-visual-studio .studio-save>[data-state]{width:100%;font-size:12px}.profile-visual-studio .studio-save>[data-save]{flex:1}.studio-avatar-upload{padding:12px;gap:10px}.studio-avatar-upload>[data-upload-avatar]{width:40px;height:40px;flex-basis:40px}.studio-avatar-upload [data-upload]{padding:9px 10px}.studio-name-sample .name{max-width:100%}}
@media(prefers-reduced-motion:reduce){.profile-visual-studio *{scroll-behavior:auto!important}.studio-visual-choice,.studio-preset,.studio-motion-toggle>i::after{transition:none!important}}
.profile-visual-studio .studio-frame-sample.hero{grid-template-columns:1fr!important;grid-template-rows:1fr!important;gap:0!important}
.profile-visual-studio .studio-frame-sample [data-profile-avatar]{grid-area:auto!important;place-self:center!important;font-size:24px!important;line-height:1!important}

/* Keep the whole live profile visible beside the options at laptop height. */
@media(min-width:761px){
 .profile-visual-studio .studio-preview-page{min-height:0;padding:20px}
 .profile-visual-studio .studio-profile-preview.hero{padding:22px!important}
 .profile-visual-studio .studio-profile-preview.hero.has-plus-cover{padding-top:115px!important}
 .profile-visual-studio .studio-profile-preview.hero.has-plus-cover::before,.profile-visual-studio .studio-profile-preview.hero.has-plus-cover::after{height:90px}
 .profile-visual-studio .studio-profile-preview{--preview-avatar-size:60px}
 .profile-visual-studio .studio-preview-stats{margin-top:20px}
 .profile-visual-studio .studio-preview-badges{margin-top:12px}
 .studio-motion-toggle{padding:14px 0 10px}
}
.studio-theme-work{border:1px solid #383a40;border-radius:13px;padding:20px;margin-top:16px;color:#eee;background:#17191c}
.studio-theme-work>span{font-size:12px;opacity:.65}.studio-theme-work h3{font-size:18px;line-height:1.4;margin:10px 0}.studio-theme-work p{font-size:13px;line-height:1.6;opacity:.7;margin:0 0 15px}.studio-theme-work>div{display:flex;gap:8px}.studio-theme-work i{width:45px;height:65px;background:linear-gradient(145deg,rgba(var(--profile-rgb),.65),rgba(var(--profile-rgb),.15));border:1px solid rgba(var(--profile-rgb),.2);border-radius:5px}.studio-theme-work i:nth-child(2){opacity:.8}.studio-theme-work i:nth-child(3){opacity:.6}
.studio-crop [data-upload-status]{font-size:14px;line-height:1.6;color:var(--feature-ink);margin:12px 0}
@media(max-width:760px){.studio-theme-work{display:none}}
