/* 모든 진입점과 정책 페이지가 같은 복귀 버튼을 공유한다. */
.return-control{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;box-sizing:border-box!important;min-width:44px!important;min-height:44px!important;width:auto!important;height:44px!important;max-width:100%;margin:0!important;padding:9px 12px!important;border:1px solid #c5c9a4!important;border-radius:12px!important;background:#fffbed!important;color:#47674f!important;box-shadow:0 2px 3px #43613e0c!important;font-family:inherit;font-weight:600;font-size:12px;line-height:1.4;text-decoration:none!important;white-space:nowrap;cursor:pointer;flex:none!important;transform:none!important;touch-action:manipulation}.return-control>svg{width:20px!important;height:20px!important;flex:none;display:block}.return-control>span{font-size:12px;line-height:1.4}.return-control:hover{background:#edf3df!important;border-color:#8eaa83!important}.return-control:focus-visible{outline:3px solid #a98a42!important;outline-offset:2px}.return-control:disabled{opacity:.45;cursor:default}.standalone-return{position:relative;display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:12px max(12px,env(safe-area-inset-left));background:#faf8eccc;z-index:5}.route-return{position:sticky;top:var(--onldo-view-top,0px);z-index:60;display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 0;background:#faf8ecf5;box-sizing:border-box;flex-shrink:0}.sheet-return-bar{position:sticky;top:0;left:0;z-index:80;display:flex;align-items:center;gap:8px;align-self:stretch;min-height:48px;flex:none;margin:0 0 8px;padding:2px 0;background:inherit;box-sizing:border-box}.sheet-return-bar .return-control{align-self:center!important}.sheet:has(>.sheet-return-bar)::before{display:none!important}.sheet:has(>.study-immersive)>.sheet-return-bar{display:none}.sheet:has(>.sheet-content-scroll>.play-guide-scroll),.sheet:has(>.sheet-content-scroll>.wallet-dialog-scroll){display:flex!important;flex-direction:column!important}.sheet:has(>.sheet-content-scroll>.play-guide-scroll)>.sheet-return-bar,.sheet:has(>.sheet-content-scroll>.wallet-dialog-scroll)>.sheet-return-bar{padding:10px 14px 4px;margin:0;background:#faf7eb}.sheet>.sheet-content-scroll>.play-guide-scroll,.sheet>.sheet-content-scroll>.wallet-dialog-scroll{min-height:0;flex:1 1 auto}.sheet-return-bar .game-card-close{position:static!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;align-self:center!important;margin:0!important}.plaza-return-control{position:absolute;z-index:90;top:calc(var(--citizen-bar-height,72px) + 10px);left:max(12px,env(safe-area-inset-left))}.gyeol-header{gap:10px;flex-wrap:wrap}.gyeol-header .return-control{margin-right:2px!important}.admin-main>.standalone-return{padding-left:0;padding-top:0;background:transparent}.policy-return{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
@media(max-width:700px){.screen,.sheet{min-width:0;box-sizing:border-box}.screen h1,.screen h2,.screen h3,.sheet h1,.sheet h2,.sheet h3{overflow-wrap:anywhere}.question-meta,.question-actions{flex-wrap:wrap;gap:8px}.sheet input:not([type=checkbox]):not([type=radio]),.sheet textarea,.sheet select,.screen input:not([type=checkbox]):not([type=radio]),.screen textarea,.screen select,.gyeol-app input,.gyeol-app textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}.screen textarea,.sheet textarea{min-width:0;max-width:100%;box-sizing:border-box}.sheet .member-search,.sheet .service-actions{flex-wrap:wrap}.sheet-return-bar{gap:7px}.route-return{margin:0 0 8px;padding-left:max(0px,env(safe-area-inset-left))}.return-control{padding:9px 10px!important}.standalone-return{padding:8px 12px}}
@media(max-height:500px){.sheet-return-bar{min-height:44px;margin-bottom:4px}.return-control{height:44px!important;min-height:44px!important}.route-return{min-height:44px}.plaza-return-control{top:calc(var(--citizen-bar-height,60px) + 8px)}}

