.life-panel {width:min(30rem,92vw);max-height:88dvh;overflow:auto;text-align:left;background:#f5e6c6}
.life-panel h2{padding-right:1.8rem}.life-panel label{display:grid;gap:.3rem;margin:.75rem 0}
.life-panel input,.life-panel textarea,.life-panel select{min-width:0;width:100%;padding:.6rem;color:#30422f;background:#fff7e6;border:1px solid #a39270;border-radius:5px;font:inherit}
.life-panel button:not(.close){min-height:40px;padding:.4em .75em;color:#294534;background:#fff2d6;border:1px solid #a9936a;border-radius:7px;font:inherit}
.life-panel button:disabled{color:#736b59;background:#e7ddc6}
.life-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin:1rem 0}
.life-row{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.65rem 0;border-bottom:1px solid #bca77d}
.life-row small{display:block;color:#625940;margin-top:.25em}.life-scroll{max-height:48dvh;overflow:auto}
body.in-residence #scene-layer{inset:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
body.in-residence #main-area{pointer-events:none}.life-panel:has(#avatar-stage),.life-panel:has([data-action=buy-trial]){width:min(20rem,92vw)}
dialog:has(#avatar-stage),dialog:has([data-action=buy-trial]),dialog:has([data-action=wear-trial]){margin:auto}

#focus-tab-notice:not([hidden]){position:fixed;inset:0;display:grid;place-content:center;text-align:center;padding:24px;background:#f4ead8f5;color:#344d38;z-index:1000}

.stats-chart{display:flex;height:7rem;align-items:flex-end;gap:3px;border-bottom:1px solid #a59170;margin:1rem 0 .2rem}.stats-chart span{flex:1;background:#63866b;border-radius:3px 3px 0 0}
