.esm-wallet-core{width:min(100%,920px);margin:24px auto;padding:24px;border:1px solid #d9e2ec;border-radius:8px;background:#fff;color:#172033;box-sizing:border-box;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.esm-wallet-core *{box-sizing:border-box}
.esm-wallet-core header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.esm-wallet-core h2{margin:0 0 8px;font-size:24px;line-height:1.3;letter-spacing:0}
.esm-wallet-core p{margin:0;line-height:1.7;color:#4b5563}
.esm-wallet-badge{flex:0 0 auto;padding:7px 10px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;font-size:13px;font-weight:700}
.esm-wallet-status{min-height:24px;margin:12px 0;color:#334155;font-weight:600}
.esm-wallet-status[data-state=success]{color:#166534}
.esm-wallet-status[data-state=warning]{color:#92400e}
.esm-wallet-status[data-state=error]{color:#b91c1c}
.esm-wallet-connectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.esm-wallet-button,.esm-wallet-actions button,.esm-wallet-actions a{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#17365f;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;letter-spacing:0}
.esm-wallet-button{flex-direction:column}
.esm-wallet-button.primary{background:#17365f;color:#fff}
.esm-wallet-button small{font-size:11px;font-weight:500;color:#64748b}
.esm-wallet-button:hover,.esm-wallet-actions button:hover,.esm-wallet-actions a:hover{border-color:#174a91;background:#eff6ff}
.esm-wallet-button:focus-visible,.esm-wallet-actions button:focus-visible,.esm-wallet-actions a:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.esm-wallet-button:disabled{cursor:not-allowed;opacity:.6}
.esm-wallet-core[data-busy="1"]{cursor:progress}
.esm-wallet-linked dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.esm-wallet-linked dl>div{min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}
.esm-wallet-linked dt{margin-bottom:6px;font-size:12px;color:#64748b}
.esm-wallet-linked dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.esm-wallet-linked code{font-size:13px}
.esm-wallet-actions{display:flex;flex-wrap:wrap;gap:8px}
.esm-wallet-actions .danger{border-color:#fecaca;color:#b91c1c}
.esm-wallet-core [hidden]{display:none!important}
@media(max-width:640px){.esm-wallet-core{width:calc(100% - 24px);margin:16px 12px;padding:18px}.esm-wallet-core header{display:block}.esm-wallet-badge{display:inline-flex;margin-top:12px}.esm-wallet-connectors,.esm-wallet-linked dl{grid-template-columns:1fr}.esm-wallet-button,.esm-wallet-actions button,.esm-wallet-actions a{width:100%}.esm-wallet-actions{display:grid;grid-template-columns:1fr}}

.esm-wallet-setup-notice{display:grid;gap:6px;margin:0 0 16px;padding:13px 15px;border:1px solid #f0c36d;border-radius:14px;background:#fff8e6;color:#5f4200;line-height:1.55}.esm-wallet-setup-notice strong{font-size:14px;color:#4a3200}.esm-wallet-setup-notice span{font-size:13px}.esm-wallet-setup-notice a{justify-self:start;font-weight:800;color:#164e9b;text-decoration:underline;text-underline-offset:2px}
/* v85.2.12 origin-wide MetaMask request recovery */
.esm-wallet-origin-reset{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:10px 0 4px!important;padding:10px 14px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;cursor:pointer!important}
.esm-wallet-origin-reset:hover,.esm-wallet-origin-reset:focus{border-color:#2563eb!important;color:#1d4ed8!important;outline:0!important}
.esm-wallet-origin-reset:disabled{opacity:.55!important;cursor:wait!important}

/* v101.0.97 wallet connector visual standard */
.esm-wallet-connectors{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.esm-wallet-button{min-height:104px!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 7px 18px rgba(15,23,42,.06)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
.esm-wallet-button:hover,.esm-wallet-button:focus-visible{transform:translateY(-3px)!important;border-color:#2563eb!important;box-shadow:0 14px 28px rgba(37,99,235,.15)!important;background:#fff!important}
.esm-wallet-icon{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 12px rgba(15,23,42,.10)!important}
.esm-wallet-icon img{display:block!important;width:34px!important;height:34px!important;object-fit:contain!important}
.esm-wallet-label{display:block!important;font-size:14px!important;font-weight:900!important;color:#17365f!important}
@media(max-width:760px){.esm-wallet-connectors{grid-template-columns:repeat(2,minmax(0,1fr))}.esm-wallet-button{width:100%!important}}

/* v101.12.74 safe wallet actions + mobile */
.esm-wallet-safe-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}
.esm-wallet-safe-actions details{border:1px solid #dbe4ef;border-radius:10px;background:#fff;overflow:hidden}
.esm-wallet-safe-actions summary{list-style:none;cursor:pointer;padding:12px 14px;color:#17365f;font-weight:800;position:relative}
.esm-wallet-safe-actions summary::-webkit-details-marker{display:none}
.esm-wallet-safe-actions summary:after{content:"＋";position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#55708e}
.esm-wallet-safe-actions details[open] summary:after{content:"−"}
.esm-wallet-safe-actions details>div{padding:0 14px 14px;border-top:1px solid #edf2f7}
.esm-wallet-safe-actions details>div p{margin:12px 0;color:#56677b;font-size:13px;line-height:1.6}
.esm-wallet-safe-actions details>div button,.esm-wallet-safe-actions details>div a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#17365f;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}
.esm-wallet-safe-actions details.is-warning{border-color:#f2cf83;background:#fffaf0}
.esm-wallet-safe-actions details.is-danger{border-color:#fecaca;background:#fff7f7}
.esm-wallet-safe-actions details.is-danger summary,.esm-wallet-safe-actions details.is-danger button{color:#b91c1c}
.esm-wallet-mobile-guide{display:grid;gap:5px;margin:0 0 14px;padding:13px 15px;border:1px solid #cfe0f4;border-radius:12px;background:#f5f9ff;color:#38516f;line-height:1.55}
.esm-wallet-mobile-guide strong{color:#17365f;font-size:13px}.esm-wallet-mobile-guide span{font-size:12px}.esm-wallet-mobile-guide b{color:#155bd7}
.esm-wallet-icon{display:flex;width:42px;height:42px;align-items:center;justify-content:center}
.esm-wallet-icon img{display:block!important;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;object-fit:contain!important}
@media(max-width:640px){
 .esm-wallet-connectors{grid-template-columns:repeat(2,minmax(0,1fr))}
 .esm-wallet-button{min-height:96px;padding:10px}
 .esm-wallet-icon,.esm-wallet-icon img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important}
 .esm-wallet-safe-actions{grid-template-columns:1fr}
 .esm-wallet-safe-actions summary{min-height:46px;display:flex;align-items:center}
}

/* v101.19.6 connected-state emphasis */
.esm-wallet-linked:not([hidden]){border-color:#86efac!important;background:linear-gradient(135deg,#f0fdf4,#fff)!important}.esm-wallet-linked:not([hidden]) [data-wallet-address]{color:#6d28d9!important;font-weight:900!important}.esm-wallet-linked:not([hidden]) [data-wallet-connector]{color:#1d4ed8!important;font-weight:900!important}.esm-wallet-linked:not([hidden])~* [data-wallet-esmp],.esm-wallet-linked:not([hidden]) [data-wallet-esmp]{color:#166534!important}.esm-wallet-linked:not([hidden]) [data-wallet-esmx]{color:#1d4ed8!important}

/* v101.19.7 — canonical wallet connected-state fallback hard-lock.
 * Duplicated intentionally from canonical evaluation skin so direct preset homes
 * remain visually identical even when a theme/direct template prints only Core wallet CSS. */
html body .esm-v8527-wallet-primary-state{display:flex!important;align-items:center!important;gap:13px!important;margin:10px 0 12px!important;padding:15px 16px!important;border:2px solid #22a06b!important;border-radius:16px!important;background:linear-gradient(135deg,#eafbf3,#fff)!important;box-shadow:0 10px 26px rgba(20,119,82,.10)!important;color:#0b6547!important}
html body .esm-v8527-wallet-primary-mark{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:50%!important;background:#159568!important;color:#fff!important;font-size:21px!important;font-weight:1000!important}html body .esm-v8527-wallet-primary-copy{min-width:0!important;flex:1 1 auto!important}html body .esm-v8527-wallet-primary-copy>strong{display:block!important;color:#0b6547!important;font-size:18px!important;font-weight:1000!important;line-height:1.25!important}html body .esm-v8527-wallet-primary-copy>span{display:block!important;margin-top:4px!important;color:#3c6656!important;font-size:12px!important;font-weight:750!important;line-height:1.55!important}
html body .esm-v8527-wallet-primary-chips{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:8px!important}html body .esm-v8527-wallet-primary-chips>*{display:inline-flex!important;align-items:center!important;margin:0!important;padding:4px 8px!important;border-radius:999px!important;font-size:10px!important;font-style:normal!important;font-weight:950!important;line-height:1.2!important}html body .esm-v8527-wallet-primary-chips>b{background:#dcfce7!important;color:#166534!important}html body .esm-v8527-wallet-primary-chips>em{background:#dbeafe!important;color:#1d4ed8!important}html body .esm-v8527-wallet-primary-chips>code{background:#ede9fe!important;color:#6d28d9!important}
html body .esm-v8527-wallet-change-button{appearance:none!important;flex:0 0 auto!important;border:1px solid #9fb4ca!important;border-radius:10px!important;background:#fff!important;color:#123e66!important;padding:9px 13px!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important;cursor:pointer!important}html body .esm-v8527-wallet-secondary{margin:10px 0 0!important;border:1px solid #d7e1eb!important;border-radius:14px!important;background:#f8fafc!important;overflow:hidden!important}html body .esm-v8527-wallet-secondary>summary{list-style:none!important;cursor:pointer!important;padding:12px 14px!important;color:#294966!important;font-size:12px!important;font-weight:950!important}html body .esm-v8527-wallet-secondary>summary::-webkit-details-marker{display:none!important}html body .esm-v8527-wallet-secondary>summary:after{content:' +'!important;float:right!important}html body .esm-v8527-wallet-secondary[open]>summary:after{content:' −'!important}html body .esm-v8527-wallet-secondary-body{padding:0 12px 12px!important}
html body [data-wallet-connection-info] [data-wallet-info-connector],html body [data-wallet-connection-info] [data-wallet-info-method],html body [data-wallet-connection-info] [data-wallet-info-network],html body [data-wallet-connection-info] [data-wallet-info-chain],html body [data-wallet-linked]:not([hidden]) [data-wallet-connector]{color:#1d4ed8!important;font-weight:950!important}html body [data-wallet-connection-info] [data-wallet-info-address],html body [data-wallet-linked]:not([hidden]) [data-wallet-address]{color:#6d28d9!important;font-weight:950!important}html body [data-wallet-connection-info] [data-wallet-info-ownership]{color:#15803d!important;font-weight:950!important}html body [data-wallet-connection-info] [data-wallet-info-reward]{color:#0f766e!important;font-weight:950!important}html body [data-wallet-linked]:not([hidden]) [data-wallet-esmp]{color:#166534!important;font-weight:1000!important}html body [data-wallet-linked]:not([hidden]) [data-wallet-esmx]{color:#1d4ed8!important;font-weight:1000!important}html body [data-wallet-linked]:not([hidden]) [data-wallet-bnb]{color:#a16207!important;font-weight:1000!important}
@media(max-width:720px){html body .esm-v8527-wallet-primary-state{align-items:stretch!important;flex-wrap:wrap!important}html body .esm-v8527-wallet-change-button{width:100%!important}}

/* v101.19.8 wallet signature waiting + terminal unlink focus */
.esm-v8528-wallet-terminal-success{margin:0 0 14px!important;padding:15px 17px!important;border:2px solid #16a36f!important;border-radius:15px!important;background:linear-gradient(135deg,#e9fbf3,#fff)!important;box-shadow:0 10px 28px rgba(16,133,91,.12)!important;color:#0a6546!important;outline:none!important}.esm-v8528-wallet-terminal-success[hidden]{display:none!important}.esm-v8528-wallet-terminal-success strong{display:block!important;font-size:17px!important;font-weight:1000!important;color:#08724d!important}.esm-v8528-wallet-terminal-success span{display:block!important;margin-top:4px!important;font-size:12px!important;font-weight:800!important;color:#3e6858!important}.esm-wallet-signature-waiting{position:relative!important;padding-left:38px!important;border:1px solid #6ea8ff!important;background:linear-gradient(135deg,#eaf3ff,#f8fbff)!important;color:#174f96!important;font-weight:900!important}.esm-wallet-signature-waiting:before{content:''!important;position:absolute!important;left:13px!important;top:50%!important;width:14px!important;height:14px!important;margin-top:-8px!important;border:3px solid #bcd7ff!important;border-top-color:#2563eb!important;border-radius:50%!important;animation:esmWalletSpin8528 .8s linear infinite!important}.esm-wallet-signature-waiting:after{content:' 서명 확인 대기중'!important;display:inline-block!important;margin-left:7px!important;padding:2px 7px!important;border-radius:999px!important;background:#dbeafe!important;color:#1d4ed8!important;font-size:10px!important;font-weight:1000!important}@keyframes esmWalletSpin8528{to{transform:rotate(360deg)}}
