/* Header presentation only. Existing handlers remain responsible for all actions. */
.compact-top .connected-dot,.compact-top .wallet-connected,.compact-top .wallet-refresh,.compact-top #commonTokenRefresh,.compact-top .common-wallet>button[aria-label="잔액 새로고침"]{display:none!important}
.compact-top .common-wallet,.compact-top .wallet-controls{flex-wrap:nowrap!important;gap:8px!important}
.compact-top .token-label{font:inherit;font-size:12px;font-weight:500}
.compact-top .common-balance strong,.compact-top .wallet-balance span{font-size:17px;font-variant-numeric:tabular-nums}
.compact-top .common-wallet summary,.compact-top .common-charge,.compact-top .wallet-charge,.compact-top .account-menu summary{min-height:40px;padding:8px 10px!important;white-space:nowrap}
.compact-top .common-wallet details>summary,.compact-top .account-menu>summary{background:transparent}
.compact-top .pn-account-links{position:static;inset:auto}
body .compact-top .pn-header-actions{max-width:none;flex-wrap:nowrap}
body .compact-top[data-compact-site="peanut"]>nav{position:static;inset:auto;transform:none;order:initial;width:auto;margin-left:auto;margin-right:auto;flex-shrink:0}
body:has(#welcome:not([hidden])) .compact-top #makeTab{color:#7954b7;border-bottom-color:#7954b7}
body .compact-top[data-compact-site="story"]>nav{border:0;background:transparent;padding:0;gap:16px;width:auto;margin:0;flex-shrink:0}
body .compact-top[data-compact-site="story"]>nav button{border-radius:0;padding:8px 0;min-height:40px;background:transparent;border-bottom:2px solid transparent;font-size:13px;flex:none}
body .compact-top[data-compact-site="story"]>nav button.active{color:#7954b7;border-bottom-color:#7954b7;background:transparent;box-shadow:none}
.header-overflow{position:relative;flex:none;display:none;color:inherit;font:inherit}
.header-overflow>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #8885;border-radius:10px;min-height:40px;min-width:44px;padding:8px 10px;font-size:14px;white-space:nowrap}
.header-overflow>summary::-webkit-details-marker{display:none}
.header-overflow-panel{position:absolute;right:0;top:calc(100% + 8px);width:210px;max-height:calc(100dvh - 90px);overflow:auto;z-index:200;background:#fff;color:#302a40;border:1px solid #ddd;border-radius:12px;padding:6px;box-shadow:0 12px 32px #0003}
.header-overflow-panel button{display:block;width:100%;min-height:44px;text-align:left;border:0;background:transparent;color:inherit;font:inherit;font-size:14px;padding:10px 12px;border-radius:8px}
.header-overflow-panel button:hover{background:#f1ecfa}.header-overflow-panel button:disabled{opacity:.5}.header-overflow :focus-visible{outline:3px solid #9573d5;outline-offset:2px}
body .compact-top[data-compact-site="music"],body .compact-top[data-compact-site="peanut"],body .compact-top[data-compact-site="story"]{display:flex;flex-wrap:nowrap;height:auto;min-height:68px;align-items:center;gap:12px}
body .compact-top .header-wallet{width:auto;flex:0 0 auto;margin-left:auto}
body .compact-top .wallet-controls{width:auto;justify-content:flex-end}
body .compact-top[data-compact-site="story"]>.common-wallet{width:auto;margin-left:auto}
@media(max-width:1350px){
 body .compact-top[data-compact-site="music"]>.header-connections{display:none}
 body .compact-top[data-compact-site="music"]>.header-overflow{display:block}
}
@media(max-width:1150px){
 body .compact-top[data-compact-site="peanut"]>nav{display:none}
 body .compact-top[data-compact-site="peanut"]>.header-overflow{display:block}
}
@media(max-width:900px){
 body .compact-top[data-compact-site="story"]>nav{display:none}
 body .compact-top[data-compact-site="story"]>.header-overflow{display:block}
 body:has(#welcome:not([hidden]))>.compact-top[data-compact-site="story"]{display:flex;flex-wrap:nowrap;gap:10px;padding:10px 12px}
}
@media(max-width:640px){
 body .compact-top[data-compact-site]{padding:8px 10px;min-height:60px;gap:6px!important;flex-wrap:nowrap!important}
 .compact-top .token-label,.compact-top .more-word,.compact-top .pn-brand>span,.compact-top .brand>div,.compact-top .brand>b,.compact-top .pn-motion,.compact-top .pn-theme,.compact-top .pn-header-cta{display:none!important}
 .compact-top .common-wallet>details,.compact-top .account-menu,.compact-top #commonLogin,.compact-top .common-wallet>button:not([aria-label]):not(.common-charge),.compact-top .wallet-controls>button:not(.wallet-charge):not(.wallet-refresh){display:none!important}
 body .compact-top .pn-header-actions{display:flex;flex-wrap:nowrap;gap:0;margin-left:auto;order:initial;width:auto}
 body .compact-top .pn-account-links{display:flex;gap:6px}
 .compact-top .service-brand{gap:7px;flex:none}.compact-top .peanut-home{padding:3px 7px 3px 0;margin:0}.compact-top .peanut-home img,.compact-top .pn-brand img{width:28px;height:28px}
 body .compact-top .brand{width:auto;min-width:0;margin:0;gap:0;flex:none}.compact-top .brand svg,.compact-top .brand .logo,.compact-top .brand .logo img{width:30px;height:30px}
 .compact-top .common-balance strong,.compact-top .wallet-balance span{font-size:14px;margin:0}.compact-top .common-wallet,.compact-top .wallet-controls{gap:6px!important}
 .compact-top .common-charge,.compact-top .wallet-charge{padding:8px!important;font-size:12px!important;min-height:40px}
 .compact-top .header-overflow{display:block}.compact-top .header-overflow>summary{padding:8px;min-width:40px;font-size:18px}
 body .compact-top[data-compact-site="music"]>.header-wallet{padding:0;margin-left:auto}
 .compact-top .account-checking{font-size:10px}.compact-top .account-load-error{max-width:140px;font-size:10px}
}

