/* Shared header refinement, after both theme sheets. IDs preserve the same
   search, launch and wallet event targets; overlay geometry uses --tb-h. */
:root{--tb-h:80px}

/* Search discovery: one focused surface with horizontal ranking cards. */
#searchCatch{background:rgba(0,0,0,.48);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#platformHeader:has(.ms-wrap.is-open){--header-surface:#f7faff;background:transparent;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader:has(.ms-wrap.is-open){--header-surface:#141517;background:transparent}
#platformHeader:has(.ms-wrap.is-open) .topbar-right,#platformHeader:has(.ms-wrap.is-open) .btn-top-create,#platformHeader:has(.ms-wrap.is-open) .btn-topbar-back{visibility:hidden}
body:has(.ms-wrap.is-open) .mobile-bottom-nav{visibility:hidden}
#platformHeader .ms-wrap.is-open{
  position:fixed;top:72px;left:50%;transform:translateX(-50%);
  width:min(720px,calc(100vw - 32px));max-width:none;z-index:80;
}
#platformHeader .ms-wrap.is-open .search-bar{
  height:56px;border-radius:18px 18px 0 0;padding:0 18px;
  background:var(--header-surface);box-shadow:0 0 0 1px var(--header-ring)
}
#platformHeader .ms-drop{
  top:100%;max-height:calc(100dvh - 150px);border:0;overflow:auto;
  border-radius:0 0 18px 18px;background:var(--header-surface);
  box-shadow:0 0 0 1px var(--header-ring),0 28px 80px rgba(0,0,0,.32)
}
#platformHeader .ms-drop-inner{padding:8px 18px 16px}
#platformHeader .search-sec{
  padding:0;margin:18px 0 10px;font-size:10px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--t3)
}
#platformHeader .search-sec-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#platformHeader .search-clear{
  border:0;background:none;color:var(--t3);font-size:11px;font-weight:600;
  cursor:pointer;min-height:32px;padding:0 4px;letter-spacing:.02em
}
#platformHeader .search-clear:hover{color:var(--t1)}
#platformHeader .sr-hrow{
  display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch
}
#platformHeader .sr-hrow::-webkit-scrollbar{height:0}
#platformHeader .sr-tile{
  flex:0 0 168px;min-width:0;scroll-snap-align:start;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  padding:12px;border:0;border-radius:14px;text-align:left;cursor:pointer;
  background:var(--header-hover);color:inherit;font:inherit;
  box-shadow:inset 0 0 0 1px var(--header-ring);
  transition-property:transform,box-shadow,background-color;transition-duration:.16s;
  animation:srTileIn .32s cubic-bezier(.2,0,0,1) both;
  -webkit-font-smoothing:antialiased
}
#platformHeader .sr-tile:hover,#platformHeader .sr-tile.sr--active{
  box-shadow:inset 0 0 0 1px var(--blue);background:var(--header-hover)
}
#platformHeader .sr-tile:active{transform:scale(.96)}
@keyframes srTileIn{
  from{opacity:0;transform:translateY(8px) scale(.98);filter:blur(4px)}
  to{opacity:1;transform:none;filter:none}
}
#platformHeader .sr-tile-av{
  width:36px;height:36px;border-radius:50%;overflow:hidden;flex-shrink:0;
  outline:1px solid rgba(0,0,0,.1);outline-offset:-1px
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .sr-tile-av{
  outline-color:rgba(255,255,255,.1)
}
#platformHeader .sr-tile-nm{
  font-size:13px;font-weight:700;color:var(--t1);max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
#platformHeader .sr-tile-pnl{
  font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em
}
#platformHeader .sr-tile-pnl span{margin-left:6px;opacity:.9}
#platformHeader .sr-tile-pnl.is-up{color:#3DDC84}
#platformHeader .sr-tile-pnl.is-dn{color:#F43F5E}
#platformHeader .sr-tile-top{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
#platformHeader .sr-tile-coin .sr-img{width:32px;height:32px;border-radius:10px;flex-shrink:0;overflow:hidden;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .sr-tile-coin .sr-img{outline-color:rgba(255,255,255,.1)}
#platformHeader .sr-spark{width:100%;height:28px;display:block}
#platformHeader .sr-spark--empty{height:28px;width:100%;border-radius:6px;background:linear-gradient(90deg,transparent,rgba(127,127,127,.12),transparent)}
#platformHeader .sr-tile-mc{
  font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;
  letter-spacing:-.04em;color:var(--t1)
}
#platformHeader .sr-hist{display:flex;flex-wrap:wrap;gap:8px;min-height:20px}
#platformHeader .sr-chip{
  display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;
  border:0;border-radius:999px;cursor:pointer;font:inherit;font-size:12px;font-weight:600;
  color:var(--t2);background:var(--header-hover);box-shadow:inset 0 0 0 1px var(--header-ring)
}
#platformHeader .sr-chip:hover{color:var(--t1)}
#platformHeader .sr-chip:active{transform:scale(.96)}
#platformHeader .sr-chip-coin .sr-img{width:18px;height:18px;border-radius:6px;overflow:hidden}
#platformHeader .sr-hist-empty,#platformHeader .sr-hrow .sr-empty{
  font-size:13px;color:var(--t3);padding:4px 0 8px
}
#platformHeader .is-discovery #searchResults,#platformHeader .is-discovery #searchPeopleResults{display:none}
#platformHeader #searchQuery .sr{
  display:flex;align-items:center;gap:12px;padding:10px 8px;border-radius:12px;cursor:pointer
}
#platformHeader #searchQuery .sr:hover,#platformHeader #searchQuery .sr--active{background:var(--header-hover)}
#platformHeader .sr-empty{font-size:13px;padding:8px 0;min-width:0;color:var(--t2);text-align:left}

/* Reference-matched search surface. The open wrapper owns both the input
   and scrolling content so the whole dialog, not just the input, is centered. */
#platformHeader .ms-wrap.is-open{
  --search-bg:#fafafa;--search-card:#f0f0f1;--search-line:rgba(0,0,0,.1);
  --search-text:#202125;--search-muted:#747982;--search-positive:#27854e;
  --search-card-hover:#e8e8ea;
  top:50%;left:50%;transform:translate(-50%,-50%);width:min(1180px,calc(100vw - 48px));
  height:auto;max-height:calc(100dvh - 48px);border-radius:12px;
  background:var(--search-bg);box-shadow:0 0 0 1px var(--search-line),0 24px 90px rgba(0,0,0,.25);
  overflow:hidden;z-index:360;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .ms-wrap.is-open{
  --search-bg:#09090b;--search-card:#18181b;--search-card-hover:#1e1e22;
  --search-line:rgba(255,255,255,.12);--search-text:#f4f4f5;
  --search-muted:#9ca3af;--search-positive:#80e6a5;
}
#platformHeader .ms-wrap.is-open .search-bar{
  height:58px;min-height:58px;flex-shrink:0;padding:0 18px;gap:14px;border:0;
  border-bottom:1px solid var(--search-line);border-radius:0;
  background:var(--search-bg);box-shadow:none;
}
#platformHeader .ms-wrap.is-open .ms-inp{font-size:16px;font-weight:400;color:var(--search-text);letter-spacing:0}
#platformHeader .ms-wrap.is-open .ms-inp::placeholder{color:var(--search-muted)}
#platformHeader .ms-wrap.is-open .s-ico{color:var(--search-muted);opacity:1;width:18px;height:18px}
#platformHeader .ms-wrap.is-open .ms-kbd{display:none}
#platformHeader .ms-wrap.is-open .ms-drop{
  position:static;flex:1;min-height:0;max-height:none;width:100%;border-radius:0;
  background:var(--search-bg);box-shadow:none;overflow-y:auto;overscroll-behavior:contain;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .ms-wrap.is-open .search-bar{
  background:var(--search-bg);
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .ms-wrap.is-open .ms-drop{
  background:var(--search-bg);
}
#platformHeader .ms-drop-inner{padding:0;max-height:none;overflow:visible}
#platformHeader #searchDiscovery{padding:20px 24px 28px}
#platformHeader #searchQuery{padding:8px 24px 24px}
#platformHeader .search-sec{font-size:12px;font-weight:500;line-height:1.2;letter-spacing:.025em;color:var(--search-muted);margin:30px 0 12px}
#platformHeader #searchDiscovery > .search-sec:first-child{margin-top:0}
#platformHeader .sr-hrow{
  gap:16px;padding:2px;margin:0 -2px;scrollbar-width:none;
  scroll-snap-type:x mandatory;overscroll-behavior-inline:contain
}
#platformHeader .sr-tile{
  flex:0 0 140px;padding:12px;border-radius:8px;color:var(--search-text);gap:0;animation:none;
  background:var(--search-card);
  box-shadow:inset 0 0 0 1px var(--search-line)
}
#platformHeader .sr-tile:hover,#platformHeader .sr-tile.sr--active{background:var(--search-card-hover);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
#platformHeader #searchTraders .sr-tile{flex-basis:calc((100% - 48px)/4)}
#platformHeader #searchHotCoins .sr-tile{flex-basis:calc((100% - 64px)/5)}
#platformHeader .sr-tile-trader{min-height:84px;justify-content:space-between;gap:12px}
#platformHeader .sr-tile-top{gap:8px}
#platformHeader .sr-tile-av{width:28px;height:28px}
#platformHeader .sr-tile-av > *{max-width:100%;max-height:100%}
#platformHeader .sr-tile-nm,#platformHeader .sr-tile-coin .sr-nm{font-size:14px;font-weight:600;line-height:18px;color:var(--search-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#platformHeader .sr-tile-pnl{font-size:16px;font-weight:600;white-space:nowrap;letter-spacing:-.025em}
#platformHeader .sr-tile-pnl span{font-size:inherit;font-weight:inherit;margin-left:8px;letter-spacing:inherit}
#platformHeader .sr-tile-pnl.is-up{color:var(--search-positive)}
#platformHeader .sr-tile-coin{min-height:150px}
#platformHeader .sr-tile-coin .sr-img{width:28px;height:28px;border-radius:50%}
#platformHeader .sr-tile-coin .sr-info{flex:1;min-width:0}
#platformHeader .sr-tile-coin .sr-tk{font-size:11px;font-weight:400;line-height:17px;color:var(--search-muted)}
#platformHeader .sr-spark,#platformHeader .sr-spark--empty{height:46px;width:100%;margin:16px 0 12px}
#platformHeader .sr-spark--empty{background:none;display:grid;place-items:center;color:var(--search-muted)}
#platformHeader .sr-spark--empty::after{content:'—'}
#platformHeader .sr-tile-mc{font-size:16px;font-weight:600;letter-spacing:-.02em;color:var(--search-text)}
#platformHeader .search-clear{color:var(--search-muted);font-weight:500;font-size:11px;padding:0;min-height:24px}
#platformHeader .search-sec-row{margin-bottom:12px}
#platformHeader .sr-hist{min-height:20px}
#platformHeader .sr-hist-empty{font-size:13px;color:var(--search-muted);opacity:.65;padding:0}
#platformHeader .sr-chip{border-radius:8px;background:var(--search-card);color:var(--search-text);box-shadow:inset 0 0 0 1px var(--search-line);font-weight:500}
#platformHeader .sr-chip:hover{background:var(--search-card-hover);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
@media(max-width:900px){
  #platformHeader #searchTraders .sr-tile{flex-basis:220px}
  #platformHeader #searchHotCoins .sr-tile{flex-basis:176px}
}
/* Launch studio: poster A — two-column deploy sheet + coin bokeh. */
#createModal#createModal{
  --studio-bg:#141518;
  --studio-field:#1c1e22;
  --studio-line:rgba(255,255,255,.1);
  --studio-ink:#f4f4ef;
  --studio-muted:#8b8b84;
  --studio-dim:#5c5c56;
  --studio-blue:#0098EA;
  color-scheme:dark;
  padding:28px!important;
  /* flex-start + margin:auto on the sheet, not align-items:center — a centred
     flex item taller than its scroll container overflows past the top edge,
     where it cannot be scrolled to. margin:auto still centres it when it fits. */
  align-items:flex-start;justify-content:center;
  background:#050505!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  overflow-y:auto;-webkit-font-smoothing:antialiased;
}
#createModal#createModal .cm-coins{
  /* Fixed, not absolute: the overlay scrolls once the sheet outgrows the
     viewport, and an absolutely positioned inset:0 only covers the first
     screenful of that scroll box — past it the overlay's own #050505 showed
     through as a black band under the wallpaper. */
  position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;
  background:#050505;
  opacity:0;transition:opacity .35s cubic-bezier(.2,0,0,1);
}
/* The wallpaper is half a megabyte and only starts loading when the studio
   opens, so the form used to sit on flat black for a second or two. This is the
   same picture 40px wide, inlined and blurred up: it paints in the first frame,
   and the full-size one crossfades over it once it has decoded (js/create-backdrop.js). */