/* 몰입형 장면은 기존 게임 헤더의 좌상단을 유지한다. */
.painted-room>header>.return-control{pointer-events:auto}
#root .app>.wide-view-return{position:fixed!important;left:calc(var(--onldo-safe-left,0px) + 12px)!important;right:auto!important;top:calc(var(--onldo-view-top,0px) + var(--onldo-safe-top,0px) + 8px)!important}
#root .app .explore-home-return{position:fixed!important}
#root .app .explore-layout .explore-header>.explore-home-return{position:static!important}
.care-type-explorer>header,.future-wardrobe-content>header{justify-content:flex-start;align-items:flex-start}
.care-type-explorer>header>div,.future-wardrobe-content>header>div{min-width:0}
.care-type-explorer>header>.return-control,.future-wardrobe-content>header>.return-control{order:-1}
.atlas-slot-card>header{padding-right:0!important}
.admin-sidebar>.return-control{justify-self:start;grid-column:1/-1}
@media(max-width:700px){.admin-sidebar nav{grid-row:auto!important}.care-type-explorer h2,.future-wardrobe h2{overflow-wrap:anywhere}.gomgomi-desk input,.gomgomi-desk textarea,.gomgomi-desk select,.admin-app input,.admin-app textarea,.admin-app select{font-size:16px;max-width:100%;box-sizing:border-box}}

.world-selected>.return-control{position:absolute!important;left:12px!important;right:auto!important;top:12px!important}
.atlas-move-review>header{justify-content:flex-start;align-items:flex-start}.atlas-move-review>header>div{min-width:0}

.hero-garden>header>.return-control,.art-room>header>.return-control,.lab-header>.return-control{pointer-events:auto}
.world-loading{position:relative}.world-loading-return{position:absolute;top:12px;left:12px}
.care-type-explorer>header,.future-wardrobe-content>header{position:sticky;top:0;z-index:10;background:#faf7e7;padding-bottom:10px}
/* 좁은 탐험 탭에서도 한글 단어가 한 글자씩 고립되지 않게 한다. */
@media(max-width:600px){#root .app .explore-layout .explore-modes>button{word-break:keep-all;overflow-wrap:normal;gap:4px;padding-inline:5px;line-height:1.45}#root .app .explore-layout .explore-modes svg{width:20px;height:20px}}

/* 키보드는 CSS의 dvh를 줄이지 않을 수 있다. Sheet가 실측한 부모 높이로 제한한다. */
.sheet-bg[data-keyboard=true]:not(.game-card-bg)>.sheet{box-sizing:border-box;min-height:0!important;max-height:100%!important;scroll-padding-top:64px}

/* 복귀는 독립된 상단 공간, 내용만 아래에서 스크롤해 서로 가리지 않는다. */
.sheet.sheet-has-scroll-body:not(:has(.career-sharing)){display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0;gap:0!important}
.game-card-bg>.sheet.sheet-has-scroll-body{padding-top:14px!important}
.sheet-content-scroll{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scroll-padding:10px;-webkit-overflow-scrolling:touch}
.sheet-has-scroll-body>.sheet-return-bar{position:relative!important;top:auto!important;min-height:44px;margin:0 0 10px!important;padding:0!important;background:transparent!important;box-shadow:none}
.sheet-return-bar .return-control{border-radius:50%!important;width:44px!important;padding:10px!important}
.sheet:has(>.sheet-content-scroll>.play-guide-scroll)>.sheet-return-bar{padding:12px 14px 8px!important;margin:0!important}
.sheet-content-scroll>.play-guide-scroll,.sheet-content-scroll>.wallet-dialog-scroll{min-height:0;flex:1 1 auto}
.sheet-content-scroll:has(>.play-guide-scroll),.sheet-content-scroll:has(>.wallet-dialog-scroll){overflow:hidden}
.sheet-content-scroll>.decor-preview,.sheet-content-scroll>.producer-experience,.sheet-content-scroll>.workplace-experience{flex:none}
@media print{.sheet-return-bar{display:none!important}.sheet-content-scroll{display:block!important;overflow:visible!important;height:auto!important;max-height:none!important}}

/* 가로형 휴대폰도 입력 글자를 16px로 유지해 iOS 자동 확대를 줄인다. */
@media(max-height:500px){.sheet input:not([type=checkbox]):not([type=radio]),.sheet textarea,.sheet select{font-size:16px!important;max-width:100%;box-sizing:border-box}}
