
body.ms-upgraded{
  background:
    radial-gradient(900px 620px at 0% 0%, rgba(91,140,255,.16), transparent 52%),
    radial-gradient(760px 560px at 100% 8%, rgba(127,92,255,.14), transparent 42%),
    linear-gradient(180deg, #07101f 0%, #091121 42%, #0b1020 100%);
}
body.ms-upgraded::before,
body.ms-upgraded::after{
  content:"";
  position:fixed;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(80px);
  pointer-events:none;
  z-index:0;
}
body.ms-upgraded::before{
  top:-180px;
  left:-110px;
  background:rgba(91,140,255,.12);
}
body.ms-upgraded::after{
  bottom:-180px;
  right:-80px;
  background:rgba(126,92,255,.10);
}

body.ms-upgraded .app{
  max-width:1320px;
  padding:24px 20px 46px;
  position:relative;
  z-index:1;
}
body.ms-upgraded .top{
  margin-bottom:18px;
  align-items:stretch;
}
body.ms-upgraded .brand{
  padding:18px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:0 24px 60px rgba(3,7,18,.42);
}
body.ms-upgraded .logo{
  width:52px;
  height:52px;
  border-radius:16px;
}
body.ms-upgraded .title{
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.02em;
}
body.ms-upgraded .sub{
  font-size:13px;
  line-height:1.6;
  max-width:680px;
}
body.ms-upgraded .walletBox{
  border-radius:24px;
  padding:16px;
  background:linear-gradient(180deg, rgba(18,24,52,.78), rgba(9,13,31,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 60px rgba(3,7,18,.42);
}
body.ms-upgraded .pill{
  min-height:34px;
  padding:7px 12px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
}
body.ms-upgraded .pageTabs{
  position:sticky;
  top:14px;
  z-index:15;
  margin:0 0 18px;
  padding:8px;
  border-radius:20px;
  background:rgba(9,13,27,.72);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 44px rgba(3,7,18,.38);
  backdrop-filter:blur(14px);
}
body.ms-upgraded .pageTab{
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
body.ms-upgraded .pageTab.active{
  background:linear-gradient(180deg, rgba(91,140,255,.26), rgba(91,140,255,.14));
}
body.ms-upgraded main.grid{
  gap:18px;
}
body.ms-upgraded .card{
  padding:18px;
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(16,23,49,.84), rgba(10,14,30,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 60px rgba(3,7,18,.44);
  position:relative;
  overflow:hidden;
}
body.ms-upgraded .card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}
body.ms-upgraded .cardHead{
  gap:12px;
  margin-bottom:14px;
}
body.ms-upgraded .cardHead h2{
  font-size:18px;
  letter-spacing:-.02em;
}
body.ms-upgraded .muted{
  color:#b4bfdc;
}
body.ms-upgraded label{
  font-weight:700;
  letter-spacing:.01em;
  color:#d2daf2;
}
body.ms-upgraded .inp,
body.ms-upgraded .ta,
body.ms-upgraded .file,
body.ms-upgraded .box{
  height:44px;
  border-radius:14px;
  background:rgba(7,10,24,.46);
  border-color:rgba(255,255,255,.10);
}
body.ms-upgraded .ta{
  min-height:160px;
  padding:12px 12px;
}
body.ms-upgraded .file{
  min-height:44px;
  padding-top:12px;
  padding-bottom:12px;
}
body.ms-upgraded .btn{
  height:44px;
  padding:0 16px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(91,140,255,.30), rgba(91,140,255,.16));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
body.ms-upgraded .btnGhost{
  background:rgba(255,255,255,.05);
}
body.ms-upgraded .btnDanger{
  background:linear-gradient(180deg, rgba(255,77,109,.34), rgba(255,77,109,.20));
}
body.ms-upgraded .note,
body.ms-upgraded .sumItem,
body.ms-upgraded .tableWrap{
  border-radius:18px;
}
body.ms-upgraded .note{
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}
body.ms-upgraded .summary{
  margin-top:14px;
  gap:12px;
}
body.ms-upgraded .sumItem{
  padding:14px 16px;
  background:rgba(255,255,255,.04);
}
body.ms-upgraded .sumItem .mono{
  font-size:17px;
  font-weight:800;
  color:#fff;
}
body.ms-upgraded .kv{
  margin-top:14px;
  gap:12px 16px;
}
body.ms-upgraded .k{
  font-weight:700;
}
body.ms-upgraded .tableWrap{
  background:rgba(7,10,24,.48);
}
body.ms-upgraded .table th{
  background:rgba(11,16,34,.94);
}
body.ms-upgraded .table td,
body.ms-upgraded .table th{
  padding:12px 12px;
}
body.ms-upgraded .hint{
  margin-top:12px;
}
body.ms-upgraded .log{
  height:280px;
  border-radius:18px;
  background:rgba(7,10,24,.58);
}
body.ms-upgraded .footer{
  margin-top:20px;
  padding-top:20px;
  border-top-color:rgba(255,255,255,.08);
}

body.ms-upgraded .modal{
  backdrop-filter:blur(7px);
}
body.ms-upgraded .modalCard{
  width:min(740px, 100%);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(16,23,49,.96), rgba(9,13,28,.98));
  border:1px solid rgba(255,255,255,.10);
}
body.ms-upgraded .modalHead,
body.ms-upgraded .modalActions{
  padding:14px 16px;
}
body.ms-upgraded .modalBody{
  padding:18px 16px;
}
body.ms-upgraded .modalTitle{
  font-size:16px;
}

body.ms-upgraded .ms-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(0, .9fr);
  gap:16px;
  margin:0 0 18px;
  padding:18px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(91,140,255,.16), rgba(127,92,255,.12) 46%, rgba(12,17,38,.96) 100%);
  box-shadow:0 24px 60px rgba(3,7,18,.42);
}
body.ms-upgraded .ms-hero[data-tone="native"]{
  background:
    linear-gradient(135deg, rgba(255,184,77,.18), rgba(255,109,91,.10) 42%, rgba(12,17,38,.96) 100%);
}
body.ms-upgraded .ms-hero[data-tone="stable"]{
  background:
    linear-gradient(135deg, rgba(20,192,201,.15), rgba(91,140,255,.11) 42%, rgba(12,17,38,.96) 100%);
}
body.ms-upgraded .ms-hero[data-tone="custom"]{
  background:
    linear-gradient(135deg, rgba(255,111,159,.15), rgba(127,92,255,.11) 42%, rgba(12,17,38,.96) 100%);
}
body.ms-upgraded .ms-hero__eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  margin:0 0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#dbe4ff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
}
body.ms-upgraded .ms-hero__title{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  font-size:30px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.03em;
}
body.ms-upgraded .ms-hero__asset{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
}
body.ms-upgraded .ms-hero__assetSymbol{
  font-size:34px;
  font-weight:900;
  line-height:1;
}
body.ms-upgraded .ms-hero__assetType{
  font-size:12px;
  color:#d7def5;
}
body.ms-upgraded .ms-hero__desc{
  margin:0;
  color:#d3dcf8;
  line-height:1.7;
  font-size:14px;
}
body.ms-upgraded .ms-hero__detail{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  color:#d5def8;
  font-size:12px;
}
body.ms-upgraded .ms-hero__metrics{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
body.ms-upgraded .ms-metric{
  padding:14px 14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
}
body.ms-upgraded .ms-metric span{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  color:#b5c0de;
}
body.ms-upgraded .ms-metric b{
  display:block;
  font-size:15px;
  line-height:1.4;
  word-break:break-word;
}

body.ms-upgraded .ms-assetChooser{
  margin:0 0 14px;
}
body.ms-upgraded .ms-assetChooser__head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
body.ms-upgraded .ms-sectionTag{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#d5def8;
  font-size:12px;
  font-weight:800;
}
body.ms-upgraded .ms-sectionHint{
  font-size:12px;
  color:#b4bfdc;
}
body.ms-upgraded .ms-assetGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}
body.ms-upgraded .ms-assetCard{
  appearance:none;
  width:100%;
  min-height:128px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color:#eaf0ff;
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  display:flex;
  flex-direction:column;
  gap:12px;
}
body.ms-upgraded .ms-assetCard:hover{
  transform:translateY(-2px);
  border-color:rgba(148,174,255,.30);
}
body.ms-upgraded .ms-assetCard.is-active{
  border-color:rgba(122,159,255,.60);
  box-shadow:0 18px 36px rgba(3,7,18,.32), inset 0 1px 0 rgba(255,255,255,.10);
}
body.ms-upgraded .ms-assetCard.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:grayscale(.15);
}
body.ms-upgraded .ms-assetCard[data-tone="native"].is-active{
  border-color:rgba(255,184,77,.58);
  background:linear-gradient(180deg, rgba(255,184,77,.18), rgba(255,184,77,.06));
}
body.ms-upgraded .ms-assetCard[data-tone="stable"].is-active{
  border-color:rgba(20,192,201,.56);
  background:linear-gradient(180deg, rgba(20,192,201,.18), rgba(20,192,201,.05));
}
body.ms-upgraded .ms-assetCard[data-tone="custom"].is-active{
  border-color:rgba(255,111,159,.56);
  background:linear-gradient(180deg, rgba(255,111,159,.17), rgba(255,111,159,.05));
}
body.ms-upgraded .ms-assetCard__meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
body.ms-upgraded .ms-assetCard__kind,
body.ms-upgraded .ms-pillMini{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  font-size:11px;
  font-weight:800;
  color:#dbe4ff;
}
body.ms-upgraded .ms-assetCard__label{
  font-size:24px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.03em;
}
body.ms-upgraded .ms-assetCard__sub{
  margin:0;
  font-size:12px;
  line-height:1.6;
  color:#b4bfdc;
}
body.ms-upgraded .ms-hiddenField{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
body.ms-upgraded .ms-assetSettingsRow{
  align-items:flex-end;
}
body.ms-upgraded .ms-inlineWarn{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px 16px;
  margin-top:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
body.ms-upgraded .ms-inlineWarn__icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:rgba(255,255,255,.08);
  flex:0 0 auto;
}
body.ms-upgraded .ms-inlineWarn__title{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
}
body.ms-upgraded .ms-inlineWarn__desc{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:#b8c2df;
}

body.ms-upgraded .ms-guard{
  display:flex;
  flex-direction:column;
  gap:14px;
}
body.ms-upgraded .ms-guard__hero{
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
body.ms-upgraded .ms-guard[data-tone="native"] .ms-guard__hero{
  background:linear-gradient(180deg, rgba(255,184,77,.18), rgba(255,184,77,.06));
}
body.ms-upgraded .ms-guard[data-tone="stable"] .ms-guard__hero{
  background:linear-gradient(180deg, rgba(20,192,201,.16), rgba(20,192,201,.05));
}
body.ms-upgraded .ms-guard[data-tone="custom"] .ms-guard__hero{
  background:linear-gradient(180deg, rgba(255,111,159,.15), rgba(255,111,159,.05));
}
body.ms-upgraded .ms-guard__eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  font-size:11px;
  font-weight:800;
  color:#dbe4ff;
}
body.ms-upgraded .ms-guard__asset{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:12px 0 8px;
}
body.ms-upgraded .ms-guard__symbol{
  font-size:30px;
  font-weight:900;
  letter-spacing:-.03em;
}
body.ms-upgraded .ms-guard__desc{
  margin:0;
  color:#d6def7;
  line-height:1.7;
}
body.ms-upgraded .ms-guard__detail{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
}
body.ms-upgraded .ms-guard__rows{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
body.ms-upgraded .ms-guard__row{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
body.ms-upgraded .ms-guard__row span{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  color:#b4bfdc;
}
body.ms-upgraded .ms-guard__row b{
  display:block;
  font-size:14px;
  line-height:1.5;
  word-break:break-word;
}
body.ms-upgraded .ms-guard__warn{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#d6def7;
  line-height:1.7;
}
body.ms-upgraded .ms-guard[data-tone="native"] .ms-guard__warn{
  background:rgba(255,77,109,.12);
  border-color:rgba(255,77,109,.24);
}
body.ms-upgraded .ms-guard[data-tone="stable"] .ms-guard__warn{
  background:rgba(20,192,201,.10);
  border-color:rgba(20,192,201,.22);
}
body.ms-upgraded .ms-checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
body.ms-upgraded .ms-checkline input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#7ca4ff;
}
body.ms-upgraded .ms-checkline b{
  color:#fff;
}

@media (max-width: 960px){
  body.ms-upgraded .ms-hero{
    grid-template-columns:1fr;
  }
  body.ms-upgraded .ms-hero__title{
    font-size:26px;
  }
}
@media (max-width: 720px){
  body.ms-upgraded .app{
    padding:16px 14px 34px;
  }
  body.ms-upgraded .brand,
  body.ms-upgraded .walletBox,
  body.ms-upgraded .card{
    border-radius:20px;
  }
  body.ms-upgraded .pageTabs{
    top:10px;
    border-radius:16px;
  }
  body.ms-upgraded .ms-hero{
    padding:16px;
    border-radius:22px;
  }
  body.ms-upgraded .ms-hero__assetSymbol{
    font-size:28px;
  }
  body.ms-upgraded .ms-hero__metrics,
  body.ms-upgraded .ms-guard__rows{
    grid-template-columns:1fr;
  }
  body.ms-upgraded .summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  body.ms-upgraded .summary{
    grid-template-columns:1fr;
  }
  body.ms-upgraded .ms-assetGrid{
    grid-template-columns:1fr 1fr;
  }
}
