/* Compositions remain independent of the account and its chosen media. */
.profile-follow{transform-style:preserve-3d;will-change:transform}
body[data-reveal=fade] .card:not(.show),body[data-reveal=blur] .card:not(.show),body[data-reveal=zoom] .card:not(.show){translate:0 0}
body[data-reveal=zoom] .card:not(.show){scale:.9;transform:none}
body[data-reveal] .card.show{scale:1;transition:opacity var(--reveal-time) ease,translate var(--reveal-time) cubic-bezier(.16,1,.3,1),scale var(--reveal-time) ease,filter var(--reveal-time) ease}
body[data-composition=inline] .card{padding:18px 0;text-align:left}
body[data-composition=inline] .sp-head{align-items:center;gap:22px}
body[data-composition=inline] .sp-id .socials{justify-content:flex-start;margin-top:12px;gap:12px}
body[data-composition=inline] .sp-id .bio{margin-top:7px}
body[data-composition=inline] .name{align-items:center;gap:8px;flex-wrap:wrap}
body[data-composition=inline] .badges{gap:5px;font-size:13px}
body[data-composition=minimal] .card,body[data-composition=floating] .card{padding:8px 0;text-align:left}
body[data-composition=minimal] .avw{margin:0 0 22px}
body[data-composition=minimal] .socials{justify-content:center;margin:28px 0}
body[data-composition=floating] .socials{margin:45px 0 24px;justify-content:center}
body[data-composition=floating] .dc{background:none;border:0;padding-left:0;justify-content:flex-start}
.inline-profile-stats{position:absolute;top:8px;right:0;border:0!important;margin:0!important;padding:0!important;font-size:11px!important;min-height:0;gap:8px}
.inline-profile-stats .foot-r{display:none!important}
.inline-profile-stats.under-name{position:static;justify-content:flex-start;margin:5px 0 12px!important;opacity:.7}
body[data-composition=inline] .inline-profile-stats{top:auto;bottom:-14px;right:auto;left:0}
body[data-composition=sketch] .card{min-height:540px;padding:42px 24px 30px;border:0;border-radius:4px;background:rgba(0,0,0,.04);box-shadow:none;backdrop-filter:none}
body[data-composition=sketch] .avw{margin:0 0 12px}
body[data-composition=sketch] .name{font-size:16px;margin:0}
body[data-composition=sketch] .bio{font-size:12px;opacity:.6;margin-top:6px}
body[data-composition=sketch] .profile-widget-tabs{margin-top:22px}
body[data-composition=sketch] .profile-widget-tabs [role=tab]{font-size:12px;padding:7px 0}
body[data-composition=sketch] .profile-widget-tabs [role=tablist]{gap:14px;border:0}
body[data-composition=sketch] .profile-widget-tabs [aria-selected=true]{border-bottom-width:1px}
.sketch-border{animation:none;outline:0}
.sketch-stroke{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);pointer-events:none;overflow:visible;color:#222b;z-index:-1}
body[data-composition=sketch] .sketch-stroke{color:#222b}
.compact-profile-widgets .widget,.compact-profile-widgets .analog-widget{background:none;border:0;box-shadow:none;backdrop-filter:none;padding:10px 0;border-radius:0}
.compact-profile-widgets .player .wrow{min-height:0!important;gap:12px}
.compact-profile-widgets .player .wrow b{font-size:13px!important;padding-right:0!important}
.compact-profile-widgets .player .wrow small{font-size:10px!important;margin-top:3px!important}
body.compact-profile-widgets .wgrid .wrow .pl-art,body.compact-profile-widgets .wgrid .wrow .pl-art img,.compact-profile-widgets .pl-art{width:44px!important;height:44px!important;border-radius:8px!important}
.compact-profile-widgets .pl-ctrl button{width:25px;height:25px;font-size:10px}
.compact-profile-widgets .pl-bar{font-size:10px;gap:8px;margin-top:8px}.compact-profile-widgets .pl-bar input{min-width:0}
.compact-profile-widgets .player .grow{min-width:0;flex:1}
.compact-profile-widgets .analog-widget{justify-content:flex-start;gap:16px;order:-1}
.compact-profile-widgets .analog-widget small{white-space:pre-line;font:11px/1.65 monospace;opacity:.9}
.compact-profile-widgets .analog-face{width:66px;height:66px;background:#eee;box-shadow:none;color:#111}
.compact-profile-widgets .analog-face:before{background:repeating-conic-gradient(#333 0deg 1deg,transparent 1deg 30deg);inset:4px}
.compact-profile-widgets .analog-face i{background:#222}.compact-profile-widgets .analog-face .hour{height:16px}.compact-profile-widgets .analog-face .minute{height:24px}.compact-profile-widgets .analog-face .second{height:27px}.compact-profile-widgets .analog-face b{background:#222}
body[data-composition=minimal] #col{gap:8px}.compact-profile-widgets #col>.analog-widget{order:0}
body[data-composition=editorial] #hero{align-items:flex-start;justify-content:flex-start;padding-top:85px;height:100%;min-height:100%;position:sticky}
body[data-composition=editorial] #col{margin:0;width:100%}
body[data-composition=editorial] .card{text-align:left;padding:0}
body[data-composition=editorial] .avw{margin:0 0 26px}
body[data-composition=editorial] .socials{justify-content:flex-start}
body[data-composition=editorial] #secs{padding-top:85px;align-self:start}
body[data-composition=editorial] .sec{min-height:0;padding:0 0 28px;scroll-margin-top:30px}
body[data-composition=editorial] .sec-t{font-size:14px;text-transform:none;margin-bottom:10px}
body[data-composition=editorial] .widget{border:1px solid #ffffff15;background:#0007;box-shadow:0 0 18px #fff2;border-radius:22px;padding:14px}
body.pages:not(.profile-columns) .sec{min-height:var(--section-height,100vh)}
.record-ornaments{display:flex;align-items:center;justify-content:space-between;position:relative;margin:28px 0 10px;height:70px}
.profile-record{width:65px;height:65px;border-radius:50%;background:repeating-radial-gradient(circle,#141414 0px 2px,#222 3px,#111 4px);display:grid;place-items:center;animation:record-spin 12s linear infinite;box-shadow:0 0 16px #ffffff10}
.profile-record img{width:35%;height:35%;border-radius:50%;object-fit:cover}.record-charm{position:absolute;left:50%;transform:translateX(-50%);color:#ffb0d8;font-size:36px;text-shadow:0 0 8px #f9a}.record-charm:before{content:'∩∩';position:absolute;left:1px;top:-15px;font-size:18px}
@keyframes record-spin{to{rotate:360deg}}
.profile-fluid{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.profile-fluid.silk{z-index:0}
.fluid-fallback.silk{background:repeating-conic-gradient(from 35deg at 30% 60%,#000 0deg,#333 17deg,#050505 30deg,#000 70deg);filter:blur(14px)}
.profile-sculpture.chrome{font-size:clamp(120px,32vw,520px);opacity:1;text-shadow:none;animation:none;perspective:1100px;overflow:visible;z-index:1}
.chrome-spin{position:relative;width:min(60vw,830px);height:min(30vw,400px);transform-style:preserve-3d;animation:chrome-rotation 11s linear infinite}
.chrome-layer{position:absolute;inset:0;display:grid;place-items:center;backface-visibility:visible;font-family:Georgia,serif;font-weight:bold;-webkit-text-stroke:1px #ddd;color:#111}.chrome-layer svg{width:100%;height:100%;overflow:visible}.chrome-layer:not(:last-child) svg{filter:brightness(.4)}
@keyframes chrome-rotation{from{transform:rotateX(-8deg) rotateY(0deg) rotateZ(-4deg)}to{transform:rotateX(-8deg) rotateY(360deg) rotateZ(-4deg)}}
@media(max-width:800px){body[data-composition=editorial] #hero{position:relative;min-height:65vh;height:auto;padding:55px 0}body[data-composition=editorial] #secs{padding-top:0}.chrome-spin{width:85vw;height:42vw}body[data-composition=inline] .sp-head{gap:15px}body[data-composition=sketch] .card{min-height:480px}.profile-follow{transform:none!important}}
@media(prefers-reduced-motion:reduce){.chrome-spin,.profile-record{animation:none!important}.profile-follow{transform:none!important}}
body.calm .chrome-spin,body.calm .profile-record{animation:none!important}
body.template-thumbnail .card,body.template-thumbnail .widget{opacity:1!important;translate:0 0!important;scale:1!important;filter:none!important;transition:none!important}

.chrome-spin{animation-duration:var(--art-period,11s);scale:var(--art-scale,1)}
.profile-fluid{scale:var(--art-scale,1)}


/* One compositor-driven entrance, with independent identity steps. */
.enter{transition:opacity var(--open-time,800ms) cubic-bezier(.22,1,.36,1),visibility var(--open-time,800ms);will-change:opacity}
.enter.gone{pointer-events:none}
body.sequenced-reveal .card .avw,body.sequenced-reveal .card .name,body.sequenced-reveal .card .badges,body.sequenced-reveal .card .bio,body.sequenced-reveal .card .socials{opacity:0;translate:0 8px;transition:opacity var(--reveal-time,700ms) cubic-bezier(.22,1,.36,1),translate var(--reveal-time,700ms) cubic-bezier(.22,1,.36,1)}
body.sequenced-reveal .card.show .avw,body.sequenced-reveal .card.show .name,body.sequenced-reveal .card.show .badges,body.sequenced-reveal .card.show .bio,body.sequenced-reveal .card.show .socials{opacity:1;translate:0 0}
body.sequenced-reveal .card .name{transition-delay:var(--reveal-step)}
body.sequenced-reveal .card .badges{transition-delay:calc(var(--reveal-step)*1.5)}
body.sequenced-reveal .card .bio{transition-delay:calc(var(--reveal-step)*2)}
body.sequenced-reveal .card .socials{transition-delay:calc(var(--reveal-step)*3)}
.bg-media{transition:opacity .5s ease;will-change:transform}
body.template-thumbnail .card :is(.avw,.name,.badges,.bio,.socials){opacity:1!important;translate:0 0!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.enter,body.sequenced-reveal .card :is(.avw,.name,.badges,.bio,.socials){transition:none!important;translate:0 0!important}}
@media(max-width:600px){body[data-composition=inline] .avw{max-width:32vw}body[data-composition=inline] .avatar{max-width:32vw;max-height:32vw}body[data-composition=inline] .name{font-size:min(var(--ns,32px),8vw)}}

body.sized-badges .card .badges{font-size:var(--badge-size)}
body[data-composition=inline] .badges{font-size:var(--badge-size,13px)}

/* Shared editor-controlled spacing; offsets never push small screens sideways. */
body[data-composition] .sp-head{gap:var(--identityGap,22px)}
body[data-composition] .card .socials{margin-top:var(--socialTop,18px);gap:var(--sg)}
body[data-composition=inline] .card.split h1.name{font-size:var(--ns)}
.profile-fluid,.profile-sculpture.chrome{opacity:var(--art-opacity,1);filter:blur(var(--artSoftness,0px))}
@media(min-width:801px){body:not(.profile-columns) #col{position:relative;left:var(--profileOffsetX,0px);top:var(--profileOffsetY,0px)}}
@media(max-width:600px){body[data-composition=inline] .card.split h1.name{font-size:min(var(--ns),8vw)}body[data-composition] .sp-head{gap:min(var(--identityGap),4vw)}}

body.sized-badges .badges.bar .bdg,body.sized-badges .badges.pill .bdg{width:1.5em;height:1.35em;flex-shrink:0}
body.sized-badges .badges.tiles .bdg{width:2em;height:2em}

body[data-composition=minimal] .card .socials,body[data-composition=floating] .card .socials{justify-content:center}
body.compact-profile-widgets #wWeather h4{display:none}
body.compact-profile-widgets #wWeather .wrow{font-family:var(--fx-bio)}
body.profile-columns .scrollhint{display:none}
body[data-composition=editorial] #root{max-width:1450px;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:8vw}

/* Flow-based layouts stay safe when presets and individual controls are mixed. */
.sketch-head{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:16px}
.sketch-head>.avw{flex:0 0 auto;margin:0!important;max-width:100%}
.sketch-accessories{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:12px}
body[data-composition=sketch] .sketch-accessories .badges,body[data-composition=sketch] .sketch-accessories .socials{position:static;margin:0;max-width:100%;justify-content:flex-start}
.card .badges{flex-wrap:wrap;max-width:100%}
.card .socials{max-width:100%;min-width:0}
.card .socials>a,.card .socials>button,.card .badges>.bdg{flex-shrink:0}
.card .name{max-width:100%;min-width:0;overflow-wrap:anywhere}
.card .nm,.card .bio,.card .handle{min-width:0;overflow-wrap:anywhere}
.card .sp-head{flex-wrap:wrap}
.card .sp-id{flex:1 1 180px;min-width:0;max-width:100%}
.card.wide .inner{grid-template-columns:minmax(0,auto) minmax(0,1fr)}
.card.wide .inner>*{min-width:0;max-width:100%}
body .card .inline-profile-stats{position:static;display:flex;justify-content:flex-end;margin:0 0 12px!important}
body .card .inline-profile-stats.under-name{justify-content:flex-start;margin:5px 0 12px!important}
@media(max-width:560px){.card.wide .inner{grid-template-columns:minmax(0,1fr)}}

.sketch-person{flex:1 1 var(--av);min-width:0;max-width:100%}.sketch-person>.avw{margin:0 0 12px!important;max-width:100%}
body[data-composition=sketch] .name{font-size:var(--ns)}body[data-composition=sketch] .bio{font-size:var(--bs)}

.card .avw{max-width:100%}.card:not(.split) .avw{height:auto;aspect-ratio:1}.card:not(.split) .avatar{height:auto;aspect-ratio:1}
