/* Scoped to the editor. Match the existing theme layer so paired colors survive R8. */
@layer woryvo-theme {
body[data-module=profile] #writing-layout {display:block!important;max-width:1100px!important;margin-inline:auto!important}
body[data-module=profile] #writing-latest {display:none!important}
body[data-module=profile] #writing-root {padding:24px 24px 36px!important;min-width:0!important}
body[data-module=profile] #module-content {padding:0!important;background:transparent!important;min-width:0!important}
body[data-module=profile] #module-content [hidden] {display:none!important}
body[data-module=profile] #module-content #profileEditForm [hidden] {display:none!important}
body[data-module=profile] #module-content * {box-sizing:border-box!important}
body[data-module=profile] .profileEditorIntro {display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;padding:0 0 18px!important;background:transparent!important;border:0!important}
body[data-module=profile] .profileEyebrow {font-size:10px!important;letter-spacing:1.5px!important;font-weight:700!important;color:var(--pl-muted)!important}
body[data-module=profile] .profileEditorIntro h1 {font-size:30px!important;line-height:1.2!important;margin:7px 0 8px!important;letter-spacing:-.6px!important}
body[data-module=profile] .profileEditorIntro p {font-size:14px!important;margin:0!important;color:var(--pl-muted)!important}
body[data-module=profile] .pe-intro-actions {display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body[data-module=profile] .pe-intro-actions a {font-size:12px!important;border:1px solid var(--pl-line)!important;border-radius:10px!important;padding:9px 12px!important;text-decoration:none!important;background:var(--pl-surface)!important}
body[data-module=profile] .profileSteps {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;margin:0 0 16px!important;padding:5px!important;border:1px solid var(--pl-line)!important;border-radius:15px!important;overflow-x:auto!important;max-width:100%!important;scrollbar-width:thin!important;scroll-padding:5px!important;overscroll-behavior-x:contain!important}
body[data-module=profile] .profileSteps a {display:inline-flex!important;justify-content:center!important;align-items:center!important;flex:1 0 auto!important;min-height:44px!important;padding:10px 14px!important;border-radius:10px!important;text-decoration:none!important;font-size:13px!important;font-weight:650!important;white-space:normal!important;text-align:center!important;overflow-wrap:normal!important;word-break:normal!important}
body[data-module=profile] .profileSteps a[aria-selected=true] {background:var(--pl-accent)!important;color:var(--pl-on-accent)!important}
body[data-module=profile] #profileEditStatus {margin:0 0 14px!important;padding:10px 12px!important;font-size:12px!important;line-height:1.5!important;border-radius:10px!important;background:var(--pl-soft)!important;color:var(--pl-muted)!important}
body[data-module=profile] .createColumns,body[data-module=profile] #profileEditForm {display:block!important;min-width:0!important;background:transparent!important}
body[data-module=profile] .pe-panel {min-width:0!important}
body[data-module=profile] #module-content fieldset {min-width:0!important;margin:0 0 16px!important;padding:18px!important;border:1px solid var(--pl-line)!important;border-radius:16px!important;background:var(--pl-surface)!important;scroll-margin-top:160px!important}
body[data-module=profile] #module-content legend {padding:0 6px!important;font-size:16px!important;font-weight:750!important;max-width:100%!important}
body[data-module=profile] #module-content fieldset>p {font-size:13px!important;line-height:1.6!important;margin:4px 0 16px!important;color:var(--pl-muted)!important}
body[data-module=profile] #module-content label {display:block!important;margin:13px 0!important;font-size:13px!important;font-weight:650!important;line-height:1.5!important}
body[data-module=profile] #module-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-top:6px!important;font-size:16px!important;line-height:1.5!important;padding:10px 12px!important;border:1px solid var(--pl-edge)!important;border-radius:10px!important;box-sizing:border-box!important}
body[data-module=profile] #module-content textarea {min-height:120px!important;resize:vertical!important}
body[data-module=profile] #module-content button {min-height:44px!important;font-size:13px!important;line-height:1.4!important;border-radius:10px!important;padding:10px 14px!important;margin:3px 5px 3px 0!important}
body[data-module=profile] #module-content :is(button,a,input,select,textarea):focus-visible {outline:3px solid var(--pl-focus)!important;outline-offset:3px!important}
body[data-module=profile] #module-content [role=status]:empty {display:none!important}
body[data-module=profile] #module-content [role=status] {font-size:12px!important;line-height:1.6!important;overflow-wrap:anywhere!important}
body[data-module=profile] .profileImageGrid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
body[data-module=profile] .profileImageCard {min-width:0!important;border:1px solid var(--pl-line)!important;border-radius:13px!important;padding:14px!important;background:var(--pl-input)!important}
body[data-module=profile] .profileImageCard h3 {font-size:15px!important;margin:0!important}
body[data-module=profile] .profileImageCard>p {font-size:11px!important;line-height:1.5!important;color:var(--pl-muted)!important;margin:5px 0 12px!important}
body[data-module=profile] .profileImageCard canvas {display:block!important;width:min(100%,160px)!important;height:auto!important;aspect-ratio:1!important;object-fit:contain!important;border-radius:50%!important;margin:12px auto 16px!important;background:var(--pl-soft)!important;border:1px solid var(--pl-line)!important}
body[data-module=profile] .profileImageCard[data-kind=cover] canvas {width:100%!important;aspect-ratio:16/5!important;border-radius:10px!important;margin-top:26px!important;margin-bottom:26px!important}
body[data-module=profile] .profileImageCard details {font-size:12px!important;margin:10px 0 0!important;border-top:1px solid var(--pl-line)!important;padding-top:7px!important;background:transparent!important}
body[data-module=profile] .profileImageCard summary {min-height:40px!important;display:list-item!important;padding:8px 2px!important;font-size:12px!important;font-weight:600!important;cursor:pointer!important}
body[data-module=profile] .profileImageCard input[type=range] {display:block!important;width:100%!important;padding:0!important;min-height:36px!important;margin-top:8px!important}
body[data-module=profile] #module-content input[type=file] {font-size:12px!important;padding:6px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background:var(--pl-input)!important}
body[data-module=profile] input[type=file]::file-selector-button {background:var(--pl-soft)!important;color:var(--pl-ink)!important;border:0!important;border-radius:7px!important;padding:10px!important;margin-right:8px!important;cursor:pointer!important;-webkit-text-fill-color:var(--pl-ink)!important}
body[data-module=profile] .pe-file-name {display:block!important;font-size:11px!important;overflow-wrap:anywhere!important;color:var(--pl-muted)!important}
body[data-module=profile] #module-content .pe-file-picker {font-size:12px!important;margin:10px 0!important}
body[data-module=profile] #module-content .pe-inline-link {display:inline-flex!important;align-items:center!important;min-height:40px!important;font-size:12px!important;text-underline-offset:3px!important}
body[data-module=profile] #profileImageStudio>button {background:var(--pl-accent)!important;color:var(--pl-on-accent)!important;width:100%!important;margin:16px 0 0!important}
body[data-module=profile] .pe-studio-ready #profileVisuals,body[data-module=profile] .pe-studio-ready #profilePrivatePhoto>label:first-of-type,body[data-module=profile] .pe-studio-ready #privateAvatarUpload {display:none!important}
body[data-module=profile] #privateAvatarPreview {width:80px!important;height:80px!important;object-fit:cover!important;border-radius:50%!important;display:block!important;margin-top:12px!important}
body[data-module=profile] #privateAvatarRemove {color:var(--pl-error)!important;border-color:var(--pl-error-line)!important}
body[data-module=profile] #profileAccessGroups {padding:12px!important;margin:16px 0!important;border:1px solid var(--pl-line)!important;border-radius:10px!important}
body[data-module=profile] .profile-username-field {background:var(--pl-input)!important;border:1px solid var(--pl-line)!important;padding:14px!important;border-radius:12px!important;margin:18px 0!important;display:grid!important;gap:8px!important;min-width:0!important}
body[data-module=profile] .profile-username-field>label {margin:0!important}
body[data-module=profile] .profile-username-input {display:flex!important;min-width:0!important;align-items:center!important;border:1px solid var(--pl-edge)!important;border-radius:10px!important;overflow:hidden!important;background:var(--pl-surface)!important}
body[data-module=profile] .profile-username-input>span {padding:0 12px!important;font-size:18px!important;color:var(--pl-muted)!important}
body[data-module=profile] #module-content #profileUsername {margin:0!important;border:0!important;border-radius:0!important;background:var(--pl-surface)!important}
body[data-module=profile] .profile-username-field small {font-size:12px!important;line-height:1.6!important;color:var(--pl-muted)!important}
body[data-module=profile] .profile-username-field [data-state=available] {color:var(--pl-ok)!important}
body[data-module=profile] .profile-username-field :is([data-state=taken],[data-state=error]) {color:var(--pl-error)!important}
body[data-module=profile] .pe-profile-link {min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
body[data-module=profile] #profileUsernameLink {font-size:12px!important;overflow-wrap:anywhere!important;text-underline-offset:3px!important}
body[data-module=profile] .pe-copy-result {flex-basis:100%!important;font-size:12px!important;color:var(--pl-muted)!important}
body[data-module=profile] .pe-copy-buffer {position:fixed!important;left:-9999px!important;top:0!important}
body[data-module=profile] .pe-interests {display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body[data-module=profile] #module-content .pe-interest {display:inline-flex!important;align-items:center!important;gap:8px!important;border:1px solid var(--pl-line)!important;border-radius:12px!important;margin:0!important;padding:11px 12px!important;min-height:44px!important;font-size:13px!important;cursor:pointer!important;background:var(--pl-input)!important}
body[data-module=profile] #module-content input[type=checkbox] {appearance:auto!important;width:18px!important;height:18px!important;margin:0!important;vertical-align:middle!important;flex:0 0 auto!important;accent-color:var(--pl-accent)!important}
body[data-module=profile] .pe-interest:has(input:checked) {border-color:var(--pl-focus)!important;background:var(--pl-soft)!important}
body[data-module=profile] #profileVisibility>label {display:flex!important;align-items:center!important;gap:10px!important}
body[data-module=profile] .profileSaveBar {position:static!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;padding:14px!important;margin:18px 0!important;border:1px solid var(--pl-line)!important;border-radius:14px!important;background:var(--pl-surface)!important}
body[data-module=profile] #profileSaveState {flex-basis:100%!important;font-size:12px!important;color:var(--pl-muted)!important}
body[data-module=profile] .profileSaveBar>a {display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:10px 12px!important;font-size:13px!important;text-decoration:none!important;border:1px solid var(--pl-line)!important;border-radius:10px!important}
body[data-module=profile] .pe-preview {padding:14px!important;border:1px solid var(--pl-line)!important;border-radius:14px!important;margin:18px 0!important}
body[data-module=profile] .pe-preview>summary {font-size:14px!important;min-height:44px!important;cursor:pointer!important}
body[data-module=profile] .profilePreviewAside {position:static!important;margin:0!important;padding:0!important;border:0!important;min-width:0!important}
body[data-module=profile] .profilePreviewAside>h2 {font-size:18px!important;margin:5px 0 14px!important}
body[data-module=profile] #editorPreview {padding:0!important;border:0!important;min-width:0!important;max-width:560px!important}
body[data-module=profile] #editorPreview .profile-cover {width:100%!important;aspect-ratio:16/5!important;height:auto!important;overflow:hidden!important;border-radius:12px!important;background:var(--pl-soft)!important}
body[data-module=profile] #editorPreview .profileCoverPhoto {width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
body[data-module=profile] #editorPreview .editorAvatar {display:flex!important;align-items:center!important;justify-content:center!important;width:80px!important;height:80px!important;overflow:hidden!important;border-radius:50%!important;border:4px solid var(--pl-surface)!important;margin:-28px 0 8px 16px!important;position:relative!important;background:var(--pl-soft)!important}
body[data-module=profile] #editorPreview .demoPortrait {width:100%!important;height:100%!important;object-fit:cover!important}
body[data-module=profile] #editorPreview h2 {font-size:20px!important;line-height:1.3!important;margin:12px 0!important}
body[data-module=profile] .profilePreviewAside p {font-size:13px!important;line-height:1.65!important;color:var(--pl-muted)!important;overflow-wrap:anywhere!important}
body[data-module=profile] #previewBio {white-space:pre-wrap!important}
body[data-module=profile] #profileRelationships {padding:16px!important;border:1px solid var(--pl-line)!important;border-radius:14px!important}
body[data-module=profile] #profileRelationships h2 {font-size:18px!important;margin:0 0 12px!important}
body[data-module=profile] #profileRelationships article {padding:12px 0!important;border-bottom:1px solid var(--pl-line)!important;margin-bottom:12px!important}
body[data-module=profile] #profileRelationships p {font-size:13px!important;line-height:1.6!important;color:var(--pl-muted)!important}
@media(max-width:650px),(max-width:1000px) and (max-height:500px){
 body[data-module=profile] #writing-root {padding:18px 14px 24px!important}
 body[data-module=profile] .profileEditorIntro {flex-direction:column!important;gap:12px!important}
 body[data-module=profile] .profileEditorIntro h1 {font-size:27px!important}
 body[data-module=profile] .profileSteps a {padding:10px 2px!important;font-size:11px!important}
 body[data-module=profile] #module-content fieldset {padding:14px!important}
 body[data-module=profile] .profileImageGrid {grid-template-columns:1fr!important;gap:12px!important}
 body[data-module=profile] .profileImageCard {padding:14px!important}
 body[data-module=profile] .profileImageCard canvas {width:132px!important;margin:12px auto!important}
 body[data-module=profile] .profileImageCard[data-kind=cover] canvas {width:100%!important;margin:12px auto!important}
 body[data-module=profile] .profileSaveBar {gap:8px!important;padding:12px!important}
 body[data-module=profile] .profileSaveBar>button {flex:1!important;margin:0!important}
 body[data-module=profile] .profileSaveBar>a {flex:1!important;justify-content:center!important}
 body[data-module=profile] :is(.site-footer,.wt-footer,#wv-info-footer) {display:none!important}
}
@media(prefers-reduced-motion:reduce){body[data-module=profile] * {scroll-behavior:auto!important}}
}
