.space-wrap{max-width:980px;margin:32px auto 64px;padding:0 20px}.space-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.space-intro h1{font-size:clamp(32px,6vw,48px);margin:4px 0}.space-intro p{color:#665b73}.space-account{font-weight:700}.space-status{line-height:1.6}.space-profile{--space-accent:#6943a5;--space-soft:#f0e8fb;background:white;border:1px solid #e5ddec;border-radius:24px;overflow:hidden;box-shadow:0 12px 36px #37204c0b}.space-profile[data-theme=ocean]{--space-accent:#245a86;--space-soft:#e5f2fa}.space-profile[data-theme=sunset]{--space-accent:#a34a35;--space-soft:#fff0e5}.space-profile[data-theme=forest]{--space-accent:#32634c;--space-soft:#e7f4e8}.space-profile[data-theme=rose]{--space-accent:#9c3f6b;--space-soft:#fce9f1}.space-profile[data-theme=midnight]{--space-accent:#343854;--space-soft:#ececf5}.space-cover{height:230px;position:relative;display:grid;place-items:center;background:linear-gradient(120deg,var(--space-accent),#f38e80);overflow:hidden}.space-cover::before{content:'';position:absolute;width:280px;height:280px;border:44px solid #ffffff1c;border-radius:50%;right:-90px;top:-90px}.space-cover img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.space-cover-word{font-size:clamp(16px,4vw,30px);font-weight:900;letter-spacing:.13em;color:white;text-align:center;padding:20px}.space-cover.has-photo .space-cover-word{display:none}.space-profile-body{padding:0 32px 26px}.space-identity{position:relative;display:flex;align-items:center;gap:24px;padding-top:24px}.space-avatar{width:116px;height:116px;border-radius:28px;flex-shrink:0;border:5px solid white;box-shadow:0 2px 12px #0001;background:var(--space-soft);color:var(--space-accent);display:grid;place-items:center;overflow:hidden;margin-top:-66px;position:relative;font-size:48px;font-weight:800}.space-avatar img{width:100%;height:100%;object-fit:cover}.space-avatar img:not([hidden])+span{display:none}.space-sticker{position:absolute;left:88px;top:18px;font-size:32px;filter:drop-shadow(0 2px 2px #0001)}.space-name h2{font-size:clamp(26px,4vw,38px);margin:4px 0;color:var(--space-accent);overflow-wrap:anywhere}.space-name p{margin:5px 0}.space-name .eyebrow{font-size:10px;color:#675c73}.space-about{margin-top:28px;border-top:1px solid #eee7f2;padding-top:20px}.space-about h3{font-size:14px;color:var(--space-accent);margin:0 0 12px}.space-about p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.space-interests{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.space-interests span{background:var(--space-soft);color:var(--space-accent);border-radius:40px;padding:7px 13px;font-size:14px;overflow-wrap:anywhere;max-width:100%}.space-visibility{font-size:12px;color:#706578}.space-owner-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 36px}.space-editor{background:#fff;border:1px solid #e5ddec;border-radius:24px;padding:30px;scroll-margin-top:180px}.space-section-heading h2{font-size:26px;margin:8px 0}.space-section-heading p{line-height:1.6;color:#665b73}.space-editor fieldset{border:0;margin:0;padding:0;min-width:0}.space-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.space-editor label{display:block;font-size:14px;font-weight:700;margin:18px 0 8px}.space-editor input:not([type=radio]):not([type=checkbox]),.space-editor select,.space-editor textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #d7cddd;border-radius:10px;padding:13px;font:inherit;font-weight:400;background:#fff;color:#29243a;margin-top:8px}.space-editor input:focus-visible,.space-editor select:focus-visible,.space-editor textarea:focus-visible{outline:3px solid #bda2de;outline-offset:2px}.space-editor input[type=file]{font-size:13px!important;padding:10px!important;min-width:0}.space-editor .space-check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}.space-check input{width:18px;height:18px}.space-hint{font-size:12px;font-weight:400;color:#706578;line-height:1.7}.space-editor .space-theme-picker{margin:24px 0 8px}.space-theme-picker legend{font-size:14px;font-weight:700}.space-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.space-swatches label{cursor:pointer;position:relative;margin:12px 0!important}.space-swatches input{position:absolute;left:12px;top:12px;accent-color:var(--swatch);width:18px;height:18px}.space-swatches span{display:block;padding:43px 5px 10px;background:linear-gradient(var(--swatch) 0 36px,#fff 36px);border:2px solid #e5ddec;border-radius:13px;text-align:center;font-size:12px}.space-swatches input:checked+span{border-color:var(--swatch);box-shadow:0 0 0 2px var(--swatch)}.space-swatches input:focus-visible+span{outline:3px solid #16121d;outline-offset:3px}.space-sharing{padding:1px 20px 10px;background:#f7f3fb;border-radius:16px;margin:24px 0}.space-sharing p{font-size:13px;line-height:1.7;color:#665b73}.space-planner{border-top:1px solid #e5ddec;padding:20px 0}.space-planner summary{font-weight:700;cursor:pointer;min-height:44px}.space-save{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #e5ddec;padding-top:24px}.space-save p{flex:1 1 100%;font-size:13px;line-height:1.6;margin:0}.space-save button{min-height:46px}.space-public-note{font-size:13px;line-height:1.7;margin:20px 0;color:#706578}.space-profile[data-layout=centered] .space-identity{flex-direction:column;align-items:center;gap:8px;text-align:center}.space-profile[data-layout=centered] .space-avatar{border-radius:50%;margin-top:-70px}.space-profile[data-layout=centered] .space-sticker{left:calc(50% + 32px)}.space-profile[data-layout=centered] .space-about{text-align:center}.space-profile[data-layout=centered] .space-interests{justify-content:center}.space-profile[data-layout=scrapbook]{border-radius:8px;background:var(--space-soft)}.space-profile[data-layout=scrapbook] .space-avatar{border-radius:6px;transform:rotate(-5deg);border-width:7px}.space-profile[data-layout=scrapbook] .space-about{background:white;border:0;border-radius:12px;padding:22px;box-shadow:4px 4px 0 #00000008}.space-profile[data-layout=scrapbook] .space-cover{height:205px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#saveStatus[data-error=true],#spaceStatus[data-error=true]{color:#9c243f}#memberSpace:has(fieldset:disabled){opacity:.7}[hidden]{display:none!important}@media(max-width:600px){.space-wrap{padding:0 14px;margin-top:22px}.space-intro{display:block}.space-account{display:inline-block;margin:0 0 8px;font-size:13px}.space-cover{height:170px}.space-profile-body{padding:0 20px 22px}.space-identity{gap:16px;align-items:flex-start;flex-wrap:wrap}.space-name{width:100%}.space-avatar{width:96px;height:96px;margin-top:-68px}.space-sticker{left:75px;top:0}.space-name h2{font-size:28px}.space-profile[data-layout=centered] .space-sticker{left:calc(50% + 25px)}.space-editor{padding:22px 18px}.space-form-grid{grid-template-columns:1fr;gap:0}.space-swatches{grid-template-columns:repeat(3,1fr)}.space-owner-actions .button,.space-owner-actions button{font-size:13px}.space-sharing{padding:1px 14px 10px}.space-section-heading h2{font-size:23px}}

.space-intro .eyebrow,.space-section-heading .eyebrow{color:#6943a5}

.space-avatar .space-photo-action{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;display:flex;align-items:flex-end;color:white;z-index:1}.space-photo-action span{display:block;width:100%;background:#3f245ee6;padding:5px 2px;font-size:12px;line-height:1.3;font-weight:700}.space-avatar .space-photo-action:focus-visible{outline:3px solid white;outline-offset:-5px}.space-sticker{pointer-events:none}.space-owner-actions #photoStatus{flex:1 1 100%;font-size:13px;margin:0;line-height:1.6}#photoStatus[data-error=true]{color:#9c243f}

.space-cover .space-cover-action{position:absolute;inset:0;width:100%;height:100%;padding:16px;border:0;border-radius:0;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;color:white}.space-cover-action span{background:#3f245ee6;border:1px solid #ffffff80;border-radius:10px;min-height:44px;display:flex;align-items:center;padding:8px 14px;font-size:13px;line-height:1.3}.space-cover .space-cover-action:focus-visible{outline:3px solid white;outline-offset:-6px}

.space-editor .space-layout-picker{margin:24px 0;padding:0}.space-layout-picker legend{font-size:14px;font-weight:700}.space-layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.space-layout-options label{position:relative;cursor:pointer;margin:12px 0 0}.space-layout-options input{position:absolute;left:14px;top:17px;width:18px;height:18px;accent-color:#6943a5}.space-layout-options span{display:block;min-height:92px;border:2px solid #ded1ec;border-radius:14px;padding:13px 12px 13px 42px;background:white}.space-layout-options strong,.space-layout-options small{display:block}.space-layout-options small{font-size:12px;font-weight:400;margin-top:5px;color:#665b73}.space-layout-options input:checked+span{border-color:#6943a5;background:#f1eafa;box-shadow:0 0 0 1px #6943a5}.space-layout-options input:focus-visible+span{outline:3px solid #6943a5;outline-offset:3px}.space-profile{scroll-margin-top:180px}.space-profile:focus-visible{outline:3px solid #6943a5;outline-offset:3px}@media(max-width:600px){.space-layout-options{grid-template-columns:1fr;gap:0}.space-layout-options span{min-height:76px}.space-layout-picker #previewLayout{width:100%}}

/* Match the editor frame and leave the face visible. */
#clientPreview .space-cover.has-photo{height:auto;aspect-ratio:3/1;overflow:hidden}
.space-avatar .space-photo-action span{left:auto;right:0;bottom:0;width:30px;height:30px;padding:3px;font-size:0;border-radius:50%;display:grid;place-items:center}.space-avatar .space-photo-action span:after{content:'✎';font-size:22px;line-height:1}
.space-photo-field>button{margin:10px 0}

.space-avatar .space-photo-action span{position:absolute}.space-editor input[type=hidden]{display:none!important}
.space-style-dialog{box-sizing:border-box;width:min(620px,94vw);max-height:94dvh;overflow:auto;padding:22px;border:1px solid #e5ddec;border-radius:22px;background:#fff;color:#30283d}.space-style-dialog::backdrop{background:#20102bb8}.space-style-dialog h2{font-size:24px;margin:0 0 6px}.space-style-dialog>p{font-size:14px;line-height:1.5;margin:8px 0 12px}.space-style-dialog fieldset{border:0;padding:0;margin:14px 0}.space-style-dialog legend,.style-extra{font-size:14px;font-weight:700}.style-colors{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.style-layouts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.space-style-dialog button{font:600 13px/1.2 system-ui;min-height:44px;border:2px solid #ded1ec;border-radius:10px;padding:10px;background:white;color:#49325c;cursor:pointer}.style-colors button{border-top:8px solid var(--swatch);padding:8px 4px}.space-style-dialog button[aria-pressed=true]{outline:2px solid #6943a5;outline-offset:2px;background:#f3edf8}.style-extra{display:flex;align-items:center;gap:12px}.style-extra select{font:inherit;min-height:44px;flex:1;min-width:0;padding:8px;border:1px solid #d7cddd;border-radius:10px;background:white;color:inherit}.style-actions{display:flex;justify-content:flex-end;gap:10px}.style-actions [data-keep]{background:#6943a5;color:white;border-color:#6943a5}.space-style-preview{pointer-events:none}.space-style-preview .space-profile{height:204px;box-sizing:border-box;box-shadow:none}.space-style-preview .space-profile .space-cover{height:58px!important;aspect-ratio:auto}.space-style-preview .space-cover-word{font-size:13px;padding:6px}.space-style-preview .space-profile-body{padding:0 14px 12px}.space-style-preview .space-identity{padding-top:8px;gap:10px;flex-wrap:nowrap;align-items:center}.space-style-preview .space-avatar{width:48px;height:48px;border:3px solid white;margin-top:-18px;border-radius:12px;font-size:24px}.space-style-preview .space-name{width:auto}.space-style-preview .space-name h2{font-size:20px;margin:2px 0}.space-style-preview .space-name p{font-size:12px;margin:2px 0}.space-style-preview .space-name .eyebrow{display:none}.space-style-preview .space-sticker{font-size:19px;left:35px;top:9px}.space-style-preview .member-owner-badge{font-size:10px}.space-style-preview .space-about{margin:10px 0 0;padding:7px 0 0}.space-style-preview .space-about h3,.space-style-preview .space-interests,.space-style-preview .space-visibility{display:none}.space-style-preview .space-about p{font-size:12px;line-height:1.4;margin:0;max-height:34px;overflow:hidden}.space-style-preview [data-layout=centered] .space-identity{gap:0}.space-style-preview [data-layout=centered] .space-avatar{margin-top:-30px;border-radius:50%}.space-style-preview [data-layout=centered] .space-sticker{left:calc(50% + 18px);top:0}.space-style-preview [data-layout=centered] .space-about{margin-top:5px}.space-style-preview [data-layout=scrapbook] .space-about{padding:8px;border-radius:8px}.space-style-preview [data-layout=scrapbook] .space-avatar{border-radius:3px}.space-style-dialog :focus-visible{outline:3px solid #6943a5;outline-offset:3px}@media(max-width:600px){.space-style-dialog{padding:16px}.style-colors{grid-template-columns:repeat(3,1fr)}.space-style-dialog .style-status{font-size:12px}}

/* Decorations belong with the chosen name, never over the photo. */
.space-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.space-name-row h2{min-width:0}.space-profile .space-name .space-sticker{position:static;inset:auto;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:24px;line-height:1;filter:none;pointer-events:none}.space-profile .space-name .space-sticker:empty{display:none}.space-profile[data-layout=centered] .space-name-row{justify-content:center}.space-style-preview .space-profile .space-name .space-sticker{font-size:19px}
