.account-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.entrance-heading>.account-tools{position:absolute;right:max(16px,env(safe-area-inset-right));top:max(24px,env(safe-area-inset-top));pointer-events:auto}
.entrance-heading .entrance-motion{position:static}
.entrance-heading:has(.daldam-account) .entrance-brand{text-align:left}
.daldam-account{position:relative;flex:none;font-family:"Noto Sans KR",sans-serif;letter-spacing:normal;line-height:1.4;z-index:5}
.daldam-account button,.daldam-account a{font-family:inherit}
.kakao-login{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 10px;border:0;border-radius:5px;background:#fee500!important;color:rgba(0,0,0,.85)!important;font:500 12px/1.4 "Noto Sans KR",sans-serif;white-space:nowrap;cursor:pointer;text-decoration:none}
.kakao-login img{display:block;width:16px;height:16px;object-fit:contain}
.daldam-account .kakao-login{padding:8px 10px;font-size:12px}
.daldam-account .account-name{display:block;max-width:112px;min-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 9px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:5px;font-size:12px;cursor:pointer}
.account-pending{font-size:11px;opacity:.7}
.account-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:148px;padding:7px;background:#f6f0e3;color:#463c32;border:1px solid #bcaa89;border-radius:6px;box-shadow:0 8px 28px #0003;text-align:left;z-index:100}
.account-menu[hidden]{display:none!important}
.account-menu a,.account-menu button{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:12px;background:none;border:0;border-radius:3px;color:#463c32!important;text-decoration:none;font:400 14px/1.4 "Noto Sans KR",sans-serif;text-align:left;cursor:pointer}
.account-menu a:hover,.account-menu button:hover{background:#e8ddc8}
.daldam-account :focus-visible,.kakao-login:focus-visible{outline:2px solid #ba8642;outline-offset:3px}
.account-toast{position:fixed;z-index:2147483647;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 40px);box-sizing:border-box;margin:0;padding:13px 20px;background:#f5edde;color:#403629;box-shadow:0 6px 28px #0004;border:1px solid #bba582;border-radius:8px;font:400 14px/1.65 "Noto Sans KR",sans-serif;text-align:center;pointer-events:none}
.home-topbar:has(.daldam-account){grid-template-columns:auto 1fr auto;column-gap:12px}
.home-topbar .home-brand{justify-self:center}
.pay-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.pay-head .pay-test{flex-basis:100%}
.pay-login{padding:26px 22px;margin:24px 0;background:#faf5e9;border:1px solid #d9cbb0;border-radius:8px;color:#4d4137}
.pay-login p{font-size:15px;line-height:1.9;margin:0 0 18px;word-break:keep-all}
.pay-login .kakao-login{min-height:44px;padding:12px 22px;font-size:14px}
.account-resume{width:min(420px,calc(100vw - 40px));box-sizing:border-box;padding:32px 24px;background:#f6f0e3;color:#463c32;border:1px solid #bcaa89;border-radius:8px;text-align:center}
.account-resume::backdrop{background:#192329f5}.account-resume h2{font:400 22px/1.7 serif;margin:0 0 26px;word-break:keep-all}.account-resume .kakao-login{min-height:44px}.account-resume>a{display:block;width:max-content;margin:24px auto 0;padding:8px;color:inherit;font:400 13px/1.5 sans-serif}
.bookshelf-restore{position:fixed;inset:0;z-index:1000;background:#1d292dfa;color:#eddfc9;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center;gap:22px;overflow:auto;box-sizing:border-box}
.bookshelf-restore>.daldam-account{position:absolute;top:20px;right:24px}
.bookshelf-restore h1{font:400 26px/1.8 serif;white-space:pre-line;margin:0}.bookshelf-restore>p{font:400 14px/1.8 sans-serif;max-width:480px;margin:0;word-break:keep-all}
.bookshelf-restore-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px}.bookshelf-restore-actions>a,.bookshelf-restore-actions>button:not(.kakao-login){min-height:44px;padding:12px 18px;border:1px solid #c5b18d;background:none;color:inherit;font:400 14px/1.4 sans-serif;text-decoration:none;box-sizing:border-box;cursor:pointer}
@media(max-width:600px){
 .account-tools{gap:6px}.account-tools #episode-label{display:none}
 body[data-stage]>.topbar:has(.daldam-account){gap:10px}
 body[data-stage]>.topbar:has(.daldam-account) .brand{position:static;transform:none;margin-right:auto;flex-shrink:0}
 .account-tools :is(#motion-toggle,#courtyard-motion,#door-motion){font-size:10px;padding-inline:4px;white-space:nowrap}
 .home-topbar:has(.daldam-account){padding-inline:14px;column-gap:8px}
 .home-topbar:has(.daldam-account) .home-brand{font-size:28px}
 .home-topbar:has(.daldam-account) .return-door{font-size:11px}
 .daldam-account .account-name{max-width:92px}
 .naming-topbar:has(.daldam-account) #go-cover{display:none}
 .account-tools .character-home-link{font-size:11px}
 .reading-preview-top:has(.daldam-account),.naming-preview-top:has(.daldam-account){gap:8px;padding-inline:12px}
 .reading-preview-top .account-tools,.naming-preview-top .account-tools{gap:9px}
}