#createModal#createModal .cm-coins::before{
  content:'';position:absolute;inset:-5%;
  background:url(data:image/webp;base64,UklGRkwCAABXRUJQVlA4IEACAABwCgCdASooABcAPulepk0pJSOiKq35IB0JbACpJxGn6YEGz20t2gb0RPkeW0HHwEgBKm3i2xofSB8T7zN6StqSC/OezDzP14t8TDTe6gNLpHz3Q7Ts+Wn/SsD9QADOJX0UXb4Hb7XVGgSUwPpOnzv1KquWnX1TBFD9tGVvpf3k3gtKUksxmXx1zFY3RvDLnSVepEetgUnfer+ODuvaWczX1hAYZpmKPOlpYSifmfjALNkVwjLcPsjjQ/Z95DRSgPvdD7aaODQsl4VqrDg1rzFaWz03bVk0bA5yFHnO5ff5fE4ndlq4duTq2ZyZFBAUqhH3gqRSqusf15jg4E7GL9ksYR4eyH+eVXgMooy2CkG5sRdFt0XzVG2yQOJMA/Hv3arnXrmRRGOPixbZE10Stawkg3E1a/3gmrzj9k+oJDbquY9xFSdekocC8pfkr3MjF91nG78w22XIP/s5CLRh5TkkXeAWbVb/7HGD2VGhoRO3h8Xz194s7IhLOUnn2uTu+hdYaAOyhtME6j8fcNlrwp2USR1rZVnjb0636SFxKQGEcr3EN6O5nGHZhSDx+npwT/D+3sdQuYWFH4GLHonIp/8oeo44S8cqlyGq6HcVK8YaVsOMLfu55I6V21gMVPAUvPDcPSrYTwoF8TfPHtuqboXxmZINWO33HUj/O/5e6v/NtaZdPeAgcVvv5D665UnwkkOhQRtaqJKcwku+MFvOMKzm4epErhsEA7X4f/cyj6i/Xm/7qA8IwTLXDsT9YnAQAAA=) center / cover no-repeat;
  filter:blur(28px) saturate(1.12);
}
#createModal#createModal .cm-coins::after{
  content:'';position:absolute;inset:0;
  background:url(/img/create-cast/backdrop.webp?v=cast17) center / cover no-repeat;
  opacity:0;transition:opacity .4s cubic-bezier(.2,0,0,1);
}
#createModal#createModal .cm-coins.is-ready::after{opacity:1}
#createModal#createModal.open .cm-coins{opacity:1}

#createModal#createModal .cm-modal{
  position:relative;z-index:1;
  width:min(980px,calc(100vw - 48px));max-width:980px;
  /* No ceiling: opening the socials group used to push the form past 760px and
     hand it a scrollbar of its own. The sheet lengthens instead, and the
     overlay behind it takes over if that ever runs past the screen. */
  max-height:none;margin:auto;
  padding:0!important;overflow:hidden!important;
  border:0!important;border-radius:28px!important;
  color:var(--studio-ink);
  background:
    linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.05) 42%,rgba(8,8,10,.28))!important;
  backdrop-filter:blur(36px) saturate(2)!important;
  -webkit-backdrop-filter:blur(36px) saturate(2)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 40px 120px rgba(0,0,0,.5)!important;
}
#createModal#createModal .cm-inner{
  display:grid;grid-template-columns:minmax(0,1fr) 320px;
  min-height:560px;max-height:none;overflow:hidden;
}
#createModal#createModal .cm-form{
  padding:32px 32px 28px;max-height:none;overflow:visible;
  border:0!important;background:transparent!important;display:flex;flex-direction:column;gap:0;
}
#createModal#createModal .cm-form > *{flex-shrink:0}
#createModal#createModal .cm-head{margin-bottom:28px}
#createModal#createModal .cm-head-row{display:flex;align-items:center;gap:14px;margin-bottom:0}
#createModal#createModal .cm-title{
  margin:0;font-size:48px;font-weight:800;line-height:1.02;letter-spacing:-2px;
  color:#fff;text-wrap:balance;
  text-shadow:0 1px 18px rgba(0,0,0,.4);
}

#createModal#createModal .cm-panel{
  padding:0;margin:0 0 22px;border:0;border-radius:0;background:none;box-shadow:none;
}
#createModal#createModal .cm-panel-lbl{
  margin-bottom:12px;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--studio-ink);
}
#createModal#createModal .cm-panel-lbl::after{display:none}
#createModal#createModal .cm-panel--soft{padding-top:4px}
#createModal#createModal .cm-top-row{
  display:grid;grid-template-columns:116px minmax(0,1fr);gap:14px;margin-bottom:14px;align-items:start;
}
#createModal#createModal .cm-fields-col{display:flex;flex-direction:column;justify-content:center;min-height:116px}
#createModal#createModal .fg{margin:0}
#createModal#createModal .cm-label-row,
#createModal#createModal .cm-img-label{
  display:flex;align-items:baseline;justify-content:space-between;
  margin-bottom:6px;font-size:12px;font-weight:600;color:var(--studio-muted);
}
#createModal#createModal .cm-req{display:none}
#createModal#createModal .cm-opt{margin-left:4px;font-size:11px;font-weight:400;opacity:.55}
#createModal#createModal .fi-counter{font-size:11px;font-weight:500;color:var(--studio-dim);font-variant-numeric:tabular-nums}

#createModal#createModal .cm-img-sq{
  width:116px!important;height:116px!important;border-radius:16px!important;
}
#createModal#createModal .upload-zone.cm-img-sq{
  gap:6px;background:rgba(255,255,255,.06);color:var(--studio-muted);
  border:1.5px dashed rgba(255,255,255,.28);box-shadow:none;
  transition-property:background-color,border-color,color,transform;transition-duration:.16s;
}
#createModal#createModal .upload-zone.cm-img-sq:hover{
  background:rgba(0,152,234,.12);border-color:var(--studio-blue);color:var(--studio-ink);
}
#createModal#createModal .upload-zone.cm-img-sq:active{transform:scale(.96)}
#createModal#createModal .upload-zone .uz-txt{font-size:12px;font-weight:550;color:inherit}
#createModal#createModal .upload-prev.cm-img-sq{
  border:0;background:var(--studio-field);
  outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;
}
#createModal#createModal .upload-prev .upch{border-radius:15px}

#createModal#createModal .fi,
#createModal#createModal .fta,
#createModal#createModal .socials-btn,
#createModal#createModal .si-wrap{
  background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:none;
  border-radius:12px;color:var(--studio-ink);
  transition-property:border-color,box-shadow,background-color,transform;transition-duration:.16s;
}
#createModal#createModal .fi{height:44px;padding:0 14px;font-size:14px;font-weight:500}
#createModal#createModal .fta{height:88px;min-height:88px;padding:12px 14px;font-size:14px;line-height:1.45;resize:none;text-wrap:pretty}
#createModal#createModal .fi::placeholder,
#createModal#createModal .fta::placeholder{color:var(--studio-dim)}
#createModal#createModal .fi:focus,
#createModal#createModal .fta:focus{
  outline:0;border-color:var(--studio-blue);box-shadow:0 0 0 3px rgba(0,152,234,.18);
}
#createModal#createModal .cm-desc-fg{margin:0}

#createModal#createModal .socials-btn{
  width:100%;height:44px;margin:0 0 12px;padding:0 14px;
  display:flex;align-items:center;justify-content:space-between;
  font-size:13px;font-weight:600;color:var(--studio-muted);cursor:pointer;
}
#createModal#createModal .socials-btn:hover{border-color:rgba(0,152,234,.45);color:var(--studio-ink)}
#createModal#createModal .socials-btn:active{transform:scale(.96)}
#createModal#createModal .cm-social-label{display:flex;align-items:center;gap:8px}
#createModal#createModal .socials-btn .arr{font-size:10px;transition:transform .2s cubic-bezier(.2,0,0,1)}
#createModal#createModal .socials-btn.open .arr{transform:rotate(180deg)}
#createModal#createModal .socials-fields{gap:8px;margin:0 0 12px}
#createModal#createModal .si-wrap{overflow:hidden}
#createModal#createModal .si-wrap:focus-within{border-color:var(--studio-blue)}
#createModal#createModal .si-ico{width:38px;border-right:1px solid var(--studio-line)}
#createModal#createModal .si-wrap input{height:40px;color:var(--studio-ink);font-size:13px}
#createModal#createModal .cm-buy-wrap .fi{
  padding-right:62px;font-variant-numeric:tabular-nums;-moz-appearance:textfield;
}
#createModal#createModal .cm-buy-wrap .fi::-webkit-outer-spin-button,
#createModal#createModal .cm-buy-wrap .fi::-webkit-inner-spin-button{appearance:none;margin:0}
#createModal#createModal .cm-buy-unit{right:14px;font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--studio-dim)}

#createModal#createModal .cm-foot{position:static;margin-top:4px;padding:0;background:none}
#createModal#createModal .fee-row{
  padding:0 2px 12px;margin:0;border:0;background:none;box-shadow:none;
  font-size:13px;font-variant-numeric:tabular-nums;
}
#createModal#createModal .fee-lbl{color:var(--studio-muted);font-weight:500}
#createModal#createModal .fee-val{color:var(--studio-ink);font-weight:800}
#createModal#createModal .btn-launch{
  height:52px;min-height:52px;border-radius:14px;
  /* White, like the bone CTAs Void uses everywhere else — the sheet already sits
     over colour, so a blue slab competes with it. Text is set here rather than
     inherited, and -webkit-text-fill-color with it, since that outranks color. */
  color:#0A0A0A;-webkit-text-fill-color:#0A0A0A;
  background:linear-gradient(180deg,#FFFFFF,#ECECE4);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 28px rgba(0,0,0,.34);
  font-size:15px;font-weight:700;padding-left:16px;padding-right:14px;
  transition-property:box-shadow,transform,background;transition-duration:.18s;
}
#createModal#createModal .btn-launch:hover:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 34px rgba(0,0,0,.44);transform:none}
#createModal#createModal .btn-launch:active:not(:disabled){transform:scale(.96)}
#createModal#createModal .btn-launch .te{width:18px;height:18px}

