/* Shared MoreChain account modal: neutral light form over existing dark branding. */
.mct-account-links{display:inline-flex;align-items:center;gap:7px;flex:none;margin-left:8px}
.mct-account-links button{border:1px solid #3a6883;border-radius:10px;background:#0c273b;color:#d8f6ff;padding:9px 12px;font-size:12px;font-weight:790;cursor:pointer;white-space:nowrap}
.mct-account-links button[data-mct-auth-open="signup"]{background:linear-gradient(110deg,#65e9e2,#42c6e4);border-color:#5febed;color:#061b29}
.mct-account-links button:hover{filter:brightness(1.13)}.mct-account-links button:focus-visible{outline:2px solid #6df0eb;outline-offset:3px}
.mct-account-user{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#c2eff2}
#mctAuthModal{font-family:Inter,"Segoe UI",Arial,system-ui,sans-serif;color:#182942;border:0;border-radius:24px;padding:0;width:min(505px,calc(100vw - 22px));max-height:min(91vh,900px);background:#fafcff;box-shadow:0 25px 110px #0009;overflow:hidden}
#mctAuthModal::backdrop{background:rgba(2,8,22,.75);backdrop-filter:blur(5px)}
.mct-auth-top{display:flex;align-items:center;gap:10px;padding:19px 25px;background:#f4f7fb;border-bottom:1px solid #e3eaf1}
.mct-auth-top img{width:35px;height:35px;object-fit:contain;filter:brightness(.82)}
.mct-auth-top strong{font-weight:900;font-size:14px;letter-spacing:.04em}
.mct-auth-close{margin-left:auto;display:grid;place-items:center;border:0;background:transparent;color:#7e91a7;width:37px;height:37px;border-radius:8px;cursor:pointer;font-size:26px}
.mct-auth-close:hover{background:#dfe7ef;color:#183855}
.mct-auth-content{overflow:auto;max-height:calc(min(91vh,900px) - 75px);padding:21px 30px 26px}
.mct-auth-step{height:3px;width:100%;background:#e6eff5;margin:0 0 19px;border-radius:8px;overflow:hidden}.mct-auth-step div{width:55%;height:100%;background:linear-gradient(90deg,#23bfd7,#5acbdb);transition:width .2s}
.mct-auth-intro{margin:0 0 15px;font-size:13px;line-height:1.6;color:#59708b}
.mct-auth-field{display:grid;gap:7px;margin:0 0 16px}
.mct-auth-field label{font-size:10.5px;font-weight:900;letter-spacing:.13em;color:#607b9b;text-transform:uppercase}
.mct-auth-field input{display:block;max-width:100%;width:100%;height:52px;border:1px solid #d5e0ed;border-radius:14px;background:white;color:#1b2941;padding:12px 17px;font-size:14px;outline-offset:2px}
.mct-auth-field input:focus{border-color:#39c1dc;box-shadow:0 0 0 3px #32c4de21;outline:none}
.mct-auth-field input[aria-invalid=true]{border-color:#eb6778}
.mct-auth-meter{display:flex;gap:5px;margin:2px 0 10px}
.mct-auth-meter span{height:4px;flex:1;background:#dfe9f2;border-radius:7px}.mct-auth-meter span.on{background:#2dc8b4}
.mct-auth-meter-label{font-size:11px;color:#607791;margin-bottom:10px}
.mct-auth-check{display:flex;align-items:start;gap:10px;font-size:12px;color:#435771;line-height:1.6;margin:13px 0}
.mct-auth-check input{width:17px;height:17px;accent-color:#15a9d0;flex:none;margin-top:2px}
.mct-auth-check a{color:#007fba;font-weight:800}
.mct-auth-warning{display:flex;align-items:flex-start;gap:10px;border:1px solid #f4d2d0;border-radius:15px;background:#fff2f2;color:#9f2837;padding:13px 14px;font-size:12px;line-height:1.55;margin:14px 0 17px}
.mct-auth-warning.info{background:#e9f7fb;border-color:#b9e6ec;color:#225975}
.mct-auth-warning strong{display:block;margin-bottom:2px}
.mct-auth-challenge{border:1px solid #cee2ec;border-radius:13px;background:#f3f8fb;padding:12px;font-size:11px;color:#59748b;margin:15px 0}
.mct-auth-challenge > strong{display:block;font-size:12px;margin-bottom:7px;color:#315e74}
.mct-auth-primary{width:100%;border:0;border-radius:13px;background:linear-gradient(110deg,#13c1cd,#1e94da);color:white;font-weight:880;letter-spacing:.08em;font-size:12px;padding:15px 14px;margin-top:10px;box-shadow:0 5px 15px #169dd62e;cursor:pointer}
.mct-auth-primary:not(:disabled):hover{filter:brightness(1.05)}
.mct-auth-primary:disabled{opacity:.62;cursor:not-allowed}
.mct-auth-footer{text-align:center;color:#6a829b;margin:17px 0 0;font-size:12px}
.mct-auth-textbutton{border:0;background:none;color:#0985b5;font-weight:800;font-size:12px;cursor:pointer;padding:4px}
.mct-auth-textbutton:hover{text-decoration:underline}
.mct-auth-actions{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:9px}
.mct-auth-inline-note{font-size:11px;color:#637e94;line-height:1.55;margin-top:10px}
.mct-auth-hide{display:none!important}
.mct-auth-result{padding:24px 5px;text-align:center}
.mct-auth-result .symbol{font-size:45px;color:#0abfba}
.mct-auth-result h3{font-size:21px;color:#163b53;margin:10px 0}
.mct-auth-result p{font-size:13px;color:#52748a;line-height:1.65}
.mct-auth-loaded{min-width:0}
@media(max-width:850px){.mct-account-links{margin-left:0}}
@media(max-width:590px){.mct-account-links{gap:4px}.mct-account-links button{font-size:10px;padding:8px 9px;border-radius:8px}
#mctAuthModal{border-radius:17px}.mct-auth-top{padding:14px 16px}.mct-auth-content{padding:19px 17px}.mct-auth-field input{height:49px}
}

/* Preserve existing MCT page headers: the new account actions must not force a grid row overflow. */
.topbar:has(.mct-account-links){grid-template-columns:minmax(195px,310px) minmax(380px,1fr) auto auto;gap:8px;padding-left:18px;padding-right:18px}
.site-header .nav:has(.mct-account-links){flex-wrap:wrap;row-gap:6px}
.site-header .nav-actions:has(.mct-account-links),.top .nav-right:has(.mct-account-links){flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1410px) and (min-width:741px){
 .topbar:has(.mct-account-links){display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;min-height:65px;height:auto;padding:7px 18px}
 .topbar:has(.mct-account-links) nav{order:4;width:100%;height:auto;justify-content:center}
}
@media(max-width:740px){
 .topbar:has(.mct-account-links) nav{order:4}
 .topbar:has(.mct-account-links) .mct-account-links{margin-left:auto}
}
@media(max-width:590px){
 .site-header .nav:has(.mct-account-links){display:flex;flex-wrap:wrap}
 .site-header .nav:has(.mct-account-links) .nav-links{order:4;width:100%}
 .site-header .nav-actions:has(.mct-account-links){max-width:100%;justify-content:flex-end}
 .top .nav-right:has(.mct-account-links){max-width:100%;justify-content:flex-end}
 .top .nav-links{order:4;width:100%}
}
