.my-realm,.realm-identity{max-width:1100px;margin:auto;display:grid;gap:24px}.realm-profile{display:grid;grid-template-columns:minmax(200px,300px) minmax(0,1fr);gap:28px}.realm-art,.realm-fields,.realm-fields label,.realm-art form,.realm-art label{display:grid;gap:10px;align-content:start}.realm-art>img{width:100%;max-height:400px;object-fit:cover;border-radius:18px}.realm-fields input,.realm-fields textarea,.realm-fields select{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:10px;font:inherit}.realm-fields small{min-height:1.2em}.realm-crop-frame{position:relative;width:100%;aspect-ratio:3/4;touch-action:none;overflow:hidden;border-radius:16px;background:#252536;cursor:grab}.realm-crop-frame canvas{display:block;width:100%;height:100%}.realm-crop-circle{position:absolute;left:0;top:12.5%;width:100%;aspect-ratio:1;border:2px dashed #fff;border-radius:50%;box-sizing:border-box;pointer-events:none;box-shadow:0 0 0 100px #0003}.realm-house-select{display:flex;flex-wrap:wrap;gap:14px}.realm-house-select label{display:flex;align-items:center;gap:8px}.realm-house-select input{width:auto}.my-realm [hidden]{display:none!important}.my-realm article{margin:12px 0}.realm-house .house-chamber-canvas{height:850px;min-height:450px}.realm-house iframe{width:100%;height:100%;border:0}.v61-shell .realm-house.is-entered{height:auto;overflow:visible;display:block}.realm-house [data-house-chamber-bar]{display:flex;gap:12px;margin-bottom:12px}.realm-details{max-width:900px;margin:auto;padding:20px;display:grid;gap:18px}.realm-details label{display:grid;gap:6px}.realm-details input,.realm-details textarea{box-sizing:border-box;max-width:100%;padding:10px;font:inherit}.realm-details .check{display:flex;align-items:center;gap:8px}.realm-details small{min-height:1em}.realm-details iframe{width:100%;min-height:500px;border:0}@media(max-width:650px){.realm-profile{grid-template-columns:1fr}.realm-art{max-width:320px}.realm-identity{gap:16px}}
.v61-shell .realm-house[data-house-inline] .house-chamber-canvas{height:auto;min-height:450px;overflow:visible}.realm-house[data-house-inline] iframe{min-height:450px;overflow-y:auto}.realm-details{height:auto!important;overflow-y:visible!important}.realm-details select{padding:10px;font:inherit;max-width:100%}.realm-house-questions{display:grid;gap:16px}

/* My Realm is a readable, self-contained surface inside every House theme. */
.my-realm{box-sizing:border-box;width:calc(100% - 2rem);max-width:1100px;margin:1rem auto 2rem;padding:clamp(16px,3vw,32px);background:var(--house-surface,#fffaf2);color:var(--house-ink,#23312f);border:1px solid #b4a58a;border-radius:16px;box-shadow:0 8px 30px #0002;line-height:1.55}
.my-realm h1,.my-realm h2,.my-realm h3,.my-realm p,.my-realm label,.my-realm legend,.realm-details h2,.realm-details p,.realm-details label{color:inherit;text-shadow:none}.my-realm h1{margin:.25rem 0;font-size:clamp(1.8rem,6vw,2.5rem);line-height:1.15}.my-realm h2{font-size:1.35rem}.my-realm a{color:var(--house-primary,#215b52)}.my-realm .eyebrow{font-size:.72rem;letter-spacing:.12em}.realm-profile>*{min-width:0}.realm-art{width:100%;max-width:320px}.realm-art>img{display:block;width:100%;height:auto;max-height:400px;object-fit:contain}.my-realm input,.my-realm textarea,.my-realm select,.realm-details input,.realm-details textarea,.realm-details select{background:#fff;color:#20312f;border:1px solid #887f70;max-width:100%;font-size:16px}.my-realm button{min-height:44px}.my-realm input:focus-visible,.my-realm textarea:focus-visible,.my-realm select:focus-visible{outline:3px solid #3b897a;outline-offset:2px}.realm-details{box-sizing:border-box;width:100%;background:var(--house-surface,#fffaf2);color:var(--house-ink,#23312f);line-height:1.55}.realm-details fieldset{min-width:0}.realm-details .check{flex-wrap:wrap}.realm-local-extension{display:block;max-width:100%;background:var(--house-surface,#fffaf2)}@media(max-width:650px){.my-realm{width:calc(100% - 1rem);margin:.5rem auto;padding:16px;border-radius:12px}.realm-profile{grid-template-columns:minmax(0,1fr)}.realm-identity{min-width:0}.realm-details{padding:12px}}

.realm-fields .realm-field{display:grid;gap:10px;align-content:start}

/* Stack portrait and card artwork are separate crops. */
.realm-art>img.realm-stack-preview{width:88px;height:88px;object-fit:cover;border-radius:50%;justify-self:start}
.realm-card-framing{display:grid;gap:10px;margin-top:16px;min-width:0}.realm-card-framing summary{cursor:pointer;font-weight:700}.realm-card-framing label{display:grid;gap:6px}.realm-card-preview{min-width:0;width:100%}.realm-card-preview .nysa-card{width:100%;max-width:100%;min-width:0;pointer-events:none}.realm-card-preview .card-flip-edge{display:none!important}.realm-avatar-art-window{position:relative;overflow:hidden;aspect-ratio:1.62/1;border-radius:50% 50% 38% 38%;background:#17212a}.realm-avatar-art-window img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--card-art-focus-x,50%) var(--card-art-focus-y,50%);transform:scale(var(--card-art-zoom,1));transform-origin:var(--card-art-focus-x,50%) var(--card-art-focus-y,50%)}

/* Settings share category drawers; both image crops use the same gesture controls. */
.realm-profile{grid-template-columns:minmax(0,1fr);gap:14px}.realm-fields{display:contents}.realm-settings-group{display:block;min-width:0;width:100%;box-sizing:border-box;border:1px solid #8b817966;border-radius:12px;background:var(--house-surface,#fffaf2);overflow:hidden}.realm-settings-group>summary{display:list-item;cursor:pointer;padding:16px 18px;font-weight:700;font-size:1.05rem;min-height:48px;box-sizing:border-box}.realm-settings-group>summary:focus-visible{outline:3px solid #3b897a;outline-offset:-3px}.realm-category-body{display:grid;gap:14px;padding:0 18px 18px}.realm-image-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:0 18px 18px}.realm-image-editors .realm-art{max-width:none;min-width:0}.realm-image-editors .realm-card-framing{margin:0;align-content:start}.realm-card-preview{touch-action:none;cursor:grab}.realm-card-preview :is(.frame-art-crop,.realm-avatar-art-window){touch-action:none;cursor:grab}.realm-card-preview :is(.frame-art-crop,.realm-avatar-art-window):focus-visible{outline:3px solid #3b897a;outline-offset:3px}.realm-image-editors input[type=range]{width:100%;min-width:0}.realm-card-preview img{user-select:none;-webkit-user-drag:none}.realm-image-editors .realm-stack-preview{max-height:180px;object-fit:contain}.realm-settings-group[open]>summary{border-bottom:1px solid #8b817933;margin-bottom:16px}@media(max-width:650px){.realm-image-editors{grid-template-columns:minmax(0,1fr);padding:0 12px 16px}.realm-category-body{padding:0 12px 16px}.realm-settings-group>summary{padding:14px}}