#createModal#createModal .cm-prv{
  display:flex!important;flex-direction:column;width:auto;padding:32px 26px 28px;gap:16px;
  border:0;border-radius:0 28px 28px 0;
  background:transparent!important;
  box-shadow:inset 1px 0 0 rgba(255,255,255,.1)!important;
  overflow:hidden;
}
#createModal#createModal .prv-lbl{
  font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--studio-ink);margin-bottom:0;
}
#createModal#createModal .prv-card{
  border:0;border-radius:22px;overflow:hidden;
  background:rgba(8,8,10,.42);color:var(--studio-ink);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 0 1px rgba(255,255,255,.1),0 22px 50px rgba(0,0,0,.28);
}
#createModal#createModal .prv-img{
  aspect-ratio:1;width:100%;min-height:200px;border:0;border-radius:0;
  /* Same glass as the sheet rather than a slab: the artwork well is empty until
     a file is dropped in, so an opaque panel read as a hole in the card. The
     hairline is a bottom edge only — the card already draws the outer one. */
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.05) 46%,rgba(8,8,10,.2));
  outline:0;
  backdrop-filter:blur(18px) saturate(1.8);
  -webkit-backdrop-filter:blur(18px) saturate(1.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 -1px 0 rgba(255,255,255,.1);
  display:grid;place-items:center;font-size:64px;overflow:hidden;position:relative;
}
#createModal#createModal .prv-upload-hint{
  display:none;position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
  padding:6px 12px;border-radius:999px;white-space:nowrap;
  font-size:11.5px;font-weight:600;letter-spacing:.01em;color:var(--studio-ink);
  background:rgba(8,8,10,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:none;
}
#createModal#createModal .prv-emoji-img{
  width:96px;height:96px;object-fit:contain;display:block;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.42));
}
#createModal#createModal .prv-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:4px;background:transparent}
#createModal#createModal .prv-name{font-weight:800;font-size:18px;letter-spacing:-.3px;color:var(--studio-ink)}
#createModal#createModal .prv-tick{font-size:13px;font-weight:700;color:var(--studio-muted)}
#createModal#createModal .prv-mc{
  margin-top:8px;font-size:22px;font-weight:800;letter-spacing:-.6px;
  font-variant-numeric:tabular-nums;color:var(--studio-ink);
}
#createModal#createModal .prv-desc{font-size:12px;line-height:1.45;color:#6A6A62;text-wrap:pretty}
#createModal#createModal .modal-close{
  position:absolute;top:16px;right:16px;z-index:6;
  width:40px;height:40px;border:0;border-radius:50%;
  background:rgba(255,255,255,.1);color:var(--studio-muted);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  transition-property:background-color,color,transform;transition-duration:.16s;
}
#createModal#createModal .modal-close:hover{background:rgba(245,54,92,.12);color:#f5365c}
#createModal#createModal .modal-close:active{transform:scale(.96)}

@media(max-width:800px){
  #createModal#createModal{padding:12px!important;align-items:flex-end}
  #createModal#createModal .cm-modal{
    /* margin:0 undoes the desktop safe-centring — an auto margin on a flex item
       outranks align-items, and this is a bottom sheet. It keeps its own scroll
       here, which is the right pattern on a phone. */
    width:100%;margin:0;max-height:min(92dvh,100%);border-radius:22px 22px 0 0!important;
  }
  /* No room for a form beside a preview of it, so the preview becomes the form.
     display:contents flattens .cm-form's children into this flex line, which is
     the only way the title can sit above a card that is .cm-form's sibling —
     padding moves up here with it. */
  #createModal#createModal .cm-inner{
    display:flex;flex-direction:column;min-height:0;max-height:inherit;
    overflow-y:auto;padding:24px 20px 28px;
  }
  #createModal#createModal .cm-form{display:contents}
  #createModal#createModal .cm-head{order:-2;margin-bottom:18px}
  #createModal#createModal .cm-prv{
    display:block!important;order:-1;width:auto;padding:0;margin-bottom:24px;
    border-radius:0;box-shadow:none!important;overflow:visible;
    /* A column flex item here was given leftover sheet height, then the fields
       painted past that box onto EXTRAS. Block layout sizes to the card. */
    height:auto;max-height:none;min-height:0;flex-shrink:0;
  }
  #createModal#createModal .prv-lbl{display:none}          /* the card is the thing, not a preview of it */
  #createModal#createModal .cm-panel:not(.cm-panel--soft){display:none}  /* folded into the card */
  #createModal#createModal .cm-panel--soft{
    order:1;
    /* Desktop keeps padding-top:4px so Identity and Extras sit tight in the
       two-column sheet. Here that 4px puts the label on the card's bottom edge. */
    padding-top:20px;
  }
  #createModal#createModal .cm-foot{order:2}

  /* The preview's own artwork well takes over as the upload target, so the
     separate Artwork square would just ask for the same file twice. */
  #createModal#createModal .cm-img-col{display:none}
  /* style.css's own @media(max-width:700px) turns .prv-card into a row with a
     76px thumb — an older compact layout. The studio's .prv-img wins on
     specificity and stays width:100%, so in that row it claimed the whole line
     and squeezed .prv-body to zero width: the artwork showed and the name,
     ticker, cap and description silently had no room. Put the card back to a
     column here, where the artwork leads and the fields sit under it. */
  /* flex:0 0 auto, not the flex:1 style.css leaves behind: in this column that
     resolves to flex-basis:0 with shrinking allowed, so the card took its height
     from the container instead of its content and overflow:hidden cropped the
     description off the bottom. */
  #createModal#createModal .prv-card{
    display:block;align-items:stretch;flex:0 0 auto;
    /* Nothing left to crop. The card was clipping the description's last rows,
       and overflow:hidden was only ever there to round the artwork's corners —
       so the radius moves onto the artwork itself and the card stops hiding
       anything. Whatever mis-measures the height, it can no longer cost the
       user text they typed. */
    /* Block, not a nested flex column: as a flex item of the sheet it was
       assigned leftover height, and the body overflowed onto EXTRAS. */
    overflow:visible;height:auto;max-height:none;min-height:0;
    /* And the card paints nothing: its tint was ending short of the description
       by exactly the body's bottom padding. Each half draws its own box instead,
       so the panel is structurally the same box as the content — a background
       cannot come up shorter than the element drawing it. */
    background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;
  }
  #createModal#createModal .prv-img{
    cursor:pointer;min-height:0;width:100%;min-width:0;flex:0 0 auto;
    border-radius:22px 22px 0 0;      /* the card no longer clips these for it */
    box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 0 0 1px rgba(255,255,255,.1);
  }
  #createModal#createModal .prv-upload-hint{display:inline-flex}

  /* The card's read-only lines step aside for the inputs that moved in. */
  #createModal#createModal .prv-name,
  #createModal#createModal .prv-tick,
  #createModal#createModal .prv-desc{display:none}
  #createModal#createModal .prv-body{
    flex:0 0 auto;justify-content:flex-start;gap:14px;
    padding:16px 16px 20px;border-radius:0 0 22px 22px;
    background:rgba(8,8,10,.42);
    backdrop-filter:blur(18px) saturate(1.4);
    -webkit-backdrop-filter:blur(18px) saturate(1.4);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
  }
  #createModal#createModal .prv-body .fg{margin:0!important}
  #createModal#createModal .prv-body .cm-label-row{
    margin-bottom:6px;font-size:11.5px;font-weight:700;letter-spacing:.02em;color:var(--studio-muted);
  }
  #createModal#createModal .prv-body .fi,
  #createModal#createModal .prv-body .fta{
    /* One shape for all three so the stack reads as an even column. 16px is a
       floor, not a preference: iOS zooms the page on focus below it, and the
       13px ticker did exactly that. */
    display:block;box-sizing:border-box;width:100%;
    background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
    border-radius:12px;padding:11px 12px;color:var(--studio-ink);
    font-size:16px;line-height:1.25;
    /* The desktop .fta pins height:88px; release it so min-height governs and
       the description box is not a fixed slot the text can outgrow. */
    height:auto;
  }
  #createModal#createModal .prv-body #fName,
  #createModal#createModal .prv-body #fTicker{font-weight:700}
  #createModal#createModal .prv-body #fTicker{text-transform:uppercase}
  /* No inner scrollbar: _cmAutoGrowDesc() sizes the box to its text, so any
     overflow here would only ever be the flicker between keystroke and resize. */
  #createModal#createModal .prv-body #fDesc{
    min-height:96px;line-height:1.45;font-weight:500;resize:none;overflow-y:hidden;
  }
  #createModal#createModal .prv-body .prv-mc{margin:0}
  #createModal#createModal .cm-title{font-size:38px;letter-spacing:-1.5px}
  @media(max-width:360px){#createModal#createModal .cm-title{font-size:32px;letter-spacing:-1.2px}}
  #createModal#createModal .fi,#createModal#createModal .fta,#createModal#createModal .si-wrap input{font-size:16px}
}
@media(max-width:520px){
  #createModal#createModal .cm-top-row{grid-template-columns:1fr}
  #createModal#createModal .cm-img-col{align-items:center}
  #createModal#createModal .cm-img-label{align-self:stretch}
  #createModal#createModal .cm-fields-col{min-height:0}
}

#platformHeader{
  --header-surface:rgba(10,37,64,.045);
  --header-ring:rgba(10,37,64,.07);
  --header-hover:rgba(10,37,64,.06);
  height:var(--tb-h);padding:0 24px;gap:16px;
  background:transparent;
  border-bottom:0;box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader{
  --header-surface:#161616;
  --header-ring:rgba(255,255,255,.07);
  --header-hover:#202020;
  /* Same as light: no band of its own — the page shows through. */
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#platformHeader .topbar-launch-row{gap:12px}
#platformHeader .search-bar{
  height:46px;padding:0 17px;gap:11px;border:1px solid transparent;
  border-radius:24px;background:var(--header-surface);
  box-shadow:none;
  transition:background-color .16s,box-shadow .16s;
}
#platformHeader .search-bar:hover{background:var(--header-hover)}
#platformHeader .search-bar:focus-within{
  background:var(--header-surface);box-shadow:0 0 0 2px var(--blue);
}
#platformHeader .s-ico{width:18px;height:18px;opacity:.65;color:var(--t2)}
#platformHeader .ms-inp{font-size:14px;font-weight:400}
#platformHeader .ms-inp::placeholder{font-weight:400}
#platformHeader .ms-kbd{
  border:0;border-radius:8px;padding:5px 7px;font-weight:500;
  color:var(--t3);background:var(--header-hover);box-shadow:none;
}
#platformHeader .btn-top-create,
#platformHeader .btn-signin,
#platformHeader .wallet-bal-chip{
  height:44px;min-height:44px;border:0;border-radius:24px;
  background:var(--header-surface);color:var(--t1);
  box-shadow:none;font-weight:500;
  transition:background-color .16s,box-shadow .16s,transform .16s;
}
#platformHeader .btn-top-create{padding:0 20px 0 17px;gap:8px;min-width:44px}
#platformHeader .btn-top-create svg{color:var(--blue);flex-shrink:0}
#platformHeader .btn-top-create:hover,
#platformHeader .btn-signin:hover{background:var(--header-hover);transform:none;box-shadow:none}
#platformHeader .btn-top-create:active,
#platformHeader .btn-signin:active{transform:scale(.96)}
#platformHeader .btn-signin{background:var(--blue);color:#fff;padding:0 20px}
#platformHeader .btn-signin:hover{background:var(--blue2)}
#platformHeader .wallet-bal-chip{padding:0 16px;gap:9px}
#platformHeader .w-bal{font-weight:500;font-variant-numeric:tabular-nums}
#platformHeader .wbc-dot{width:6px;height:6px;box-shadow:none}
#platformHeader .topbar-right,#platformHeader .wallet-wrap{gap:12px}
#platformHeader .wallet-av-chip{min-width:44px;min-height:44px;display:grid;place-items:center}
#platformHeader button:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
/* Back is a quiet text control in both themes — it already was in light
   (via coin-detail-premium.css); dark used to draw a box around it. */
#platformHeader .btn-topbar-back{
  height:44px;padding:0 12px 0 8px;gap:6px;border:0;border-radius:12px;
  background:transparent;box-shadow:none;color:var(--t2);font-weight:500;
  transition-property:background-color,color;transition-duration:.16s;
}
#platformHeader .btn-topbar-back:hover{background:var(--header-hover);color:var(--t1);border:0;box-shadow:none;transform:none}
#platformHeader .btn-topbar-back:active{transform:scale(.96)}
/* The wallet/profile panel sits fixed under the transparent header; a flat
   var(--bg) fill there drew a near-white slab with a seam along the header and
   the sidebar. Give it the page's own gradient, pinned to the viewport like the
   body's, so it lines up with the page — still opaque over what it covers. */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .wlt-hist-panel{
  background:
    radial-gradient(1200px 520px at 18% -8%, rgba(0,152,234,.16), transparent 58%),
    radial-gradient(900px 480px at 92% 8%, rgba(77,184,255,.12), transparent 55%),
    linear-gradient(165deg, #E4F1FF 0%, #EEF5FF 42%, #F7FAFF 100%);
  background-attachment:fixed;
}
.wlt-hist-panel.wlt-hist-panel--page{box-shadow:none}
/* Dark remaps --blue to off-white, so Sign in needs a dark label, not #fff. */
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .btn-signin{color:#0A0A0A}

/* ══════════════════ Account cluster — composed as one premium terminal unit ══════════════════ */
#platformHeader .topbar-right{gap:10px}
#platformHeader .btn-top-create{
  min-width:124px;padding:0 19px 0 16px;gap:9px;
  font-weight:650;letter-spacing:-.01em;
  border:1px solid rgba(0,152,234,.42);
  background:linear-gradient(135deg,#18acf6 0%,#008add 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 7px 22px rgba(0,152,234,.22);
}
#platformHeader .btn-top-create svg{color:#fff}
#platformHeader .btn-top-create:hover{background:linear-gradient(135deg,#35bafa 0%,#0796eb 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 10px 26px rgba(0,152,234,.32)}
#platformHeader .wallet-wrap{gap:8px;padding-left:2px}
#platformHeader .wallet-bal-chip{
  min-width:150px;justify-content:center;padding:0 17px;
  background:linear-gradient(135deg,rgba(94,234,212,.13),rgba(255,255,255,.035));
  border:1px solid rgba(94,234,212,.2);color:var(--t1);
}
#platformHeader .wallet-bal-chip::before{content:'BALANCE';font-size:9px;font-weight:700;letter-spacing:.1em;color:var(--t3)}
#platformHeader .w-bal{min-width:0;font-size:14px;font-weight:700;letter-spacing:-.02em}
#platformHeader .wbc-dot{width:7px;height:7px;background:#5eead4;box-shadow:0 0 12px rgba(94,234,212,.65)}
#platformHeader .wallet-av-chip{width:44px;height:44px;min-width:44px;min-height:44px;padding:2px;border-radius:15px;background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
#platformHeader .wallet-av-chip:hover{background:rgba(255,255,255,.085);transform:translateY(-1px)}
#platformHeader .wallet-av-chip .w-avatar{width:36px;height:36px;outline:0;box-shadow:none}

/* The expanded wallet is deliberately spacious: balance first, three actions second. */
#platformHeader .wallet-dropdown{width:368px;padding:18px;border-radius:20px;overflow:visible;background:#111214;border:1px solid rgba(255,255,255,.11);box-shadow:0 26px 80px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.055)}
#platformHeader .wallet-dropdown::before{content:'';position:absolute;top:-6px;right:18px;width:12px;height:12px;transform:rotate(45deg);background:#111214;border-left:1px solid rgba(255,255,255,.11);border-top:1px solid rgba(255,255,255,.11)}
#platformHeader .wd-card-head{padding:2px 2px 17px;border-bottom:1px solid rgba(255,255,255,.08)}
#platformHeader .wd-avatar{width:42px;height:42px;outline:1px solid rgba(255,255,255,.13)}
#platformHeader .wd-name{font-size:15px;font-weight:700;color:#f4f4ef}
#platformHeader .wd-name-row::after{content:'CONNECTED';margin-left:4px;padding:3px 6px;border-radius:5px;background:rgba(94,234,212,.1);color:#7df2dc;font-size:8px;font-weight:800;letter-spacing:.08em}
#platformHeader .wd-tool{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.055);color:#a7aaa7}
#platformHeader .wd-tool:hover{background:rgba(255,255,255,.11);color:#fff}
#platformHeader .wd-bal-block{margin:0;padding:20px 4px 18px;text-align:left}
#platformHeader .wd-bal-lbl{justify-content:flex-start;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.1em;color:#888b88}
#platformHeader .wd-bal-amt{text-align:left;margin-top:7px;font-size:35px;font-weight:750;letter-spacing:-.055em;color:#f5f5f0}
#platformHeader .wd-bal-sub{font-size:13px;color:#8e918e}
#platformHeader .wd-circles{margin:0;padding:12px 0 0;gap:8px;border-top:1px solid rgba(255,255,255,.08)}
#platformHeader .wd-circle{gap:7px;padding:10px 5px 7px;border-radius:13px}
#platformHeader .wd-circle:hover{background:rgba(255,255,255,.045)}
#platformHeader .wd-circle-ico{width:44px;height:44px;border-radius:13px;background:#202124;color:#f1f1eb}
#platformHeader .wd-circle--dep .wd-circle-ico{background:rgba(94,234,212,.13);color:#6cead5}
#platformHeader .wd-circle--out .wd-circle-ico{background:rgba(255,255,255,.055);color:#b6b8b4}
#platformHeader .wd-circle:hover .wd-circle-ico{background:rgba(255,255,255,.13);transform:translateY(-1px)}
#platformHeader .wd-circle--dep:hover .wd-circle-ico{background:rgba(94,234,212,.2)}
#platformHeader .wd-circle-t{font-size:11px;font-weight:700;color:#a8aaa6}
#platformHeader .wd-circle:hover .wd-circle-t{color:#fff}

/* Receive sheet: removes decorative emoji and turns the address into the main control. */
#depositModal{padding:24px}
#depositModal .dep-modal{position:relative;width:min(100%,430px);max-width:430px;padding:0 26px 24px;border-radius:24px;background:#101113;border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 100px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.05);color:#f4f4ef}
#depositModal .dep-close{top:16px;right:16px;width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1);color:#aaa;line-height:28px}
#depositModal .dep-head{text-align:center;padding:30px 36px 19px}
#depositModal .dep-mark{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 14px;border-radius:13px;background:rgba(94,234,212,.13);color:#64ead3}
#depositModal .dep-mark svg{width:21px;height:21px}
#depositModal .dep-kicker{font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#8E928D;margin-bottom:6px}
#depositModal .dep-title{padding:0;font-size:25px;font-weight:760;letter-spacing:-.04em;color:#f5f5ef}
#depositModal .dep-sub{padding:7px 0 0;font-size:13px;line-height:1.45;color:#989b96}
#depositModal .dep-qr-wrap{width:176px;height:176px;margin:0 auto 21px;padding:8px;border:0;border-radius:17px;background:#fafaf6;box-shadow:0 12px 32px rgba(0,0,0,.28)}
#depositModal #depositQR{width:160px!important;height:160px!important;border-radius:10px}
#depositModal .dep-qr-logo{width:30px;height:30px;border-radius:9px;background:#101113;color:#72ead7;font-size:13px;font-weight:850;box-shadow:0 0 0 4px #fafaf6}
#depositModal .dep-address-block{padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.035)}
#depositModal .dep-address-label{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.1em;color:#9A9E99;margin:0 2px 8px}
#depositModal .dep-addr-row{display:flex;gap:10px;align-items:center;margin:0;padding:0;border:0;background:none}
#depositModal .dep-addr{min-width:0;font-size:11px;line-height:1.4;color:#e5e6df;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
#depositModal .dep-copy-btn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid rgba(94,234,212,.22);border-radius:10px;background:rgba(94,234,212,.12);color:#78ead8;font-size:11px;font-weight:750;white-space:nowrap}
#depositModal .dep-copy-btn svg{width:14px;height:14px}
#depositModal .dep-copy-btn:hover{background:rgba(94,234,212,.2)}
#depositModal .dep-network-note{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:0 2px;color:#8a8d89}
#depositModal .dep-network-note>span{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#5eead4;box-shadow:0 0 9px rgba(94,234,212,.55);flex-shrink:0}
#depositModal .dep-network-note strong,#depositModal .dep-network-note small{display:block}
#depositModal .dep-network-note strong{font-size:11px;color:#c4c7c1}
#depositModal .dep-network-note small{margin-top:2px;font-size:11px;line-height:1.4}
@media(max-width:640px){#platformHeader .wallet-bal-chip::before{display:none}#platformHeader .wallet-bal-chip{min-width:0;padding:0 13px}#platformHeader .w-bal{font-size:13px}#platformHeader .btn-top-create{min-width:44px;padding:0 13px}#platformHeader .btn-top-create .ct-lbl{display:none}#platformHeader .wallet-dropdown{position:fixed;top:calc(var(--tb-h) + 8px);right:10px;width:min(368px,calc(100vw - 20px))}#depositModal{padding:12px;align-items:center}#depositModal .dep-modal{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){
  #platformHeader .btn-topbar-back{transition:none}
  #platformHeader .btn-topbar-back:active{transform:none}
}
@media(max-width:700px){
  :root{--tb-h:64px}
  #platformHeader{height:calc(var(--tb-h) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 12px 0;gap:8px}
  #platformHeader .topbar-launch-row,#platformHeader .topbar-right,#platformHeader .wallet-wrap{gap:8px}
  #platformHeader .search-bar{height:44px;padding:0 12px;gap:8px}
  #platformHeader .ms-inp{font-size:16px}
  #platformHeader .btn-top-create{width:44px;padding:0}
  #platformHeader .btn-signin{padding:0 14px}
  #platformHeader .btn-topbar-back{min-width:40px;height:44px;padding:0 8px}
  #platformHeader .ms-kbd{display:none}
  #platformHeader .ms-wrap.is-open{top:16px;transform:translateX(-50%);width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}
  #platformHeader .ms-wrap.is-open .ms-drop{max-height:none}
  #platformHeader .ms-drop-inner{padding:0}
}
@media(prefers-reduced-motion:reduce){
  #platformHeader .search-bar,#platformHeader .btn-top-create,#platformHeader .btn-signin,#platformHeader .sr-tile{transition:none;animation:none}
  #platformHeader .btn-top-create:active,#platformHeader .btn-signin:active,#platformHeader .sr-tile:active{transform:none}
  #createModal#createModal.open .cm-coins,
  #createModal#createModal .cm-coins::after{transition:none}
}

/* ══════════════════ Wallet composition v2 — quiet, minimal, balance-led ══════════════════ */
#platformHeader .btn-top-create{
  min-width:112px;padding:0 22px;
  border:1px solid rgba(94,234,212,.14);
  background:linear-gradient(135deg,rgba(94,234,212,.10),rgba(255,255,255,.035));
  color:var(--t1);box-shadow:none;font-size:14px;font-weight:700;
}
#platformHeader .btn-top-create:hover{
  border-color:rgba(94,234,212,.24);
  background:linear-gradient(135deg,rgba(94,234,212,.15),rgba(255,255,255,.055));
  color:var(--t1);box-shadow:none;transform:none;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .btn-top-create,
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .btn-top-create:hover{
  background-image:linear-gradient(135deg,rgba(94,234,212,.10),rgba(255,255,255,.035));
  background-color:transparent;border-color:rgba(94,234,212,.14);color:#f4f4ef;-webkit-text-fill-color:#f4f4ef;
}
#platformHeader .wallet-dropdown{
  width:388px;padding:14px;border-radius:22px;overflow:hidden;
  background:#101113;border:0;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 28px 80px rgba(0,0,0,.5);
}
#platformHeader .wallet-dropdown::before{display:none}
#platformHeader .wd-card-head{
  min-height:50px;padding:0 4px;border:0;align-items:center;
}
#platformHeader .wd-ident{gap:11px}
#platformHeader .wd-avatar{width:38px;height:38px}
#platformHeader .wd-name-row{gap:0}
#platformHeader .wd-name-row::after{display:none;content:none}
#platformHeader .wd-name{font-size:14px;font-weight:650;letter-spacing:-.02em}
#platformHeader .wd-tool{
  width:40px;height:40px;border-radius:12px;background:transparent;color:#8f938e;
}
#platformHeader .wd-tool:hover{background:rgba(255,255,255,.06);color:#f4f4ef}
#platformHeader .wd-bal-block{
  margin:10px 0 0;padding:22px 18px 20px;border-radius:17px;
  background:rgba(255,255,255,.035);text-align:left;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.065);
}
#platformHeader .wd-bal-lbl{
  display:flex;justify-content:space-between;width:100%;font-size:10px;font-weight:700;
  letter-spacing:.1em;color:#737772;
}
#platformHeader .wd-eye{width:32px;height:28px;margin:-8px -7px -7px 0;color:#737772}
#platformHeader .wd-bal-amt{
  margin-top:13px;font-size:44px;font-weight:720;line-height:.98;letter-spacing:-.065em;color:#f7f7f2;
}
#platformHeader .wd-bal-sub{margin-top:10px;font-size:14px;font-weight:550;color:#858985}
#platformHeader .wd-circles{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0;padding:0;border:0;
}
#platformHeader .wd-circle{
  min-height:52px;flex-direction:row;justify-content:flex-start;gap:10px;padding:0 15px;
  border-radius:14px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
  transition-property:background-color,box-shadow,transform;transition-duration:140ms;
}
#platformHeader .wd-circle--dep{
  grid-column:1/-1;min-height:56px;background:#e9f5f1;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}
#platformHeader .wd-circle:hover{background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.09)}
#platformHeader .wd-circle--dep:hover{background:#f2faf7;box-shadow:inset 0 0 0 1px #fff}
#platformHeader .wd-circle:active{transform:scale(.96)}
#platformHeader .wd-circle-ico,
#platformHeader .wd-circle--dep .wd-circle-ico,
#platformHeader .wd-circle--out .wd-circle-ico{
  width:22px;height:22px;border-radius:0;background:transparent;color:#a3a7a2;flex-shrink:0;
}
#platformHeader .wd-circle--dep .wd-circle-ico{color:#0d6558}
#platformHeader .wd-circle:hover .wd-circle-ico,
#platformHeader .wd-circle--dep:hover .wd-circle-ico{background:transparent;transform:none}
#platformHeader .wd-circle-t{font-size:13px;font-weight:650;color:#c7cac5;text-align:left}
#platformHeader .wd-circle--dep .wd-circle-t{color:#102b27;font-size:14px;font-weight:750}
#platformHeader .wd-circle--out .wd-circle-t{color:#a3a6a2}
#platformHeader .wd-circle:hover .wd-circle-t{color:#f5f5f0}
#platformHeader .wd-circle--dep:hover .wd-circle-t{color:#102b27}
@media(max-width:640px){
  #platformHeader .btn-top-create{min-width:44px;width:auto;padding:0 15px}
  #platformHeader .btn-top-create .ct-lbl{display:inline}
  /* style.css caps the old compact menu at 220px on phones — that squeezed this
     panel until Disconnect clipped and the balance broke over two lines. */
  #platformHeader .wallet-dropdown{width:min(388px,calc(100vw - 20px));min-width:0;max-width:calc(100vw - 20px)}
}

/* ════════ Vault dialogs · Receive, Withdraw, recovery-phrase brief ════════
   One quiet language: a small mark, a title, and only the lines that change what
   you do. New .wmx-* classes, so none of the older .wm-* card/pill styles (three
   files deep) reach these screens. Contrast is measured on the box grounds:
   light #FFFFFF→#F5F9FF, dark #0C0C0C. */
#wmModal{
  --wmx-ink:#0A2540;
  --wmx-mute:#4A6B8A;          /* 5.28:1 on #F5F9FF */
  --wmx-faint:#557391;         /* 4.68:1 on #F5F9FF */
  --wmx-well:#F2F6FA;
  --wmx-field:#FFFFFF;
  --wmx-field-line:#7D93A8;    /* 3.01:1 field edge */
  --wmx-accent:#0077CC;        /* white label 4.66:1 (sky #0098EA gave 3.14) */
  --wmx-accent-hover:#006BB8;
  --wmx-on-accent:#FFFFFF;
  --wmx-link:#006BB8;           /* 5.0:1 on the Max tint */
  --wmx-mark-bg:rgba(0,152,234,.1);
  --wmx-mark-fg:#0077CC;
  --wmx-focus:#0077CC;
  --wmx-danger:#C0262D;
  --wmx-qr-shadow:0 0 0 1px rgba(10,37,64,.08),0 10px 28px rgba(10,37,64,.1);
}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #wmModal{
  --wmx-ink:#F4F4EF;
  --wmx-mute:#A8A8A0;          /* 8.17:1 */
  --wmx-faint:#85857E;         /* 5.27:1 */
  --wmx-well:rgba(255,255,255,.05);
  --wmx-field:rgba(255,255,255,.03);
  --wmx-field-line:#66665F;    /* 3.38:1 */
  --wmx-accent:#E8E8E0;
  --wmx-accent-hover:#F4F4EF;
  --wmx-on-accent:#0A0A0A;
  --wmx-link:#E8E8E0;
  --wmx-mark-bg:rgba(255,255,255,.07);
  --wmx-mark-fg:#EDEDE6;
  --wmx-focus:#EDEDE6;
  --wmx-danger:#FF8A80;
  --wmx-qr-shadow:0 12px 32px rgba(0,0,0,.45);
}

#wmModal .wm-modal-box:has(> #wmModalBody > .wmx){max-width:400px;padding:30px 28px 28px}
#wmModal .wmx{display:flex;flex-direction:column;margin:0;color:var(--wmx-ink)}
/* Desktop brief matches Receive/Withdraw; the sheet still widens to 680 (phones go fullscreen) */

#wmModal .wmx-head{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:22px;text-align:center}
#wmModal .wmx-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--wmx-mark-bg);color:var(--wmx-mark-fg)}
#wmModal .wmx-title{margin:0;font-family:inherit;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.02em;color:var(--wmx-ink);text-wrap:balance}
#wmModal .wmx-sub{margin:-4px 0 0;max-width:32ch;font-size:13.5px;line-height:1.5;color:var(--wmx-mute);text-wrap:pretty}

/* Receive */
#wmModal .wmx-qr{display:grid;place-items:center;width:196px;height:196px;margin:0 auto 20px;padding:8px;border-radius:20px;background:#fff;box-shadow:var(--wmx-qr-shadow)}
#wmModal .wmx-qr canvas{display:block;border-radius:12px!important}
#wmModal .wmx-addr{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;border-radius:14px;background:var(--wmx-well)}
#wmModal .wmx-addr-text{flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.5;color:var(--wmx-ink);overflow-wrap:anywhere;user-select:all}
#wmModal .wmx-copy{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:88px;height:36px;padding:0 12px;border:0;border-radius:10px;background:var(--wmx-accent);color:var(--wmx-on-accent);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition-property:background-color,scale;transition-duration:.15s}
#wmModal .wmx-copy-ic{display:grid;width:14px;height:14px}
#wmModal .wmx-copy-ic svg{grid-area:1/1;transition-property:opacity,scale,filter;transition-duration:.2s;transition-timing-function:cubic-bezier(0.2,0,0,1)}
#wmModal .wmx-copy .ic-done,
#wmModal .wmx-copy.is-copied .ic-copy{opacity:0;scale:.25;filter:blur(4px)}
#wmModal .wmx-copy.is-copied .ic-done{opacity:1;scale:1;filter:blur(0)}
#wmModal .wmx-note{margin:14px 0 0;font-size:12.5px;line-height:1.4;color:var(--wmx-faint);text-align:center}

/* Withdraw */
#wmModal .wmx-fields{display:flex;flex-direction:column;gap:16px}
#wmModal .wmx-field{display:flex;flex-direction:column;gap:8px}
#wmModal .wmx-lbl-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#wmModal .wmx-lbl{font-size:13px;font-weight:600;color:var(--wmx-ink)}
#wmModal .wmx-avail{font-size:12.5px;color:var(--wmx-mute);font-variant-numeric:tabular-nums;white-space:nowrap}
#wmModal .wmx-avail b{font-weight:600;color:var(--wmx-ink)}
#wmModal .wmx-shell{display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border:1px solid var(--wmx-field-line);border-radius:12px;background:var(--wmx-field);transition-property:border-color,box-shadow;transition-duration:.15s}
#wmModal .wmx-shell-amt{padding-right:6px}
#wmModal .wmx-shell:focus-within{border-color:var(--wmx-focus);box-shadow:0 0 0 1px var(--wmx-focus)}
#wmModal .wmx-shell:has([aria-invalid="true"]){border-color:var(--wmx-danger);box-shadow:0 0 0 1px var(--wmx-danger)}
#wmModal .wmx-input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;box-shadow:none;color:var(--wmx-ink);font-family:inherit;font-size:16px;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
#wmModal .wmx-input::placeholder{color:var(--wmx-faint);opacity:1}
#wmModal .wmx-input::-webkit-inner-spin-button,
#wmModal .wmx-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#wmModal .wmx-cur{font-size:13px;font-weight:600;color:var(--wmx-mute)}
#wmModal .wmx-max{height:34px;padding:0 12px;border:0;border-radius:7px;background:var(--wmx-mark-bg);color:var(--wmx-link);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition-property:background-color,scale;transition-duration:.15s}
#wmModal .wmx-err{min-height:20px;margin:8px 0 8px;font-size:12.5px;font-weight:500;line-height:20px;color:var(--wmx-danger)}

/* Primary action — one filled button per screen */
#wmModal .wmx-btn{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border:0;border-radius:14px;background:var(--wmx-accent);color:var(--wmx-on-accent);font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;transition-property:background-color,scale,opacity;transition-duration:.15s}
#wmModal .wmx-btn:disabled{opacity:.55;cursor:default}
@media (hover:hover){
  #wmModal .wmx-btn:not(:disabled):hover,
  #wmModal .wmx-copy:hover{background:var(--wmx-accent-hover)}
  #wmModal .wmx-max:hover{background:var(--wmx-well)}
}
#wmModal :is(.wmx-btn:not(:disabled),.wmx-copy,.wmx-max):active{scale:.96}
#wmModal :is(.wmx-btn,.wmx-copy,.wmx-max):focus-visible{outline:2px solid var(--wmx-focus);outline-offset:2px}

/* Recovery phrase · brief. On phones the dialog is fullscreen: the words sit in
   the middle, the button and the disclosure stay at the thumb. */
#wmModal .wmx-brief-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:4px 0 26px;text-align:center}

@media (max-width:480px){
  #wmModal .wm-modal-box:has(> #wmModalBody > .wmx){padding:26px 20px 22px}
}
/* Narrow phones: the address takes the full row, Copy goes under it */
@media (max-width:360px){
  #wmModal .wmx-addr{flex-wrap:wrap;padding:12px}
  #wmModal .wmx-addr-text{flex-basis:100%}
  #wmModal .wmx-copy{width:100%}
}
@media (prefers-reduced-motion:reduce){
  #wmModal .wmx-copy-ic svg{transition-property:opacity}
  #wmModal :is(.wmx-btn,.wmx-copy,.wmx-max):active{scale:1}
}

/* ════════ Account cluster by theme ════════
   Light: Launch and Balance are light-blue pills, the wallet panel is paper with
   a sky balance card and one filled Receive. Dark: Launch is the off-white
   primary, Balance a white-tinted glass pill; the panel keeps its charcoal look.
   Text pairs measured: light ≥5.3:1, dark ≥6.5:1. */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .btn-top-create{
  background:#CFE8FF;border:1px solid rgba(0,152,234,.3);color:#0A2540;box-shadow:none;
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .btn-top-create:hover{
  background:#BEE0FF;border-color:rgba(0,152,234,.42);color:#0A2540;
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wallet-bal-chip{
  background:linear-gradient(135deg,#DCEFFF,#EEF7FF);border:1px solid rgba(0,152,234,.24);color:#0A2540;
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wallet-bal-chip::before{color:#3F6689}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wbc-dot{background:#0098EA;box-shadow:0 0 10px rgba(0,152,234,.45)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wallet-av-chip{background:#DCEFFF;box-shadow:inset 0 0 0 1px rgba(0,152,234,.24)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wallet-av-chip:hover{background:#CFE8FF}

html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wallet-dropdown{
  background:#FFFFFF;
  box-shadow:0 0 0 1px rgba(0,152,234,.16),0 28px 80px rgba(10,37,64,.18);
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-avatar{outline:1px solid rgba(10,37,64,.1)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-name{color:#0A2540}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-social{color:#4A6B8A}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-tool{color:#4A6B8A}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-tool:hover{background:#EAF4FE;color:#0077CC}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-bal-block{
  background:linear-gradient(160deg,#E3F1FF,#EFF7FF);box-shadow:inset 0 0 0 1px rgba(0,152,234,.14);
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader :is(.wd-bal-lbl,.wd-eye,.wd-bal-sub){color:#4A6B8A}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-bal-amt{color:#0A2540}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle{background:#F2F8FF;box-shadow:inset 0 0 0 1px rgba(0,152,234,.12)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle:hover{background:#E6F2FE;box-shadow:inset 0 0 0 1px rgba(0,152,234,.22)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle .wd-circle-ico{color:#4A6B8A}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader :is(.wd-circle .wd-circle-t,.wd-circle--out .wd-circle-t){color:#2E4F6E}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle:hover .wd-circle-t{color:#0A2540}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle--dep{background:#0077CC;box-shadow:none}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle--dep:hover{background:#006BB8;box-shadow:none}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle--dep :is(.wd-circle-ico,.wd-circle-t),
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .wd-circle--dep:hover .wd-circle-t{color:#FFFFFF}

html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .btn-top-create{
  background-image:none;background-color:#EDEDE6;border-color:transparent;color:#0A0A0A;-webkit-text-fill-color:#0A0A0A;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .btn-top-create:hover{
  background-image:none;background-color:#FFFFFF;border-color:transparent;color:#0A0A0A;-webkit-text-fill-color:#0A0A0A;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .wallet-bal-chip{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#F4F4EF;
}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .wallet-bal-chip::before{color:#9A9A92}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .wbc-dot{background:#EDEDE6;box-shadow:0 0 10px rgba(237,237,230,.45)}

/* ════════ Create coin · all text white ════════
   The studio is dark glass in both themes, so the grey and (in light) sky-blue
   labels read poorly over the artwork behind it. Labels and values go white;
   placeholders stay white at 60% so an empty field still reads as empty. */
#createModal .fi-err[hidden]{display:none}  /* empty error chips drew two black dashes */
/* !important only because port-void-type.css sets these greys with !important in dark */
#createModal#createModal :is(.modal-close,.cm-title,.cm-panel-lbl,.cm-img-label,.upload-zone,.uz-txt,.cm-label-row,.cm-label-row span,.cm-social-label,.cm-opt,.arr,.cm-buy-unit,.fi-counter,.fee-lbl,.fee-val,.prv-lbl,.prv-name,.prv-tick,.prv-mc,.prv-desc,.prv-upload-hint,.fi,.fta){color:#FFFFFF!important}
#createModal#createModal :is(.fi,.fta)::placeholder{color:rgba(255,255,255,.6)!important;opacity:1}

/* ════════ Balance reads first ════════
   Bigger numbers in the chip and the panel; "GRAM" drops to a quiet suffix so a
   dollar balance ($293.03) no longer looks smaller than the same one in GRAM. */
#platformHeader .w-bal{font-size:16px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
#platformHeader .bal-unit{margin-left:.32em;font-size:.72em;font-weight:650;letter-spacing:.02em;opacity:.62}
#platformHeader .wd-bal-amt{max-width:100%;font-size:56px;white-space:nowrap}
#platformHeader .wd-bal-amt[data-len="m"]{font-size:46px}
#platformHeader .wd-bal-amt[data-len="l"]{font-size:38px}
#platformHeader .wd-bal-amt[data-len="xl"]{font-size:30px}
#platformHeader .wd-bal-amt .bal-unit{margin-left:.2em;font-size:.4em;font-weight:650;letter-spacing:0;opacity:.55}
#platformHeader .wd-avatar,#platformHeader .wallet-av-chip .w-avatar{overflow:hidden}
#platformHeader :is(.wd-avatar,.w-avatar) img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
@media(max-width:640px){#platformHeader .w-bal{font-size:15px}}
@media(max-width:400px){
  #platformHeader .wd-bal-amt{font-size:46px}
  #platformHeader .wd-bal-amt[data-len="m"]{font-size:38px}
  #platformHeader .wd-bal-amt[data-len="l"]{font-size:31px}
  #platformHeader .wd-bal-amt[data-len="xl"]{font-size:25px}
}

/* Light theme: stock stickers are transparent, so the circle behind them shows.
   style.css paints the panel avatar's <img> #111 — a black disc on the white
   panel. Both circles take the light-blue chip tone instead. */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader :is(.wd-avatar,.wallet-av-chip .w-avatar),
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader :is(.wd-avatar,.w-avatar) img{background:#DCEFFF}

/* ════════ Swap · token picker ════════
   A titled panel with a filled search field; on phones a tall bottom sheet with
   a grab bar (it was a 385px strip). Rows: bigger icon, MC with its label, 24h
   change. Ids beat both theme files' .tsel-* rules. Text pairs ≥4.9:1. */
#tselModal{
  --ts-bg:#FFFFFF;--ts-ink:#0A2540;--ts-mute:#4A6B8A;--ts-line:rgba(10,37,64,.08);
  --ts-well:#F2F6FA;--ts-hover:#EEF5FD;--ts-focus:#0077CC;--ts-pos:#0B7A3E;--ts-neg:#C62845;
  --ts-shadow:0 0 0 1px rgba(0,152,234,.14),0 24px 64px rgba(10,37,64,.18);
  background:var(--ts-bg);border-radius:18px;box-shadow:var(--ts-shadow);max-height:min(72vh,480px);
}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #tselModal{
  --ts-bg:#141414;--ts-ink:#F4F4EF;--ts-mute:#9A9A92;--ts-line:rgba(255,255,255,.08);
  --ts-well:rgba(255,255,255,.05);--ts-hover:rgba(255,255,255,.06);--ts-focus:#EDEDE6;--ts-pos:#3DDB8A;--ts-neg:#FF5C6A;
  --ts-shadow:0 0 0 1px rgba(255,255,255,.1),0 24px 64px rgba(0,0,0,.6);
}
#tselModal .tsel-grab{display:none}
/* The panel is height-capped on desktop; without this the search field shrank to ~18px. */
#tselModal :is(.tsel-grab,.tsel-head,.tsel-top){flex-shrink:0}
#tselModal .tsel-body{min-height:0}
#tselModal .tsel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 10px 2px 18px}
#tselModal .tsel-title{font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--ts-ink)}
#tselModal .tsel-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--ts-mute);cursor:pointer;transition-property:background-color,color;transition-duration:.15s}
#tselModal .tsel-close:hover{background:var(--ts-well);color:var(--ts-ink)}
#tselModal .tsel-close:focus-visible{outline:2px solid var(--ts-focus);outline-offset:2px}
#tselModal .tsel-top{display:flex;align-items:center;gap:10px;height:44px;margin:8px 12px 4px;padding:0 14px;border:0;border-radius:12px;background:var(--ts-well);box-shadow:none;transition:box-shadow .15s}
#tselModal .tsel-top:focus-within{box-shadow:inset 0 0 0 2px var(--ts-focus)}
#tselModal .tsel-top-ico{width:16px;height:16px;flex-shrink:0;color:var(--ts-mute);opacity:1;filter:none}
#tselModal .tsel-search{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--ts-ink);font-family:inherit;font-size:15px;font-weight:500}
#tselModal .tsel-search::placeholder{color:var(--ts-mute);opacity:1;font-weight:500}
#tselModal .tsel-body{max-height:none;padding:0 8px 12px;overscroll-behavior:contain}
#tselModal .tsel-section{position:sticky;top:0;z-index:1;margin:0;padding:12px 10px 6px;background:var(--ts-bg);font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--ts-mute)}
#tselModal .tsel-row{gap:12px;min-height:56px;padding:8px 10px;border-radius:12px}
#tselModal .tsel-row:is(:hover,.tsel-row--active){background:var(--ts-hover)}
#tselModal .tsel-ico{width:40px;height:40px}
#tselModal .tsel-name{font-size:14.5px;font-weight:650;color:var(--ts-ink)}
#tselModal .tsel-ticker{margin-top:2px;font-size:12.5px;font-weight:500;color:var(--ts-mute)}
#tselModal .tsel-meta-main{font-size:14px;font-weight:650;color:var(--ts-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#tselModal .tsel-mc-lbl{margin-left:4px;font-size:11px;font-weight:600;color:var(--ts-mute)}
#tselModal .tsel-meta-sub{margin-top:2px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
#tselModal .tsel-chg.is-pos{color:var(--ts-pos)}
#tselModal .tsel-chg.is-neg{color:var(--ts-neg)}
#tselModal :is(.tsel-badge-dex,.tsel-badge-curve){background:var(--ts-well);color:var(--ts-mute)}
#tselModal .tsel-empty,#tselModal .tsel-empty-s{color:var(--ts-mute)}
#tselModal .tsel-empty-t{color:var(--ts-ink)}
@media (max-width:500px){
  #tselModal{top:auto;left:0;right:0;bottom:0;width:100%;height:min(84dvh,720px);max-height:none;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:tselSheetUp .32s cubic-bezier(0.2,0,0,1)}
  #tselModal .tsel-grab{display:block;width:36px;height:4px;margin:8px auto 0;border-radius:2px;background:var(--ts-mute);opacity:.35}
  #tselModal .tsel-head{padding-top:6px}
  #tselBackdrop{background:rgba(10,37,64,.32)}
  html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #tselBackdrop{background:rgba(0,0,0,.6)}
}
@keyframes tselSheetUp{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){#tselModal{animation:none}}

/* ════════ Wallet tracker · Recent activity rails ════════
   Same 3px side rail as the Telegram / X feeds, but coloured by the action,
   matching its icon: buy green, sell red, transfer blue. The row's own border
   shorthand (style.css, port-light-ton.css) used to wipe the rail out. */
html .wlt-events-feed.wlt-events-feed .wlt-ev-feed-row.wlt-ev-feed-row,
html .wlt-events-feed.wlt-events-feed .wlt-ev-feed-row.wlt-ev-feed-row:hover{border-left:3px solid var(--wt-rail,rgba(0,152,234,.28))}
html .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.buy){--wt-rail:#00C853}
html .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.sell){--wt-rail:#F5365C}
html .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.transfer),
html .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.launch){--wt-rail:#0098EA}
html .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.grad){--wt-rail:#FFB300}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.buy){--wt-rail:#3DDB8A}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon.sell){--wt-rail:#FF5C6A}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row:has(> .wlt-hist-ev-icon:is(.transfer,.launch)){--wt-rail:#4DB8FF}
/* Dark remaps the brand blue to grey, which left transfers without a colour. */
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-hist-ev-icon.transfer{color:#4DB8FF;background:rgba(77,184,255,.12)}

/* ════════ PNL · share cards ════════
   One composition for the total card, the trade cards and the trade poster:
   the character keeps the left, the figures sit on the right, even tiles below.
   Tiles are dense enough that the art never shows through the figures (saved
   images render without backdrop blur), and icons are sized to the text. */
:is(#pnlView,#coinPnlModal) .pnl-stat{
  gap:8px;padding:14px 16px;border-radius:14px;
  background:rgba(8,11,16,.74);border:1px solid rgba(255,255,255,.12);box-shadow:none;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
:is(#pnlView,#coinPnlModal) .pnl-stat-val{font-size:18px;gap:6px;line-height:1.1}
:is(#pnlView,#coinPnlModal) .pnl-stat-val .pnl-ton-stat{width:20px;height:20px;filter:none;opacity:1}
:is(#pnlView,#coinPnlModal) .pnl-stat-lbl{font-size:10.5px;color:rgba(244,244,239,.66)}
:is(#pnlView,#coinPnlModal) .pnl-big-num :is(.pnl-ton-big,.pnl-ton-stat){width:64px;height:64px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.5))}
:is(#pnlView,#coinPnlModal) .pnl-brand-url{display:none}   /* repeated the "vella" mark on the left */
#pnlView .pnl-hero-bg{padding:24px}
#pnlView .pnl-stats-row{gap:10px}

/* Trade cards: the figure moves right, clear of the character's head */
#pnlView .pnl-pos{gap:14px;padding:16px;border-radius:18px}
#pnlView .pnl-pos::after{background:
  linear-gradient(90deg,rgba(6,9,14,.10) 0%,rgba(6,9,14,.30) 45%,rgba(6,9,14,.55) 100%),
  linear-gradient(180deg,rgba(6,9,14,.22) 0%,rgba(6,9,14,.10) 30%,rgba(6,9,14,.55) 62%,rgba(6,9,14,.84) 100%)}
#pnlView .pnl-pos-hero{display:flex;flex-direction:column;align-items:flex-end;text-align:right;padding-left:36%}
#pnlView .pnl-pos-pnl{font-size:30px;justify-content:flex-end;text-shadow:0 2px 14px rgba(0,0,0,.75)}
#pnlView .pnl-pos-pnl .pnl-ton-micro{width:26px;height:26px}
#pnlView .pnl-pos-pct{margin-top:6px;font-size:14px;text-align:right;text-shadow:0 1px 8px rgba(0,0,0,.7)}
#pnlView .pnl-pos.up .pnl-pos-pct{color:#3DDB8A}
#pnlView .pnl-pos.dn .pnl-pos-pct{color:#FF5C6A}
#pnlView .pnl-pos-stats{gap:8px}
#pnlView .pnl-pos-stats .pnl-pos-stat{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:12px;
  background:rgba(8,11,16,.74);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#pnlView .pnl-pos-stat-v{font-size:14px;flex-wrap:nowrap;white-space:nowrap}
#pnlView .pnl-pos-stat-v .pnl-ton-micro{width:16px;height:16px}
#pnlView .pnl-pos-stat-l{margin:0;color:rgba(244,244,239,.62)}
#pnlView .pnl-pos-foot{padding-top:0}
#pnlView .pnl-pos-when{color:rgba(244,244,239,.7)}
#pnlView .pnl-pos-cta{color:rgba(244,244,239,.86)}

/* Trade poster: was a 520px card on a 1440 screen */
#coinPnlModal .modal{width:min(880px,calc(100vw - 48px));max-width:none}
#coinPnlModal .coin-pnl-hero{padding:26px 28px 22px;border-radius:22px}
#coinPnlModal .coin-pnl-ico{width:48px;height:48px}
#coinPnlModal .coin-pnl-name{font-size:20px}
#coinPnlModal .coin-pnl-tick{font-size:13px}
#coinPnlModal .coin-pnl-share-btn{height:36px;padding:0 16px;font-size:13px}
#coinPnlModal :is(.coin-pnl-fav,.coin-pnl-close-btn){width:36px;height:36px}
#coinPnlModal .coin-pnl-hero .pnl-big-block{margin-top:40px;padding-left:46%}
#coinPnlModal .pnl-big-label{font-size:11px}
#coinPnlModal .pnl-big-num{font-size:clamp(44px,5.6vw,68px)}
#coinPnlModal .pnl-big-pct{font-size:20px}
#coinPnlModal .pnl-stats-row{margin-top:36px;gap:10px}
#coinPnlModal .pnl-brand{margin-top:18px}

/* Saved images: square, edge to edge */
body.pnl-share-exporting :is(.pnl-hero-bg,.coin-pnl-hero){border-radius:0!important;border:0!important}

@media (max-width:700px){
  #pnlView .pnl-hero-bg{padding:16px}
  :is(#pnlView,#coinPnlModal) .pnl-stat{padding:12px}
  :is(#pnlView,#coinPnlModal) .pnl-stat-val{font-size:16px}
  :is(#pnlView,#coinPnlModal) .pnl-big-num :is(.pnl-ton-big,.pnl-ton-stat){width:48px;height:48px}
  #coinPnlModal .modal{width:100%}
  #coinPnlModal .coin-pnl-hero{padding:18px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
  #coinPnlModal .coin-pnl-hero .pnl-big-block{margin-top:28px;padding-left:34%}
  #coinPnlModal .pnl-big-num{font-size:clamp(34px,10vw,44px)}
  #coinPnlModal .pnl-stats-row{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px;gap:8px}
}
@media (max-width:420px){
  #pnlView .pnl-pos-hero{padding-left:26%}
  #pnlView .pnl-pos-pnl{font-size:26px}
  #pnlView .pnl-pos-stat-v{font-size:13px}
}
/* The brand mark can land on the character's white paws — give it its own dark chip. */
:is(#pnlView,#coinPnlModal) .pnl-brand-left{padding:5px 12px 5px 5px;border-radius:12px;background:rgba(8,11,16,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
/* Ticker + time stays on one line on narrow cards */
#pnlView .pnl-pos-tick{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ════════ Demo data: sidebar toggle + topbar flag ════════
   The sidebar is a column of 40x40 icon squares, so the demo <button> takes the
   same box as its <a> neighbours — only the button reset is ours. When the demo
   is on, the square carries the same tint the active route uses plus an amber
   dot, and the state itself is named once in the header, where it does not sit
   on top of the page the way a floating bar did. */
.nav-item.nav-demo{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer}
.nav-item.nav-demo.is-on{background:rgba(178,107,0,.12);box-shadow:inset 0 0 0 1px rgba(178,107,0,.3)}
.nav-item.nav-demo.is-on .nav-ico{position:relative}
.nav-item.nav-demo.is-on .nav-ico::after{
  content:'';position:absolute;top:-1px;right:-3px;width:7px;height:7px;border-radius:50%;background:#B26B00}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .nav-item.nav-demo.is-on{background:rgba(240,195,107,.14);box-shadow:inset 0 0 0 1px rgba(240,195,107,.3)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .nav-item.nav-demo.is-on .nav-ico::after{background:#F0C36B}
.mbn-tray-item.mbn-tray-demo{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer}
.mbn-tray-item.mbn-tray-demo.is-on .mbn-tray-ico-wrap{box-shadow:inset 0 0 0 2px #B26B00}
.nav-item.nav-demo:focus-visible,.mbn-tray-demo:focus-visible{outline:2px solid #0077CC;outline-offset:2px}

/* Topbar flag — says the site is showing demo data, and turns it off. */
#platformHeader .demo-flag{
  display:inline-flex;align-items:center;gap:7px;height:44px;min-height:44px;padding:0 15px;
  border:1px solid rgba(178,107,0,.28);border-radius:24px;
  background:#FFF1D6;color:#7A4C00;
  font:500 13px/1 inherit;letter-spacing:.01em;white-space:nowrap;cursor:pointer;flex-shrink:0;
  transition:background-color .16s,transform .16s;
}
#platformHeader .demo-flag[hidden]{display:none}
#platformHeader .demo-flag:hover{background:#FFE7B8}
#platformHeader .demo-flag:active{transform:scale(.96)}
#platformHeader .demo-flag:focus-visible{outline:2px solid #7A4C00;outline-offset:3px}
.demo-flag-dot{width:6px;height:6px;border-radius:50%;background:#B26B00;flex-shrink:0}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #platformHeader .demo-flag{
  background:rgba(240,195,107,.14);border-color:rgba(240,195,107,.32);color:#F3CE86}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #platformHeader .demo-flag:hover{background:rgba(240,195,107,.22)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #platformHeader .demo-flag:focus-visible{outline-color:#F3CE86}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .demo-flag-dot{background:#F0C36B}
@media(max-width:760px){
  #platformHeader .demo-flag{height:40px;min-height:40px;padding:0 12px;font-size:12px;gap:6px}
}
/* In demo, action buttons read as unavailable */

/* ════════ Home: the coin that climbed ════════ */
.home-climb{position:absolute;left:50%;top:10px;z-index:5;display:inline-flex;align-items:center;gap:3px;height:30px;padding:0 12px;
  border-radius:999px;font:800 15px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.02em;pointer-events:none;white-space:nowrap;
  background:linear-gradient(135deg,#00C853,#12b36b);color:#fff;
  box-shadow:0 6px 20px rgba(0,200,83,.45),inset 0 1px 0 rgba(255,255,255,.35)}
.home-climb-up{font-size:11px;line-height:1}
.home-climb-flare{position:absolute;z-index:60;pointer-events:none;border-radius:18px;
  border:2px solid rgba(0,200,83,.7);box-shadow:0 0 26px rgba(0,200,83,.45)}

/* ════════ Narrow phones (≤420 pt — e.g. an iPhone with Display Zoom is 320 pt) ════════
   The row must fit Back + search + Launch + Demo + Sign in / balance + avatar.
   Placed last: the "Wallet composition v2" block above re-widens Launch
   (min-width:112px) and beat the ≤640 rule. */
@media (max-width:420px){
  #platformHeader{gap:6px}
  #platformHeader .topbar-launch-row,#platformHeader .topbar-right,#platformHeader .wallet-wrap{gap:6px}
  /* Arrow only; the "Back" text stays for screen readers. */
  #platformHeader .btn-topbar-back{width:40px;min-width:40px;padding:0;justify-content:center;gap:0;font-size:0}
  /* Search collapses to a fixed icon button instead of being squeezed to 0. */
  #platformHeader .ms-wrap:not(.is-open){flex:0 0 44px;width:44px;min-width:44px}
  #platformHeader .ms-wrap:not(.is-open) .search-bar{width:44px;padding:0;justify-content:center}
  #platformHeader .ms-wrap:not(.is-open) .ms-inp{position:absolute;opacity:0;pointer-events:none;width:1px}
  #platformHeader .btn-top-create{min-width:0;width:auto;padding:0 12px;flex-shrink:0}
  #platformHeader .btn-top-create .ct-lbl{display:inline}
  #platformHeader .demo-flag{width:40px;padding:0;justify-content:center}
  #platformHeader .demo-flag-lbl{display:none}
  #platformHeader .btn-signin{padding:0 12px;flex-shrink:0}
  #platformHeader .wallet-bal-chip{padding:0 10px}
  #platformHeader .w-bal{font-size:12px}
}

/* ── Search, discovery (design-refs/search-modal, variant 2) ─────────────────
   Borrowed from the Swap token picker: a soft field with an accent ring,
   coin tiles with the GRAM mark, «avatar · name · ticker · address» rows,
   section titles with an icon and Clear, 24px corners. */
#platformHeader .ms-wrap.is-open{
  --search-bg:#fff;--search-card:#F3F7FB;--search-card-hover:rgba(10,37,64,.05);--search-field:#EEF4FA;
  --search-line:rgba(10,37,64,.10);--search-text:#0A2540;--search-muted:#3F5A74;--search-positive:#0B6129;--search-accent:#0077CC;
  border-radius:24px;width:min(1040px,calc(100vw - 48px));box-shadow:0 0 0 1px var(--search-line),0 24px 64px rgba(10,37,64,.18)}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .ms-wrap.is-open{
  --search-bg:#131313;--search-card:#1B1B1B;--search-card-hover:rgba(255,255,255,.06);--search-field:#1F1F1F;
  --search-line:rgba(255,255,255,.10);--search-text:#F4F4EF;--search-muted:#9A9A92;--search-positive:#3DDB8A;--search-accent:#EDEDE6;
  box-shadow:0 0 0 1px var(--search-line),0 24px 64px rgba(0,0,0,.6)}
#platformHeader .ms-wrap.is-open .search-bar,
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .ms-wrap.is-open .search-bar{
  width:auto;height:52px;min-height:52px;margin:16px 16px 0;padding:0 12px 0 16px;gap:10px;border:1px solid var(--search-accent);border-radius:18px;
  background:var(--search-field);box-shadow:none;box-sizing:border-box}
#platformHeader .ms-wrap.is-open .ms-inp{font-size:17px;caret-color:var(--search-accent)}
#platformHeader .ms-wrap.is-open .s-ico{width:20px;height:20px}
#platformHeader #searchDiscovery{padding:16px 16px 20px}
#platformHeader .search-sec{display:flex;align-items:center;gap:8px;margin:20px 4px 6px;font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--search-muted)}
#platformHeader .search-sec-row > span{display:inline-flex;align-items:center;gap:8px}
#platformHeader .search-clear{font-size:14px;font-weight:600;color:var(--search-text);padding:4px 6px;border-radius:8px}
#platformHeader .search-clear:hover{background:var(--search-card-hover)}

/* hot coins: five tiles */
#platformHeader .sr-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
/* no hot coins yet: the note spans the row instead of sitting in one tile's column (audit 2026-11-04) */
#platformHeader .sr-chips > .sr-empty{grid-column:1/-1}
#platformHeader .sr-chipt{flex:none;min-width:0;animation:none;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;padding:12px 4px 10px;border:1px solid var(--search-line);border-radius:16px;
  background:var(--search-card);box-shadow:none;color:var(--search-text);cursor:pointer;transition:background-color .15s,scale .1s}
#platformHeader .sr-chipt:hover,#platformHeader .sr-chipt.sr--active{background:var(--search-card-hover);box-shadow:none}
#platformHeader .sr-chipt:active{scale:.96}
#platformHeader .sr-chipt-tk{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}
#platformHeader .sr-chipt-mc{font-size:12px;color:var(--search-muted);font-variant-numeric:tabular-nums}
#platformHeader .sr-ico{position:relative;display:inline-grid;flex-shrink:0}
#platformHeader .sr-ico .sr-img{width:40px;height:40px;border-radius:50%;font-size:18px}
#platformHeader .sr-chipt .sr-ico .sr-img{width:32px;height:32px}
#platformHeader .sr-ico-g{position:absolute;right:-3px;bottom:-3px;width:15px;height:15px;border-radius:5px;background:var(--search-bg);box-shadow:0 0 0 2px var(--search-bg);object-fit:contain}

/* Trending and Top traders: rows, two columns */
#platformHeader .sr-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px}
#platformHeader .sr-list{display:flex;flex-direction:column}
#platformHeader .sr-row,#platformHeader .sr-row.sr-tile-trader{flex:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:0;padding:10px 12px;border:0;border-radius:16px;
  background:transparent;box-shadow:none;color:var(--search-text);text-align:left;cursor:pointer;animation:none}
#platformHeader .sr-row:active,#platformHeader .sr-chipt:active{transform:none}
/* the old horizontal-row sizes (flex-basis 220px / 176px) would set row heights in a column list */
#platformHeader :is(#searchTraders,#searchTrending,#searchHotCoins) .sr-tile{flex-basis:auto}
#platformHeader .sr-row:hover,#platformHeader .sr-row.sr--active{background:var(--search-card-hover);box-shadow:none}
#platformHeader .sr-row-av{display:flex;flex-shrink:0;width:40px;height:40px;border-radius:50%;overflow:hidden}
#platformHeader .sr-row-av > *{width:100%;height:100%;max-width:none}
#platformHeader .sr-row-t{flex:1;min-width:0}
#platformHeader .sr-row-n{display:block;font-size:17px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#platformHeader .sr-row-s{display:block;margin-top:2px;font-size:14px;color:var(--search-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#platformHeader .sr-row-s i{font-style:normal;margin-left:6px;opacity:.85}
#platformHeader .sr-row .sr-spark,#platformHeader .sr-row .sr-spark--empty{flex:0 0 72px;width:72px;height:28px;margin:0}
#platformHeader .sr-row-r{flex-shrink:0;text-align:right;font-variant-numeric:tabular-nums}
#platformHeader .sr-row-r b{display:block;font-size:16px;font-weight:600}
#platformHeader .sr-row-r span{display:block;margin-top:2px;font-size:14px;font-weight:600}
#platformHeader .sr-row-r .is-up{color:var(--search-positive)}
#platformHeader .sr-row-r .is-dn{color:#c22f3b}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) #platformHeader .sr-row-r .is-dn{color:#FF5C6A}

/* recently searched / viewed: pills */
#platformHeader .sr-hist{padding:4px 4px 0}
#platformHeader .sr-chip{border-radius:999px;background:var(--search-card);box-shadow:inset 0 0 0 1px var(--search-line);color:var(--search-text)}
#platformHeader .sr-chip:hover{background:var(--search-card-hover);box-shadow:inset 0 0 0 1px var(--search-line)}
#platformHeader .ms-wrap.is-open :is(.sr-chipt,.sr-row,.search-clear,.sr-chip):focus-visible{outline:2px solid var(--search-accent);outline-offset:2px}

@media(max-width:760px){
  #platformHeader .ms-wrap.is-open .search-bar{margin:12px 12px 0}
  #platformHeader #searchDiscovery{padding:12px 8px 16px}
  #platformHeader .sr-chips{gap:6px;padding:0 4px}
  #platformHeader .sr-chipt{padding:10px 2px 8px}
  #platformHeader .sr-chipt-tk{font-size:13px}
  #platformHeader .sr-chipt-mc{display:none}
  #platformHeader .sr-chipt .sr-ico .sr-img{width:28px;height:28px}
  body:has(.ms-wrap.is-open) .mbn-tray,body:has(.ms-wrap.is-open) [class*="mbn-more"]{visibility:hidden}
  #platformHeader .sr-cols{grid-template-columns:minmax(0,1fr)}
  #platformHeader .ms-wrap.is-open .ms-drop,#platformHeader #searchDiscovery{min-width:0;max-width:100%;box-sizing:border-box}
  #platformHeader .sr-row .sr-spark,#platformHeader .sr-row .sr-spark--empty{display:none}
  #platformHeader .sr-row-n{font-size:16px}
}

/* hot coins in the open search: coin art fills the tile, ticker and MC sit on a dark fade
   (the Bubble Map shelf look the user picked, 2026-10-21) */
#platformHeader .sr-chips{gap:10px}
#platformHeader .sr-chipt{position:relative;isolation:isolate;overflow:hidden;display:block;height:88px;padding:0;border:0;border-radius:20px;
  background:#1a1a1a;color:#fff;text-align:left}
#platformHeader .sr-chipt:hover,#platformHeader .sr-chipt.sr--active{background:#1a1a1a}
#platformHeader .sr-chipt .sr-ico{position:absolute;inset:0;z-index:-2;display:block}
#platformHeader .sr-chipt .sr-ico .sr-img{width:100%;height:100%;border-radius:0;outline:0;font-size:40px;display:grid;place-items:center}
#platformHeader .sr-chipt .sr-ico .sr-img img{transition:transform .35s cubic-bezier(.2,0,0,1)}
#platformHeader .sr-chipt .sr-ico-g{display:none}
#platformHeader .sr-chipt::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.78) 100%);pointer-events:none}
#platformHeader .sr-chipt::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);pointer-events:none}
#platformHeader .sr-chipt-tk,#platformHeader .sr-chipt-mc{position:absolute;left:12px;right:12px;max-width:none;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
#platformHeader .sr-chipt-tk{bottom:28px;font-size:15px;font-weight:700;text-shadow:0 1px 8px rgba(0,0,0,.5)}
#platformHeader .sr-chipt-mc{bottom:10px;font-size:12px;font-weight:600;color:rgba(255,255,255,.88)}
@media(hover:hover){#platformHeader .sr-chipt:hover .sr-ico .sr-img img{transform:scale(1.06)}}
#platformHeader .sr-chipt:active{scale:.97}
@media(prefers-reduced-motion:reduce){#platformHeader .sr-chipt .sr-ico .sr-img img{transition:none}}
@media(max-width:760px){
  #platformHeader .sr-chips{gap:6px}
  #platformHeader .sr-chipt{height:auto;aspect-ratio:1;padding:0;border-radius:14px}
  #platformHeader .sr-chipt .sr-ico .sr-img{width:100%;height:100%}
  #platformHeader .sr-chipt-tk,#platformHeader .sr-chipt-mc{left:7px;right:7px}
  #platformHeader .sr-chipt-tk{bottom:19px;font-size:12px}
  #platformHeader .sr-chipt-mc{display:block;bottom:6px;font-size:10px}
}
/* 2026-10-26 (user): the feed rows were rebuilt (wlt-ev3, no action icon inside), so the icon-keyed rails above
   stopped matching and desktop showed a faint blue line on every row. The rail now follows the row's own kind.
   Desktop only — phones keep their flush edge-to-edge rows. */
@media(min-width:761px){
  html .wlt-events-feed .wlt-ev-feed-row.wlt-ev3--buy{--wt-rail:#00C853}
  html .wlt-events-feed .wlt-ev-feed-row.wlt-ev3--sell{--wt-rail:#F5365C}
  html .wlt-events-feed .wlt-ev-feed-row:is(.wlt-ev3--launch,.wlt-ev3--transfer){--wt-rail:#0098EA}
  html .wlt-events-feed .wlt-ev-feed-row.wlt-ev3--grad{--wt-rail:#FFB300}
  html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row.wlt-ev3--buy{--wt-rail:#3DDB8A}
  html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row.wlt-ev3--sell{--wt-rail:#FF5C6A}
  html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .wlt-events-feed .wlt-ev-feed-row:is(.wlt-ev3--launch,.wlt-ev3--transfer){--wt-rail:#4DB8FF}
  /* light-soft paints every row edge with !important — the rail outranks it */
  html body:not(#_r) .wlt-events-feed.wlt-events-feed .wlt-ev-feed-row.wlt-ev-feed-row:is(.wlt-ev3--buy,.wlt-ev3--sell,.wlt-ev3--launch,.wlt-ev3--transfer,.wlt-ev3--grad){
    border-left-width:4px!important;border-left-style:solid!important;border-left-color:var(--wt-rail)!important}
}
