/* generated by scripts/sync_prototype.py from the prototype: portal. Do not edit. */
/* ============================================================
   KCM Trade — client portal, "Terminal Light"
   Everything you are likely to change lives in :root below.
   ============================================================ */
:root{
  /* ground */
  --ground-top:#EDF0F7;
  --ground-mid:#E3E8F3;
  --ground-bot:#DFE5F2;
  --surface:#FFFFFF;
  --surface-quiet:rgba(255,255,255,.62);
  --surface-sunk:#F4F6FB;

  /* ink */
  --ink:#0C1526;
  --ink-2:#4C5875;
  --ink-3:#6B778F;
  --ink-4:#8792A8;

  /* brand + signal */
  --gold:#FFC220;
  /* Every filled gold surface shares this. The stops are symmetric, so the
     sheen can travel across and back without a seam. */
  --gold-grad:linear-gradient(112deg,#FFE066 0%,#FFCE33 26%,#FFB800 50%,#FFCE33 74%,#FFE066 100%);
  --gold-grad-hi:linear-gradient(112deg,#FFEB8A 0%,#FFDA55 26%,#FFC61F 50%,#FFDA55 74%,#FFEB8A 100%);
  --gold-ink:#231A02;
  --gold-soft:#FDF3DC;
  --gold-deep:#8A6410;
  --up:#12805C;
  --down:#C0392B;

  /* lines */
  --line:#EDF0F6;
  --line-2:#E3E8F2;

  /* shape */
  --r-hero:26px;
  --r-card:22px;
  --r-tile:18px;
  --r-btn:11px;
  --rail-w:70px;
  --rail-lane:70px;
  --rail-open-w:250px;
  --side-w:344px;

  /* elevation — only the hero and the rail float */
  --lift-hero:0 2px 4px rgba(16,28,58,.04), 0 20px 40px -20px rgba(16,28,58,.18);
  --lift-card:0 1px 3px rgba(16,28,58,.05);
  /* lit from the top left, a whisper to the bottom right */
  --lift-soft:-31px -31px 43px rgba(255,255,255,1),8px 8px 10px rgba(13,39,80,.04);

  --pad:20px;
  /* horizontal breathing room at the page edges: a tenth of the window on
     each side, so the margin grows with the screen. Kept apart from --pad,
     which the rail's sticky offset and height depend on. */
  --edge:10vw;
  /* the channel between the rail and the page, so the two read as separate
     surfaces rather than one run-on block */
  --shell-gap:30px;
  --hdr:66px;
  --rail-h:calc(100vh - var(--hdr) - var(--pad) - 28px);
  /* motion: one personality — corporate. Entrances decelerate and run
     longer than exits; nothing overshoots. */
  --ease:cubic-bezier(.2,0,0,1);          /* signature, on-screen        */
  --ease-out:cubic-bezier(.05,.7,.1,1);   /* entrances                   */
  --ease-in:cubic-bezier(.3,0,1,1);       /* exits                       */
  --t-quick:130ms;                        /* hover, press                */
  --t-base:260ms;                         /* cards, panels, state        */
  --t-slow:420ms;                         /* page, rail, reveals         */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(178deg,var(--ground-top) 0%,var(--ground-mid) 62%,var(--ground-bot) 100%) fixed;
  color:var(--ink);
  /* Outfit carries the Latin and the figures; Kanit (Google Fonts) carries
     Thai, since Outfit has no Thai glyphs; the rest of the stack carries CJK,
     which the portal needs once a client picks their own language */
  font-family:'Outfit','Kanit',ui-sans-serif,system-ui,-apple-system,
    'Noto Sans Thai','Thonburi','Leelawadee UI',
    'PingFang SC','PingFang TC','Hiragino Sans','Apple SD Gothic Neo',
    'Noto Sans SC','Noto Sans TC','Noto Sans JP','Noto Sans KR',
    'Microsoft JhengHei','Microsoft YaHei','Yu Gothic','Malgun Gothic',
    'Segoe UI',sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.02em;line-height:1.15}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
dl,dd,dt{margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
svg .fill{fill:currentColor;stroke:none}
a{color:inherit}

:focus-visible{outline:2.5px solid var(--ink);outline-offset:3px;border-radius:6px}

.mono{font-family:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace}
.num{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.dec{opacity:.45}
.live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- page transition ---------- */
#page{transition:opacity var(--t-quick) var(--ease-in),transform var(--t-quick) var(--ease-in)}
#page.is-out{opacity:0;transform:translateY(4px)}
/* the blocks of a page arrive in a short cascade, capped at seven steps
   so the whole entrance always finishes inside 500ms */
#page > .rise{animation:rise var(--t-base) var(--ease-out) both;
  animation-delay:calc(var(--i,0) * 45ms)}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- press feedback: every clickable surface answers the finger ---------- */
.btn,.qrow,.qtile,.pm,.acct,.linkcard,.move,.grp-btn,.addm,.fchip,.met,.hbar-sw,.mode-btn{
  will-change:auto}
.btn:active,.qrow:active,.qtile:active,.linkcard:active,.move:active,.addm:active{
  transform:scale(.985);transition-duration:var(--t-quick)}
.grp-btn:active{transform:none;background:#E4E9F2;
  box-shadow:inset 2px 2px 6px rgba(16,28,58,.12),inset -2px -2px 5px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .grp-btn:active{background:rgba(255,255,255,0.1);box-shadow:inset 2px 2px 6px rgba(0,0,0,0.24),inset -2px -2px 5px rgba(255,255,255,0.315)}
/* every tab, chip, segment, plan, card and small control answers a press */
.mtab,.seg,.fchip,.cx-tf,.mtrade,.pclose,.lots-btn,.tk,.plan,.mcard,.mrow,.wsel,.acct-switch,.sec-more,.mkt-more,.dep,.nrow,.txn,.ev,.st-cta,.promo-cta,.copy,.tab{
  transition-property:background-color,color,border-color,box-shadow,transform,opacity;
  transition-duration:var(--t-quick);transition-timing-function:var(--ease)}
.mtab:active,.seg:active,.fchip:active,.cx-tf:active,.mtrade:active,.pclose:active,.wsel:active,.acct-switch:active,.sec-more:active,.mkt-more:active,.copy:active,.st-cta:active,.promo-cta:active{transform:scale(.95)}
.plan:active,.nrow:active,.txn:active{transform:scale(.99)}
.pm-del:active,.pm-why:active,.round:active,.rail-toggle:active{transform:scale(.9)}

/* ---------- ambient: the gold catches the light, slowly and forever ----------
   One rule owns every filled gold surface. The gradient is symmetric and the
   loop alternates on a sine curve, so it never snaps back to the start. */
.btn-gold,.qrow.is-gold,.move-gold,.st-gold .st-bar > span{
  background-size:230% 100%;
  animation:goldflow 7.5s cubic-bezier(.45,0,.55,1) infinite alternate}
@keyframes goldflow{from{background-position:0% 50%}to{background-position:100% 50%}}
/* the fill has its own job while it grows; the sheen waits its turn */
.st-gold .st-bar > span{animation-delay:900ms}

/* ---------- aurora: soft light drifting inside the gold ----------
   Two blurred layers on different clocks, so the pattern never repeats the
   same way twice. They blend into the gold rather than sitting on top of it,
   which keeps the dark text on these surfaces crisp. */
.btn-gold,.qrow.is-gold,.move-gold{position:relative;overflow:hidden;isolation:isolate}
/* not the dark lens's canvas (glass.js), which must stay out of the flow and under everything */
.btn-gold > *:not(.glass-gl),.qrow.is-gold > *:not(.glass-gl),.move-gold > *:not(.glass-gl){position:relative;z-index:1}

.btn-gold::before,.btn-gold::after,
.qrow.is-gold::before,.qrow.is-gold::after,
.move-gold::before,.move-gold::after{
  content:'';position:absolute;inset:-45%;z-index:0;pointer-events:none;
  mix-blend-mode:soft-light;will-change:transform}

/* layer one: warm highlights sweeping one way */
.btn-gold::before,.qrow.is-gold::before,.move-gold::before{
  background:
    radial-gradient(40% 58% at 24% 32%,rgba(255,255,255,.95),transparent 70%),
    radial-gradient(34% 50% at 70% 74%,rgba(255,247,214,.85),transparent 72%);
  filter:blur(16px);
  animation:aurora-a 13s cubic-bezier(.45,0,.55,1) infinite alternate}
:where(html[data-appearance="dark"]) .btn-gold::before,:where(html[data-appearance="dark"]) .qrow.is-gold::before,:where(html[data-appearance="dark"]) .move-gold::before{background:radial-gradient(40% 58% at 24% 32%,rgba(255,255,255,0.209),transparent 70%),
    radial-gradient(34% 50% at 70% 74%,rgba(228,201,88,0.14),transparent 72%)}

/* layer two: deeper amber drifting the other way, and slower */
.btn-gold::after,.qrow.is-gold::after,.move-gold::after{
  background:
    radial-gradient(46% 62% at 76% 26%,rgba(255,140,0,.75),transparent 70%),
    radial-gradient(38% 54% at 18% 82%,rgba(255,196,40,.9),transparent 74%);
  filter:blur(20px);opacity:.9;
  animation:aurora-b 19s cubic-bezier(.45,0,.55,1) infinite alternate}

@keyframes aurora-a{
  0%  {transform:translate3d(-7%,-5%,0) scale(1.04) rotate(0deg)}
  50% {transform:translate3d(6%,7%,0)   scale(1.20) rotate(4deg)}
  100%{transform:translate3d(-2%,5%,0)  scale(1.08) rotate(-3deg)}
}
@keyframes aurora-b{
  0%  {transform:translate3d(6%,4%,0)   scale(1.10) rotate(2deg)}
  50% {transform:translate3d(-8%,-6%,0) scale(1.26) rotate(-5deg)}
  100%{transform:translate3d(4%,-3%,0)  scale(1.12) rotate(3deg)}
}

/* on a small button the blobs would read as noise, so they run tighter */
.btn-gold::before{filter:blur(10px)}
.btn-gold::after{filter:blur(13px);opacity:.7}

/* ---------- ambient: the things that are still waiting keep breathing ---------- */
@keyframes waiting{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.86)}}
.af-mark.warn,.txn-mark.warn{animation:waiting 2.8s var(--ease) infinite}

/* ---------- shell ---------- */
.app{display:flex;gap:var(--shell-gap);padding:6px var(--edge) 34px;max-width:1920px;margin:0 auto}
/* the page column is a query container: the account bar has to lay itself
   out against the width it actually gets, and opening the rail takes 180px
   off that without the window moving at all */
.main{flex:1;min-width:0;container-type:inline-size;container-name:page}

/* ---------- primary navigation ---------- */
.scrim{position:fixed;inset:0;z-index:65;background:rgba(12,21,38,.42);border:0;
  backdrop-filter:blur(2px);animation:fade .2s var(--ease)}
:where(html[data-appearance="dark"]) .scrim{background:rgba(255,255,255,0.12)}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* The rail is a transparent column in both states. Expanded, the part you
   are in becomes a floating panel; everything else stays a circle, so the
   two halves of the navigation never read as one list. */
.rail{
  width:var(--rail-w);flex:0 0 var(--rail-w);
  position:sticky;top:var(--pad);z-index:50;
  /* --rail-h already allows for the header the rail starts below */
  height:var(--rail-h);
  background:transparent;box-shadow:none;border-radius:0;
  padding:6px 0;display:flex;flex-direction:column;align-items:flex-start;
  overflow:visible;
  /* shutting, the width is pulled in with the panel; opening, it settles */
  transition:width 460ms cubic-bezier(.7,0,.84,0),flex-basis 460ms cubic-bezier(.7,0,.84,0);
}
.rail.is-open{--rail-w:var(--rail-open-w);
  transition:width 480ms cubic-bezier(.16,1,.3,1),flex-basis 480ms cubic-bezier(.16,1,.3,1)}

/* ---------- opening and closing the box ----------
   It grows out of the icon that was clicked and shrinks back into it, so the
   circle and the panel read as the same object in two sizes. */
@keyframes panelgrow{
  0%  {opacity:0;transform:scale(.60,.42)}
  50% {opacity:1}
  100%{opacity:1;transform:none}
}
@keyframes panelshrink{
  0%  {opacity:1;transform:none}
  100%{opacity:0;transform:scale(.60,.42)}
}
@keyframes circlepop{
  from{opacity:0;transform:scale(.5)}
  to  {opacity:1;transform:none}
}

.rail.just-open .rail-panel{overflow:hidden}
.rail.just-open .rail-panel > *{animation:ghostin 240ms var(--ease-out) both 170ms}
@keyframes ghostin{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

/* the copy left behind on the way shut: its journey is scripted in core.js */
.panel-ghost{pointer-events:none;z-index:1;overflow:hidden}

/* circles surface while the panel is on its way, one after another; the
   circle the panel is bound for waits and catches it, scripted */
.rail.just-shut .grp-btn:not(.is-on),
.rail.just-open .rail-set.as-circles .grp-btn{
  animation:circlepop 320ms var(--ease-out) both}
.rail.just-shut .rail-set > *:nth-child(1){animation-delay:200ms}
.rail.just-shut .rail-set > *:nth-child(2){animation-delay:250ms}
.rail.just-shut .rail-set > *:nth-child(3){animation-delay:300ms}
.rail.just-shut .rail-set > *:nth-child(n+4){animation-delay:350ms}
.rail.just-open .rail-set.as-circles .grp-btn{animation-delay:150ms}
/* the panel that holds the part you are in */
/* the panel is lit from the top left and drops a faint shadow to the bottom
   right: white -31/-31 blur 43, then #0D2750 at 4% on 8/8 blur 10 */
.rail-panel{width:100%;flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  background:var(--surface);border-radius:20px;
  box-shadow:var(--lift-soft);
  padding:12px 0 10px;scrollbar-width:thin}
/* the open menu box is lit from its foot (a card the user showed, lit from
   its bottom edge): a pool of gold rising from the bottom edge and gone by
   the lower third, with a soft spill of the same light onto the page beneath.
   On the box itself, so it stays put while the list scrolls. This is the
   light theme's version and it stays: every refinement of the effect was
   for dark (dark.css) — "stop touching light version, do it only for dark
   theme". "The light" in the user's words is the glow, not this theme. */
.rail-panel:not(.panel-ghost){
  background-image:radial-gradient(85% 42% at 50% 104%,rgba(255,194,32,.26) 0%,rgba(255,194,32,.08) 45%,rgba(255,194,32,0) 75%);
  background-repeat:no-repeat;
  box-shadow:var(--lift-soft),0 22px 44px -18px rgba(255,194,32,.38)}
/* the dark lens (glass.js): a canvas in a glass box's own box, at -1 so it is
   under the box's content and over the page. The open menu panel's sits in the
   rail (its stacking context); the account bar holds its own, so the bar is
   positioned to be its containing block */
.glass-gl{position:absolute;z-index:-1;pointer-events:none}
.hbar{position:relative}

/* circle columns keep the collapsed rail's 70px lane, whatever the rail width */
.rail-set{display:flex;flex-direction:column;flex:none;gap:6px;align-items:center;width:100%}
.rail-set.as-circles{width:var(--rail-lane);align-items:center;gap:14px;flex:none}
.rail-gap{flex:1 1 auto;min-height:22px}
.rail-div{height:1px;margin:12px 18px 14px;background:var(--line)}
.rail-rule{height:1px;width:26px;margin:22px 22px 18px;background:#C6D0E2;flex:none}
:where(html[data-appearance="dark"]) .rail-rule{background:rgba(255,255,255,0.07)}

/* toggle */
.rail-toggle{display:flex;align-items:center;gap:10px;color:var(--ink-4);border-radius:11px;
  margin:0 auto 10px;padding:10px;transition:background .16s var(--ease),color .16s var(--ease)}
.rail-toggle:hover{background:var(--surface-sunk);color:var(--ink)}
.rail:not(.is-open) .rail-toggle{width:40px;height:40px;border-radius:50%;padding:0;margin-left:15px;
  margin:0 auto 14px;justify-content:center;background:transparent;color:var(--ink-4)}
.rail:not(.is-open) .rail-toggle:hover{background:rgba(255,255,255,.85);color:var(--ink)}
:where(html[data-appearance="dark"]) .rail:not(.is-open) .rail-toggle:hover{background:rgba(255,255,255,0.05)}
.rail.is-open .rail-toggle{margin:0 12px 8px;padding:9px 10px;font-size:13px;font-weight:500;width:auto}
.rail-toggle svg{width:16px;height:16px;flex:none}

/* groups */
.rail-set.is-scroll{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  -webkit-mask-image:linear-gradient(#000 calc(100% - 22px),transparent);
  mask-image:linear-gradient(#000 calc(100% - 22px),transparent)}
@media (max-width:760px){.rail-set.is-scroll{-webkit-mask-image:none;mask-image:none}}


.rail-grp{display:none}
.rail.is-open .rail-grp{display:block;font-size:11px;color:#9AA5BB;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;padding:11px 18px 4px}
:where(html[data-appearance="dark"]) .rail.is-open .rail-grp{color:#7A85A4}

/* the collapsed group button */
.grp-btn{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.78);color:var(--ink-3);position:relative;
  box-shadow:0 1px 2px rgba(16,28,58,.05);
  transition:background .18s var(--ease),color .18s var(--ease),
             transform .18s var(--ease),box-shadow .18s var(--ease),
             width .18s var(--ease),height .18s var(--ease)}
:where(html[data-appearance="dark"]) .grp-btn{background:rgba(16,21,42,0.78);box-shadow:0 1px 2px rgba(0,0,0,0.17)}
.grp-btn svg{width:19px;height:19px}
.grp-btn:hover{background:#fff;color:var(--ink);transform:none;
  box-shadow:inset 1px 1px 4px rgba(16,28,58,.07),inset -1px -1px 3px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .grp-btn:hover{background:rgba(255,255,255,0.05);box-shadow:inset 1px 1px 4px rgba(0,0,0,0.14),inset -1px -1px 3px rgba(255,255,255,0.315)}
.grp-btn.is-on{width:56px;height:56px;color:#fff;
  background:radial-gradient(85% 75% at 50% 112%,rgba(255,194,32,.55) 0%,rgba(255,194,32,0) 70%),var(--ink);
  box-shadow:0 10px 22px -8px rgba(12,21,38,.55)}
:where(html[data-appearance="dark"]) .grp-btn.is-on{background:radial-gradient(85% 75% at 50% 112%,rgba(255,194,32,.55) 0%,rgba(255,194,32,0) 70%),var(--ink-fill);box-shadow:0 10px 22px -8px rgba(0,0,0,0.75)}
.grp-btn.is-on svg{width:21px;height:21px}
.grp-btn.is-on:hover,.grp-btn.is-on:active{color:#fff;box-shadow:0 10px 22px -8px rgba(255,194,32,.45)}
.grp-btn::after{content:attr(data-tip);position:absolute;left:calc(100% + 10px);top:50%;
  transform:translateY(-50%) translateX(-4px);background:var(--ink);color:#fff;font-size:12px;
  padding:5px 9px;border-radius:7px;white-space:nowrap;opacity:0;pointer-events:none;
  transition:opacity .15s,transform .15s;z-index:60}
:where(html[data-appearance="dark"]) .grp-btn::after{background:var(--ink-fill)}
.grp-btn:hover::after,.grp-btn:focus-visible::after{opacity:1;transform:translateY(-50%) translateX(0)}
/* circles survive the expanded state: they are the other part */

/* the expanded item link */
.nav-item{display:none}
/* only on the open gesture, never on a plain re-render */
/* the rows wait for the panel to burst out, then slide in behind it */
.rail.just-open.is-open .nav-item,
.rail.just-open.is-open .rail-grp,
.rail.just-open.is-open .part-row{animation:slidein var(--t-base) var(--ease-out) both 190ms}
.rail.just-open.is-open .rail-panel > :nth-child(2){animation-delay:190ms}
.rail.just-open.is-open .rail-panel > :nth-child(3){animation-delay:215ms}
.rail.just-open.is-open .rail-panel > :nth-child(4){animation-delay:240ms}
.rail.just-open.is-open .rail-panel > :nth-child(5){animation-delay:265ms}
.rail.just-open.is-open .rail-panel > :nth-child(n+6){animation-delay:290ms}
@keyframes slidein{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}

.rail.is-open .nav-item{display:flex;align-items:center;gap:11px;margin:0 10px;padding:7px 10px 7px 12px;
  border-radius:99px;font-size:13.8px;color:var(--ink-2);text-align:left;width:calc(100% - 20px);
  transition:background .16s var(--ease),color .16s var(--ease),box-shadow .2s var(--ease)}
/* hover: the row fills with a flat, quiet grey and a barely-there inner edge;
   press: the same, a shade deeper. Nothing moves and nothing casts a shadow. */
.rail.is-open .nav-item:hover{background:#EEF1F7;color:var(--ink);
  box-shadow:inset 1px 1px 4px rgba(16,28,58,.07),inset -1px -1px 3px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .rail.is-open .nav-item:hover{background:rgba(255,255,255,0.07);box-shadow:inset 1px 1px 4px rgba(0,0,0,0.14),inset -1px -1px 3px rgba(255,255,255,0.315)}
.rail.is-open .nav-item:active{background:#E4E9F2;
  box-shadow:inset 2px 2px 6px rgba(16,28,58,.12),inset -2px -2px 5px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .rail.is-open .nav-item:active{background:rgba(255,255,255,0.1);box-shadow:inset 2px 2px 6px rgba(0,0,0,0.24),inset -2px -2px 5px rgba(255,255,255,0.315)}
.rail.is-open .nav-item.is-on:hover,.rail.is-open .nav-item.is-on:active{background:var(--ink);box-shadow:none}
:where(html[data-appearance="dark"]) .rail.is-open .nav-item.is-on:hover,:where(html[data-appearance="dark"]) .rail.is-open .nav-item.is-on:active{background:var(--ink-fill)}
.nav-item svg{width:16px;height:16px;flex:none;color:var(--ink-4)}
.rail.is-open .nav-item.is-on{position:relative;color:var(--ink);font-weight:600;
  background:radial-gradient(70% 140% at 0% 50%,rgba(255,194,32,.22) 0%,rgba(255,194,32,0) 65%),var(--surface-sunk)}
.rail.is-open .nav-item.is-on::before{content:'';position:absolute;left:-10px;top:9px;bottom:9px;width:4px;border-radius:0 3px 3px 0;background:var(--gold);box-shadow:0 0 8px rgba(255,194,32,.45)}
.rail.is-open .nav-item.is-on::after{content:'';position:absolute;right:14px;top:50%;width:6px;height:6px;margin-top:-4px;
  border-right:1.6px solid var(--ink-3);border-bottom:1.6px solid var(--ink-3);transform:rotate(-45deg)}
.nav-item.is-on svg{color:var(--gold)}
.rail.is-open .nav-item.is-solo{margin-top:0;margin-bottom:0}   /* Reward sits at the same spacing as every other row */
.rail.is-open .rail-set > .nav-item.is-solo:first-child{margin-top:2px}
.part-row{display:flex;align-items:center;gap:11px;margin:0 10px;padding:8px 10px 8px 12px;border-radius:99px;
  font-size:13.6px;color:var(--ink-3);width:calc(100% - 20px);text-align:left;
  transition:background .16s var(--ease),color .16s var(--ease)}
.part-row{transition:background .16s var(--ease),color .16s var(--ease),box-shadow .2s var(--ease)}
.part-row:hover{background:#EEF1F7;color:var(--ink);
  box-shadow:inset 1px 1px 4px rgba(16,28,58,.07),inset -1px -1px 3px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .part-row:hover{background:rgba(255,255,255,0.07);box-shadow:inset 1px 1px 4px rgba(0,0,0,0.14),inset -1px -1px 3px rgba(255,255,255,0.315)}
.part-row:active{background:#E4E9F2;box-shadow:inset 2px 2px 6px rgba(16,28,58,.12),inset -2px -2px 5px rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .part-row:active{background:rgba(255,255,255,0.1);box-shadow:inset 2px 2px 6px rgba(0,0,0,0.24),inset -2px -2px 5px rgba(255,255,255,0.315)}
.part-row > svg{width:16px;height:16px;color:var(--ink-4);flex:none}
.part-row .lbl{flex:1;min-width:0}
.part-row .pcount{font-size:11.6px;color:var(--ink-4);background:var(--surface-sunk);
  border-radius:99px;padding:1px 7px}
.part-row:hover .pcount{background:#fff}
:where(html[data-appearance="dark"]) .part-row:hover .pcount{background:rgba(255,255,255,0.05)}
.part-row .pchev{display:flex;color:var(--ink-4)}
.part-row .pchev svg{width:14px;height:14px;transform:rotate(-90deg)}
.rail-grp-more{padding-top:4px}
.nav-item .badge{margin-left:auto;font-size:11.5px;color:#fff;background:var(--down);
  border-radius:99px;padding:1px 6px;line-height:1.5;animation:badge-in var(--t-slow) var(--ease-out) both}
/* the count on a collapsed circle, sitting on its top-right edge */
.grp-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;
  background:var(--down);color:#fff;font-size:10.5px;font-weight:600;line-height:18px;text-align:center;
  box-shadow:0 0 0 2px var(--ground-mid),0 4px 10px -4px rgba(214,69,58,.6);animation:badge-in var(--t-slow) var(--ease-out) both}
.grp-btn.is-on .grp-badge{box-shadow:0 0 0 2px var(--ground-mid)}
@keyframes badge-in{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
/* the phone bar: a dot on More when something behind it carries a count */
.tab-dot{position:absolute;top:8px;left:calc(50% + 6px);width:7px;height:7px;border-radius:50%;background:var(--down);
  box-shadow:0 0 0 2px var(--ink);animation:badge-in var(--t-slow) var(--ease-out) both}

/* the initials disc: the account menu's head and the phone sheet's foot */
.rail-mini{width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;
  display:grid;place-items:center;font-size:12.5px;font-weight:600;flex:none}
:where(html[data-appearance="dark"]) .rail-mini{background:var(--ink-fill)}
.rail-mini{width:42px;height:42px;font-size:13px;
  box-shadow:0 4px 10px -4px rgba(12,21,38,.4)}
:where(html[data-appearance="dark"]) .rail-mini{box-shadow:0 4px 10px -4px rgba(0,0,0,0.75)}
.rail-set.as-circles .lbl,
.rail:not(.is-open) .rail-toggle .lbl{display:none}

/* mobile hamburger lives in the top bar */
.railtoggle-m{display:none;width:38px;height:38px;border-radius:11px;
  background:rgba(255,255,255,.75);color:var(--ink-2);place-items:center}
:where(html[data-appearance="dark"]) .railtoggle-m{background:rgba(16,21,42,0.75)}
.railtoggle-m svg{width:17px;height:17px}

/* ---------- top bar ---------- */
/* the header owns a stacking context (its view-transition name makes one),
   so it is lifted above the page column: otherwise the account menu that
   hangs from the avatar is painted under the account bar below it */
.topbar{height:var(--hdr);display:flex;align-items:center;gap:20px;
  padding:0 var(--edge);max-width:1920px;margin:0 auto;position:relative;z-index:52}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none;
  transition:opacity .16s var(--ease)}
.brand:hover{opacity:.78}
.brand-mark{width:36px;height:36px;display:block;object-fit:contain;flex:none}
/* the KCM Trade PRO lockup (KCMPro logo.svg): the mark, an image the rail and
   the wallet reuse, then KCMTrade with the PRO line under it, drawn inline at
   the mark's height as in the artwork so dark can recolour it. The colours are
   custom properties rather than fills, so the dark twins leave them alone. */
.brand-word,.rail-word{--bw-name:#19274F;--bw-pro:#19274F;--bw-dot:#F5C500;
  width:auto;aspect-ratio:527.61/160;flex:none;stroke:none}
.brand-word{height:36px}
.bw-name{fill:var(--bw-name)}
.bw-pro{fill:var(--bw-pro)}
.bw-dot{fill:var(--bw-dot)}

.mode{display:flex;background:rgba(255,255,255,.65);border-radius:99px;padding:3px}
:where(html[data-appearance="dark"]) .mode{background:rgba(16,21,42,0.65)}
.mode-btn{font-size:13.5px;padding:6px 15px;border-radius:99px;color:var(--ink-3);font-weight:500;transition:background .2s var(--ease),color .2s var(--ease)}
.mode-btn.is-on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,28,58,.12)}
:where(html[data-appearance="dark"]) .mode-btn.is-on{background:#10152A;box-shadow:0 1px 3px rgba(0,0,0,0.338)}


.topbar-end{margin-left:auto;display:flex;align-items:center;gap:9px}
.round{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.75);display:grid;place-items:center;color:var(--ink-3);position:relative;transition:background .18s var(--ease),color .18s var(--ease)}
:where(html[data-appearance="dark"]) .round{background:rgba(16,21,42,0.75)}
.round svg{width:15px;height:15px}
.round:hover{background:#fff;color:var(--ink)}
:where(html[data-appearance="dark"]) .round:hover{background:rgba(255,255,255,0.05)}
.round .dot{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--down)}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;display:grid;
  place-items:center;font-size:13px;font-weight:600;flex:none}
:where(html[data-appearance="dark"]) .avatar{background:var(--ink-fill)}

/* who you are, next to the avatar */
.userbtn{display:flex;align-items:center;gap:11px;padding:4px 4px 4px 14px;border-radius:99px;
  transition:background .16s var(--ease)}
.userbtn:hover{background:rgba(255,255,255,.8)}
:where(html[data-appearance="dark"]) .userbtn:hover{background:rgba(255,255,255,0.05)}
.who-top{text-align:right;min-width:0;line-height:1.3}
.who-top b{display:block;font-size:13.2px;font-weight:600;letter-spacing:-.012em;max-width:210px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who-top span{display:block;font-size:11.4px;color:var(--ink-4);font-variant-numeric:tabular-nums}

/* ---------- page head ---------- */
.pagehead{display:flex;align-items:flex-end;gap:20px;margin:4px 0 20px;flex-wrap:wrap}
.pagehead h1{font-size:34px;letter-spacing:-.03em}
.pagehead p{font-size:14.5px;color:var(--ink-3);margin-top:7px}

/* ---------- layout ---------- */
.grid{display:grid;grid-template-columns:minmax(0,1fr) var(--side-w);gap:18px;align-items:start}
.col-main{min-width:0;display:flex;flex-direction:column;gap:18px}
.col-side{display:flex;flex-direction:column;gap:14px}

/* ---------- buttons ---------- */
.btn{font-size:14.5px;padding:11px 20px;border-radius:var(--r-btn);font-weight:500;border:1px solid transparent;
  transition:transform .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease),border-color .16s var(--ease)}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-gold{background-image:var(--gold-grad);color:var(--gold-ink)}
.btn-gold:hover{background-image:var(--gold-grad-hi);box-shadow:0 8px 18px -8px rgba(240,180,41,.9)}
.btn-dark{background:var(--ink);color:#fff}
:where(html[data-appearance="dark"]) .btn-dark{background:var(--ink-fill)}
.btn-dark:hover{box-shadow:0 8px 18px -8px rgba(12,21,38,.6)}
:where(html[data-appearance="dark"]) .btn-dark:hover{box-shadow:0 8px 18px -8px rgba(0,0,0,0.75)}
.btn-ghost{background:#fff;border-color:var(--line-2);color:var(--ink-2)}
:where(html[data-appearance="dark"]) .btn-ghost{background:#10152A}
.btn-ghost:hover{border-color:#C9D3E4;color:var(--ink)}
:where(html[data-appearance="dark"]) .btn-ghost:hover{border-color:rgba(255,255,255,0.18)}

.underlined{display:inline-block;margin-top:12px;font-size:13.5px;font-weight:500;text-decoration:none;
  color:var(--ink);border-bottom:1.5px solid var(--gold);padding-bottom:1px;background:none}
.underlined:hover{border-bottom-width:2.5px;padding-bottom:0}
.pm-acts .underlined{margin-top:0}

/* ---------- side cards ---------- */
.card{border-radius:var(--r-card);padding:22px 24px}
.card h2{font-size:16px;margin-bottom:6px;letter-spacing:-.015em}
.card p{font-size:13.4px;line-height:1.55}
.card-dark{background:var(--ink);color:#fff}
:where(html[data-appearance="dark"]) .card-dark{background:var(--ink-fill)}
.card-dark p{color:#98A4BC}
:where(html[data-appearance="dark"]) .card-dark p{color:#84A6EB}
.card-dark .btn-gold{margin-top:16px}
.card-quiet{background:var(--surface-quiet);border:1px solid rgba(255,255,255,.9)}
:where(html[data-appearance="dark"]) .card-quiet{border:1px solid rgba(255,255,255,0.108)}
.card-quiet p{color:var(--ink-3)}

/* ---------- shared page furniture ---------- */
.sub-h{font-size:13px;color:var(--ink-3);font-weight:600;margin-bottom:12px}
.note{font-size:13.4px;color:var(--ink-3);line-height:1.55;margin-top:14px}
.stack{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.btn.w{width:100%;text-align:center}
.up{color:var(--up)} .down{color:var(--down)}

.tag{font-size:10.5px;font-weight:600;letter-spacing:.03em;padding:3px 7px;border-radius:5px;
  background:#EDF0F7;color:var(--ink-3)}
:where(html[data-appearance="dark"]) .tag{background:rgba(255,255,255,0.07)}
.tag-live{background:var(--gold-soft);color:var(--gold-deep)}
.tag-gold{background:var(--ink);color:var(--gold)}
:where(html[data-appearance="dark"]) .tag-gold{background:var(--ink-fill)}
.chip{font-size:11.5px;font-weight:500;padding:3px 9px;border-radius:99px;background:#F1F3F8;color:var(--ink-3);white-space:nowrap}
:where(html[data-appearance="dark"]) .chip{background:rgba(255,255,255,0.07)}
.chip-ok{background:#E4F3EC;color:#12805C}
:where(html[data-appearance="dark"]) .chip-ok{background:rgba(88,228,163,0.14);color:#84EBC9}
.chip-warn{background:var(--gold-soft);color:var(--gold-deep)}
.chip-bad{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .chip-bad{background:rgba(228,109,88,0.14)}

.panel{background:var(--surface);border-radius:var(--r-card);padding:24px 26px;box-shadow:var(--lift-card)}
.panel + .panel{margin-top:18px}
.panel-flush{padding:4px 26px}
.panel-head{display:flex;align-items:baseline;gap:12px;margin-bottom:16px}
.panel-head h2{font-size:16px}
.panel-note{margin-left:auto;font-size:12.5px;color:var(--ink-4)}

/* ---------- total value ---------- */
.total{background:var(--surface);border-radius:var(--r-hero);padding:28px 32px;box-shadow:var(--lift-hero)}
.total-lab{font-size:13px;color:var(--ink-4)}
.total-val{font-size:52px;font-weight:600;letter-spacing:-.035em;line-height:1.05;margin-top:6px;
  font-variant-numeric:tabular-nums}
.total-val .cur{font-size:20px;color:var(--ink-4);font-weight:400;margin-left:8px;letter-spacing:-.01em}
.total-sub{font-size:13.6px;color:var(--ink-3);margin-top:10px;max-width:52ch}

/* ---------- account boxes ---------- */
.accts{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:12px;margin-top:16px}
.acct{display:flex;flex-direction:column;background:var(--surface);border-radius:16px;
  padding:13px 15px 15px;box-shadow:var(--lift-card);border:1.5px solid transparent;
  transition:border-color .18s var(--ease),transform .18s var(--ease)}
.acct:hover{transform:translateY(-1px)}
.acct.is-on{border-color:var(--gold)}

.acct-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:9px}
.acct-tags .tag{font-size:9.8px;padding:2px 6px;border-radius:4px}
.acct-mt5{margin-left:auto;font-size:12px;font-weight:500;color:var(--ink-2);
  border-bottom:1.5px solid var(--gold);padding-bottom:1px;white-space:nowrap}
.acct-mt5:hover{color:var(--ink);border-bottom-width:2.5px;padding-bottom:0}

.acct-head{display:flex;align-items:flex-start;gap:12px}
.acct-id{min-width:0;flex:1}
.acct-name{font-size:14.4px;font-weight:600;letter-spacing:-.014em;line-height:1.3}
.acct-meta{font-size:11.8px;color:var(--ink-4);margin-top:2px}
.acct-bal{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.acct-bal b{font-size:21px;font-weight:600;letter-spacing:-.028em;font-variant-numeric:tabular-nums}
.acct-bal em{font-style:normal;font-size:11.5px;color:var(--ink-4)}
.acct.is-view .acct-bal b{color:var(--ink-4);font-weight:500}

.mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:11px 0 0;
  padding:10px 0;border-top:1px solid var(--line)}
.mini-stats dt{font-size:10.6px;color:var(--ink-4);margin-bottom:1px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.mini-stats dd{font-size:13px;font-weight:500;letter-spacing:-.012em;font-variant-numeric:tabular-nums}

.acct-acts{display:flex;gap:6px;margin-top:auto;padding-top:2px}
.acct-acts .btn{flex:1;padding:8px 8px;font-size:12.8px;text-align:center;border-radius:9px}
.acct-note{font-size:12.2px;color:var(--ink-3);line-height:1.45;margin-top:auto;padding-top:6px}

/* ---------- account strip ---------- */
.acct-strip{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:16px;
  padding:14px 20px;box-shadow:var(--lift-card);margin-bottom:18px}
.acct-strip-name b{display:block;font-size:14.5px;font-weight:600;letter-spacing:-.01em}
.acct-strip-name span{font-size:12.4px;color:var(--ink-4)}
.acct-strip-bal{margin-left:auto;text-align:right}
.acct-strip-bal span{display:block;font-size:11.5px;color:var(--ink-4)}
.acct-strip-bal b{font-size:19px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.acct-strip-bal em{font-style:normal;font-size:12.5px;color:var(--ink-4);font-weight:400}
.acct-switch{display:flex;align-items:center;gap:5px;font-size:13.2px;color:var(--ink-2);
  border:1px solid var(--line-2);border-radius:9px;padding:8px 12px;background:#fff}
:where(html[data-appearance="dark"]) .acct-switch{background:#10152A}
.acct-switch:hover{border-color:var(--ink);color:var(--ink)}
.acct-switch svg{width:14px;height:14px}

/* ---------- balance panel ---------- */
.big-num{font-size:42px;font-weight:600;letter-spacing:-.035em;line-height:1;font-variant-numeric:tabular-nums}
.big-num .cur{font-size:17px;color:var(--ink-4);font-weight:400;margin-left:7px;letter-spacing:-.01em}
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:22px;padding-top:20px;
  border-top:1px solid var(--line)}
.stat-row dt{font-size:12.2px;color:var(--ink-4);margin-bottom:4px}
.stat-row dd{font-size:17px;font-weight:500;letter-spacing:-.018em;font-variant-numeric:tabular-nums}

/* ---------- move money ---------- */
.move-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.move{text-align:left;background:var(--surface-sunk);border:1px solid var(--line-2);border-radius:14px;
  padding:16px;transition:border-color .16s var(--ease),background .16s var(--ease),transform .16s var(--ease)}
.move:hover{border-color:var(--ink);background:#fff;transform:translateY(-1px)}
:where(html[data-appearance="dark"]) .move:hover{background:rgba(255,255,255,0.05)}
.move svg{width:18px;height:18px;color:var(--ink-3);margin-bottom:10px}
.move b{display:block;font-size:15px;font-weight:600;margin-bottom:4px}
.move span{font-size:12.6px;color:var(--ink-3);line-height:1.45}
.move-gold{background-image:var(--gold-grad);border-color:var(--gold)}
.move-gold svg,.move-gold span{color:#4A3906}
:where(html[data-appearance="dark"]) .move-gold svg,:where(html[data-appearance="dark"]) .move-gold span{color:#EBD184}
.move-gold b{color:var(--gold-ink)}
.move-gold:hover{background-image:var(--gold-grad-hi);border-color:var(--gold-ink)}

/* the one figure the Funds actions depend on, without repeating the bar */
.avail{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap;
  margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.avail-n{display:flex;align-items:baseline;gap:12px;flex:none}
.avail-n > span{font-size:12.8px;color:var(--ink-4)}
.avail-n b{font-size:26px;font-weight:600;letter-spacing:-.03em}
.avail-n .cur{font-size:14px;color:var(--ink-4);font-weight:400;margin-left:6px;letter-spacing:-.01em}
.avail-w{font-size:13px;color:var(--ink-3);line-height:1.5;flex:1;min-width:200px}

/* ---------- Deposit ---------- */
.backlink{display:flex;align-items:center;gap:6px;font-size:13.4px;font-weight:500;
  color:var(--ink-3);margin-bottom:10px;transition:color var(--t-quick) var(--ease),gap var(--t-quick) var(--ease)}
.backlink svg{width:15px;height:15px;transform:rotate(90deg)}
.backlink:hover{color:var(--ink);gap:9px}

.dep-into{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  background:var(--surface);border-radius:var(--r-card);padding:14px 20px;
  box-shadow:var(--lift-card);margin-bottom:6px}
.dep-into-i{width:38px;height:38px;border-radius:11px;background:var(--surface-sunk);
  display:grid;place-items:center;color:var(--ink-2);flex:none}
.dep-into-i svg{width:18px;height:18px}
.dep-into-t{display:flex;flex-direction:column;min-width:0}
.dep-into-t > span{font-size:11.8px;color:var(--ink-4)}
.dep-into-t b{font-size:14.8px;font-weight:600;letter-spacing:-.014em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dep-into-id{font-size:12.4px;color:var(--ink-4)}
.dep-into .underlined{margin-left:auto;font-size:13px}

.sec-sub{font-size:13px;color:var(--ink-4)}

/* small fixed tiles that fill from the left, rather than four columns
   stretching to whatever width the page happens to have */
.deps{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,186px));
  gap:12px;justify-content:start}

/* a square tile: the brand plate fills it, the name sits under */
.dep{position:relative;aspect-ratio:1;display:flex;flex-direction:column;min-width:0;
  text-align:left;background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r-tile);padding:10px 11px 11px;box-shadow:var(--lift-card);
  transition:transform var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease),
             border-color var(--t-quick) var(--ease)}
.dep:hover{transform:translateY(-2px);box-shadow:0 12px 24px -14px rgba(16,28,58,.45);
  border-color:#C9D3E4}
:where(html[data-appearance="dark"]) .dep:hover{box-shadow:0 12px 24px -14px rgba(0,0,0,0.75);border-color:rgba(255,255,255,0.18)}
.dep:active{transform:scale(.985)}
.dep.is-fast{border-color:var(--gold)}

/* the plate is where the payment brand's own artwork belongs */
.dep-plate{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;padding:6px;border-radius:12px;background:var(--surface-sunk);
  border:1px dashed var(--line-2);color:var(--ink-4);margin-bottom:9px}
.dep-plate svg{width:18px;height:18px;flex:none}
.dep-mark{font-size:9.4px;font-weight:600;letter-spacing:.07em;color:var(--ink-4);
  text-align:center;line-height:1.3}

.dep-name{flex:none;font-size:13.2px;font-weight:600;letter-spacing:-.014em;line-height:1.28;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* a count, not a sentence: how many deposits by this method are still waiting */
.dep-badge{position:absolute;top:7px;right:7px;min-width:19px;height:19px;padding:0 5px;
  border-radius:99px;display:grid;place-items:center;
  font-size:10.6px;font-weight:600;font-variant-numeric:tabular-nums;
  background:var(--gold);color:var(--gold-ink);
  box-shadow:0 2px 6px -2px rgba(16,28,58,.4)}
:where(html[data-appearance="dark"]) .dep-badge{box-shadow:0 2px 6px -2px rgba(0,0,0,0.75)}

/* ---------- Deposit: steps 2 and 3 ---------- */
.dhead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 20px}
.dhead-plate{width:44px;height:44px;border-radius:13px;background:var(--surface);
  border:1px solid var(--line-2);display:grid;place-items:center;color:var(--ink-2);flex:none;
  box-shadow:var(--lift-card)}
.dhead-plate svg{width:20px;height:20px}
.dhead-t{display:flex;flex-direction:column;min-width:0}
.dhead-t b{font-size:21px;font-weight:700;letter-spacing:-.024em;line-height:1.2}
.dhead-t .mono{font-size:12.4px;color:var(--ink-4)}

/* where you are in the flow */
.dsteps{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.dstep{display:flex;align-items:center;gap:7px;font-size:12.8px;color:var(--ink-4);
  background:var(--surface-quiet);border-radius:99px;padding:5px 13px 5px 6px}
.dstep-n{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:#DDE3EF;color:var(--ink-3);font-size:11.5px;font-weight:600}
:where(html[data-appearance="dark"]) .dstep-n{background:rgba(255,255,255,0.07)}
.dstep-n svg{width:12px;height:12px;stroke-width:2.6}
.dstep.is-done{color:var(--ink-3);background:var(--surface)}
.dstep.is-done .dstep-n{background:var(--up);color:#fff}
.dstep.is-on{color:var(--ink);background:var(--surface);font-weight:600;box-shadow:var(--lift-card)}
.dstep.is-on .dstep-n{background:var(--ink);color:var(--gold)}
:where(html[data-appearance="dark"]) .dstep.is-on .dstep-n{background:var(--ink-fill)}

.dgrid{align-items:start}
.dform{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.dfield{display:flex;flex-direction:column;gap:6px}
.dfield > span{font-size:12.6px;color:var(--ink-3)}
.dfield-in{display:flex;align-items:stretch;gap:0;border:1.5px solid var(--line-2);
  border-radius:12px;background:#fff;overflow:hidden;
  transition:border-color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .dfield-in{background:#10152A}
.dfield-in:focus-within{border-color:var(--ink)}
.dfield-in.is-read{background:var(--surface-sunk)}
.dfield-in input{flex:1;min-width:0;font:inherit;font-size:18px;font-weight:600;
  letter-spacing:-.02em;font-variant-numeric:tabular-nums;
  border:0;background:none;padding:12px 14px;color:var(--ink)}
.dfield-in input:focus{outline:none}
.dfield-in select{font:inherit;font-size:14px;font-weight:600;border:0;border-left:1.5px solid var(--line-2);
  background:var(--surface-sunk);color:var(--ink);padding:0 12px;cursor:pointer}
.dfield-in select:focus{outline:none}
.dfield-lock{display:flex;flex-direction:column;justify-content:center;flex:none;
  padding:0 14px;border-left:1.5px solid var(--line-2);background:var(--surface-sunk);
  font-size:14px;font-weight:600;color:var(--ink-3)}
.dfield-lock em{font-style:normal;font-size:10.4px;font-weight:400;color:var(--ink-4)}
.dfield-help{font-style:normal;font-size:11.8px;color:var(--ink-4)}
/* only the payment-option field is a select on its own; the currency select
   sits beside an amount and keeps its narrow, attached form */
.dfield-in > select:only-child{flex:1;border-left:0;background:#fff;padding:12px 14px;
  font-size:15px;font-weight:500}
:where(html[data-appearance="dark"]) .dfield-in > select:only-child{background:#10152A}

/* payment details: what the client has already had approved */
.req{color:var(--down);font-weight:600}
.addnew{display:flex;align-items:center;gap:6px;font-size:12.8px;font-weight:600;
  color:var(--gold-deep);margin-top:2px;
  transition:gap var(--t-quick) var(--ease)}
.addnew svg{width:14px;height:14px;stroke-width:2.2}
.addnew:hover{gap:9px}
.dnone{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border-radius:12px;
  background:var(--surface-sunk);border:1px dashed var(--line-2);
  font-size:12.8px;color:var(--ink-3);line-height:1.5}
.dnone svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--ink-4)}

.dsum{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:11px}
.dsum > div{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.dsum dt{font-size:13px;color:var(--ink-3)}
.dsum dd{font-size:13.8px;color:var(--ink-2);text-align:right}
.dsum dd b{font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}

.dwarn{display:flex;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;
  border-radius:11px;background:#FBEAE7;color:#8A2A1E;font-size:13px;line-height:1.45}
:where(html[data-appearance="dark"]) .dwarn{background:rgba(228,109,88,0.14);color:#EB9084}
.dwarn svg{width:15px;height:15px;flex:none;margin-top:1px}

.dacts{display:grid;grid-template-columns:1fr 1.6fr;gap:12px;margin-top:20px}
.dacts .btn{padding:13px 20px;border-radius:99px;font-weight:600}
.dacts .btn[disabled]{opacity:.45;pointer-events:none}

/* the notes panel */
.dnotes{background:var(--surface-sunk);border:1px solid var(--line);border-radius:var(--r-card);
  padding:16px 18px 14px}
.dnotes-top{display:flex;gap:11px}
.dnotes-top > svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--gold-deep)}
.dnotes-facts{display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.dnotes-facts dt{font-size:10.8px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:var(--ink-4)}
.dnotes-facts dd{font-size:13.4px;color:var(--ink-2);margin-top:1px}
.dnotes-list{margin:14px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:9px}
.dnotes-list li{font-size:12.6px;color:var(--ink-3);line-height:1.55}
.dnotes-more{margin-top:12px;font-size:12.8px}

/* step 3: the check, and the code that arrives beside it */
.dconf{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
/* these two are columns, not a stack: the generic panel spacing would push
   the second one down and break the matched height */
.dconf > .panel + .panel{margin-top:0}
.dconf.has-qr{grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr)}
.drows{margin-top:16px;display:flex;flex-direction:column}
.drows > div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:12px 0;border-bottom:1px solid var(--line)}
.drows > div:last-child{border-bottom:0}
.drows dt{font-size:13.2px;color:var(--ink-3);flex:none}
.drows dd{font-size:14px;font-weight:500;color:var(--ink);text-align:right;min-width:0;
  overflow-wrap:anywhere}

/* it comes in from the right, and does not disturb what is already there */
.dqr{display:flex;flex-direction:column;align-items:center;text-align:center;
  animation:qrin 460ms var(--ease-out) both}
/* the code sits centred in whatever height the confirmation card sets */
.dqr .qrbox{margin-top:auto}
.dqr .dqr-note{margin-top:auto}
@keyframes qrin{
  from{opacity:0;transform:translateX(36px) scale(.97)}
  to  {opacity:1;transform:none}
}
.dqr h2{align-self:flex-start}
.dqr-sub{align-self:flex-start;font-size:12.8px;color:var(--ink-4);margin-top:3px;
  overflow-wrap:anywhere;text-align:left}
.qrbox{margin:18px 0 14px;display:flex;flex-direction:column;align-items:center;gap:8px}
/* the global svg rule strokes every shape; a 1.6-unit stroke on a 1-unit
   module bleeds the whole code into a solid block */
.qrbox svg rect{stroke:none;stroke-width:0}
.qrbox svg{width:186px;height:186px;border-radius:12px;
  border:1px solid var(--line-2);background:#fff;padding:8px;box-shadow:var(--lift-card)}
:where(html[data-appearance="dark"]) .qrbox svg{background:#10152A}
.qrbox-tag{font-size:10.6px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-4)}
.dqr-note{display:flex;align-items:flex-start;gap:7px;text-align:left;
  font-size:12.4px;color:var(--ink-3);line-height:1.5;margin-bottom:12px}
.dqr-note svg{width:14px;height:14px;flex:none;margin-top:1px}

.dgrid-notes{margin-top:16px}

/* ---------- link cards ---------- */
.linkcard{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);
  border-radius:14px;padding:14px 16px;box-shadow:var(--lift-card);
  transition:transform .16s var(--ease),box-shadow .16s var(--ease)}
.linkcard:hover{transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(16,28,58,.3)}
:where(html[data-appearance="dark"]) .linkcard:hover{box-shadow:0 6px 16px -8px rgba(0,0,0,0.75)}
.linkcard-i{width:36px;height:36px;border-radius:10px;background:var(--surface-sunk);display:grid;
  place-items:center;color:var(--ink-3);flex:none}
.linkcard-i svg{width:17px;height:17px}
.linkcard > span:nth-child(2){flex:1;min-width:0}
.linkcard b{display:block;font-size:14.2px;font-weight:600}
.linkcard b + span{font-size:12.4px;color:var(--ink-4)}
.linkcard > svg{width:15px;height:15px;color:var(--ink-4);transform:rotate(-90deg);flex:none}

/* ---------- transactions ---------- */
.fbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.fsearch{display:flex;align-items:center;gap:9px;background:var(--surface);border-radius:11px;
  padding:11px 14px;box-shadow:var(--lift-card);flex:1;min-width:240px}
.fsearch svg{width:16px;height:16px;color:var(--ink-4);flex:none}
.fsearch input{border:0;outline:0;background:none;font:inherit;font-size:14px;width:100%;color:var(--ink)}
.fsearch input::placeholder{color:var(--ink-4)}
.fchips{display:flex;gap:6px;flex-wrap:wrap}
.fchip{font-size:13px;padding:9px 14px;border-radius:99px;background:rgba(255,255,255,.7);color:var(--ink-2);
  transition:background .16s var(--ease),color .16s var(--ease)}
:where(html[data-appearance="dark"]) .fchip{background:rgba(16,21,42,0.7)}
.fchip:hover{background:#fff;color:var(--ink)}
:where(html[data-appearance="dark"]) .fchip:hover{background:rgba(255,255,255,0.05)}
.fchip.is-on{background:var(--ink);color:#fff;font-weight:500}
:where(html[data-appearance="dark"]) .fchip.is-on{background:var(--ink-fill)}
.fcount{font-size:12.8px;color:var(--ink-4);margin:0 0 10px 2px}

.txn{display:grid;grid-template-columns:9px minmax(0,1fr) auto 150px 92px;gap:14px;align-items:center;
  padding:16px 0;border-top:1px solid var(--line);width:100%;text-align:left}
.txn:first-child{border-top:0}
.txn-mark{width:8px;height:8px;border-radius:2px;background:#C7CBD3}
:where(html[data-appearance="dark"]) .txn-mark{background:rgba(255,255,255,0.07)}
.txn-mark.ok{background:var(--up)} .txn-mark.warn{background:var(--gold)} .txn-mark.out{background:var(--ink-3)}
.txn-main b{display:block;font-size:14.5px;font-weight:500;letter-spacing:-.008em}
.txn-main span{font-size:12.8px;color:var(--ink-4)}
.txn-amt{text-align:right;font-size:16px;font-weight:500;letter-spacing:-.015em;font-variant-numeric:tabular-nums;white-space:nowrap}
.txn-amt em{font-style:normal;font-size:12.5px;color:var(--ink-4);font-weight:400}
.txn-ref{text-align:right;font-size:12.2px;color:var(--ink-4)}
.txn-chev{color:var(--ink-4);text-align:right}
.txn-chev svg{width:15px;height:15px;margin-left:auto}
.txn-group{border-top:1px solid var(--line)}
.txn-group:first-child{border-top:0}
.txn-head{border-top:0}
.txn-head:hover{background:#FBFCFE}
:where(html[data-appearance="dark"]) .txn-head:hover{background:rgba(255,255,255,0.05)}
.txn-head[aria-expanded="true"] .txn-chev svg{transform:rotate(180deg)}
.txn-sub{padding:11px 0 11px 22px;border-top:1px dashed var(--line-2)}
.txn-sub .txn-main b{font-size:13.4px;font-weight:400;color:var(--ink-3)}
.txn-sub .txn-amt{font-size:14px;font-weight:400;color:var(--ink-3)}
.card-num{font-size:28px;font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin:8px 0 6px}
.card-num em{font-style:normal;font-size:14px;opacity:.6;font-weight:400}

/* ---------- payment method boxes ---------- */
/* every box the same size: 1fr rows level the grid, and the footer is pushed
   to the bottom of each card so the extra height reads as a card, not a gap */
.pms{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px;
  align-items:stretch;grid-auto-rows:1fr}
.pm{background:var(--surface);border-radius:16px;padding:13px 15px 14px;box-shadow:var(--lift-card);
  border-top:3px solid transparent;transition:transform .18s var(--ease);
  display:flex;flex-direction:column}
.pm:hover{transform:translateY(-1px);position:relative;z-index:2}
.pm.is-bad{border-top-color:var(--down)}
.pm-top{display:flex;align-items:flex-start;gap:11px}
.pm-i{width:32px;height:32px;border-radius:9px;background:var(--surface-sunk);display:grid;
  place-items:center;color:var(--ink-3);flex:none}
.pm-i svg{width:16px;height:16px}
.pm-main{flex:1;min-width:0}
.pm-status{display:flex;align-items:center;gap:6px;flex:none}
.pm-top .chip{font-size:10.8px;padding:2px 8px}

/* the reason lives on the icon, not in a block that doubles the card height */
.pm-why{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;flex:none;
  color:var(--down);background:#FBEAE7;position:relative;transition:background .15s var(--ease)}
:where(html[data-appearance="dark"]) .pm-why{background:rgba(228,109,88,0.14)}
.pm-why:hover{background:#F7DAD5}
:where(html[data-appearance="dark"]) .pm-why:hover{background:rgba(228,109,88,0.14)}
.pm-why svg{width:13px;height:13px}
.pm-why::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);right:-2px;width:224px;
  background:var(--ink);color:#fff;font-size:12.2px;font-weight:400;line-height:1.45;text-align:left;
  white-space:normal;padding:9px 11px;border-radius:10px;
  box-shadow:0 10px 24px -10px rgba(12,21,38,.6);
  opacity:0;pointer-events:none;transform:translateY(-4px);
  transition:opacity .15s var(--ease),transform .15s var(--ease);z-index:40}
:where(html[data-appearance="dark"]) .pm-why::after{background:var(--ink-fill);box-shadow:0 10px 24px -10px rgba(0,0,0,0.75)}
.pm-why:hover::after,.pm-why:focus-visible::after{opacity:1;transform:none}
/* two lines are always reserved, so a name that wraps does not open a gap
   in its neighbours — the boxes stay identical at every width */
.pm-name{font-size:14.4px;font-weight:600;letter-spacing:-.012em;line-height:1.3;
  min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pm-no{font-size:12.2px;color:var(--ink-3);margin-top:3px;letter-spacing:.05em}
.pm-added{font-size:11.6px;color:var(--ink-4);margin-top:1px}
.pm-acts{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:10px;
  border-top:1px solid var(--line)}
.pm-top{margin-bottom:11px}
.pm-acts .underlined{margin-top:0;font-size:12.8px}
.pm-del{margin-left:auto;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--ink-4)}
.pm-del:hover{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .pm-del:hover{background:rgba(228,109,88,0.14)}
.pm-del svg{width:15px;height:15px}

.addms{display:flex;flex-direction:column;gap:8px}
.addm{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface-quiet);
  border:1px solid transparent;border-radius:13px;padding:12px 14px;
  transition:background .16s var(--ease),border-color .16s var(--ease)}
.addm:hover{background:#fff;border-color:var(--line-2)}
:where(html[data-appearance="dark"]) .addm:hover{background:rgba(255,255,255,0.05)}
.addm .pm-i{width:34px;height:34px;border-radius:9px;background:#fff}
:where(html[data-appearance="dark"]) .addm .pm-i{background:#10152A}
.addm .pm-i svg{width:16px;height:16px}
.addm > span:nth-child(2){flex:1;min-width:0}
.addm b{display:block;font-size:14px;font-weight:600}
.addm b + span{font-size:12.2px;color:var(--ink-4)}
.addm-plus{font-size:19px;color:var(--ink-4);line-height:1;flex:none;
  width:26px;height:26px;border-radius:8px;display:grid;place-items:center}
.addm:hover .addm-plus{color:var(--ink)}

/* ---------- Payment details: the add-a-method form ---------- */
/* three columns once a method is picked: the saved cards give up the width,
   because the list you chose from has to stay beside the form */
.paygrid.has-form{grid-template-columns:minmax(0,1fr) minmax(230px,270px) minmax(260px,320px)}
.paygrid.has-form .pms{grid-template-columns:minmax(0,1fr)}

.col-form{min-width:0}
.addform{padding:18px 20px 20px}
.addform-head{display:flex;align-items:center;gap:11px;padding-bottom:14px;margin-bottom:4px;
  border-bottom:1px solid var(--line)}
.addform-head b{display:block;font-size:14.8px;font-weight:600;letter-spacing:-.014em}
.addform-head span span{font-size:12.2px;color:var(--ink-4)}

.afield{display:flex;flex-direction:column;gap:5px;margin-top:14px}
.afield > span{font-size:12.4px;color:var(--ink-3)}
.afield input{font:inherit;font-size:14.4px;border:1.5px solid var(--line-2);border-radius:11px;
  padding:10px 13px;background:#fff;color:var(--ink);width:100%;
  transition:border-color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .afield input{background:#10152A}
.afield input:focus{outline:none;border-color:var(--ink)}
.afield-fixed{font-size:14.4px;font-weight:600;color:var(--ink-3);background:var(--surface-sunk);
  border:1.5px solid var(--line-2);border-radius:11px;padding:10px 13px}
.afield em{font-style:normal;font-size:11.6px;color:var(--ink-4);line-height:1.45}

.addform-note{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:11px 12px;
  border-radius:11px;background:var(--surface-sunk);
  font-size:12.2px;color:var(--ink-3);line-height:1.5}
.addform-note svg{width:14px;height:14px;flex:none;margin-top:1px;color:var(--ink-4)}
.addform-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.addform-acts .btn{padding:11px 16px;border-radius:99px;font-weight:600}

/* ---------- the row and its form are one shape ----------
   The form docks against the list, its top on the first row, and the row you
   picked reaches across the gap as a tab: 18px over the gap plus 2px into the
   panel, sitting above the panel's edge so nothing shows at the join. Concave
   corners above and below the tab curve it into the panel's edge, and the
   panel is kept at least tall enough to be there where the tab lands.
   Switching rows moves the tab and swaps the form in place, so the panel
   never leaves the screen. */
.paygrid.has-form .col-form{margin-top:var(--form-top,0px)}
.paygrid.has-form .addform{min-height:var(--form-reach,0px);
  border-radius:var(--r-card);
  transition:min-height var(--t-base) var(--ease),opacity var(--t-quick) var(--ease-in),
             transform var(--t-quick) var(--ease-in)}
/* with the first row open the tab's top edge runs straight on as the
   panel's, so that one corner stays square; every other corner is round */
.paygrid.has-form.is-top .addform{border-top-left-radius:0}
/* the form's content changes while the panel stays: a short dip, then back */
.addform.is-swapping{opacity:0;transform:translateY(4px)}

/* the tab: the extra 20px is bridge, not content, so the right padding grows
   by the same amount and the row's contents stay exactly where they were */
.addm{transition:background var(--t-quick) var(--ease),border-color var(--t-quick) var(--ease),
  width var(--t-base) var(--ease),padding-right var(--t-base) var(--ease)}
.addm.is-on{position:relative;z-index:2;width:calc(100% + 20px);padding-right:34px;
  background:#fff;border-color:transparent;box-shadow:none;
  border-radius:13px 0 0 13px}
:where(html[data-appearance="dark"]) .addm.is-on{background:#10152A}
.addm.is-on:hover{background:#fff;border-color:transparent}
:where(html[data-appearance="dark"]) .addm.is-on:hover{background:rgba(255,255,255,0.05)}
.addm.is-on .addm-plus{background:var(--surface-sunk);color:var(--ink)}

/* the concave corners: white everywhere in a small square except a
   quarter-disc, so the tab's edges curve into the panel instead of meeting it
   at a right angle. The top one has nothing to curve into on the first row,
   where the tab's top edge runs straight on as the panel's own. */
.addm.is-on::before,.addm.is-on::after{content:'';position:absolute;right:2px;
  width:14px;height:14px;pointer-events:none;
  animation:fade var(--t-quick) var(--ease) both}
.addm.is-on::after{top:100%;
  background:radial-gradient(circle at 0 100%,transparent 14px,#fff calc(14px + .5px))}
:where(html[data-appearance="dark"]) .addm.is-on::after{background:radial-gradient(circle at 0 100%,transparent 14px,#10152A calc(14px + .5px))}
.addm.is-on::before{bottom:100%;
  background:radial-gradient(circle at 0 0,transparent 14px,#fff calc(14px + .5px))}
:where(html[data-appearance="dark"]) .addm.is-on::before{background:radial-gradient(circle at 0 0,transparent 14px,#10152A calc(14px + .5px))}
.addm.is-on:first-child::before{display:none}

/* opening: the cards and rows travel to their new places (measured and
   animated from pages.js), the picked row stretches across as it goes, and
   the panel unfolds out of it once they have arrived */
@keyframes unfold{from{clip-path:inset(0 100% 0 0);opacity:.5}to{clip-path:inset(0 0 0 0);opacity:1}}
.paygrid.is-opening .col-form{animation:unfold var(--t-slow) var(--ease-out) both 230ms}
.paygrid.is-opening .addm.is-on::before,.paygrid.is-opening .addm.is-on::after{animation-delay:330ms}
/* closing: the same in reverse, and quicker */
@keyframes fold{to{clip-path:inset(0 100% 0 0);opacity:.5}}
.paygrid.is-closing .col-form{animation:fold var(--t-quick) var(--ease-in) both}
.paygrid.is-closing .addm.is-on{width:100%;padding-right:14px;transition-duration:var(--t-quick)}
.paygrid.is-closing .addm.is-on::before,.paygrid.is-closing .addm.is-on::after{opacity:0;animation:none}

/* ---------- Crypto Wallet: the code in one box, the rest in the other ---------- */
.usdt{width:34px;height:34px;border-radius:50%;background:#26A17B;color:#fff;display:grid;place-items:center;
  font-size:17px;font-weight:600;flex:none}
.wallet{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:18px;align-items:start}
.wallet > .panel + .panel{margin-top:0}

.wbox-qr{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 22px 22px}
.whead{display:flex;align-items:center;gap:10px;align-self:stretch;padding-bottom:16px;
  border-bottom:1px solid var(--line)}
.whead b{font-size:16.5px;font-weight:700;letter-spacing:-.02em}
.wqr{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 0 18px}
.wqr-code{position:relative;display:inline-block;line-height:0}
.wqr-code svg{width:228px;height:228px;border-radius:16px;border:1px solid var(--line-2);
  background:#fff;padding:10px;box-shadow:var(--lift-card)}
:where(html[data-appearance="dark"]) .wqr-code svg{background:#10152A}
.wqr-code svg rect,.wqr-code svg path{stroke:none}
/* the mark sits in the middle; level-M correction covers what it hides */
.wlogo{position:absolute;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);
  background:#fff;border-radius:11px;display:grid;place-items:center;
  box-shadow:0 0 0 3px #fff,0 2px 8px -2px rgba(16,28,58,.35)}
:where(html[data-appearance="dark"]) .wlogo{background:#10152A;box-shadow:0 0 0 3px rgba(255,255,255,0.05),0 2px 8px -2px rgba(0,0,0,0.75)}
.wlogo img{width:34px;height:34px;display:block}
.wvalid{display:flex;align-items:flex-start;gap:9px;text-align:left;align-self:stretch;
  background:var(--surface-sunk);border-radius:14px;padding:12px 14px;
  font-size:12.6px;color:var(--ink-3);line-height:1.5}
.wvalid > svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--up)}
.wvalid b{display:block;color:var(--ink);font-weight:600;margin-bottom:2px}

.wbox{padding:22px 26px 22px}
.wlab{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-4);margin-bottom:8px}
.waddr-row{display:flex;align-items:center;gap:12px}
.waddr-row code{flex:1;min-width:0;font-size:16px;font-weight:500;letter-spacing:.02em;
  overflow-wrap:anywhere;color:var(--ink)}
.wcopy{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none;
  background:var(--surface-sunk);color:var(--ink-2);border:1px solid var(--line-2);
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease),
             border-color var(--t-quick) var(--ease)}
.wcopy svg{width:16px;height:16px}
.wcopy:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
:where(html[data-appearance="dark"]) .wcopy:hover{background:var(--ink-fill)}
.wcopy.is-done{background:var(--gold);color:var(--gold-ink);border-color:var(--gold)}
.wbox .dwarn{margin:18px 0 0}
.wto{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.wto-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.wto-acct{flex:1;min-width:0;display:flex;flex-direction:column}
.wto-acct b{font-size:17px;font-weight:600;letter-spacing:.01em}
.wto-acct > span{font-size:12.8px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* "Change" is the whole control: the select sits over it, so the click lands
   on the native menu while the word stays the thing you see */
.wsel{position:relative;display:inline-flex;align-items:center;gap:6px;font-size:13.4px;font-weight:600;
  color:var(--gold-deep);background:var(--gold-soft);border-radius:99px;padding:9px 14px;cursor:pointer}
.wsel::after{content:'';width:7px;height:7px;border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.wsel select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit}
.wdet{margin:22px 0 4px}
.wbox .kv > div{padding:12px 0}
.wbox .note{margin-top:12px}

/* ---------- Home: account bar ---------- */
#acctbar:empty{display:none}
/* one line, on a Fibonacci scale (8 · 13 · 21 · 34): the account, the
   headline figure, the four stats, the two actions, all on one row, with a
   13px rhythm inside and 21px between — a bar about 89px tall, where it
   used to stack into three rows and leave the middle empty */
.hbar{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:21px;align-items:center;
  background:var(--surface);border-radius:var(--r-card);padding:13px 21px;margin-bottom:21px;
  box-shadow:var(--lift-soft)}
.hbar-sw{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line-2);
  border-radius:12px;padding:9px 12px;background:var(--surface-sunk);max-width:380px}
.hbar-sw:hover{border-color:var(--ink);background:#fff}
:where(html[data-appearance="dark"]) .hbar-sw:hover{background:rgba(255,255,255,0.05)}
.hbar-eq{min-width:0}
.hbar-swn{min-width:0}
.hbar-swn b{display:block;font-size:13.6px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.hbar-swn span{font-size:11.8px;color:var(--ink-4);white-space:nowrap}
.hbar-sw > svg{width:14px;height:14px;color:var(--ink-4);flex:none}
/* the account is a menu: the native select lies over the button you see */
.hbar-sw{position:relative;cursor:pointer}
.hbar-sel{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit}
.dep-into .wsel{margin-left:auto}
.dep-into .wavail + .wsel{margin-left:0}
/* the headline switch: two words, the live one picked out */
.metsw{display:inline-flex;align-items:center;gap:2px;background:var(--surface-sunk);
  border-radius:99px;padding:2px;margin-bottom:2px}
.met{font-size:11.8px;font-weight:500;color:var(--ink-4);padding:3px 10px;border-radius:99px;
  white-space:nowrap;transition:background var(--t-base) var(--ease),color var(--t-quick) var(--ease)}
.met:hover{color:var(--ink-2)}
.met.is-on{background:var(--surface);color:var(--ink);font-weight:600;
  box-shadow:0 1px 2px rgba(16,28,58,.08)}
:where(html[data-appearance="dark"]) .met.is-on{box-shadow:0 1px 2px rgba(0,0,0,0.242)}
.hbar-eq b{display:block;font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.1;margin-top:2px;
  font-variant-numeric:tabular-nums}
.hbar-eq em{font-style:normal;font-size:14px;color:var(--ink-4);font-weight:400;margin-left:6px}
.hbar-stats{display:flex;flex-wrap:wrap;gap:8px 21px;min-width:0;padding-left:21px;border-left:1px solid var(--line)}
.hbar-stats dt{font-size:11.8px;color:var(--ink-4);margin-bottom:3px;white-space:nowrap}
.hbar-stats dd{font-size:16px;font-weight:500;letter-spacing:-.018em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hbar-stats dd.muted{font-size:13.4px;font-weight:400;color:var(--ink-4)}
.hbar-acts{display:flex;gap:8px}

/* on a page that carries the bar in its own body, the page's own actions
   already do this job — a second Deposit button beside them is noise */
#page .hbar .hbar-acts{display:none}
#page .hbar{margin-bottom:18px}

/* the bar, sized against its own column rather than the window */
/* narrower, the row stays a row and tightens instead of stacking: the
   account clips its name, the figure comes down a step, the stats close up
   (and wrap two by two inside their own cell if they must) */
@container page (max-width: 940px){
  .hbar{gap:13px;padding:13px 18px}
  .hbar-sw{max-width:340px;padding:7px 10px;gap:8px}
  .hbar-eq b{font-size:24px}
  /* the four stats as a tidy two-by-two block beside the figure, so the
     account name keeps its full width */
  .hbar-stats{display:grid;grid-template-columns:auto auto;gap:6px 21px;padding-left:13px}
  .hbar-stats dt{font-size:11px;margin-bottom:1px}
  .hbar-stats dd{font-size:13.6px}
  .hbar-stats dd.muted{font-size:12.4px}
  .met{padding:2px 8px}
  .hbar-acts{gap:6px}
}
/* narrower still, the stats go and the row is the account, the figure and
   the two actions — never a stack */
@container page (max-width: 800px){
  .hbar-stats{display:none}
}
@container page (max-width: 620px){
  /* every cell must be allowed to shrink, or the account name's nowrap
     width sets the floor and the bar overflows */
  /* two rows: the account across the top; under it the figure on the left
     and the two actions stacked on the right, in the space the figure leaves
     free — so the bar stays short */
  .hbar{grid-template-columns:minmax(0,1fr) auto;gap:11px 13px;padding:12px 14px 13px}
  .hbar > *{min-width:0}
  .hbar-sw{grid-column:1 / -1;max-width:none;min-width:0;padding:9px 11px}
  /* in a column this narrow the bar carries the account, one number, and
     the two things you came to do; the rest is a tap away */
  .hbar-stats{display:none}
  .hbar-eq{grid-column:1;grid-row:2;align-self:center}
  .hbar-acts{grid-column:2;grid-row:2;flex-direction:column;gap:8px;justify-self:end;align-self:center}
  .hbar-acts .btn{padding:9px 18px;min-width:132px}
  .hbar-eq b{font-size:27px}
  .hbar-swn b{font-size:13.8px}
  .metsw{margin-bottom:0}
}
}

/* ---------- Home: markets ---------- */
.mkt-head{display:flex;align-items:center;gap:12px}
.mkt-head h2{font-size:22px;font-weight:700;letter-spacing:-.025em}
.mkt-all{margin-left:auto;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  color:var(--ink-3);transition:background .16s var(--ease),color .16s var(--ease)}
.mkt-all:hover{background:var(--surface);color:var(--ink)}
.mkt-all svg{width:17px;height:17px;transform:rotate(-90deg)}

.mtabs{display:flex;gap:4px;overflow-x:auto;margin:16px 0 18px;scrollbar-width:none}
.mtabs::-webkit-scrollbar{display:none}
.mtab{font-size:14px;padding:9px 18px;border-radius:99px;color:var(--ink-3);white-space:nowrap;
  transition:background .16s var(--ease),color .16s var(--ease)}
.mtab:hover{background:rgba(255,255,255,.7);color:var(--ink)}
:where(html[data-appearance="dark"]) .mtab:hover{background:rgba(255,255,255,0.05)}
.mtab.is-on{background:#E7EBF4;color:var(--ink);font-weight:600}
:where(html[data-appearance="dark"]) .mtab.is-on{background:rgba(255,255,255,0.07)}

/* five movers, three and a bit across: the cards are sized so the fourth
   peeks past the third and the strip reads as something that slides. Three
   or fewer and nothing overflows, so the fade sits over empty ground rather
   than clipping a card. The 2px of padding keeps the hover lift out of the
   scroll container's clip. */
.mcards{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 102px)/3);gap:14px;
  margin:-2px 0 13px;padding:2px 0 3px;overflow-x:auto;scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 34px),transparent);
  mask-image:linear-gradient(90deg,#000 calc(100% - 34px),transparent)}
.mcards::-webkit-scrollbar{display:none}
.mcard{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
  scroll-snap-align:start;
  background:var(--surface);border:1px solid var(--line-2);border-radius:16px;padding:15px 17px;
  transition:border-color .16s var(--ease),transform .16s var(--ease)}
.mcard:hover{border-color:#C9D3E4;transform:translateY(-1px)}
:where(html[data-appearance="dark"]) .mcard:hover{border-color:rgba(255,255,255,0.18)}
.mcard > div{min-width:0}
.mcard-s{display:flex;align-items:center;gap:8px;font-size:12.6px;color:var(--ink-3);letter-spacing:.01em}
.mcard-p{font-size:19.5px;font-weight:600;letter-spacing:-.028em;margin-top:7px;font-variant-numeric:tabular-nums;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-c{font-size:13px;font-weight:500;margin-top:5px}
.spark{width:78px;height:31px;flex:none}

.mtable{padding:2px 26px 8px}
.mhead,.mrow{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr) 104px;
  gap:18px;align-items:center}
.mhead{padding:18px 0 12px;font-size:12.2px;color:var(--ink-4)}
.mrow{padding:14px 0;border-top:1px solid var(--line)}
.mrow:hover{background:#FBFCFE}
:where(html[data-appearance="dark"]) .mrow:hover{background:rgba(255,255,255,0.05)}
.msym{display:flex;align-items:center;gap:12px;min-width:0}
/* the pair badge: base asset in front, quote asset behind */
.pair{position:relative;width:44px;height:30px;flex:none}
.pair-f,.pair-b{position:absolute;top:1px;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#fff}
:where(html[data-appearance="dark"]) .pair-f,:where(html[data-appearance="dark"]) .pair-b{background:#10152A}
.pair-f{left:0;z-index:2;box-shadow:0 0 0 2px #fff,0 1px 3px rgba(16,28,58,.22)}
:where(html[data-appearance="dark"]) .pair-f{box-shadow:0 0 0 2px rgba(255,255,255,0.05),0 1px 3px rgba(0,0,0,0.578)}
.pair-b{left:15px;z-index:1;box-shadow:0 1px 3px rgba(16,28,58,.16)}
:where(html[data-appearance="dark"]) .pair-b{box-shadow:0 1px 3px rgba(0,0,0,0.434)}
.ai{width:100%;height:100%;display:block}
.pair.is-sm{width:34px;height:22px}
.pair.is-sm .pair-f,.pair.is-sm .pair-b{width:20px;height:20px;top:1px}
.pair.is-sm .pair-b{left:13px}
.pair.is-one{width:30px}
.pair.is-one.is-sm{width:22px}
.msym b{display:block;font-size:14.8px;font-weight:600;letter-spacing:-.01em}
.msym b + span{display:block;font-size:12.4px;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mprice{font-size:15px;font-weight:500;letter-spacing:-.012em;font-variant-numeric:tabular-nums}
.mchg{font-size:14px;font-weight:500}
.mtrade{justify-self:end;font-size:13.4px;font-weight:600;padding:9px 22px;border-radius:99px;
  background:var(--surface-sunk);color:var(--ink-2);border:1px solid var(--line-2);
  transition:background .16s var(--ease),color .16s var(--ease),border-color .16s var(--ease)}
.mtrade:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
:where(html[data-appearance="dark"]) .mtrade:hover{background:var(--ink-fill)}

.mkt-more{display:flex;align-items:center;gap:7px;margin:18px auto 0;font-size:13.8px;font-weight:600;
  padding:10px 22px;border-radius:99px;background:var(--surface);color:var(--ink-2);
  box-shadow:var(--lift-card);transition:color .16s var(--ease),transform .16s var(--ease)}
.mkt-more:hover{color:var(--ink);transform:translateY(-1px)}
.mkt-more svg{width:14px;height:14px;transform:rotate(-90deg)}

/* ---------- Home: swap-free ---------- */
.swap-track{position:relative;height:9px;border-radius:99px;background:#E4E9F3;overflow:visible}
:where(html[data-appearance="dark"]) .swap-track{background:rgba(255,255,255,0.07)}
.swap-fill{position:absolute;inset:0 auto 0 0;border-radius:99px;background:var(--up)}
.swap-pip{position:absolute;top:50%;width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.8);
  transform:translate(-50%,-50%)}
:where(html[data-appearance="dark"]) .swap-pip{background:rgba(16,21,42,0.8)}
.swap-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-4);margin-top:10px}

/* ---------- Home: MT5 ---------- */
.mt5{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--ink);color:#fff;
  border-radius:var(--r-card);padding:18px 22px;margin-top:18px;
  transition:transform .16s var(--ease),box-shadow .16s var(--ease)}
:where(html[data-appearance="dark"]) .mt5{background:var(--ink-fill)}
.mt5:hover{transform:translateY(-1px);box-shadow:0 10px 24px -12px rgba(12,21,38,.8)}
:where(html[data-appearance="dark"]) .mt5:hover{box-shadow:0 10px 24px -12px rgba(0,0,0,0.75)}
.mt5-i{width:40px;height:40px;border-radius:11px;background:rgba(255,255,255,.1);display:grid;place-items:center;flex:none}
.mt5-i svg{width:19px;height:19px;color:var(--gold)}
.mt5 > span:nth-child(2){flex:1;min-width:0}
.mt5 b{display:block;font-size:15px;font-weight:600;margin-bottom:3px}
.mt5 b + span{font-size:13px;color:#98A4BC;line-height:1.45}
:where(html[data-appearance="dark"]) .mt5 b + span{color:#84A6EB}
.mt5-go{font-size:13.8px;font-weight:600;color:var(--gold);white-space:nowrap;
  border-bottom:1.5px solid var(--gold);padding-bottom:1px}

/* ---------- Home: section heads ---------- */
.sec-head{display:flex;align-items:center;gap:12px;margin:26px 0 12px}
.sec-head h2{font-size:19px;font-weight:700;letter-spacing:-.022em}
.sec-more{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:13.2px;font-weight:500;
  color:var(--ink-3);transition:color .16s var(--ease)}
.sec-more:hover{color:var(--ink)}
.sec-more svg{width:14px;height:14px;transform:rotate(-90deg)}

/* ---------- Home: the top row — one promotion, the actions beside it ---------- */
.home-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);
  gap:14px;align-items:stretch;margin-top:16px}
/* four bands: three money rows, then the pair of account openings */
/* the three rows take the height their text needs; the pair of openings
   absorbs whatever slack the hero leaves */
.qstack{display:grid;grid-template-rows:repeat(3,auto) minmax(100px,1fr);gap:10px;min-width:0}

.qrow,.qtile{background:var(--surface);border:1px solid var(--line-2);border-radius:16px;
  box-shadow:var(--lift-card);text-align:left;min-width:0;
  transition:transform .16s var(--ease),box-shadow .16s var(--ease),border-color .16s var(--ease)}
.qrow:hover,.qtile:hover{transform:translateY(-2px);box-shadow:0 10px 22px -12px rgba(16,28,58,.4);
  border-color:#C9D3E4}
:where(html[data-appearance="dark"]) .qrow:hover,:where(html[data-appearance="dark"]) .qtile:hover{box-shadow:0 10px 22px -12px rgba(0,0,0,0.75);border-color:rgba(255,255,255,0.18)}

.qrow{display:flex;align-items:center;gap:13px;padding:14px 15px}
.qrow-t{display:flex;flex-direction:column;min-width:0;flex:1}
.qrow-c{color:var(--ink-4);flex:none;display:grid;place-items:center}
.qrow-c svg{width:15px;height:15px;transform:rotate(-90deg)}
.qrow:hover .qrow-c{color:var(--ink-2)}

.qpair{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.qtile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:13px 14px;gap:2px}

.qa-i{width:34px;height:34px;border-radius:11px;background:var(--surface-sunk);display:grid;
  place-items:center;color:var(--ink-2);flex:none}
.qa-i svg{width:17px;height:17px}
.qtile .qa-i{margin-bottom:9px}
.qrow b,.qtile b{font-size:15px;font-weight:600;letter-spacing:-.014em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qtile b{white-space:normal}
.qa-note{font-size:12.2px;color:var(--ink-3);line-height:1.4;margin-top:3px}
.qtile .qa-note{margin-top:2px}

.qrow.is-gold{background-image:var(--gold-grad);border-color:var(--gold)}
.qrow.is-gold .qa-i{background:rgba(35,26,2,.14);color:var(--gold-ink)}
:where(html[data-appearance="dark"]) .qrow.is-gold .qa-i{background:rgba(255,255,255,0.12)}
.qrow.is-gold b{color:var(--gold-ink)}
.qrow.is-gold .qa-note{color:#4A3906}
:where(html[data-appearance="dark"]) .qrow.is-gold .qa-note{color:#EBD184}
.qrow.is-gold .qrow-c{color:#5E480A}
:where(html[data-appearance="dark"]) .qrow.is-gold .qrow-c{color:#EBD084}
.qrow.is-gold:hover{background-image:var(--gold-grad-hi);box-shadow:0 10px 22px -10px rgba(240,180,41,.95);border-color:var(--gold-ink)}

/* ---------- Home: promotions ---------- */
.promos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.promo{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-2);
  border-radius:16px;padding:17px 19px 18px;transition:transform .16s var(--ease)}
.promo:hover{transform:translateY(-2px)}
.promo.is-hero{background:linear-gradient(135deg,#0C1526 0%,#16305C 58%,#1E4A8A 100%);
  border-color:transparent;color:#fff;justify-content:center;padding:26px 30px;min-height:250px}
.promo-kick{font-size:11.4px;color:var(--ink-4);letter-spacing:.02em}
.promo.is-hero .promo-kick{color:#9FB6DC}
:where(html[data-appearance="dark"]) .promo.is-hero .promo-kick{color:#84ABEB}
.promo-name{font-size:17px;font-weight:700;letter-spacing:-.022em;margin:6px 0 0;line-height:1.2}
.promo.is-hero .promo-name{font-size:26px;margin-top:8px}
.promo.is-hero .promo-body{font-size:14.5px;max-width:46ch}
.promo.is-hero .promo-cta{margin-top:20px;padding-top:0;font-size:14px}
.promo-chip{align-self:flex-start;margin-top:8px}
.promo-body{font-size:13px;color:var(--ink-3);line-height:1.5;margin-top:8px}
.promo.is-hero .promo-body{color:#B9C9E4}
.promo-bar{height:5px;border-radius:99px;background:#E7EBF4;margin-top:12px;overflow:hidden}
:where(html[data-appearance="dark"]) .promo-bar{background:rgba(255,255,255,0.07)}
.promo-bar span{display:block;height:100%;border-radius:99px;background-image:var(--gold-grad)}
.promo-cta{display:flex;align-items:center;gap:5px;margin-top:auto;padding-top:14px;
  font-size:13.2px;font-weight:600;color:var(--ink)}
.promo.is-hero .promo-cta{color:var(--gold)}
.promo-cta svg{width:14px;height:14px;transform:rotate(-90deg)}
.promo-cta:hover{gap:8px}

/* ---------- Home: where you stand — both benefits in one box ---------- */
.sts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0}
.st{padding:20px 24px 18px;min-width:0}
.st + .st{border-left:1px solid var(--line)}

.st-head{display:flex;flex-direction:column;gap:3px}
.st-kick{font-size:11.4px;color:var(--ink-4);letter-spacing:.02em}
.st-name{display:flex;align-items:center;gap:7px;font-size:17px;font-weight:700;letter-spacing:-.022em}
.st-name svg{width:16px;height:16px;stroke-width:2.4;flex:none;color:var(--up)}
.st-body{font-size:13px;color:var(--ink-3);line-height:1.5;margin-top:7px}

/* the track: a pill riding the end of the fill, milestones along the way */
.st-track{position:relative;margin-top:30px}
/* the track is a dark channel cut into the card; the fill sits in it as a
   rounded bar lit from above, with its own colour glow under it */
.st-bar{position:relative;height:14px;border-radius:99px;background:var(--ink);
  box-shadow:inset 0 2px 4px rgba(0,0,0,.55),inset 0 -1px 0 rgba(255,255,255,.07),
             0 1px 0 rgba(255,255,255,.7)}
:where(html[data-appearance="dark"]) .st-bar{background:var(--ink-fill);box-shadow:inset 0 2px 4px rgba(0,0,0,0.6),inset 0 -1px 0 rgba(255,255,255,0.025),
             0 1px 0 rgba(255,255,255,0.035)}
.st-bar > span{position:relative;display:block;height:100%;border-radius:99px;
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,.12) 42%,rgba(0,0,0,.16) 100%),
    var(--gold-grad);
  background-size:100% 100%,230% 100%;
  box-shadow:0 0 10px rgba(255,190,40,.55),inset 0 -1px 1px rgba(120,80,0,.45);
  transition:width 900ms var(--ease-out)}
:where(html[data-appearance="dark"]) .st-bar > span{background-image:linear-gradient(180deg,rgba(16,21,42,0.55) 0%,rgba(255,255,255,.12) 42%,rgba(255,255,255,0.12) 100%),
    var(--gold-grad)}
.st-ok .st-bar > span{background-image:
    linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.1) 42%,rgba(0,0,0,.18) 100%),
    linear-gradient(120deg,#3BD79B 0%,#129E6E 50%,#0E7A55 100%);
  box-shadow:0 0 10px rgba(24,190,130,.5),inset 0 -1px 1px rgba(0,70,45,.45)}
:where(html[data-appearance="dark"]) .st-ok .st-bar > span{background-image:linear-gradient(180deg,rgba(16,21,42,0.5) 0%,rgba(255,255,255,.1) 42%,rgba(255,255,255,0.12) 100%),
    linear-gradient(120deg,#3BD79B 0%,#129E6E 50%,#0E7A55 100%)}
/* the little round cap at the leading edge, so the bar reads as a solid rod */
.st-bar > span::after{content:'';position:absolute;top:50%;right:2px;width:6px;height:6px;
  margin-top:-3px;border-radius:50%;background:rgba(255,255,255,.85);
  box-shadow:0 0 5px rgba(255,255,255,.7)}
:where(html[data-appearance="dark"]) .st-bar > span::after{background:rgba(255,255,255,0.187);box-shadow:0 0 5px rgba(255,255,255,0.035)}
.st-track.is-full .st-bar > span::after{opacity:1;transition:opacity var(--t-base) var(--ease) 900ms}

.st-mark{position:absolute;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;
  background:rgba(255,255,255,.22)}
.st-mark.is-past{background:rgba(255,255,255,.75);box-shadow:0 0 4px rgba(255,255,255,.5)}
:where(html[data-appearance="dark"]) .st-mark.is-past{background:rgba(16,21,42,0.75);box-shadow:0 0 4px rgba(255,255,255,0.025)}

/* the pill is the follow-through: it lands after the fill has arrived */
.st-track .st-pill{opacity:0;transform:translateY(6px)}
.st-track .st-pill.is-mid{transform:translateX(-50%) translateY(6px)}
.st-track.is-full .st-pill{opacity:1;transform:none;
  transition:opacity var(--t-base) var(--ease-out) 620ms,transform var(--t-base) var(--ease-out) 620ms}
.st-track.is-full .st-pill.is-mid{transform:translateX(-50%)}
.st-pill{position:absolute;bottom:calc(100% + 9px);
  font-size:11.6px;font-weight:600;line-height:1;white-space:nowrap;
  padding:5px 10px;border-radius:99px;border:1.5px solid var(--gold-deep);
  color:var(--gold-deep);background:var(--gold-soft)}
.st-pill.is-mid{transform:translateX(-50%)}
.st-ok .st-pill{border-color:var(--up);color:var(--up);background:#E7F6F0}
:where(html[data-appearance="dark"]) .st-ok .st-pill{background:rgba(88,228,172,0.14)}
/* the little tail that points at the end of the fill */
.st-pill::after{content:'';position:absolute;top:100%;right:12px;width:7px;height:7px;
  margin-top:-4px;background:inherit;border-right:1.5px solid;border-bottom:1.5px solid;
  border-color:inherit;transform:rotate(45deg)}
.st-pill.is-mid::after{left:50%;right:auto;margin-left:-4px}

.st-foot{display:flex;align-items:center;gap:12px;margin-top:12px}
.st-note{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-4);min-width:0}
.st-note svg{width:13px;height:13px;flex:none}
.st-cta{margin-left:auto;display:flex;align-items:center;gap:5px;flex:none;
  font-size:13.2px;font-weight:600;color:var(--ink)}
.st-cta svg{width:14px;height:14px;transform:rotate(-90deg)}
.st-cta:hover{gap:8px}

/* ---------- Home: lower row ---------- */
.home-lower{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}

.afeed{padding:2px 20px 8px}
.af{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:center;
  width:100%;text-align:left;padding:13px 0;border-top:1px solid var(--line)}
.af:first-child{border-top:0}
.af-mark{width:8px;height:8px;border-radius:2px;background:#C7CBD3}
:where(html[data-appearance="dark"]) .af-mark{background:rgba(255,255,255,0.07)}
.af-mark.ok{background:var(--up)} .af-mark.warn{background:var(--gold)} .af-mark.out{background:var(--ink-3)}
.af-main b{display:block;font-size:14px;font-weight:500;letter-spacing:-.008em}
.af-main span{font-size:12.4px;color:var(--ink-4)}
.af-amt{text-align:right;font-size:15px;font-weight:600;letter-spacing:-.014em;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.af-amt em{font-style:normal;font-size:11.5px;color:var(--ink-4);font-weight:400;margin-left:4px}
button.af:hover{background:#FBFCFE}
:where(html[data-appearance="dark"]) button.af:hover{background:rgba(255,255,255,0.05)}
.af-warn .af-main b{color:var(--gold-deep)}

.msnap{display:grid;gap:10px}
.msnap .mcard{padding:13px 15px}
.msnap .mcard-p{font-size:19px;margin-top:5px}

.side-block h2{margin-bottom:12px}
.evs{display:flex;flex-direction:column}
.ev{display:grid;grid-template-columns:7px 74px minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:10px 0;border-top:1px solid var(--line)}
.ev:first-child{border-top:0;padding-top:0}
.ev-dot{width:7px;height:7px;border-radius:50%;background:#C7CBD3}
:where(html[data-appearance="dark"]) .ev-dot{background:rgba(255,255,255,0.07)}
.ev-dot.high{background:var(--down)} .ev-dot.med{background:var(--gold)} .ev-dot.low{background:#9AA5BB}
:where(html[data-appearance="dark"]) .ev-dot.low{background:rgba(255,255,255,0.12)}
.ev-at{font-size:13.4px;font-weight:600;letter-spacing:-.01em}
.ev-at em{display:block;font-style:normal;font-size:11px;color:var(--ink-4);font-weight:400}
.ev-n{font-size:13px;color:var(--ink-2);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-cur{font-size:11.4px;color:var(--ink-4);font-weight:600}

/* ---------- phone: the floating glass bar ----------
   Hidden on desktop, where the rail does this job. The glass is four layers:
   a blur of whatever scrolls beneath, a translucent wash, a bright inner rim
   along the top edge, and a specular sheen that drifts across the surface. */
.tabbar{display:none}
.sheet-wrap{display:none}

@media (max-width:760px){
  .tabbar{
    display:flex;position:fixed;z-index:80;
    left:50%;bottom:calc(12px + env(safe-area-inset-bottom,0px));
    transform:translateX(-50%);
    width:min(calc(100% - 20px),430px);
    padding:6px;gap:2px;border-radius:99px;
    /* a vertical fall of light across the glass, brightest at the crown */
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.92) 0%,
        rgba(255,255,255,.58) 34%,
        rgba(255,255,255,.42) 62%,
        rgba(255,255,255,.66) 100%);
    -webkit-backdrop-filter:blur(26px) saturate(210%) brightness(1.08);
    backdrop-filter:blur(26px) saturate(210%) brightness(1.08);
    border:1px solid rgba(255,255,255,.9);
    box-shadow:
      0 22px 46px -14px rgba(12,21,38,.45),
      0 3px 10px -2px rgba(12,21,38,.18),
      inset 0 1.5px 0 rgba(255,255,255,1),
      inset 0 -1.5px 1px rgba(255,255,255,.6),
      inset 1px 0 0 rgba(255,255,255,.55),
      inset -1px 0 0 rgba(255,255,255,.55);
    overflow:hidden;isolation:isolate;
  }
:where(html[data-appearance="dark"]) .tabbar{background:linear-gradient(180deg,
        rgba(16,21,42,0.92) 0%,
        rgba(16,21,42,0.58) 34%,
        rgba(16,21,42,0.42) 62%,
        rgba(16,21,42,0.66) 100%);border:1px solid rgba(255,255,255,0.108);box-shadow:0 22px 46px -14px rgba(0,0,0,0.75),
      0 3px 10px -2px rgba(0,0,0,0.482),
      inset 0 1.5px 0 rgba(255,255,255,0.35),
      inset 0 -1.5px 1px rgba(255,255,255,0.21),
      inset 1px 0 0 rgba(255,255,255,0.193),
      inset -1px 0 0 rgba(255,255,255,0.193)}
  /* the crown: a hard specular band along the top third, the way light sits
     on a curved lens rather than a flat sheet */
  .tabbar::before{
    content:'';position:absolute;z-index:0;pointer-events:none;
    left:5%;right:5%;top:1px;height:44%;border-radius:99px 99px 60% 60%/99px 99px 22px 22px;
    background:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.28) 60%,transparent 100%);
    filter:blur(.4px)}
:where(html[data-appearance="dark"]) .tabbar::before{background:linear-gradient(180deg,rgba(255,255,255,0.209) 0%,rgba(255,255,255,.28) 60%,transparent 100%)}
  /* the sheen: a bright highlight travelling the length of the glass */
  .tabbar::after{
    content:'';position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
    background:linear-gradient(102deg,
      transparent 30%,
      rgba(255,255,255,.35) 44%,
      rgba(255,255,255,.92) 50%,
      rgba(255,255,255,.35) 56%,
      transparent 70%);
    background-size:280% 100%;
    animation:glassflow 9s cubic-bezier(.45,0,.55,1) infinite alternate}
:where(html[data-appearance="dark"]) .tabbar::after{background:linear-gradient(102deg,
      transparent 30%,
      rgba(255,255,255,0.077) 44%,
      rgba(255,255,255,0.202) 50%,
      rgba(255,255,255,0.077) 56%,
      transparent 70%)}
  @keyframes glassflow{from{background-position:0% 50%}to{background-position:100% 50%}}

  /* ---------- the pill, and how it travels ----------
     Water, not a slider: it stretches along the direction of travel, squashes
     across it, and settles without a bounce. A blurred trail leaves a beat
     later and catches up, which is the part that reads as liquid. */
  .tab-ind,.tab-trail{
    position:absolute;z-index:0;top:6px;bottom:6px;left:6px;
    width:calc((100% - 12px) / 5);border-radius:99px;
    transform:translateX(calc(var(--n,0) * 100%));
    /* long, heavily decelerating: fluid material, no overshoot */
    transition:transform 620ms cubic-bezier(.32,.78,.22,1)}

  .tab-ind > i{
    position:absolute;inset:0;border-radius:99px;transform-origin:50% 50%;
    background:linear-gradient(180deg,#1E2B44 0%,var(--ink) 52%,#060C18 100%);
    box-shadow:0 6px 14px -6px rgba(12,21,38,.8),
      inset 0 1px 0 rgba(255,255,255,.22),
      inset 0 -1px 0 rgba(0,0,0,.4)}
:where(html[data-appearance="dark"]) .tab-ind > i{background:linear-gradient(180deg,#1E2B44 0%,var(--ink-fill) 52%,#060C18 100%);box-shadow:0 6px 14px -6px rgba(0,0,0,0.75),
      inset 0 1px 0 rgba(255,255,255,0.077),
      inset 0 -1px 0 rgba(0,0,0,0.6)}
  .tab-ind.is-swim > i{animation:swim 620ms cubic-bezier(.4,0,.2,1) both}
  @keyframes swim{
    0%  {transform:scale(1,1)}
    36% {transform:scale(var(--sx,1.1),var(--sy,.94))}
    72% {transform:scale(calc(1 + (var(--sx,1.1) - 1) * .22),calc(1 + (var(--sy,.94) - 1) * .22))}
    100%{transform:scale(1,1)}
  }

  /* the trail: same journey, a beat behind, blurred into the glass */
  .tab-trail{
    background:var(--ink);opacity:0;filter:blur(9px);
    transition:transform 620ms cubic-bezier(.32,.78,.22,1) 55ms,
               opacity 260ms var(--ease) 200ms}
:where(html[data-appearance="dark"]) .tab-trail{background:var(--ink-fill)}
  .tab-trail.is-swim{opacity:.34;
    transition:transform 620ms cubic-bezier(.32,.78,.22,1) 55ms,
               opacity 110ms var(--ease)}

  /* the arriving tab lifts its label as the pill lands under it */
  .tab.is-on svg{animation:tabpop 420ms var(--ease-out) both 120ms}
  @keyframes tabpop{
    0%{transform:translateY(2px) scale(.9)}
    100%{transform:none}
  }

  .tab{
    position:relative;z-index:1;flex:1 1 0;min-width:0;
    display:flex;flex-direction:column;align-items:center;gap:3px;
    padding:9px 2px 8px;border-radius:99px;color:var(--ink-3);
    transition:color var(--t-base) var(--ease)}
  .tab svg{width:20px;height:20px}
  .tab span{font-size:10.4px;font-weight:500;letter-spacing:-.005em;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .tab.is-on{color:#fff}
  .tab.is-on svg{color:var(--gold)}
  .tab:active{transform:scale(.92);transition-duration:var(--t-quick)}

  /* the rail and its hamburger stand down; the bar carries navigation now */
  .railtoggle-m{display:none!important}
  .rail{display:none!important}
  .scrim{display:none!important}
  /* room for the bar to float over */
  .app{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}

  /* ---------- the More sheet ---------- */
  /* the media query must not out-rank the hidden attribute, or the scrim
     covers the screen and nothing on the page can be tapped */
  .sheet-wrap{display:block;position:fixed;inset:0;z-index:90}
  .sheet-wrap[hidden]{display:none}
  .sheet-scrim{position:absolute;inset:0;width:100%;border:0;
    background:rgba(12,21,38,.42);backdrop-filter:blur(2px);
    opacity:0;transition:opacity var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .sheet-scrim{background:rgba(255,255,255,0.12)}
  .sheet-wrap.is-up .sheet-scrim{opacity:1}
  .sheet{
    position:absolute;left:0;right:0;bottom:0;
    max-height:78vh;overflow-y:auto;overscroll-behavior:contain;
    padding:8px 14px calc(22px + env(safe-area-inset-bottom,0px));
    border-radius:26px 26px 0 0;
    background:rgba(255,255,255,.82);
    -webkit-backdrop-filter:blur(26px) saturate(190%);
    backdrop-filter:blur(26px) saturate(190%);
    box-shadow:0 -18px 44px -18px rgba(12,21,38,.5),inset 0 1px 0 rgba(255,255,255,.95);
    transform:translateY(100%);
    transition:transform var(--t-slow) var(--ease-out)}
:where(html[data-appearance="dark"]) .sheet{background:rgba(16,21,42,0.82);box-shadow:0 -18px 44px -18px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.332)}
  .sheet-wrap.is-up .sheet{transform:none}
  .sheet-grip{display:block;width:42px;height:5px;border-radius:99px;
    background:#C6D0E2;margin:6px auto 10px;padding:0}
:where(html[data-appearance="dark"]) .sheet-grip{background:rgba(255,255,255,0.07)}
  .sheet-grp{font-size:11px;color:#9AA5BB;font-weight:600;letter-spacing:.05em;
    text-transform:uppercase;padding:12px 10px 5px}
:where(html[data-appearance="dark"]) .sheet-grp{color:#7A85A4}
  .sheet-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;
    padding:12px 12px;border-radius:14px;font-size:15px;color:var(--ink-2);
    transition:background var(--t-quick) var(--ease)}
  .sheet-item > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sheet-item svg{width:18px;height:18px;flex:none;color:var(--ink-4)}
  .sheet-item svg:last-child{width:14px;height:14px;transform:rotate(-90deg)}
  .sheet-item:active{background:var(--surface-sunk)}
  .sheet-item.is-on{background:var(--ink);color:#fff;font-weight:500}
:where(html[data-appearance="dark"]) .sheet-item.is-on{background:var(--ink-fill)}
  .sheet-item.is-on svg{color:var(--gold)}
  .sheet-badge{font-style:normal;font-size:11px;font-weight:600;flex:none;
    background:var(--gold);color:var(--gold-ink);border-radius:99px;padding:1px 7px}
}

/* the glass needs a fallback where it is not supported */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .tabbar{background:rgba(255,255,255,.94)}
:where(html[data-appearance="dark"]) .tabbar{background:rgba(16,21,42,0.94)}
  .sheet{background:rgba(255,255,255,.98)}
:where(html[data-appearance="dark"]) .sheet{background:rgba(16,21,42,0.98)}
}

/* ============================================================
   The rest of Trading mode
   ============================================================ */

/* a designed empty state, rather than a blank panel */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:34px 20px 30px;gap:4px}
.empty-i{width:52px;height:52px;border-radius:16px;background:var(--surface-sunk);
  display:grid;place-items:center;color:var(--ink-4);margin-bottom:10px}
.empty-i svg{width:23px;height:23px}
.empty b{font-size:17px;font-weight:600;letter-spacing:-.02em}
.empty p{font-size:13.6px;color:var(--ink-3);line-height:1.55;max-width:44ch}
.empty .btn{margin-top:14px}

/* every screen carrying invented figures says so, once, quietly */
.sample{display:flex;align-items:flex-start;gap:7px;margin-top:18px;
  font-size:12.2px;color:var(--ink-4);line-height:1.5}
.sample svg{width:14px;height:14px;flex:none;margin-top:2px}

/* a two-way segmented control */
.segs{display:inline-flex;gap:2px;background:var(--surface-sunk);border-radius:99px;padding:3px}
.seg{font-size:13.4px;font-weight:500;color:var(--ink-3);padding:7px 16px;border-radius:99px;
  transition:background var(--t-base) var(--ease),color var(--t-quick) var(--ease)}
.seg em{font-style:normal;font-size:11.5px;opacity:.6;margin-left:5px}
.seg.is-on{background:var(--surface);color:var(--ink);font-weight:600;
  box-shadow:0 1px 2px rgba(16,28,58,.08)}
:where(html[data-appearance="dark"]) .seg.is-on{box-shadow:0 1px 2px rgba(0,0,0,0.242)}
.pbody{margin-top:18px}

/* closed trades */
.phead,.prow{display:grid;grid-template-columns:minmax(0,1.6fr) 62px minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);
  gap:14px;align-items:center}
.phead{font-size:12.2px;color:var(--ink-4);padding:0 0 10px;border-bottom:1px solid var(--line)}
.phead span:not(:first-child),.prow > span:not(.psym){text-align:right}
.prow{padding:13px 0;border-bottom:1px solid var(--line);font-size:14.4px}
.prow:last-child{border-bottom:0}
.psym{display:flex;align-items:center;gap:8px;flex-wrap:wrap;text-align:left}
.psym b{font-size:14.8px;font-weight:600}
.pat{font-size:12px;color:var(--ink-4);flex-basis:100%}
.tag-buy{background:#E7F6F0;color:var(--up)}
:where(html[data-appearance="dark"]) .tag-buy{background:rgba(88,228,172,0.14)}
.tag-sell{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .tag-sell{background:rgba(228,109,88,0.14)}
.pres{font-weight:600}
.pres em{font-style:normal;font-size:11.5px;color:var(--ink-4);font-weight:400;margin-left:5px}
.sumrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.sumrow > div{background:var(--surface);border-radius:16px;padding:15px 18px;box-shadow:var(--lift-card)}
.sumrow dt{font-size:12.2px;color:var(--ink-4)}
.sumrow dd{font-size:20px;font-weight:600;letter-spacing:-.024em;margin-top:4px}
.sumrow dd em{font-style:normal;font-size:12px;color:var(--ink-4);font-weight:400;margin-left:5px}

/* Reward */
.rw-hero{padding:30px 34px 28px;border-radius:var(--r-hero)}
.rw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;
  padding-top:20px;border-top:1px solid rgba(255,255,255,.16)}
:where(html[data-appearance="dark"]) .rw-stats{border-top:1px solid rgba(255,255,255,0.05)}
.rw-stats dt{font-size:12px;color:#9FB6DC}
:where(html[data-appearance="dark"]) .rw-stats dt{color:#84ABEB}
.rw-stats dd{font-size:26px;font-weight:600;letter-spacing:-.03em;margin-top:3px;color:#fff}
.prize{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.prize:last-child{border-bottom:0}
.prize-r{font-size:11.4px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--gold-deep);width:104px;flex:none}
.prize-n{flex:1;min-width:0}
.prize-n b{display:block;font-size:15.4px;font-weight:600;letter-spacing:-.014em}
.prize-n span{font-size:12.6px;color:var(--ink-4)}

/* News */
.lead{background:var(--surface);border-radius:var(--r-card);padding:26px 28px;box-shadow:var(--lift-hero)}
.lead-meta{display:flex;align-items:center;gap:10px;font-size:12.2px;color:var(--ink-4)}
.lead h2{font-size:24px;line-height:1.22;margin:12px 0 10px;letter-spacing:-.026em}
.lead p{font-size:14.4px;color:var(--ink-2);line-height:1.6}
.lead .underlined{margin-top:16px}
.nrow{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;text-align:left;
  padding:16px 0;border-bottom:1px solid var(--line);transition:opacity var(--t-quick) var(--ease)}
.nrow:last-child{border-bottom:0}
.nrow:hover{opacity:.72}
.nrow-t b{display:block;font-size:15.2px;font-weight:600;letter-spacing:-.014em;line-height:1.3}
.nrow-t > span{display:block;font-size:13px;color:var(--ink-3);line-height:1.5;margin-top:4px}
.nrow-m{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ink-4)}

/* Economic calendar */
.caltab{padding:2px 22px 10px}
.calhead,.calrow{display:grid;grid-template-columns:58px 46px minmax(0,1fr) 92px 92px 92px;
  gap:12px;align-items:center}
.calhead{font-size:12px;color:var(--ink-4);padding:16px 0 10px}
.calhead span:nth-child(n+4),.calrow > span:nth-child(n+4){text-align:right}
.calrow{padding:13px 0;border-top:1px solid var(--line);font-size:14.2px}
.calt{color:var(--ink-3);font-size:13.4px}
.calcur{font-size:12px;font-weight:600;color:var(--ink-2);background:var(--surface-sunk);
  border-radius:6px;padding:3px 0;text-align:center}
.caln{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.calact{font-weight:600}
.calwait{color:var(--ink-4);font-size:12.6px}
.calq{color:var(--ink-3)}

/* Calculator */
.calc-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.calc-in label{display:flex;flex-direction:column;gap:6px;min-width:0}
.calc-in span{font-size:12.4px;color:var(--ink-3)}
.calc-in select,.calc-in input{font:inherit;font-size:14.6px;color:var(--ink);
  border:1.5px solid var(--line-2);border-radius:11px;padding:11px 13px;background:#fff;
  width:100%;min-width:0;transition:border-color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .calc-in select,:where(html[data-appearance="dark"]) .calc-in input{background:#10152A}
.calc-in select:focus,.calc-in input:focus{outline:none;border-color:var(--ink)}
.calc-out{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px;
  padding-top:22px;border-top:1px solid var(--line)}
.calc-out dt{font-size:12.4px;color:var(--ink-4)}
.calc-out dd{font-size:23px;font-weight:600;letter-spacing:-.028em;margin-top:3px}
.calc-out dd em{font-style:normal;font-size:13px;color:var(--ink-4);font-weight:400;margin-left:6px}
.calc-verdict{display:flex;align-items:flex-start;gap:9px;margin-top:20px;padding:13px 15px;
  border-radius:12px;font-size:13.4px;line-height:1.5}
.calc-verdict svg{width:16px;height:16px;flex:none;margin-top:1px}
.calc-verdict.is-ok{background:#E7F6F0;color:#0B5F45}
:where(html[data-appearance="dark"]) .calc-verdict.is-ok{background:rgba(88,228,172,0.14);color:#84EBCB}
.calc-verdict.is-tight{background:#FBEAE7;color:#8A2A1E}
:where(html[data-appearance="dark"]) .calc-verdict.is-tight{background:rgba(228,109,88,0.14);color:#EB9084}

/* AI Mentor */
.chat{display:flex;flex-direction:column;gap:14px}
.bub{display:flex;gap:11px;max-width:82%}
.bub p{font-size:14.6px;line-height:1.55;padding:13px 16px;border-radius:16px}
.bub-ai p{background:var(--surface-sunk);color:var(--ink);border-top-left-radius:6px}
.bub-me{align-self:flex-end}
.bub-me p{background:var(--ink);color:#fff;border-top-right-radius:6px}
:where(html[data-appearance="dark"]) .bub-me p{background:var(--ink-fill)}
.bub-i{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--gold);
  display:grid;place-items:center;flex:none}
:where(html[data-appearance="dark"]) .bub-i{background:var(--ink-fill)}
.bub-i svg{width:16px;height:16px}
.prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ask{display:flex;gap:10px;margin-top:6px;padding-top:16px;border-top:1px solid var(--line)}
.ask input{flex:1;min-width:0;font:inherit;font-size:14.6px;border:1.5px solid var(--line-2);
  border-radius:12px;padding:12px 15px;background:#fff}
:where(html[data-appearance="dark"]) .ask input{background:#10152A}
.ask input:focus{outline:none;border-color:var(--ink)}

/* Support */
.chans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.chan{display:flex;flex-direction:column;align-items:flex-start;text-align:left;
  background:var(--surface);border:1px solid var(--line-2);border-radius:16px;
  padding:16px 17px 17px;box-shadow:var(--lift-card);
  transition:transform var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
.chan:hover{transform:translateY(-2px);box-shadow:0 10px 22px -12px rgba(16,28,58,.4)}
:where(html[data-appearance="dark"]) .chan:hover{box-shadow:0 10px 22px -12px rgba(0,0,0,0.75)}
.chan:active{transform:scale(.985)}
.chan .qa-i{margin-bottom:11px}
.chan b{font-size:15.4px;font-weight:600;letter-spacing:-.014em}
.chan.is-pri{background:var(--ink);border-color:var(--ink)}
:where(html[data-appearance="dark"]) .chan.is-pri{background:var(--ink-fill)}
.chan.is-pri b{color:#fff}
.chan.is-pri .qa-note{color:#AEBACF}
:where(html[data-appearance="dark"]) .chan.is-pri .qa-note{color:#7A85A4}
.chan.is-pri .qa-i{background:rgba(255,255,255,.12);color:var(--gold)}
.faq{border-bottom:1px solid var(--line)}
.faq:last-child{border-bottom:0}
.faq-q{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 0;
  font-size:15px;font-weight:500}
.faq-q > span{flex:1;min-width:0}
.faq-q svg{width:15px;height:15px;color:var(--ink-4);flex:none;
  transition:transform var(--t-base) var(--ease)}
.faq.is-on .faq-q svg{transform:rotate(180deg)}
.faq-a{font-size:13.8px;color:var(--ink-3);line-height:1.6;padding:0 34px 18px 0;
  animation:rise var(--t-base) var(--ease-out) both}
.ticket{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.ticket b{font-size:14.6px;font-weight:600;letter-spacing:-.014em;line-height:1.3}
.ticket .mono{font-size:11.8px;color:var(--ink-4)}
.ticket p{font-size:12.8px;color:var(--ink-3);line-height:1.5;margin-top:2px}

/* Downloads */
.dls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.linkcard.is-pri{background:var(--ink);border-color:var(--ink)}
:where(html[data-appearance="dark"]) .linkcard.is-pri{background:var(--ink-fill)}
.linkcard.is-pri b{color:#fff}
.linkcard.is-pri b + span{color:#AEBACF}
:where(html[data-appearance="dark"]) .linkcard.is-pri b + span{color:#7A85A4}
.linkcard.is-pri .linkcard-i{background:rgba(255,255,255,.12);color:var(--gold)}
.linkcard.is-pri > svg{color:#8894AC}
:where(html[data-appearance="dark"]) .linkcard.is-pri > svg{color:#84A6EB}

/* API access */
.scope{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}
.scope:last-child{border-bottom:0}
.scope > svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--up);stroke-width:2.2}
.scope.is-off > svg{color:var(--ink-4)}
.scope b{display:block;font-size:14.6px;font-weight:600}
.scope span span{font-size:13px;color:var(--ink-3);line-height:1.5}

/* ============================================================
   Withdraw
   ============================================================ */
.wavail{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;flex:none}
.wavail > span{font-size:11.6px;color:var(--ink-4)}
.wavail b{font-size:15.4px;font-weight:600;letter-spacing:-.014em}
.dep-into .wavail + .underlined{margin-left:0}

/* methods that need setting up before they can be picked */
.wneed{display:flex;flex-direction:column;gap:10px}
.wneed-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;
  background:var(--surface-quiet);border:1px dashed #C9D3E4;border-radius:16px;padding:14px 18px}
:where(html[data-appearance="dark"]) .wneed-row{border:1px dashed rgba(255,255,255,0.09)}
.wneed-row .pm-i{width:36px;height:36px;border-radius:10px;background:#fff;color:var(--ink-4)}
:where(html[data-appearance="dark"]) .wneed-row .pm-i{background:#10152A}
.wneed-t{flex:1;min-width:220px}
.wneed-t b{display:block;font-size:14.6px;font-weight:600;letter-spacing:-.012em}
.wneed-t > span{font-size:12.8px;color:var(--ink-3)}
.wneed-row .addnew{margin:0;padding:9px 14px;border-radius:99px;background:var(--gold-soft)}

/* the first-time form */
.wform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.wform .afield{margin-top:10px}
.wform .span2{grid-column:1 / -1}
.afield select{font:inherit;font-size:14.4px;border:1.5px solid var(--line-2);border-radius:11px;
  padding:10px 13px;background:#fff;color:var(--ink);width:100%;
  transition:border-color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .afield select{background:#10152A}
.afield select:focus{outline:none;border-color:var(--ink)}
.afield input.mono{letter-spacing:.03em}
.drop{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;
  border:1.5px dashed #C9D3E4;border-radius:16px;padding:26px 20px 22px;text-align:center;
  background:var(--surface-sunk);
  transition:border-color var(--t-quick) var(--ease),background var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .drop{border:1.5px dashed rgba(255,255,255,0.09)}
.drop:hover{border-color:var(--ink);background:#fff}
:where(html[data-appearance="dark"]) .drop:hover{background:rgba(255,255,255,0.05)}
.drop-i{width:44px;height:44px;border-radius:50%;background:var(--gold-soft);color:var(--gold-deep);
  display:grid;place-items:center;margin-bottom:10px}
.drop-i svg{width:19px;height:19px}
.drop b{font-size:15px;font-weight:600;letter-spacing:-.014em}
.drop > span{font-size:12.8px;color:var(--ink-3)}
.drop .btn{margin-top:14px;padding:9px 18px;font-size:13.4px}
.wfile{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;gap:5px 14px;align-items:center;
  padding:12px 14px;background:var(--surface);border:1px solid var(--line-2);border-radius:14px}
.wfile-thumb{width:48px;height:48px;border-radius:10px;grid-row:1 / span 3;
  background:linear-gradient(135deg,#DCE3F0 0%,#B9C6DB 100%);position:relative;overflow:hidden}
:where(html[data-appearance="dark"]) .wfile-thumb{background:linear-gradient(135deg,rgba(255,255,255,0.07) 0%,rgba(255,255,255,0.07) 100%)}
.wfile-thumb::after{content:'';position:absolute;left:8px;right:8px;top:12px;height:6px;border-radius:3px;
  background:rgba(255,255,255,.7);box-shadow:0 10px 0 rgba(255,255,255,.55),0 20px 0 rgba(255,255,255,.4)}
:where(html[data-appearance="dark"]) .wfile-thumb::after{background:rgba(255,255,255,0.154);box-shadow:0 10px 0 rgba(255,255,255,0.028),0 20px 0 rgba(255,255,255,0.02)}
.wfile b{font-size:13.6px;font-weight:600;letter-spacing:-.01em;grid-column:2}
.wfile-size{font-size:12.4px;color:var(--ink-4);text-align:right;white-space:nowrap}
.wfile-del{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--ink-4);grid-row:1}
.wfile-del:hover{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .wfile-del:hover{background:rgba(228,109,88,0.14)}
.wfile-del svg{width:15px;height:15px}
.wfile-bar{height:6px;border-radius:99px;background:#E7EBF4;overflow:hidden;grid-column:2 / 4;display:block}
:where(html[data-appearance="dark"]) .wfile-bar{background:rgba(255,255,255,0.07)}
.wfile-bar > span{display:block;height:100%;border-radius:99px;background-image:var(--gold-grad);
  transition:width 900ms var(--ease-out)}
.wfile-pct{font-size:12px;color:var(--ink-4);text-align:right;grid-column:4;grid-row:2}
.wfile-note{display:flex;align-items:center;gap:5px;font-size:12.2px;color:var(--up);grid-column:2 / -1}
.wfile-note svg{width:13px;height:13px;stroke-width:2.4}
.wex{display:block;font-style:normal;font-size:12.4px;color:var(--ink-4);margin-top:10px}
.wex .underlined{margin:0;font-size:12.4px;font-weight:600}
.still{font-size:12.6px;color:var(--ink-4);background:var(--surface-sunk);border-radius:10px;
  padding:9px 12px;margin-top:16px}
.still:empty{display:none}
.wacts{grid-template-columns:1fr 1.6fr}
.wmax{font-weight:600;color:var(--gold-deep);border-bottom:1.5px solid var(--gold);padding-bottom:1px}
.wmax:hover{color:var(--ink)}
.agree{display:flex;align-items:flex-start;gap:11px;margin-top:16px;padding:12px 14px;border-radius:12px;
  background:var(--surface-sunk);font-size:13.4px;line-height:1.5;color:var(--ink-2);cursor:pointer}
.agree input{width:18px;height:18px;accent-color:var(--gold);margin:2px 0 0;flex:none;cursor:pointer}

/* the transfer */
.trline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.trline b{color:var(--ink);font-weight:600}
.tr-swap{display:flex;justify-content:center;margin:-6px 0}
.tr-swap .mini svg{transform:rotate(90deg)}
.tr-amt-lab{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.tr-amt-lab .wmax{font-size:12.6px}
.still.is-bad{background:#FBEAE7;color:#8A2A1E}
:where(html[data-appearance="dark"]) .still.is-bad{background:rgba(228,109,88,0.14);color:#EB9084}

/* ---------- pop-ups over liquid glass ----------
   Three soft lights drift beneath a frosted layer, so the page behind the
   pop-up reads as glass with colour moving inside it rather than a grey veil. */
.glass-wrap{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:20px}
.glass-wrap[hidden]{display:none}
.glass-blobs{position:absolute;inset:0;overflow:hidden;pointer-events:none;
  opacity:0;transition:opacity var(--t-slow) var(--ease)}
.glass-blobs i{position:absolute;border-radius:50%;filter:blur(38px);opacity:.75;will-change:transform}
.glass-blobs i:nth-child(1){width:52vw;height:52vw;left:-12vw;top:-16vh;
  background:radial-gradient(circle,#FFD75E 0%,rgba(255,215,94,0) 68%);
  animation:blob-a 14s cubic-bezier(.45,0,.55,1) infinite alternate}
.glass-blobs i:nth-child(2){width:46vw;height:46vw;right:-10vw;bottom:-14vh;
  background:radial-gradient(circle,#9DB8F4 0%,rgba(157,184,244,0) 68%);
  animation:blob-b 18s cubic-bezier(.45,0,.55,1) infinite alternate}
.glass-blobs i:nth-child(3){width:34vw;height:34vw;left:38vw;top:52vh;
  background:radial-gradient(circle,#FFFFFF 0%,rgba(255,255,255,0) 66%);
  animation:blob-c 11s cubic-bezier(.45,0,.55,1) infinite alternate}
:where(html[data-appearance="dark"]) .glass-blobs i:nth-child(3){background:radial-gradient(circle,#10152A 0%,rgba(255,255,255,0) 66%)}
@keyframes blob-a{to{transform:translate(14vw,12vh) scale(1.18)}}
@keyframes blob-b{to{transform:translate(-12vw,-10vh) scale(1.12)}}
@keyframes blob-c{to{transform:translate(-8vw,-14vh) scale(1.3)}}
.glass-scrim{position:absolute;inset:0;width:100%;border:0;cursor:default;
  background:rgba(232,236,245,.42);
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  opacity:0;transition:opacity var(--t-slow) var(--ease)}
:where(html[data-appearance="dark"]) .glass-scrim{background:rgba(255,255,255,0.07)}
.glass-wrap.is-up .glass-blobs,.glass-wrap.is-up .glass-scrim{opacity:1}
.modal{position:relative;width:min(460px,100%);text-align:center;
  background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);border-radius:26px;
  padding:34px 30px 26px;
  -webkit-backdrop-filter:blur(30px) saturate(190%);backdrop-filter:blur(30px) saturate(190%);
  box-shadow:0 34px 70px -30px rgba(12,21,38,.55),inset 0 1.5px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.6);
  opacity:0;transform:translateY(16px) scale(.96);
  transition:opacity var(--t-slow) var(--ease-out),transform var(--t-slow) var(--ease-out)}
:where(html[data-appearance="dark"]) .modal{background:rgba(16,21,42,0.84);border:1px solid rgba(255,255,255,0.114);box-shadow:0 34px 70px -30px rgba(0,0,0,0.75),inset 0 1.5px 0 rgba(255,255,255,0.35),inset 0 -1px 0 rgba(255,255,255,0.21)}
.glass-wrap.is-up .modal{opacity:1;transform:none}
.modal .ready-i{margin-bottom:14px}
.modal h2{font-size:22px;letter-spacing:-.024em}
.modal p{font-size:14px;color:var(--ink-3);line-height:1.55;margin-top:10px}
.modal .btn{width:100%;margin-top:22px;padding:13px;border-radius:99px;font-weight:600}
.modal-x{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;
  display:grid;place-items:center;color:var(--ink-4);transition:background var(--t-quick) var(--ease)}
.modal-x:hover{background:var(--surface-sunk);color:var(--ink)}
.modal-x svg{width:15px;height:15px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass-scrim{background:rgba(232,236,245,.92)}
:where(html[data-appearance="dark"]) .glass-scrim{background:rgba(255,255,255,0.07)}
  .modal{background:#fff}
:where(html[data-appearance="dark"]) .modal{background:#10152A}
}

@media (max-width:980px){
  .wform{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .wavail{margin-left:0;align-items:flex-start;flex-basis:100%}
  .wacts{grid-template-columns:1fr}
  .wneed-row .addnew{flex-basis:100%}
  .modal{padding:28px 20px 20px}
  .glass-blobs i{filter:blur(28px)}
}

/* ============================================================
   Opening an account
   ============================================================ */

/* ---------- the plans, side by side ----------
   One grid for all three, and each card lays its own rows on that grid
   (subgrid), so Leverage sits beside Leverage across the row and a longer
   note in one card pushes the others down with it. */
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.plan{display:grid;grid-template-rows:subgrid;grid-row:span 11;row-gap:0;
  text-align:left;background:var(--surface);border:1.5px solid var(--line-2);
  border-radius:var(--r-card);padding:20px 20px 18px;box-shadow:var(--lift-card);
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-base) var(--ease),
             transform var(--t-quick) var(--ease)}
.plan:hover{border-color:#C9D3E4;transform:translateY(-2px);box-shadow:0 12px 26px -16px rgba(16,28,58,.4)}
:where(html[data-appearance="dark"]) .plan:hover{border-color:rgba(255,255,255,0.18);box-shadow:0 12px 26px -16px rgba(0,0,0,0.75)}
.plan.is-on{border-color:var(--gold);box-shadow:0 16px 34px -18px rgba(240,180,41,.75)}
.plan > *{min-width:0}

.plan-head{display:flex;align-items:flex-start;gap:12px}
.plan-i{width:42px;height:42px;border-radius:13px;background:var(--surface-sunk);display:grid;
  place-items:center;color:var(--ink-2);flex:none;
  transition:background var(--t-base) var(--ease),color var(--t-base) var(--ease)}
.plan-i svg{width:19px;height:19px}
.plan.is-on .plan-i,.plan-i.is-demo{background:var(--ink);color:var(--gold)}
:where(html[data-appearance="dark"]) .plan.is-on .plan-i,:where(html[data-appearance="dark"]) .plan-i.is-demo{background:var(--ink-fill)}
.plan-name{flex:1;min-width:0}
.plan-name b{display:block;font-size:16.5px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.plan-name b em{font-style:normal;font-weight:500;color:var(--ink-3)}
.plan-kick{display:block;font-size:10.8px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--ink-4);margin-top:4px}
/* the one most people open carries a gold star in the corner */
.plan-star{width:26px;height:26px;display:grid;place-items:center;flex:none;color:var(--gold)}
.plan-star svg{width:21px;height:21px;fill:var(--gold);stroke:#E4A900;stroke-width:1;stroke-linejoin:round;
  filter:drop-shadow(0 2px 4px rgba(240,180,41,.45))}
:where(html[data-appearance="dark"]) .plan-star svg{stroke:#EBD084}
.plan-sub{display:block;font-size:13.2px;color:var(--ink-3);line-height:1.5;padding:12px 0 14px}

.plan{cursor:pointer}
.plan-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;
  border-top:1px solid var(--line);font-size:13.4px}
/* ---------- the dropdown ----------
   A field with a chevron; the list rises in beneath it, rows a beat apart,
   the current value marked in gold. The open card sits above its neighbours. */
.dd{position:relative;display:inline-flex;flex:none}
.dd-btn{display:inline-flex;align-items:center;gap:9px;font:inherit;font-size:13.4px;font-weight:600;color:var(--ink);
  background:#fff;border:1.5px solid var(--line-2);border-radius:10px;padding:6px 11px 6px 11px;cursor:pointer;
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .dd-btn{background:#10152A}
.dd-btn::after{content:'';width:6px;height:6px;border-right:1.6px solid var(--ink-3);border-bottom:1.6px solid var(--ink-3);
  transform:translateY(-2px) rotate(45deg);transition:transform var(--t-base) var(--ease)}
.dd-btn:hover{border-color:#C9D3E4}
:where(html[data-appearance="dark"]) .dd-btn:hover{border-color:rgba(255,255,255,0.18)}
.dd-btn:focus-visible{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(240,180,41,.25)}
.dd.is-open .dd-btn{border-color:var(--gold);box-shadow:0 0 0 3px rgba(240,180,41,.25)}
.dd.is-open .dd-btn::after{transform:translateY(2px) rotate(225deg)}
.dd-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:100%;z-index:40;background:#fff;border-radius:12px;padding:5px;
  box-shadow:0 18px 40px -14px rgba(16,28,58,.35),0 0 0 1px rgba(16,28,58,.06);transform-origin:top right;
  animation:drop-in var(--t-base) var(--ease-out) both}
:where(html[data-appearance="dark"]) .dd-menu{background:#10152A;box-shadow:0 18px 40px -14px rgba(0,0,0,0.75),0 0 0 1px rgba(0,0,0,0.194)}
.dd-menu.is-out{animation:drop-out 130ms var(--ease-in) both;pointer-events:none}
@keyframes drop-in{from{opacity:0;transform:translateY(-6px) scale(.96)}to{opacity:1;transform:none}}
@keyframes drop-out{to{opacity:0;transform:translateY(-4px) scale(.97)}}
.dd-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font-size:13.4px;font-weight:500;color:var(--ink-2);
  padding:8px 14px 8px 8px;border-radius:8px;white-space:nowrap;font-variant-numeric:tabular-nums;
  animation:drop-row 200ms var(--ease-out) both;animation-delay:calc(40ms + var(--i,0) * 25ms);
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
@keyframes drop-row{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:none}}
.dd-opt:hover,.dd-opt:focus-visible{background:#EEF1F7;color:var(--ink);outline:0}
:where(html[data-appearance="dark"]) .dd-opt:hover,:where(html[data-appearance="dark"]) .dd-opt:focus-visible{background:rgba(255,255,255,0.07)}
.dd-opt:active{background:#E4E9F2}
:where(html[data-appearance="dark"]) .dd-opt:active{background:rgba(255,255,255,0.1)}
.dd-opt.is-on{color:var(--ink);font-weight:600}
.dd-chk{width:16px;height:16px;display:grid;place-items:center;color:var(--gold);opacity:0;transition:opacity var(--t-quick) var(--ease)}
.dd-chk svg{width:13px;height:13px;stroke-width:2.6}
.dd-opt.is-on .dd-chk{opacity:1}
.plan:has(.dd.is-open){z-index:5}

/* ============================================================
   Native selects, dressed as the house dropdown. Chrome's customizable
   select (appearance: base-select) hands the picker to the page: it
   becomes the same menu as .dd-menu — white, radius 12, 5px of padding,
   6px under the field — with the same rows, the gold check on the current
   one, and the same rise in. The field keeps each form's own frame and
   gains a small chevron that turns while the menu is open. A browser
   without it ignores all of this and shows its own picker, in the page's
   colour scheme (dark.css sets color-scheme: dark).
   ============================================================ */
select,::picker(select){appearance:base-select}
select{cursor:pointer}
select::picker-icon{content:'';flex:none;width:7px;height:7px;margin-left:auto;
  border-right:1.6px solid var(--ink-3);border-bottom:1.6px solid var(--ink-3);
  transform:translateY(-2px) rotate(45deg);transition:transform var(--t-quick) var(--ease)}
select:open::picker-icon{transform:translateY(2px) rotate(225deg)}
::picker(select){margin:6px 0 0;padding:5px;border:0;border-radius:12px;background:#fff;
  min-width:anchor-size(width);
  /* under the field, like .dd-menu, and above it only when it does not fit
     below. The browser's own picker goes to whichever side has more room and
     shrinks to fit it, so it would sit above any field in the lower half of
     the screen; its places are kept, but the first that fits wins, and a
     long list scrolls inside a set height instead. */
  position-try-order:normal;max-height:min(50vh,400px);
  box-shadow:0 18px 40px -14px rgba(16,28,58,.35),0 0 0 1px rgba(16,28,58,.06);
  transform-origin:top left;opacity:1;transform:none;
  transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease-out),
             display var(--t-base) allow-discrete,overlay var(--t-base) allow-discrete}
:where(html[data-appearance="dark"]) ::picker(select){background:#10152A;box-shadow:0 18px 40px -14px rgba(0,0,0,0.75),0 0 0 1px rgba(0,0,0,0.194)}
@starting-style{::picker(select):popover-open{opacity:0;transform:translateY(-6px) scale(.96)}}
::picker(select):not(:popover-open){opacity:0;transform:translateY(-4px) scale(.97)}
select option{display:flex;align-items:center;gap:8px;font-size:13.4px;font-weight:500;color:var(--ink-2);
  padding:8px 14px 8px 8px;border-radius:8px;white-space:nowrap;font-variant-numeric:tabular-nums;
  animation:drop-row 200ms var(--ease-out) both;animation-delay:40ms;
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
select option:nth-child(2){animation-delay:65ms}
select option:nth-child(3){animation-delay:90ms}
select option:nth-child(4){animation-delay:115ms}
select option:nth-child(5){animation-delay:140ms}
select option:nth-child(6){animation-delay:165ms}
select option:nth-child(7){animation-delay:190ms}
select option:nth-child(n+8){animation-delay:215ms}
select option:hover,select option:focus-visible{background:#EEF1F7;color:var(--ink);outline:0}
:where(html[data-appearance="dark"]) select option:hover,:where(html[data-appearance="dark"]) select option:focus-visible{background:rgba(255,255,255,0.07)}
select option:active{background:#E4E9F2}
:where(html[data-appearance="dark"]) select option:active{background:rgba(255,255,255,0.1)}
select option:checked{color:var(--ink);font-weight:600}
/* the check is the house one, drawn in gold; every row keeps its place for it */
select option::checkmark{content:'';flex:none;width:16px;height:16px;visibility:hidden;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC220' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px 13px no-repeat}
select option:checked::checkmark{visibility:visible}
/* the field shows its choice through a selectedcontent (core.js adds the
   pair where the picker is the page's): the label is the page's to style, so
   a long one ends in an ellipsis rather than wrapping the field or running
   under the chevron */
select > button{display:flex;align-items:center;flex:1;min-width:0;width:100%;padding:0;margin:0;border:0;
  background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;appearance:none}
selectedcontent{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-row > span{color:var(--ink-3);flex:none}
.plan-row > b{font-weight:600;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:-.01em;min-width:0}
.plan-row > b.muted{color:var(--ink-4);font-weight:400}
.plan-note{display:flex;gap:7px;align-items:flex-start;font-size:11.8px;color:var(--ink-4);line-height:1.45;
  padding-top:10px}
.plan-note:empty{padding:0}
.plan-note svg{width:13px;height:13px;flex:none;margin-top:1px}
/* the Choose button: dark at rest. Hovering the button itself, not the card,
   wipes a gold panel across it from the left and the label turns dark.
   Once chosen the panel stays across and a check draws itself in. */
.plan-cta{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;align-self:end;margin-top:16px;
  font-size:13.6px;font-weight:600;padding:11px;border-radius:99px;
  background:var(--ink);color:#fff;
  transition:color .2s var(--ease)}
:where(html[data-appearance="dark"]) .plan-cta{background:var(--ink-fill)}
.plan-cta-wipe{position:absolute;top:0;right:100%;width:100%;height:100%;
  background-image:var(--gold-grad);background-color:var(--gold);
  transition:transform .5s var(--ease);will-change:transform}
.plan-cta-t{position:relative;display:inline-flex;align-items:center;gap:7px}
.plan-cta svg{width:14px;height:14px;stroke-width:2.6}
.plan-cta:hover{color:var(--gold-ink)}
.plan-cta:hover .plan-cta-wipe{transform:translateX(100%) scale(1.02)}
.plan.is-on .plan-cta{color:var(--gold-ink)}
.plan.is-on .plan-cta-wipe{transform:translateX(100%)}
.plan.is-on .plan-cta svg path{stroke-dasharray:22;stroke-dashoffset:22;animation:draw-check .45s var(--ease-out) forwards .12s}
@keyframes draw-check{to{stroke-dashoffset:0}}

/* the strip beneath: what was chosen, the setting still open, and the way on */
.pick{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:16px;
  background:var(--surface);border-radius:var(--r-card);padding:14px 16px 14px 18px;
  box-shadow:var(--lift-card);animation:rise var(--t-base) var(--ease-out) both}
.pick-i{width:34px;height:34px;border-radius:50%;background:var(--surface-sunk);color:var(--ink-4);
  display:grid;place-items:center;flex:none}
.pick-i svg{width:16px;height:16px;stroke-width:2.4}
.pick-i.is-on{background:var(--gold);color:var(--gold-ink)}
.pick-t{flex:1;min-width:180px}
.pick-t b{display:block;font-size:14.8px;font-weight:600;letter-spacing:-.014em}
.pick-t > span{font-size:12.6px;color:var(--ink-3)}
.pick-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.pick-f > span{font-size:11.6px;color:var(--ink-4)}
.pick-f > b{font-size:14.6px;font-weight:600;padding:7px 0}
.pick-f select{font:inherit;font-size:14.4px;font-weight:600;border:1.5px solid var(--line-2);
  border-radius:11px;padding:8px 12px;background:#fff;color:var(--ink);min-width:120px}
:where(html[data-appearance="dark"]) .pick-f select{background:#10152A}
.pick-f select:focus{outline:none;border-color:var(--ink)}
.pick .btn{margin-left:auto;padding:12px 26px;border-radius:99px;font-weight:600}
.pick .btn[disabled]{opacity:.45;pointer-events:none}
.pick.is-empty .pick-t b{color:var(--ink-2)}

/* ---------- the demo: one box, two halves ---------- */
.demo{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:0;padding:0;overflow:hidden}
.demo-info{padding:26px 28px 24px;border-right:1px solid var(--line)}
.demo-info .plan-sub{padding:14px 0 12px}
.demo-form{padding:26px 28px 24px;background:var(--surface-sunk)}
.demo-form h2{font-size:16px;margin-bottom:16px}
.demo-form label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.demo-form label > span{font-size:12.6px;color:var(--ink-3)}
.demo-form select{font:inherit;font-size:15px;font-weight:600;border:1.5px solid var(--line-2);
  border-radius:12px;padding:12px 14px;background:#fff;color:var(--ink);width:100%;
  transition:border-color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .demo-form select{background:#10152A}
.demo-form select:focus{outline:none;border-color:var(--ink)}
.demo-sum{display:flex;align-items:flex-start;gap:9px;font-size:13.2px;color:var(--ink-3);line-height:1.5;
  margin:4px 0 16px}
.demo-sum svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--gold-deep)}
.demo-sum b{color:var(--ink);font-weight:600}

/* ---------- ready: the login, and the passwords shown once ---------- */
.ready{max-width:720px;margin:0 auto}
.ready-top{text-align:center;padding:6px 0 24px}
.ready-i{width:58px;height:58px;border-radius:50%;background:#E4F3EC;color:var(--up);display:grid;
  place-items:center;margin:0 auto 14px;animation:circlepop var(--t-slow) var(--ease-out) both}
:where(html[data-appearance="dark"]) .ready-i{background:rgba(88,228,163,0.14)}
.ready-i svg{width:26px;height:26px;stroke-width:2.6}
.ready-top h2{font-size:26px;letter-spacing:-.026em}
.ready-top p{font-size:14.2px;color:var(--ink-3);margin-top:6px}
.ready-sub{margin-top:18px}
.kv{display:flex;flex-direction:column}
.kv > div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;
  border-top:1px solid var(--line);font-size:14.4px}
.kv > div:first-child{border-top:0}
.kv dt{color:var(--ink-3);flex:none}
.kv dd{font-weight:600;letter-spacing:-.01em;text-align:right;display:flex;align-items:center;gap:10px;
  min-width:0;font-variant-numeric:tabular-nums}
.demo-info .kv{border-top:1px solid var(--line);padding-top:2px}
.demo-info .kv > div{padding:10px 0;font-size:13.6px}
.demo-info .kv > div:first-child{border-top:0}

/* the dark card: the two things that must be kept */
.secret{background:radial-gradient(120% 140% at 100% 0%,#1B2B4D 0%,var(--ink) 55%);color:#fff;
  border-radius:var(--r-card);padding:6px 24px 18px;box-shadow:var(--lift-hero)}
:where(html[data-appearance="dark"]) .secret{background:radial-gradient(120% 140% at 100% 0%,#1B2B4D 0%,var(--ink-fill) 55%)}
.secret .kv > div{border-top-color:rgba(255,255,255,.1)}
:where(html[data-appearance="dark"]) .secret .kv > div{border-top-color:rgba(255,255,255,0.05)}
.secret dt{color:#98A4BC}
:where(html[data-appearance="dark"]) .secret dt{color:#84A6EB}
.secret dd .mono{font-size:15.5px;letter-spacing:.04em}
.copy{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#AEBACF;
  background:rgba(255,255,255,.08);flex:none;
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .copy{color:#7A85A4}
.copy svg{width:15px;height:15px}
.copy:hover{background:rgba(255,255,255,.16);color:#fff}
.copy.is-done{background:var(--gold);color:var(--gold-ink)}
.secret-warn{display:flex;align-items:flex-start;gap:8px;font-size:12.8px;color:var(--gold);line-height:1.5;
  margin-top:6px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}
:where(html[data-appearance="dark"]) .secret-warn{border-top:1px solid rgba(255,255,255,0.05)}
.secret-warn svg{width:14px;height:14px;flex:none;margin-top:2px}
.ready-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.ready-acts .btn{padding:13px 20px;border-radius:99px;font-weight:600}

@media (max-width:1240px){
  .plans{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .plan{padding:16px 16px 14px}
}
@media (max-width:980px){
  .plans{grid-template-columns:minmax(0,1fr)}
  .plan{grid-template-rows:auto;grid-row:auto}
  .demo{grid-template-columns:minmax(0,1fr)}
  .demo-info{border-right:0;border-bottom:1px solid var(--line)}
  .pick .btn{margin-left:0;flex-basis:100%;text-align:center}
}
@media (max-width:760px){
  .demo-info,.demo-form{padding:20px 18px}
  .ready-acts{grid-template-columns:1fr}
  .secret{padding:4px 18px 16px}
  .kv > div{font-size:13.8px}
}

/* ============================================================
   Partner mode
   ============================================================ */
/* the wallet bar has a label where the trading bar has its switch */
.hbar-lab{display:inline-block;font-size:11.8px;color:var(--ink-4);padding:5px 0 3px;margin-bottom:2px}
.hbar-stats dd.up{color:var(--up)}
/* the code is drawn as one path; the global rule must not stroke it */
.qrbox svg path{stroke:none}

/* the four numbers a partner checks first */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.kpi{background:var(--surface);border-radius:16px;padding:15px 18px 14px;box-shadow:var(--lift-card);min-width:0}
.kpi dt{font-size:12.2px;color:var(--ink-4)}
.kpi dd{font-size:23px;font-weight:600;letter-spacing:-.028em;margin-top:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi dd em{font-style:normal;font-size:12.5px;color:var(--ink-4);font-weight:400;margin-left:5px}
.kpi-d{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12.2px;color:var(--ink-4)}
.kpi-d b{font-weight:600;font-variant-numeric:tabular-nums}

/* the queue: who to contact, ranked by money at stake */
.queue{padding:2px 22px 10px}
.queue-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:18px 0 6px}
.queue-head h2{font-size:16px}
.qu{display:grid;grid-template-columns:8px minmax(0,1fr) auto auto 20px;gap:14px;align-items:center;
  padding:14px 0;border-top:1px solid var(--line)}
.qu-mark{width:8px;height:8px;border-radius:2px;background:#C7CBD3}
:where(html[data-appearance="dark"]) .qu-mark{background:rgba(255,255,255,0.07)}
.qu-idle .qu-mark{background:var(--gold)} .qu-quiet .qu-mark{background:var(--ink-3)}
.qu-new .qu-mark{background:var(--up)} .qu-risk .qu-mark{background:var(--down)}
.qu-main{min-width:0}
.qu-main b{display:block;font-size:14.6px;font-weight:600;letter-spacing:-.01em}
.qu-why{display:block;font-size:13px;color:var(--ink-2);margin-top:2px}
.qu-meta{display:block;font-size:12px;color:var(--ink-4);margin-top:2px}
.qu-stat{font-size:13.6px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;text-align:right}
.qu-risk .qu-stat{color:var(--down)}
.qu-acts{display:flex;gap:6px}
.mini{display:flex;align-items:center;gap:6px;font-size:12.4px;font-weight:600;padding:7px 11px;
  border-radius:99px;background:var(--surface-sunk);color:var(--ink-2);border:1px solid var(--line-2);
  white-space:nowrap;transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease),
  border-color var(--t-quick) var(--ease)}
.mini:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
:where(html[data-appearance="dark"]) .mini:hover{background:var(--ink-fill)}
.mini svg{width:14px;height:14px}
.mini.is-icon{padding:7px 8px}
.qu-open{color:var(--ink-4);display:grid;place-items:center}
.qu-open svg{width:15px;height:15px;transform:rotate(-90deg)}
.qu-open:hover{color:var(--ink)}
.queue-more{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 0 8px;
  border-top:1px solid var(--line);font-size:13px;color:var(--ink-3)}
.queue-more > span:first-child{font-weight:600;color:var(--ink);margin-right:4px}
.kchip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:4px 10px;
  border-radius:99px;background:var(--surface-sunk);color:var(--ink-2)}
.kchip i{width:7px;height:7px;border-radius:2px;background:#C7CBD3}
:where(html[data-appearance="dark"]) .kchip i{background:rgba(255,255,255,0.07)}
.kchip.idle i{background:var(--gold)} .kchip.quiet i{background:var(--ink-3)}
.kchip.new i{background:var(--up)} .kchip.risk i{background:var(--down)}

/* ready to be partners */
.side-lede{margin-bottom:8px}
.rd{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 0;
  border-top:1px solid var(--line)}
.rd-n{flex:1;min-width:0}
.rd-n b{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em}
.rd-n span{font-size:12.2px;color:var(--ink-4)}
.rd > svg{width:14px;height:14px;color:var(--ink-4);transform:rotate(-90deg);flex:none}
.rd:hover .rd-n b{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:2px}
.rd + .underlined{margin-top:10px}

/* how concentrated the income is, in the dark card */
.conc{margin-top:16px;display:flex;flex-direction:column;gap:9px}
.conc > div{display:grid;grid-template-columns:58px minmax(0,1fr) 38px;gap:10px;align-items:center;
  font-size:12.4px;color:#98A4BC}
:where(html[data-appearance="dark"]) .conc > div{color:#84A6EB}
.conc b{color:#fff;font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
.cbar{height:7px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden;display:block}
.cbar > span{display:block;height:100%;border-radius:99px;background-image:var(--gold-grad);
  transition:width 900ms var(--ease-out)}

/* clients: the workbench */
.fchip em{font-style:normal;font-size:11.5px;opacity:.6;margin-left:3px}
.ctable{padding:2px 22px 8px}
.chead,.crow{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1.2fr) 112px 70px 104px 104px;
  gap:14px;align-items:center}
.chead{padding:16px 0 10px;font-size:12.2px;color:var(--ink-4)}
.chead > span:nth-child(n+4),.crow > span:nth-child(n+4){text-align:right}
.crow{padding:13px 0;border-top:1px solid var(--line);font-size:14px}
.crow:hover{background:#FBFCFE}
:where(html[data-appearance="dark"]) .crow:hover{background:rgba(255,255,255,0.05)}
.cname{min-width:0}
.cname b{display:block;font-size:14.4px;font-weight:600;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cname > span{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-4);margin-top:3px}
.ccamp{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clast{font-size:13px;color:var(--ink-2);white-space:nowrap}
.clast em{display:block;font-style:normal;font-size:11.5px;color:var(--ink-4)}
.stage{font-size:10.4px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;padding:2px 7px;
  border-radius:5px;background:#EDF0F7;color:var(--ink-3)}
:where(html[data-appearance="dark"]) .stage{background:rgba(255,255,255,0.07)}
.stage-trading{background:#E4F3EC;color:var(--up)}
:where(html[data-appearance="dark"]) .stage-trading{background:rgba(88,228,163,0.14)} .stage-new{background:#E6EEFB;color:#2E5AA8}
:where(html[data-appearance="dark"]) .stage-new{background:rgba(255,255,255,0.07);color:#84A9EB}
.stage-funded{background:var(--gold-soft);color:var(--gold-deep)} .stage-quiet{background:#EDF0F7;color:var(--ink-3)}
:where(html[data-appearance="dark"]) .stage-quiet{background:rgba(255,255,255,0.07)}
.stage-leaving{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .stage-leaving{background:rgba(228,109,88,0.14)} .stage-dormant{background:#EDF0F7;color:var(--ink-4)}
:where(html[data-appearance="dark"]) .stage-dormant{background:rgba(255,255,255,0.07)}
.cnum{font-variant-numeric:tabular-nums;white-space:nowrap}
.book{display:flex;flex-direction:column}
.book > div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);
  font-size:13px;color:var(--ink-3)}
.book > div:first-child{border-top:0;padding-top:0}
.book b{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600}

/* campaigns: the funnel per link */
.cptable{padding:2px 22px 8px}
.cphead,.cprow{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,2fr) 104px 74px;gap:16px;align-items:center}
.cphead{padding:16px 0 10px;font-size:12.2px;color:var(--ink-4)}
.cphead > span:nth-child(n+3),.cprow > .cpc{text-align:right}
.cprow{width:100%;text-align:left;padding:14px 0;border-top:1px solid var(--line);position:relative}
.cprow:hover{background:#FBFCFE}
:where(html[data-appearance="dark"]) .cprow:hover{background:rgba(255,255,255,0.05)}
.cprow.is-on::before{content:'';position:absolute;left:-22px;top:10px;bottom:10px;width:3px;
  border-radius:0 3px 3px 0;background:var(--gold)}
.cpn{min-width:0}
.cpn b{display:block;font-size:14.4px;font-weight:600;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpn > span{display:block;font-size:12px;color:var(--ink-4);margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpn .flag{display:flex;align-items:center;gap:4px;color:var(--down);font-weight:500}
.cpn .flag svg{width:12px;height:12px;flex:none}
.fun{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.fun > div{min-width:0}
.fun dt{font-size:10.8px;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fun dd{font-size:13.4px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:1px}
.fun i{display:block;height:4px;border-radius:99px;background:#E7EBF4;margin-top:5px;overflow:hidden}
:where(html[data-appearance="dark"]) .fun i{background:rgba(255,255,255,0.07)}
.fun i > span{display:block;height:100%;border-radius:99px;background:var(--ink-3)}
.fun > div:last-child i > span{background:var(--up)}
.cpc{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.conv{justify-self:end}
.linktools{display:flex;flex-direction:column;gap:12px}
.linktools h2{font-size:16px}
.linkurl{display:flex;align-items:center;gap:8px;background:var(--surface-sunk);border:1px solid var(--line-2);
  border-radius:11px;padding:10px 12px;font-size:12.4px;overflow:hidden}
.linkurl > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.linkurl > svg{width:14px;height:14px;flex:none;color:var(--ink-4)}
.linktools .qrbox{margin:4px 0 2px}
.linktools .qrbox svg{width:156px;height:156px}
.linkacts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.linkacts .btn{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 12px}
.linkacts .btn svg{width:15px;height:15px}
.linktools .note{margin-top:2px}

/* earnings */
.etable{padding:2px 4px 0}
.ehead,.erow{display:grid;grid-template-columns:minmax(0,1.5fr) 84px 60px 128px 100px;gap:14px;align-items:center}
.ehead{padding:6px 0 10px;font-size:12.2px;color:var(--ink-4)}
.ehead > span:nth-child(n+3),.erow > span:nth-child(n+3){text-align:right}
.erow{padding:13px 0;border-top:1px solid var(--line);font-size:14px}
.erow > span:first-child{min-width:0}
.erow b{display:block;font-size:14.2px;font-weight:600;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erow .mono{font-size:11.8px;color:var(--ink-4)}
.esym{font-weight:600}
.pbody > .afeed{padding:0 4px}
.mix{display:flex;flex-direction:column;gap:14px;padding:12px 4px 6px}
.mix > div{display:grid;grid-template-columns:72px minmax(0,1fr) 46px;gap:14px;align-items:center;font-size:13.6px}
.mix b{text-align:right;font-variant-numeric:tabular-nums}
.mixbar{height:10px;border-radius:99px;background:#E7EBF4;overflow:hidden;display:block}
:where(html[data-appearance="dark"]) .mixbar{background:rgba(255,255,255,0.07)}
.mixbar > span{display:block;height:100%;border-radius:99px;background:var(--ink);
  transition:width 900ms var(--ease-out)}
:where(html[data-appearance="dark"]) .mixbar > span{background:var(--ink-fill)}
.mix > div:first-child .mixbar > span{background-image:var(--gold-grad)}
.mix-note{font-size:13.4px;color:var(--ink-3);line-height:1.55;padding:6px 4px 8px;max-width:60ch}

/* terms */
.tier{display:flex;align-items:flex-end;gap:28px;flex-wrap:wrap}
.tier-n{font-size:40px;font-weight:600;letter-spacing:-.035em;line-height:1}
.tier-n em{font-style:normal;font-size:16px;color:var(--ink-4);font-weight:400;margin-left:8px;letter-spacing:-.01em}
.tier-t{flex:1;min-width:220px}
.tier-t p{font-size:13.4px;color:var(--ink-3);margin-bottom:10px}
.tier-bar{height:9px;border-radius:99px;background:#E7EBF4;overflow:hidden}
:where(html[data-appearance="dark"]) .tier-bar{background:rgba(255,255,255,0.07)}
.tier-bar > span{display:block;height:100%;border-radius:99px;background-image:var(--gold-grad);
  transition:width 900ms var(--ease-out)}
.tier-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-4);margin-top:8px}
.lvl{display:grid;grid-template-columns:64px minmax(0,1fr) 120px;gap:14px;align-items:center;
  padding:13px 0;border-top:1px solid var(--line);font-size:14px}
.lvl:first-child{border-top:0}
.lvl.is-you{font-weight:600}
.lvl > .mono{font-size:12.6px}
.lvl > span:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lvl .chip{margin-left:8px}
.rules{padding-left:18px;display:flex;flex-direction:column;gap:9px;margin:0}
.rules li{font-size:13.6px;color:var(--ink-2);line-height:1.55}

@media (max-width:1240px){
  .chead,.crow{grid-template-columns:minmax(0,1.7fr) minmax(0,1.1fr) 104px 96px 96px}
  .chead > span:nth-child(4),.crow > span:nth-child(4){display:none}
  .cphead,.cprow{grid-template-columns:minmax(0,1.3fr) minmax(0,1.8fr) 96px 62px}
}
@media (max-width:980px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qu{grid-template-columns:8px minmax(0,1fr) auto 20px}
  .qu-acts{grid-column:2 / span 2;grid-row:2;justify-content:flex-start}
  .qu-open{grid-column:4;grid-row:1}
  .chead > span:nth-child(2),.crow > span:nth-child(2){display:none}
  .chead,.crow{grid-template-columns:minmax(0,1.6fr) 100px 96px 96px}
  .cphead,.cprow{grid-template-columns:minmax(0,1fr) 96px 62px}
  .cphead > span:nth-child(2),.cprow > .fun{display:none}
  .ehead,.erow{grid-template-columns:minmax(0,1.5fr) 70px 110px 90px}
  .ehead > span:nth-child(3),.erow > span:nth-child(3){display:none}
}
@media (max-width:760px){
  .kpis{gap:10px;margin-bottom:14px}
  .kpi{padding:13px 14px 12px}
  .kpi dd{font-size:20px}
  .queue,.ctable,.cptable{padding:2px 16px 8px}
  .qu{gap:10px 12px}
  .qu-stat{font-size:12.8px}
  .chead{display:none}
  .crow{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .crow > span:nth-child(3),.crow > span:nth-child(5){display:none}
  .cphead{display:none}
  .cprow{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .cprow > .cpc{grid-column:1;text-align:left}
  .cprow > .conv{grid-column:2;grid-row:1}
  .ehead{display:none}
  .erow{grid-template-columns:minmax(0,1fr) auto}
  .erow > span:nth-child(2),.erow > span:nth-child(4){display:none}
  .linkacts{grid-template-columns:1fr}
  .tier-n{font-size:34px}
  .lvl{grid-template-columns:54px minmax(0,1fr) 100px;gap:10px}
  .conc > div{grid-template-columns:52px minmax(0,1fr) 36px}
}

/* ---------- responsive ---------- */
/* narrow cards: the price matters more than the shape of the line */
@media (max-width:1400px){
  .home-top{grid-template-columns:minmax(0,1fr) minmax(280px,330px)}
}
@media (max-width:1300px){
  .spark{display:none}
  .mcard{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1240px){
  :root{--side-w:300px;--shell-gap:22px}
  .calhead,.calrow{grid-template-columns:52px 42px minmax(0,1fr) 80px 80px 80px;gap:10px}
  .chans{grid-template-columns:1fr}
  .txn{grid-template-columns:9px minmax(0,1fr) auto 140px}
  .txn-ref{display:none}
}
@media (max-width:1080px){
  .mini-stats,.stat-row{grid-template-columns:1fr 1fr}
  .mhead,.mrow{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 96px;gap:14px}
  .mhead span:nth-child(4),.mrow .mchg{display:none}
  .msym b + span{display:none}
}
@media (max-width:1120px){
  .promos{grid-template-columns:1fr}
  .home-lower{grid-template-columns:minmax(0,1fr)}
  .msnap{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
  :root{--shell-gap:18px}
  .dconf.has-qr{grid-template-columns:minmax(0,1fr)}
  .sts{grid-template-columns:minmax(0,1fr)}
  .calhead span:nth-child(6),.calrow > span:nth-child(6){display:none}
  .calhead,.calrow{grid-template-columns:52px 42px minmax(0,1fr) 78px 78px}
  .dls{grid-template-columns:1fr}
  .rw-stats{grid-template-columns:1fr 1fr}
  .st + .st{border-left:0;border-top:1px solid var(--line)}
  /* the hero above the actions, rather than two cramped columns */
  .home-top{grid-template-columns:minmax(0,1fr)}
  .promo.is-hero{min-height:0}
  .who-top b{max-width:150px}
  .grid{grid-template-columns:minmax(0,1fr)}
  .paygrid.has-form{grid-template-columns:minmax(0,1fr)}
  .wallet{grid-template-columns:minmax(0,1fr)}
  /* one column: the form is a card below the list, and the tab stands down */
  .paygrid.has-form .col-form{margin-top:0}
  .paygrid.has-form .addform{min-height:0;border-radius:var(--r-card)}
  .addm.is-on{width:100%;padding-right:14px;border-radius:13px}
  .addm.is-on::before,.addm.is-on::after{display:none}
  .col-side{flex-direction:row;flex-wrap:wrap}
  /* a row of cards: min-width would otherwise be min-content, and one
     unwrappable line (a link, a reference) pushes a card past the screen */
  .col-side>*{flex:1 1 270px;min-width:0}
  .move-grid{grid-template-columns:1fr}
  .avail{gap:10px}
  .avail-n{flex-basis:100%}
}
@media (max-width:760px){
  :root{--pad:14px;--edge:14px}
  .app{gap:0}
  .railtoggle-m{display:grid}
  .rail{
    position:fixed;left:0;top:0;bottom:0;height:100%;max-height:none;z-index:70;
    width:min(84vw,282px);flex-basis:auto;
    border-radius:0 20px 20px 0;
    transform:translateX(-102%);
    box-shadow:0 24px 60px -20px rgba(12,21,38,.5);
    transition:transform .24s var(--ease);
  }
:where(html[data-appearance="dark"]) .rail{box-shadow:0 24px 60px -20px rgba(0,0,0,0.75)}
  .rail.is-open{transform:none}
  .rail .rail-grp,.rail .nav-item{display:block}
  .rail .nav-item{display:flex}
  .rail .grp-btn{display:none}
  .rail .lbl{display:inline}
  .rail .rail-toggle{margin:0 12px 10px;padding:9px 10px;font-size:13px;font-weight:500}
  .rail .rail-rule{width:auto;margin:12px 14px}
  /* the phone header carries: menu, mark, mode, you */
  .topbar{gap:10px;padding:0 var(--pad)}
  .topbar-end{margin-left:auto;gap:6px}
  .brand-word{display:none}
  .brand{gap:0}
  .brand-mark{width:32px;height:32px}
  .mode-btn{font-size:12.4px;padding:5px 11px}
  .round{display:none}
  .who-top{display:none}
  .userbtn{padding:0}

  .pagehead h1{font-size:27px}
  .btn{padding:10px 15px;font-size:13.8px}

  .total{padding:22px 20px;border-radius:20px}
  .total-val{font-size:38px}
  .big-num{font-size:33px}
  .panel{padding:20px 18px}
  .panel-flush{padding:2px 18px}

  .acct{padding:14px}
  .mini-stats{grid-template-columns:1fr 1fr;gap:10px}
  .pm{padding:13px 14px 14px}

  .acct-strip{flex-wrap:wrap;gap:10px;padding:14px 16px}
  .acct-strip-bal{margin-left:auto}
  .acct-switch{width:100%;justify-content:center;order:9}

  .stat-row{grid-template-columns:1fr 1fr;gap:14px}

  .txn{grid-template-columns:9px minmax(0,1fr) auto;gap:10px;padding:14px 0}
  .txn-amt{grid-column:2 / -1;text-align:left;margin-top:4px}
  .txn-chev{position:absolute;right:0}
  .txn-head{position:relative}
  .txn-sub{padding-left:18px}


  /* a phone gets the compact bar whatever its column measures: this is a
     product decision about phones, not a width the layout ran out of */
  .hbar{grid-template-columns:minmax(0,1fr);gap:11px;padding:12px 14px 13px}
  .hbar > *{min-width:0}
  .hbar-sw{max-width:none;min-width:0;padding:9px 11px}
  .hbar-stats{display:none}
  .hbar-acts{grid-column:1;justify-self:stretch}
  .hbar-acts .btn{flex:1;padding:10px 14px}
  .hbar-eq b{font-size:27px}
  .hbar-swn b{font-size:13.8px}
  .metsw{margin-bottom:0}
  .mcards,.msnap{grid-template-columns:1fr}
  .deps{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
  .dconf.has-qr{grid-template-columns:minmax(0,1fr)}
  .dsteps{margin-left:0;flex-basis:100%}
  .dstep{padding:4px 10px 4px 5px;font-size:12px}
  .dacts{grid-template-columns:1fr}
  .dqr{animation:qrup 420ms var(--ease-out) both}
  @keyframes qrup{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
  .dep-into .underlined{margin-left:0;flex-basis:100%}
  .calc-in,.calc-out{grid-template-columns:1fr}
  .calhead span:nth-child(5),.calrow > span:nth-child(5){display:none}
  .calhead,.calrow{grid-template-columns:50px 40px minmax(0,1fr) 74px}
  .caltab{padding:2px 16px 10px}
  .sumrow{grid-template-columns:1fr}
  .phead{display:none}
  .prow{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:15px 0}
  .prow .psym{grid-column:1;grid-row:1}
  .prow .pres{grid-column:2;grid-row:1}
  .prow > span:nth-child(2),.prow > span:nth-child(3),.prow > span:nth-child(4){
    grid-column:1;grid-row:2;display:inline;font-size:12.4px;color:var(--ink-4);text-align:left}
  .lead{padding:22px 20px}
  .lead h2{font-size:20px}
  .rw-hero{padding:24px 22px}
  .rw-stats{grid-template-columns:1fr;gap:12px}
  .prize{flex-wrap:wrap;gap:6px 12px}
  .prize-r{width:auto}
  .bub{max-width:94%}
  .mtable{padding:2px 16px 8px}
  .mhead{display:none}
  .mrow{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:15px 0}
  .msym{grid-row:1;grid-column:1}
  .mrow .mtrade{grid-row:1;grid-column:2}
  /* the symbol cell is the first span, so the prices are the second and third */
  .mrow .mprice:nth-of-type(2)::before{content:'Sell ';color:var(--ink-4);font-weight:400;font-size:12px}
  .mrow .mprice:nth-of-type(3)::before{content:'Buy ';color:var(--ink-4);font-weight:400;font-size:12px}
  .mrow .mprice{grid-row:2;font-size:13.6px}
  .mrow .mprice:nth-of-type(2){grid-column:1}
  .mrow .mprice:nth-of-type(3){grid-column:2;justify-self:end}
  .mkt-head h2{font-size:19px}
  .ev{grid-template-columns:7px 66px minmax(0,1fr) auto}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important}
  #page.is-out{opacity:1;transform:none}
  #page > .rise{animation:none}
  .btn:hover,.move:hover,.linkcard:hover,.grp-btn:hover,
  .qrow:hover,.qtile:hover,.pm:hover,.acct:hover{transform:none}
  .paygrid .col-form,.paygrid .addm.is-on,.addm.is-on::before,.addm.is-on::after{animation:none}
  .rail.just-open .rail-panel,.rail.just-open .rail-panel > *,.panel-ghost,.rail.just-shut .grp-btn,
  .rail.just-open .rail-set.as-circles .grp-btn{animation:none}
  .btn:active,.qrow:active,.qtile:active,.linkcard:active,.move:active,.addm:active,
  .grp-btn:active,.pm-del:active,.pm-why:active,.round:active,.rail-toggle:active{transform:none}
  .tabbar::after{animation:none}
  .glass-blobs i{animation:none}
  .mtab:active,.seg:active,.fchip:active,.cx-tf:active,.mtrade:active,.pclose:active,.wsel:active,.acct-switch:active,.sec-more:active,.mkt-more:active,.copy:active,.st-cta:active,.promo-cta:active,.plan:active,.nrow:active,.txn:active,.lots-btn:active,.tk:active,.mcard[data-chart]:active,.mrow[data-chart]:active{transform:none}
  .cx-svg,.cx-vol,.cx-rsi,.cx-tag,.cx-dot,.grp-badge,.nav-item .badge,.tab-dot{animation:none}
  .plan.is-on .plan-cta svg path{animation:none;stroke-dashoffset:0}
  .dd-menu,.dd-menu.is-out,.dd-opt{animation:none}
  ::picker(select){transition:none}
  select option{animation:none}
  .umenu,.langpop{transition:none}
  .total-i .tl{animation:none}
  .open-row.is-live .open-i svg{animation:none}
  .open-row:hover .open-c{transform:none}
  .mode.is-gold .mode-btn.is-on{animation:none;text-shadow:0 0 8px rgba(255,194,32,.5)}
  .st-bar > span::before,.st-bar > span::after{animation:none}
  .segind,.segtrail{transition:none}
  .segind > i.is-swim{animation:none}
  .segtrail{opacity:0!important}
  .tsw,.tsw-k,.tsw-k::before,.tsw-k i,.tsw-ghost{transition:none}
  .btn-gold .gw,.move-gold .gw,.qrow.is-gold .gw{transition:none}
  .plan-cta-wipe{transition:none}
  .rail.is-open .nav-item:hover,.part-row:hover,.rail.is-open .nav-item:active,.part-row:active,.grp-btn:hover,.grp-btn:active{transform:none}
  .mcard[data-chart]:hover{transform:none}
  .tab-ind.is-swim > i,.tab.is-on svg{animation:none}
  .tab-trail{opacity:0!important}
  .st-track .st-pill,.st-track .st-pill.is-mid{opacity:1;transform:none}
  .st-track .st-pill.is-mid{transform:translateX(-50%)}
  .btn-gold::before,.btn-gold::after,.qrow.is-gold::before,.qrow.is-gold::after,
  .move-gold::before,.move-gold::after{animation:none;transform:none}
}

/* ============================================================
   Motion for in-page changes. A repaint on the same page runs
   through a view transition: the tab highlight slides, cards and
   rows that survive the change move, everything else crossfades.
   The shell is named so it stays crisp; the page root crossfades.
   ============================================================ */
.topbar{view-transition-name:topbar}
.rail{view-transition-name:rail}
#acctbar{view-transition-name:acctbar}
.tabbar{view-transition-name:tabbar}
#glass{view-transition-name:glass}
#toast{view-transition-name:toast}
.mtab.is-on{view-transition-name:mtab-on}
.fchip.is-on{view-transition-name:chip-on}
.seg.is-on{view-transition-name:seg-on}
.cx-tf.is-on{view-transition-name:tf-on}
::view-transition-old(root),::view-transition-new(root){animation-duration:var(--t-base);animation-timing-function:var(--ease)}
::view-transition-group(*){animation-duration:var(--t-slow);animation-timing-function:var(--ease)}
::view-transition-old(*),::view-transition-new(*){animation-duration:var(--t-base)}
::view-transition-old(topbar),::view-transition-new(topbar),::view-transition-old(rail),::view-transition-new(rail),
::view-transition-old(acctbar),::view-transition-new(acctbar),::view-transition-old(tabbar),::view-transition-new(tabbar){animation:none}
/* the appearance switch (core.js toggleTheme): the new appearance opens as one
   circle from the switch. Every name stands down so the page is a single
   picture, and neither picture fades: the old waits under the circle. */
html.vt-theme :is(.topbar,.rail,#acctbar,.tabbar,.dock,.mtabs,.mcards,#glass,#toast,.mtab.is-on,.fchip.is-on,.seg.is-on,.cx-tf.is-on),
html.vt-theme [style*="view-transition-name"]{view-transition-name:none!important}
html.vt-theme::view-transition-old(root),html.vt-theme::view-transition-new(root){animation:none;mix-blend-mode:normal}
/* Trading | Partner (core.js modeShift): the menu and the bar slide out toward
   the side you left and in from the side you picked, --vt-dir 1 toward
   Partner. The header holds still, so its pill is the only thing moving there. */
@keyframes vtm-out{to{opacity:0;transform:translateX(calc(var(--vt-dir,1) * -28px))}}
@keyframes vtm-in{from{opacity:0;transform:translateX(calc(var(--vt-dir,1) * 28px))}}
html.vt-mode::view-transition-old(rail),html.vt-mode::view-transition-old(acctbar){
  animation:vtm-out 200ms cubic-bezier(.4,0,1,1) both}
html.vt-mode::view-transition-new(rail),html.vt-mode::view-transition-new(acctbar){
  animation:vtm-in 380ms cubic-bezier(.16,1,.3,1) 90ms both}
html.vt-mode::view-transition-old(topbar){display:none}
/* a row or a card that can be opened: a small lift, and a pointer */
.mrow[data-chart],.mcard[data-chart],.prow-open{cursor:pointer;transition:background var(--t-quick) var(--ease),transform var(--t-quick) var(--ease)}
.mrow[data-chart]:hover{background:rgba(255,255,255,.55)}
:where(html[data-appearance="dark"]) .mrow[data-chart]:hover{background:rgba(255,255,255,0.05)}
.mcard[data-chart]:hover{transform:translateY(-2px)}
.mcard[data-chart]:active,.mrow[data-chart]:active{transform:scale(.995)}

/* ============================================================
   The toast
   ============================================================ */
.toast{position:fixed;top:14px;left:50%;z-index:60;display:flex;align-items:center;gap:9px;
  padding:11px 18px 11px 12px;border-radius:99px;font-size:14px;font-weight:600;color:#fff;
  background:rgba(27,42,92,.92);box-shadow:0 18px 40px -14px rgba(27,42,92,.55),inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  transform:translate(-50%,-24px) scale(.96);opacity:0;pointer-events:none;
  transition:transform var(--t-base) var(--ease),opacity var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .toast{box-shadow:0 18px 40px -14px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.063)}
.toast.is-up{transform:translate(-50%,0) scale(1);opacity:1}
.toast.is-ok{background:rgba(18,128,92,.94)}
.toast.is-sell{background:rgba(214,69,58,.94)}
.toast-i{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.toast-i svg{width:13px;height:13px;stroke-width:2.4}
@media (max-width:760px){.toast{top:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);white-space:nowrap}}

/* ============================================================
   The instrument page: header, tabs, chart, ticket
   ============================================================ */
.cx-head{display:flex;align-items:center;gap:14px;margin:10px 0 0}
.cx-head .pair{width:60px;height:40px}
.cx-head .pair-f,.cx-head .pair-b{width:38px;height:38px}
.cx-head .pair-b{left:21px}
.cx-head .pair.is-one{width:40px}
.cx-title h1{font-size:26px;letter-spacing:-.02em;line-height:1.1}
.cx-title p{font-size:13.4px;color:var(--ink-3);margin-top:3px}
.cx-tools{margin-left:auto;display:flex;gap:6px}
.cx-tools .round{background:#fff;border:1px solid var(--line)}
:where(html[data-appearance="dark"]) .cx-tools .round{background:#10152A}
.cx-tools .round.is-gold{color:var(--gold);border-color:rgba(240,180,41,.55)}
.cx-tools .round.is-gold svg{fill:var(--gold)}
.ctabs{display:flex;gap:4px;overflow-x:auto;margin:18px 0 16px;scrollbar-width:none;
  padding:4px;border-radius:99px;background:rgba(255,255,255,.65);border:1px solid var(--line)}
:where(html[data-appearance="dark"]) .ctabs{background:rgba(16,21,42,0.65)}
.ctabs::-webkit-scrollbar{display:none}
.ctabs .mtab{padding:8px 16px;font-size:13.6px}

.cx{padding:20px 22px 18px;overflow:hidden}
.cx-price{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cx-last{display:block;font-size:34px;font-weight:600;letter-spacing:-.025em;line-height:1;font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-chg{display:flex;align-items:center;gap:8px;margin-top:9px;font-size:12.6px;color:var(--ink-3)}
.cx-chg .chip{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:600;font-size:12.2px;font-style:normal}
.cx-when{display:block;margin-top:7px;font-size:12px;color:var(--ink-4)}
.cx-ohlc{display:grid;grid-template-columns:repeat(4,auto);gap:4px 22px}
.cx-ohlc div{display:flex;flex-direction:column;gap:3px}
.cx-ohlc dt{font-size:11.2px;color:var(--ink-4);letter-spacing:.04em;text-transform:uppercase}
.cx-ohlc dd{font-size:14.4px;font-weight:600;font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);flex-wrap:wrap}
.cx-tfs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;padding:3px;border-radius:10px;background:#F1F3F8}
:where(html[data-appearance="dark"]) .cx-tfs{background:rgba(255,255,255,0.07)}
.cx-tfs::-webkit-scrollbar{display:none}
.cx-tf{font-size:12.6px;font-weight:600;color:var(--ink-3);padding:6px 11px;border-radius:8px;white-space:nowrap;
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
.cx-tf:hover{color:var(--ink)}
.cx-tf.is-on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(27,42,92,.14)}
:where(html[data-appearance="dark"]) .cx-tf.is-on{background:#10152A;box-shadow:0 1px 3px rgba(0,0,0,0.386)}
.cx-bar-r{display:flex;align-items:center;gap:6px}
.cx-toc{display:inline-flex;align-items:center;white-space:nowrap;padding:8px 14px;font-size:12.8px;gap:7px}
.cx-toc svg{width:14px;height:14px}
.cx-bar-r .round{width:34px;height:34px;background:#fff;border:1px solid var(--line)}
:where(html[data-appearance="dark"]) .cx-bar-r .round{background:#10152A}
.cx-read{display:flex;flex-wrap:wrap;gap:4px 14px;margin:14px 0 6px;font-size:11.6px;color:var(--ink-3);min-height:18px;
  font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-read b{font-weight:500;color:var(--ink)}
.cx-read .cx-r-t{color:var(--ink-4)}
.cx-read .cx-r-ma{margin-left:auto}
.cx-read .ma5{color:#D99A00}
:where(html[data-appearance="dark"]) .cx-read .ma5{color:#EBCD84}.cx-read .ma10{color:#E5671B}
:where(html[data-appearance="dark"]) .cx-read .ma10{color:#EBAB84}.cx-read .ma20{color:#1B2A5C}
:where(html[data-appearance="dark"]) .cx-read .ma20{color:#849CEB}
.cx-main{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:0;position:relative}
.cx-plot{position:relative;height:300px;border-radius:8px 0 0 8px;overflow:hidden;
  background:linear-gradient(to bottom,rgba(27,42,92,.035) 1px,transparent 1px) 0 0/100% 25%,
             linear-gradient(to right,rgba(27,42,92,.03) 1px,transparent 1px) 0 0/12.5% 100%;
  cursor:crosshair}
:where(html[data-appearance="dark"]) .cx-plot{background:linear-gradient(to bottom,rgba(255,255,255,0.032) 1px,transparent 1px) 0 0/100% 25%,
             linear-gradient(to right,rgba(255,255,255,0.027) 1px,transparent 1px) 0 0/12.5% 100%}
.cx-svg{display:block;width:100%;height:100%;animation:cx-in .7s var(--ease-out) both}
.cx-vol,.cx-rsi{animation:cx-in .7s var(--ease-out) both}
@keyframes cx-in{from{clip-path:inset(0 100% 0 0);opacity:.4}to{clip-path:inset(0 -2% 0 0);opacity:1}}
.cx-svg *{stroke:none;vector-effect:non-scaling-stroke}
.cx-svg .cx-bb{fill:none;stroke:#C6D0E2;stroke-width:1;stroke-dasharray:3 3}
.cx-svg .cx-ma{fill:none;stroke-width:1.4;stroke-linejoin:round}
.cx-svg .cx-ma5{stroke:#D99A00}
:where(html[data-appearance="dark"]) .cx-svg .cx-ma5{stroke:#EBCD84}.cx-svg .cx-ma10{stroke:#E5671B}
:where(html[data-appearance="dark"]) .cx-svg .cx-ma10{stroke:#EBAB84}.cx-svg .cx-ma20{stroke:#1B2A5C}
:where(html[data-appearance="dark"]) .cx-svg .cx-ma20{stroke:#849CEB}
.cx-svg .cx-lv{stroke-width:1;stroke-dasharray:2 4;opacity:.75}
.cx-svg .r1{stroke:var(--down)}.cx-svg .pp{stroke:#D99A00}
:where(html[data-appearance="dark"]) .cx-svg .pp{stroke:#EBCD84}.cx-svg .s1{stroke:var(--up)}
.cx-svg .ask{stroke:var(--up);stroke-dasharray:1 3}.cx-svg .bid{stroke:var(--down);stroke-dasharray:1 3}
.cx-svg .cx-c line{stroke-width:1}
.cx-svg .cx-c.up line{stroke:var(--up)}.cx-svg .cx-c.dn line{stroke:var(--down)}
.cx-svg .cx-c.up rect{fill:var(--up)}.cx-svg .cx-c.dn rect{fill:var(--down)}
.cx-svg .cx-dot{fill:#fff;stroke:var(--ink);stroke-width:2;animation:cx-pulse 2.2s var(--ease) infinite}
@keyframes cx-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.cx-line{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed rgba(27,42,92,.45);pointer-events:none;transition:left 60ms linear}
:where(html[data-appearance="dark"]) .cx-line{border-left:1px dashed rgba(255,255,255,0.16)}
.cx-axis{position:relative;border-left:1px solid var(--line);font-size:10.8px;color:var(--ink-4);height:300px}
.cx-tick{position:absolute;right:0;left:6px;transform:translateY(-50%)}
.cx-tick:first-child{transform:translateY(0)}
.cx-tick:nth-child(5){transform:translateY(-100%)}
.cx-tag{position:absolute;left:-1px;right:0;transform:translateY(-50%);display:flex;align-items:center;gap:4px;
  padding:2px 5px;border-radius:0 5px 5px 0;font-size:10px;color:#fff;font-weight:600;line-height:1.3;white-space:nowrap;
  animation:cx-tag-in var(--t-slow) var(--ease) both}
@keyframes cx-tag-in{from{opacity:0;transform:translate(6px,-50%)}to{opacity:1;transform:translate(0,-50%)}}
.cx-tag b{font-weight:700;letter-spacing:.02em}
.cx-tag i{font-style:normal;font-weight:500;font-size:9.6px;opacity:.92}
.cx-tag.r1{background:var(--down)}.cx-tag.pp{background:#D99A00;color:#3D2E00}.cx-tag.s1{background:var(--up)}
.cx-tag.ask{background:var(--up);left:-4px;box-shadow:0 2px 8px -2px rgba(18,128,92,.6)}
.cx-tag.bid{background:var(--down);left:-4px;box-shadow:0 2px 8px -2px rgba(214,69,58,.6)}
.cx-times{position:relative;height:18px;margin:6px 68px 0 0;font-size:10.8px;color:var(--ink-4);
  font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-times span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.cx-sub{display:grid;grid-template-columns:minmax(0,1fr) 68px;position:relative;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.cx-sub-lab{position:absolute;left:6px;top:12px;font-size:10.4px;font-weight:600;letter-spacing:.06em;color:var(--ink-4)}
.cx-sub-r{padding-left:6px;font-size:10.8px;color:var(--ink-4);align-self:end;border-left:1px solid var(--line);height:60px;display:flex;align-items:flex-end}
.cx-vol,.cx-rsi{display:block;width:100%;height:60px}
.cx-vol rect{stroke:none;opacity:.55}.cx-vol .up{fill:var(--up)}.cx-vol .dn{fill:var(--down)}
.cx-rsi path{fill:none;stroke:#7B4DFF;stroke-width:1.4;vector-effect:non-scaling-stroke}
:where(html[data-appearance="dark"]) .cx-rsi path{stroke:#9F84EB}
.cx-rsi .cx-rsi-lv{stroke:#C6D0E2;stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}

/* the ticket */
.ticket{margin-top:16px;padding:18px 22px 16px;display:grid;justify-items:center;gap:14px;
  background:linear-gradient(180deg,#fff,#F7F9FC);border-color:var(--line-2)}
:where(html[data-appearance="dark"]) .ticket{background:linear-gradient(180deg,#10152A,rgba(255,255,255,0.06))}
.ticket-mode{font-size:13.4px;padding:6px 12px;border-radius:99px;background:#F1F3F8}
:where(html[data-appearance="dark"]) .ticket-mode{background:rgba(255,255,255,0.07)}
.lots{display:grid;grid-template-columns:auto 42px minmax(120px,160px) 42px;align-items:center;gap:8px}
.lots-lab{font-size:12.6px;color:var(--ink-3);margin-right:6px}
.lots-btn{width:42px;height:42px;border-radius:12px;background:#fff;border:1px solid var(--line-2);font-size:20px;color:var(--ink-2);
  display:grid;place-items:center;transition:background var(--t-quick) var(--ease),transform var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .lots-btn{background:#10152A}
.lots-btn:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
:where(html[data-appearance="dark"]) .lots-btn:hover{background:var(--ink-fill)}
.lots-btn:active{transform:scale(.92)}
.lots-in{height:42px;border-radius:12px;border:1px solid var(--line-2);background:#fff;text-align:center;font-size:18px;font-weight:600;
  font-family:'IBM Plex Mono',ui-monospace,monospace;color:var(--ink);width:100%;
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .lots-in{background:#10152A}
.lots-in:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(240,180,41,.25)}
.lots-in::-webkit-inner-spin-button{-webkit-appearance:none}
.lots-quick{display:flex;gap:6px}
.lots-quick .fchip{padding:7px 14px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500}
.ticket-margin{font-size:12.6px;color:var(--ink-3);text-align:center}
.ticket-margin b{color:var(--ink);font-weight:600}
.ticket-acts{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:560px;margin-top:2px}
.tk{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 18px;border-radius:16px;color:#fff;
  box-shadow:0 14px 30px -14px rgba(27,42,92,.5),inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease),filter var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .tk{box-shadow:0 14px 30px -14px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.077)}
.tk span{font-size:12.2px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.tk b{font-size:22px;font-weight:600;font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:-.01em}
.tk:hover{transform:translateY(-2px);filter:brightness(1.05)}
.tk:active{transform:scale(.97)}
.tk-sell{background:linear-gradient(180deg,#E5484D,#C93A3F)}
.tk-buy{background:linear-gradient(180deg,#169A6F,#12805C)}
.ticket-foot{font-size:12px;color:var(--ink-4);text-align:center}

/* the open positions on Positions, and on the Orders tab */
.prow-open .pres{display:inline-flex;align-items:center;gap:10px}
.pclose{font-size:11.6px;font-weight:600;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:#fff;color:var(--ink-2);
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .pclose{background:#10152A}
.pclose:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
:where(html[data-appearance="dark"]) .pclose:hover{background:var(--ink-fill)}
.pfoot{font-size:12.6px;color:var(--ink-3);padding:14px 0 2px}
.pfoot b{font-weight:600}

@media (max-width:760px){
  .cx{padding:16px 14px 14px}
  .cx-last{font-size:28px}
  .cx-ohlc{grid-template-columns:repeat(2,auto);gap:8px 20px;width:100%}
  .cx-main,.cx-sub{grid-template-columns:minmax(0,1fr) 58px}
  .cx-times{margin-right:58px}
  .cx-plot,.cx-axis{height:240px}
  .cx-read .cx-r-ma{display:none}
  .cx-bar-r .cx-toc span{display:none}
  .lots{grid-template-columns:auto 40px minmax(0,1fr) 40px;width:100%}
  .ticket-acts{gap:10px}
  .tk b{font-size:19px}
}

/* ============================================================
   The brand at the head of the expanded rail
   ============================================================ */
/* the pill holds two buttons: the brand, which goes Home, and the chevron
   that collapses the rail. The pill fills on hover over the brand only. */
.rail-brand{display:flex;align-items:center;gap:4px;margin:6px 10px 14px 10px;
  padding:4px 6px 4px 4px;border-radius:18px;transition:background .16s var(--ease)}
.rail-brand:has(.rail-home:hover){background:#EEF1F7}
:where(html[data-appearance="dark"]) .rail-brand:has(.rail-home:hover){background:rgba(255,255,255,0.07)}
.rail-home{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;padding:0;border-radius:14px}
/* on Home the pill goes dark like the active rows: the logo keeps the gold,
   the pill carries the state, and the tile stays white for the mark */
.rail-brand.is-on,.rail-brand.is-on:has(.rail-home:hover){position:relative;background:var(--surface-sunk)}
.rail-brand.is-on::before{content:'';position:absolute;left:-10px;top:12px;bottom:12px;width:4px;border-radius:0 3px 3px 0;background:var(--gold)}
/* on Home the tile goes dark with the pill */
.rail-brand.is-on .rail-tile{background:transparent;box-shadow:none}
.rail-brand.is-on .rail-toggle{color:#98A4BC}
:where(html[data-appearance="dark"]) .rail-brand.is-on .rail-toggle{color:#84A6EB}
.rail-brand.is-on .rail-toggle:hover{background:rgba(255,255,255,.14);color:#fff}
/* the tile is a soft block standing off the panel: lit from the top left,
   a wide shadow falling to the bottom right, the mark sitting in its middle */
.rail-tile{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:none;
  background:linear-gradient(145deg,#FFFFFF 0%,#F2F4F9 100%);
  box-shadow:7px 7px 16px rgba(16,28,58,.15),-4px -4px 10px rgba(255,255,255,1),
             inset 1px 1px 1px rgba(255,255,255,1),inset -1px -1px 1px rgba(16,28,58,.04)}
:where(html[data-appearance="dark"]) .rail-tile{background:linear-gradient(145deg,#10152A 0%,rgba(255,255,255,0.06) 100%);box-shadow:7px 7px 16px rgba(0,0,0,0.41),-4px -4px 10px rgba(255,255,255,0.05),
             inset 1px 1px 1px rgba(255,255,255,0.35),inset -1px -1px 1px rgba(0,0,0,0.08)}
.rail-tile{position:relative}
.rail-tile img{width:26px;height:26px;border-radius:6px;display:block;transition:opacity var(--t-base) var(--ease)}
/* the tile holds the gold mark, on nothing: no plate behind the logo */
.rail-tile{background:transparent;box-shadow:none}
.rail-tile img{width:30px;height:30px;border-radius:0}
.rail-brand-t{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
/* the row's label, set like a menu row's */
.rail-dash{font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
.rail-brand.is-on .rail-dash{color:var(--ink)}
html[data-appearance="dark"] .rail-brand.is-on .rail-dash{color:#fff}
/* the header's wordmark, reused (wordSvg in core.js), held to its own width
   rather than stretched across the column */
.rail-word{height:30px;align-self:flex-start}
.rail.is-open .rail-brand .rail-toggle,.rail .rail-brand .rail-toggle{margin:0;padding:0;width:26px;height:26px;border-radius:50%;
  justify-content:center;color:var(--ink-4);flex:none}
.rail-brand .rail-toggle svg{width:14px;height:14px;transform:rotate(90deg)}
.rail-brand .rail-toggle:hover{background:var(--surface-sunk);color:var(--ink)}

/* ============================================================
   The account menu — the one identity in the app. It hangs from
   the avatar in the top bar and holds what the rail's foot used
   to: who you are, the language, the theme, the way out.
   ============================================================ */
.uwrap{position:relative;flex:none}
.umenu{position:absolute;top:calc(100% + 9px);right:0;z-index:70;width:290px;
  background:#fff;border-radius:16px;padding:6px;
  box-shadow:0 24px 54px -18px rgba(16,28,58,.4),0 0 0 1px rgba(16,28,58,.06);
  transform-origin:top right;opacity:0;transform:translateY(-8px) scale(.97);
  transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease-out)}
:where(html[data-appearance="dark"]) .umenu{background:#10152A;box-shadow:0 24px 54px -18px rgba(0,0,0,0.75),0 0 0 1px rgba(0,0,0,0.194)}
.umenu.is-up{opacity:1;transform:none}
/* the sheet swaps panes with these on a phone */
@keyframes upane-r{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@keyframes upane-l{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
.umenu-head{display:flex;align-items:center;gap:11px;padding:10px 10px 12px;border-bottom:1px solid var(--line);
  margin-bottom:6px}
.umenu-head .rail-mini{width:40px;height:40px;flex:none}
.umenu-head .who{min-width:0}
.umenu-head .who b{display:block;font-size:13.4px;font-weight:600;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.umenu-head .who span{font-size:11.6px;color:var(--ink-4);font-variant-numeric:tabular-nums}
.urow{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:9px 10px;border-radius:10px;
  font-size:14px;color:var(--ink-2);
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
.urow > svg{width:17px;height:17px;flex:none;color:var(--ink-4)}
.urow-l{flex:1;min-width:0}
.urow-v{font-style:normal;font-size:12.6px;color:var(--ink-4);white-space:nowrap;max-width:110px;
  overflow:hidden;text-overflow:ellipsis}
.urow > svg:last-child{width:13px;height:13px;transform:rotate(-90deg);color:#B7C1D4}
:where(html[data-appearance="dark"]) .urow > svg:last-child{color:#7A85A4}
.urow:hover{background:#EEF1F7;color:var(--ink)}
:where(html[data-appearance="dark"]) .urow:hover{background:rgba(255,255,255,0.07)}
.urow:hover > svg{color:var(--ink-3)}
.urow:active{background:#E4E9F2}
:where(html[data-appearance="dark"]) .urow:active{background:rgba(255,255,255,0.1)}
.urow.is-danger{color:var(--down)}
.urow.is-danger > svg{color:var(--down)}
.urow.is-danger:hover{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .urow.is-danger:hover{background:rgba(228,109,88,0.14)}
.urow-back > svg{transform:rotate(90deg);width:15px;height:15px}
.urow-back .urow-l{font-weight:600;color:var(--ink)}
.umenu-rule{height:1px;background:var(--line);margin:6px 10px}
/* the list is as tall as its rows: seven languages, no inner scrollbar.
   The panel itself is capped to the window, and setPop keeps it on screen. */
.ulist{max-height:none;overflow:visible;margin-top:2px}
.umenu .ulist{max-height:270px;overflow-y:auto;scrollbar-width:thin}
.langpop{max-height:calc(100vh - 24px);overflow-y:auto;scrollbar-width:thin}
.uopt{display:flex;align-items:baseline;gap:8px;width:100%;text-align:left;padding:9px 10px;border-radius:99px;
  font-size:14px;color:var(--ink-2);
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
.uopt-n{font-weight:500;flex:none}
.uopt-e{flex:1;min-width:0;font-size:11.8px;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the tick is the row's own child; the flag lives inside .uopt-f and must
   not inherit the tick's hidden state */
.uopt > svg{width:14px;height:14px;stroke-width:2.6;color:var(--gold);opacity:0;flex:none;align-self:center;
  transition:opacity var(--t-quick) var(--ease)}
.uopt:hover,.uopt:focus-visible{background:#EEF1F7;color:var(--ink);outline:0}
:where(html[data-appearance="dark"]) .uopt:hover,:where(html[data-appearance="dark"]) .uopt:focus-visible{background:rgba(255,255,255,0.07)}
.uopt:active{background:#E4E9F2}
:where(html[data-appearance="dark"]) .uopt:active{background:rgba(255,255,255,0.1)}
.uopt.is-on{color:var(--ink);font-weight:600}
.uopt.is-on > svg{opacity:1}
.umenu-note{display:flex;gap:7px;align-items:flex-start;font-size:11.6px;color:var(--ink-4);line-height:1.45;
  padding:10px 10px 6px;margin-top:4px;border-top:1px solid var(--line)}
.umenu-note svg{width:13px;height:13px;flex:none;margin-top:1px}

/* ============================================================
   The header's utilities — notifications, language, appearance,
   as three discs beside the avatar, and the language popover.
   ============================================================ */
.topbar-util{display:flex;align-items:center;gap:9px}
/* the bell in the rail: the same disc as Research and Help */
.rail-bell{margin-top:14px}
.topbar-bell{display:flex}
.grp-btn .dot{position:absolute;top:5px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--down);
  box-shadow:0 0 0 2px var(--ground-mid)}
.langpop{position:fixed;z-index:60;width:252px;background:#fff;border-radius:14px;padding:6px;
  box-shadow:0 24px 54px -18px rgba(16,28,58,.4),0 0 0 1px rgba(16,28,58,.06);
  transform-origin:top right;opacity:0;transform:translateY(-8px) scale(.97);
  transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease-out)}
:where(html[data-appearance="dark"]) .langpop{background:#10152A;box-shadow:0 24px 54px -18px rgba(0,0,0,0.75),0 0 0 1px rgba(0,0,0,0.194)}
.langpop.is-up{opacity:1;transform:none}
.langpop[hidden]{display:none}
.langpop-h{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-4);
  padding:8px 10px 6px}
.round[aria-expanded="true"]{background:var(--ink);color:#fff}
:where(html[data-appearance="dark"]) .round[aria-expanded="true"]{background:var(--ink-fill)}

/* ============================================================
   Adding payment details in place — the same form the Payment
   details page docks open, in a dialog over the glass.
   ============================================================ */
/* the form dialog: a neutral frosted backdrop, no colour behind it */
.glass-wrap.is-plain .glass-scrim{background:rgba(226,231,241,.55);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
:where(html[data-appearance="dark"]) .glass-wrap.is-plain .glass-scrim{background:rgba(255,255,255,0.07)}
.glass-wrap.is-plain .modal{background:#fff;border-color:var(--line);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 34px 70px -30px rgba(12,21,38,.45),0 0 0 1px rgba(16,28,58,.05)}
:where(html[data-appearance="dark"]) .glass-wrap.is-plain .modal{background:#10152A;box-shadow:0 34px 70px -30px rgba(0,0,0,0.75),0 0 0 1px rgba(0,0,0,0.17)}
.modal-form{width:min(430px,100%);text-align:left;padding:26px 26px 22px;
  max-height:calc(100vh - 40px);overflow-y:auto}
.modal-form .addform-head{margin:0 0 4px}
.modal-form .afield{margin-top:14px}
.modal-form .addform-note{margin-top:16px}
.modal-form .addform-acts{margin-top:18px}
.modal-form .addform-acts .btn{flex:1}
@media (max-width:760px){
  .modal-form .modal-x{width:44px;height:44px;top:10px;right:10px}
}
/* a method that has just been filed, waiting for a person to look at it */
.pm.is-new{border-color:var(--gold);box-shadow:0 16px 34px -20px rgba(240,180,41,.7)}
.pm-wait{display:inline-flex;align-items:center;gap:7px;font-size:12.6px;color:var(--ink-4)}
.pm-wait svg{width:14px;height:14px}
.dfield-note{display:flex;align-items:flex-start;gap:7px;font-style:normal;font-size:12.2px;
  color:var(--ink-4);line-height:1.45;margin-top:2px}
.dfield-note svg{width:14px;height:14px;flex:none;margin-top:1px}

/* ---------- the gold wipe ----------
   The motion the plan cards use, on every primary surface: dark at rest,
   and on hover the dark panel slides off to the right so the gold underneath
   is uncovered from the left. The gold, its sheen and its aurora are already
   painted on the element; the panel only hides them. K.goldWipe adds the
   panel at paint time and wraps a button's plain-text label above it. */
.btn-gold .gw,.move-gold .gw,.qrow.is-gold .gw{position:absolute;inset:0;z-index:1;background:var(--ink);
  pointer-events:none;transform:translateX(0);
  transition:transform .5s var(--ease);will-change:transform}
:where(html[data-appearance="dark"]) .btn-gold .gw,:where(html[data-appearance="dark"]) .move-gold .gw,:where(html[data-appearance="dark"]) .qrow.is-gold .gw{background:var(--ink-fill)}
.btn-gold .gw-t{position:relative;z-index:2;display:inline-flex;align-items:center;gap:7px}
.btn-gold:hover .gw,.move-gold:hover .gw,.qrow.is-gold:hover .gw{transform:translateX(101%)}
.btn-gold{color:#fff}
.btn-gold:hover{color:var(--gold-ink);transform:none;box-shadow:none}
.btn-gold:active{transform:scale(.98)}
/* a disabled button keeps the dark plate and never wipes */
.btn-gold[disabled]:hover .gw{transform:translateX(0)}
.btn-gold[disabled]:hover{color:#fff}

/* the Deposit card on Funds: the same, with its own type to flip */
.move-gold > *:not(.gw):not(.glass-gl){position:relative;z-index:2}
.move-gold{border-color:var(--ink)}
.move-gold b{color:#fff}
.move-gold svg,.move-gold span{color:#9AA7C0}
:where(html[data-appearance="dark"]) .move-gold svg,:where(html[data-appearance="dark"]) .move-gold span{color:#84A7EB}
.move-gold:hover{border-color:var(--gold-ink)}
.move-gold:hover b{color:var(--gold-ink)}
.move-gold:hover svg,.move-gold:hover span{color:#4A3906}
:where(html[data-appearance="dark"]) .move-gold:hover svg,:where(html[data-appearance="dark"]) .move-gold:hover span{color:#EBD184}

/* the Deposit row on Home: the same again */
.qrow.is-gold > *:not(.gw):not(.glass-gl){position:relative;z-index:2}
.qrow.is-gold .qa-i{background:rgba(255,255,255,.14);color:#fff}
.qrow.is-gold b{color:#fff}
.qrow.is-gold .qrow-t span,.qrow.is-gold .qrow-c{color:#9AA7C0}
:where(html[data-appearance="dark"]) .qrow.is-gold .qrow-t span,:where(html[data-appearance="dark"]) .qrow.is-gold .qrow-c{color:#84A7EB}
.qrow.is-gold:hover .qa-i{background:rgba(35,26,2,.14);color:var(--gold-ink)}
:where(html[data-appearance="dark"]) .qrow.is-gold:hover .qa-i{background:rgba(255,255,255,0.12)}
.qrow.is-gold:hover b{color:var(--gold-ink)}
.qrow.is-gold:hover .qrow-t span,.qrow.is-gold:hover .qrow-c{color:#4A3906}
:where(html[data-appearance="dark"]) .qrow.is-gold:hover .qrow-t span,:where(html[data-appearance="dark"]) .qrow.is-gold:hover .qrow-c{color:#EBD184}

/* the flag beside each language: the wrapper is the round crop */
.uopt-f{width:22px;height:22px;flex:none;display:block;align-self:center;border-radius:50%;
  overflow:hidden;box-shadow:inset 0 0 0 1px rgba(16,28,58,.18)}
:where(html[data-appearance="dark"]) .uopt-f{box-shadow:inset 0 0 0 1px rgba(0,0,0,0.36)}
.uopt-f .ai{width:100%;height:100%;display:block}
/* the same pill the rail's rows wear */
.uopt{align-items:center;border-radius:99px;padding:9px 12px}
.langpop .ulist,.umenu .ulist{padding:0 2px}


/* ============================================================
   Type in the other six languages — Latin tracking and Latin
   leading do not suit Thai or CJK, so they are relaxed.
   ============================================================ */
html[lang="th"] body{line-height:1.62}
html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3{line-height:1.4}
html:not([lang="en"]) h1,html:not([lang="en"]) h2,html:not([lang="en"]) h3,
html:not([lang="en"]) .hbar-eq b,html:not([lang="en"]) .cx-last,
html:not([lang="en"]) .plan-name b,html:not([lang="en"]) .pagehead h1{letter-spacing:normal}
html[lang^="zh"] body,html[lang="ja"] body,html[lang="ko"] body{line-height:1.55}
html[lang^="zh"] .lbl,html[lang="ja"] .lbl,html[lang="ko"] .lbl,
html[lang="th"] .lbl{letter-spacing:normal}
/* a kicker set in small capitals is a Latin idea; the others keep their case */
html:not([lang="en"]) .plan-kick,html:not([lang="en"]) .sheet-grp,
html:not([lang="en"]) .rail-grp,html:not([lang="en"]) .mkt-kick,
html:not([lang="en"]) .langpop-h,
html:not([lang="en"]) .cx-ohlc dt{text-transform:none;letter-spacing:.02em}

/* ============================================================
   The appearance switch — a recessed track with a raised knob
   that slides between the sun and the moon and carries the icon
   of the side it has landed on.
   ============================================================ */
.tsw{--tsw-x:30px;--tsw-k:26px;position:relative;width:62px;height:32px;border-radius:99px;flex:none;padding:0;
  background:#E4E9F2;
  box-shadow:inset 2px 2px 5px rgba(16,28,58,.20),inset -2px -2px 5px rgba(255,255,255,.9),
             0 1px 0 rgba(255,255,255,.75);
  transition:background var(--t-base) var(--ease),box-shadow var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .tsw{background:rgba(255,255,255,0.07);box-shadow:inset 2px 2px 5px rgba(0,0,0,0.4),inset -2px -2px 5px rgba(255,255,255,0.315),
             0 1px 0 rgba(255,255,255,0.038)}
.tsw:focus-visible{outline:0;box-shadow:inset 2px 2px 5px rgba(16,28,58,.20),
  inset -2px -2px 5px rgba(255,255,255,.9),0 0 0 3px rgba(240,180,41,.35)}
:where(html[data-appearance="dark"]) .tsw:focus-visible{box-shadow:inset 2px 2px 5px rgba(0,0,0,0.4),
  inset -2px -2px 5px rgba(255,255,255,0.315),0 0 0 3px rgba(240,180,41,.35)}
/* the dark state's own shadow would otherwise replace the ring */
.tsw.is-dark:focus-visible{box-shadow:inset 2px 2px 6px rgba(0,0,0,.7),inset -1px -1px 3px rgba(255,255,255,.08),
  0 0 0 3px rgba(240,180,41,.45)}
:where(html[data-appearance="dark"]) .tsw.is-dark:focus-visible{box-shadow:inset 2px 2px 6px rgba(0,0,0,0.6),inset -1px -1px 3px rgba(255,255,255,0.028),
  0 0 0 3px rgba(240,180,41,.45)}
/* the two icons printed on the track; the knob covers whichever is active */
.tsw-ghost{position:absolute;top:50%;width:15px;height:15px;margin-top:-7.5px;
  display:grid;place-items:center;color:rgba(16,28,58,.34);
  transition:color var(--t-base) var(--ease),opacity var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .tsw-ghost{color:rgba(132,162,235,0.34)}
.tsw-ghost svg{width:15px;height:15px}
.tsw-a{left:7px}
.tsw-b{right:7px}
/* the knob is a little sky: gold by day, with the sun on it. Night is a
   layer that rises over it from below and carries the moon up as it covers
   the sun; going back it sinks, and the sun is simply there again. The two
   never blend — at any moment the knob is day or night, split by the edge
   that moves — and the knob clips it all behind its rim. */
.tsw-k{position:absolute;top:3px;left:3px;width:var(--tsw-k);height:var(--tsw-k);border-radius:50%;
  display:grid;place-items:center;overflow:hidden;isolation:isolate;
  background:linear-gradient(160deg,#FFD34D 0%,#FFB800 55%,#F0A400 100%);
  box-shadow:0 4px 8px -2px rgba(190,130,0,.55),0 1px 0 rgba(255,255,255,.6) inset,
             0 -2px 4px rgba(120,80,0,.35) inset;
  transition:transform 420ms cubic-bezier(.34,1.28,.42,1),box-shadow var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .tsw-k{box-shadow:0 4px 8px -2px rgba(190,130,0,.55),0 1px 0 rgba(255,255,255,0.21) inset,
             0 -2px 4px rgba(120,80,0,.35) inset}
.tsw-k::before{content:'';position:absolute;inset:0;border-radius:inherit;z-index:2;
  background:linear-gradient(160deg,#5A6274 0%,#3A4153 55%,#252B3A 100%);
  transform:translateY(102%);transition:transform 520ms cubic-bezier(.45,.05,.2,1) 90ms}
:where(html[data-appearance="dark"]) .tsw-k::before{background:linear-gradient(160deg,rgba(255,255,255,0.12) 0%,#3A4153 55%,#252B3A 100%)}
.tsw-k i{grid-area:1/1;display:grid;place-items:center;color:#fff;position:relative;
  transition:transform 520ms cubic-bezier(.45,.05,.2,1) 90ms}
.tsw-k svg{width:15px;height:15px;stroke-width:1.9}
/* the sun stays where it is and is covered; the moon waits below the rim,
   on the night, and rides up with it */
.tsw-on{z-index:1}
.tsw-off{z-index:3;transform:translateY(var(--tsw-k))}
.tsw:hover .tsw-k{filter:brightness(1.05)}
.tsw:active .tsw-k{transform:scale(.94)}

/* the dark side */
.tsw.is-dark{background:var(--ink);
  box-shadow:inset 2px 2px 6px rgba(0,0,0,.7),inset -1px -1px 3px rgba(255,255,255,.08),
             0 1px 0 rgba(255,255,255,.6)}
:where(html[data-appearance="dark"]) .tsw.is-dark{background:var(--ink-fill);box-shadow:inset 2px 2px 6px rgba(0,0,0,0.6),inset -1px -1px 3px rgba(255,255,255,0.028),
             0 1px 0 rgba(255,255,255,0.03)}
.tsw.is-dark .tsw-ghost{color:rgba(255,255,255,.32)}
.tsw.is-dark .tsw-k{transform:translateX(var(--tsw-x));
  box-shadow:0 4px 9px -2px rgba(0,0,0,.7),0 1px 0 rgba(255,255,255,.22) inset,
             0 -2px 4px rgba(0,0,0,.5) inset}
:where(html[data-appearance="dark"]) .tsw.is-dark .tsw-k{box-shadow:0 4px 9px -2px rgba(0,0,0,0.75),0 1px 0 rgba(255,255,255,0.077) inset,
             0 -2px 4px rgba(0,0,0,0.6) inset}
.tsw.is-dark .tsw-k::before{transform:none}
.tsw.is-dark .tsw-off{transform:none}
.tsw.is-dark:active .tsw-k{transform:translateX(var(--tsw-x)) scale(.94)}
.tsw.is-dark .tsw-a{opacity:.75}
.tsw:not(.is-dark) .tsw-b{opacity:.9}

/* pressed, the knob travels (core.js syncSwitches adds go-dark or go-light):
   it leans into the move, overshoots a touch, settles, and lands in a soft
   burst of its new light — a glow that spreads and goes, never a drawn ring.
   While that runs the transform is the animation's alone. The classes come
   off when the burst ends (core.js), so nothing is cut short. */
.tsw:is(.go-dark,.go-light) .tsw-k{transition:box-shadow var(--t-base) var(--ease)}
/* the travel is unhurried and even — no stretch, no overshoot — the way a
   control moves on a serious product; the burst that follows is a slow,
   faint bloom of the new light */
.tsw.go-dark .tsw-k{animation:tsw-go-dark 700ms cubic-bezier(.45,.05,.2,1) both}
.tsw.go-light .tsw-k{animation:tsw-go-light 700ms cubic-bezier(.45,.05,.2,1) both}
@keyframes tsw-go-dark{from{transform:translateX(0)}to{transform:translateX(var(--tsw-x))}}
@keyframes tsw-go-light{from{transform:translateX(var(--tsw-x))}to{transform:translateX(0)}}
.tsw::after{content:'';position:absolute;top:3px;left:3px;width:var(--tsw-k);height:var(--tsw-k);border-radius:50%;
  pointer-events:none;opacity:0}
.tsw.go-dark::after{--tsw-at:var(--tsw-x);--tsw-glow:150,190,255;
  animation:tsw-burst 900ms cubic-bezier(.4,0,.2,1) 500ms both}
.tsw.go-light::after{--tsw-at:0px;--tsw-glow:255,196,40;
  animation:tsw-burst 900ms cubic-bezier(.4,0,.2,1) 500ms both}
@keyframes tsw-burst{
  0%  {opacity:0;transform:translateX(var(--tsw-at));box-shadow:0 0 0 0 rgba(var(--tsw-glow),0)}
  25% {opacity:1;transform:translateX(var(--tsw-at));box-shadow:0 0 6px 1px rgba(var(--tsw-glow),.35)}
  100%{opacity:0;transform:translateX(var(--tsw-at));box-shadow:0 0 16px 10px rgba(var(--tsw-glow),0)}}

/* the row in the phone sheet holds a smaller one */
.tsw.is-sm{--tsw-x:24px;--tsw-k:22px;width:52px;height:28px;margin-left:auto}
.tsw.is-sm .tsw-k svg,.tsw.is-sm .tsw-ghost svg{width:13px;height:13px}
.sheet-theme{cursor:default}

/* a field the save was refused on: marked where the eye already is */
.afield-bad{display:none;color:var(--down)}
.afield.is-bad input{border-color:var(--down);box-shadow:0 0 0 3px rgba(214,69,58,.14)}
.afield.is-bad .afield-hint{display:none}
.afield.is-bad .afield-bad{display:block}

/* ============================================================
   "Where you stand" on a dark ground — the two bars are the
   point of the panel, so everything around them steps back and
   the light in the fills does the talking.
   ============================================================ */
.sts{background:linear-gradient(150deg,#16223F 0%,var(--ink) 55%,#0A1120 100%);
  box-shadow:0 20px 44px -24px rgba(12,21,38,.65),inset 0 1px 0 rgba(255,255,255,.07)}
:where(html[data-appearance="dark"]) .sts{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 55%,#0A1120 100%);box-shadow:0 20px 44px -24px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.025)}
.sts .st + .st{border-left-color:rgba(255,255,255,.10)}
:where(html[data-appearance="dark"]) .sts .st + .st{border-left-color:rgba(255,255,255,0.05)}
.sts .st-kick{color:#8D9AB5}
:where(html[data-appearance="dark"]) .sts .st-kick{color:#84A6EB}
.sts .st-name{color:#fff}
.sts .st-name svg{color:#3BD79B}
:where(html[data-appearance="dark"]) .sts .st-name svg{color:#84EBC3}
.sts .st-body{color:#A8B3C9}
:where(html[data-appearance="dark"]) .sts .st-body{color:#7A85A4}
.sts .st-note{color:#8D9AB5}
:where(html[data-appearance="dark"]) .sts .st-note{color:#84A6EB}
.sts .st-cta{color:#fff}
.sts .st-cta:hover{color:var(--gold)}
/* the track is already ink; on a dark card it needs its own edge to read */
.sts .st-bar{background:rgba(0,0,0,.45);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.75),inset 0 -1px 0 rgba(255,255,255,.06),
             0 1px 0 rgba(255,255,255,.06)}
:where(html[data-appearance="dark"]) .sts .st-bar{background:rgba(255,255,255,0.12);box-shadow:inset 0 2px 5px rgba(0,0,0,0.6),inset 0 -1px 0 rgba(255,255,255,0.021),
             0 1px 0 rgba(255,255,255,0.003)}
/* the pills sit on dark now: tinted glass rather than pale paper */
.sts .st-pill{background:rgba(240,180,41,.16);border-color:rgba(240,180,41,.7);color:#FFD879}
.sts .st-ok .st-pill{background:rgba(24,190,130,.16);border-color:rgba(24,190,130,.75);color:#6FE3B4}

/* ============================================================
   The travelling pill — the Trading/Partner switch and the
   Balance/Equity switch borrow the phone bar's motion: the lit
   pill slides to what you picked, stretches on the way, settles
   without overshoot, and leaves a blurred trail a beat behind.
   ============================================================ */
.mode,.metsw{position:relative}
.segind,.segtrail{position:absolute;top:3px;left:0;z-index:0;border-radius:99px;pointer-events:none;
  transition:transform 620ms cubic-bezier(.32,.78,.22,1),width 620ms cubic-bezier(.32,.78,.22,1)}
.metsw .segind,.metsw .segtrail{top:3px}
.segind > i{position:absolute;inset:0;border-radius:99px;transform-origin:50% 50%;
  background:#fff;box-shadow:0 1px 3px rgba(16,28,58,.14)}
:where(html[data-appearance="dark"]) .segind > i{background:#10152A;box-shadow:0 1px 3px rgba(0,0,0,0.386)}
.segind.is-swim > i,.segind > i.is-swim{animation:swim 620ms cubic-bezier(.4,0,.2,1) both}
.segtrail{background:#fff;opacity:0;filter:blur(7px);
  transition:transform 620ms cubic-bezier(.32,.78,.22,1) 55ms,
             width 620ms cubic-bezier(.32,.78,.22,1) 55ms,
             opacity 260ms var(--ease) 200ms}
:where(html[data-appearance="dark"]) .segtrail{background:#10152A}
.segtrail.is-swim{opacity:.7;
  transition:transform 620ms cubic-bezier(.32,.78,.22,1) 55ms,
             width 620ms cubic-bezier(.32,.78,.22,1) 55ms,
             opacity 110ms var(--ease)}
/* the buttons sit above the pill, and stop painting their own background */
.mode-btn,.met{position:relative;z-index:1}
.mode.has-seg .mode-btn.is-on,.metsw.has-seg .met.is-on{background:none;box-shadow:none}
@keyframes swim{
  0%  {transform:scale(1,1)}
  36% {transform:scale(var(--sx,1.1),var(--sy,.94))}
  72% {transform:scale(calc(1 + (var(--sx,1.1) - 1) * .22),calc(1 + (var(--sy,.94) - 1) * .22))}
  100%{transform:scale(1,1)}
}

/* ============================================================
   The total, with a mark beside it — three plates that keep
   settling into a stack, one after another, so the figure reads
   as the money on every account coming together.
   ============================================================ */
.total{display:flex;align-items:center;gap:18px}
.total-t{min-width:0}
.total-i{width:60px;height:60px;flex:none;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%);
  box-shadow:0 12px 24px -12px rgba(12,21,38,.6),inset 0 1px 0 rgba(255,255,255,.1)}
:where(html[data-appearance="dark"]) .total-i{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%);box-shadow:0 12px 24px -12px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.035)}
.total-i svg{width:38px;height:38px;overflow:visible}
.total-i .tl{fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linejoin:round;
  transform-box:fill-box;transform-origin:50% 50%}
.total-i .tl1{stroke:#FFDE8A;animation:plate 3.6s var(--ease) infinite}
.total-i .tl2{opacity:.72;animation:plate 3.6s var(--ease) infinite .28s}
.total-i .tl3{opacity:.45;animation:plate 3.6s var(--ease) infinite .56s}
@keyframes plate{
  0%,64%,100%{transform:translateY(0)}
  20%{transform:translateY(-2.4px)}
  44%{transform:translateY(.6px)}
}
@media (max-width:760px){
  .total{gap:14px}
  .total-i{width:52px;height:52px;border-radius:15px}
  .total-i svg{width:32px;height:32px}
}

/* ---------- the light that runs along a filled bar ----------
   A soft band travels the length of the fill, waits, and comes round again.
   It is clipped to the fill, so it never spills into the empty track. */
.st-bar > span{overflow:hidden}
.st-bar > span::before{content:'';position:absolute;inset:0;border-radius:99px;pointer-events:none;
  background:linear-gradient(100deg,
    rgba(255,255,255,0) 38%,rgba(255,255,255,.62) 50%,rgba(255,255,255,0) 62%);
  background-size:260% 100%;background-repeat:no-repeat;
  animation:barsheen 4.2s cubic-bezier(.42,0,.58,1) infinite}
:where(html[data-appearance="dark"]) .st-bar > span::before{background:linear-gradient(100deg,
    rgba(255,255,255,0) 38%,rgba(255,255,255,0.136) 50%,rgba(255,255,255,0) 62%)}
.st-ok .st-bar > span::before{background-image:linear-gradient(100deg,
    rgba(255,255,255,0) 38%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 62%)}
:where(html[data-appearance="dark"]) .st-ok .st-bar > span::before{background-image:linear-gradient(100deg,
    rgba(255,255,255,0) 38%,rgba(255,255,255,0.11) 50%,rgba(255,255,255,0) 62%)}
.st-ok .st-bar > span::before{animation-delay:1.1s}
@keyframes barsheen{
  0%       {background-position:-60% 0}
  48%,100% {background-position:160% 0}
}
/* the cap at the leading edge breathes with it */
.st-bar > span::after{animation:capglow 4.2s cubic-bezier(.42,0,.58,1) infinite}
.st-ok .st-bar > span::after{animation-delay:1.1s}
@keyframes capglow{
  0%,34%,100%{box-shadow:0 0 5px rgba(255,255,255,.7)}
  44%{box-shadow:0 0 11px rgba(255,255,255,.95)}
}

/* Partner mode: the pill lands as the dark blue block, with the word on it
   in gold — the brand's two colours the other way round from Trading */
.mode.is-gold .segind > i{background-image:linear-gradient(160deg,#1B2A5C 0%,var(--ink) 60%,#080E1C 100%);
  box-shadow:0 4px 12px -4px rgba(12,21,38,.7),inset 0 1px 0 rgba(255,255,255,.18),
             inset 0 -1px 0 rgba(0,0,0,.45)}
:where(html[data-appearance="dark"]) .mode.is-gold .segind > i{background-image:linear-gradient(160deg,#1B2A5C 0%,var(--ink-fill) 60%,#080E1C 100%);box-shadow:0 4px 12px -4px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.063),
             inset 0 -1px 0 rgba(0,0,0,0.6)}
.mode.is-gold .segtrail{background:var(--ink);opacity:0}
:where(html[data-appearance="dark"]) .mode.is-gold .segtrail{background:var(--ink-fill)}
.mode.is-gold .segtrail.is-swim{opacity:.45}
.mode.is-gold .mode-btn.is-on{color:var(--gold);font-weight:600;
  animation:goldtext 3.2s var(--ease) infinite}
@keyframes goldtext{
  0%,100%{text-shadow:0 0 7px rgba(255,194,32,.5),0 0 17px rgba(255,194,32,.22)}
  50%    {text-shadow:0 0 12px rgba(255,194,32,.8),0 0 28px rgba(255,194,32,.42)}
}

/* ============================================================
   Open another account — two ways in, each with a mark and a
   line under it. The live one carries the weight: a dark plate
   with a gold mark that lights as the pointer crosses it.
   ============================================================ */
.opener{position:relative;overflow:hidden}
.opens{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.open-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 14px;
  border-radius:15px;background:#fff;border:1px solid var(--line-2);
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-base) var(--ease),
             background var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .open-row{background:#10152A}
.open-i{width:40px;height:40px;flex:none;border-radius:13px;display:grid;place-items:center;
  background:var(--surface-sunk);color:var(--ink-2);
  transition:background var(--t-base) var(--ease),color var(--t-base) var(--ease)}
.open-i svg{width:19px;height:19px}
.open-t{flex:1;min-width:0}
.open-t b{display:block;font-size:14.4px;font-weight:600;letter-spacing:-.012em}
.open-t span{display:block;font-size:12.2px;color:var(--ink-4);margin-top:2px}
.open-c{color:#B7C1D4;display:flex;transition:transform var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .open-c{color:#7A85A4}
.open-c svg{width:15px;height:15px;transform:rotate(-90deg)}
.open-row:hover{border-color:#C9D3E4;box-shadow:0 8px 18px -12px rgba(16,28,58,.4)}
:where(html[data-appearance="dark"]) .open-row:hover{border-color:rgba(255,255,255,0.18);box-shadow:0 8px 18px -12px rgba(0,0,0,0.75)}
.open-row:hover .open-c{transform:translateX(3px)}
.open-row:active{background:#F4F6FB}
:where(html[data-appearance="dark"]) .open-row:active{background:rgba(255,255,255,0.09)}

/* the live one: the dark plate, with the mark in gold */
.open-row.is-live{background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%);
  border-color:transparent;box-shadow:0 12px 26px -16px rgba(12,21,38,.7)}
:where(html[data-appearance="dark"]) .open-row.is-live{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%);box-shadow:0 12px 26px -16px rgba(0,0,0,0.75)}
.open-row.is-live .open-t b{color:#fff}
.open-row.is-live .open-t span{color:#93A0B9}
:where(html[data-appearance="dark"]) .open-row.is-live .open-t span{color:#84A7EB}
.open-row.is-live .open-c{color:#6E7B96}
:where(html[data-appearance="dark"]) .open-row.is-live .open-c{color:#84A6EB}
.open-row.is-live .open-i{background:rgba(240,180,41,.14);color:var(--gold);
  box-shadow:inset 0 0 0 1px rgba(240,180,41,.3)}
.open-row.is-live:hover{box-shadow:0 16px 32px -16px rgba(12,21,38,.8)}
:where(html[data-appearance="dark"]) .open-row.is-live:hover{box-shadow:0 16px 32px -16px rgba(0,0,0,0.75)}
.open-row.is-live:hover .open-i{background:var(--gold);color:var(--gold-ink);
  box-shadow:0 0 14px rgba(240,180,41,.55)}
.open-row.is-live:active{background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%)}
:where(html[data-appearance="dark"]) .open-row.is-live:active{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%)}
/* the mark keeps a slow breath, so the card has a pulse of its own */
.open-row.is-live .open-i svg{animation:openpulse 3.8s var(--ease) infinite}
@keyframes openpulse{
  0%,100%{transform:none;opacity:.92}
  50%    {transform:translateY(-1.5px);opacity:1}
}
@media (max-width:760px){
  .open-row{padding:12px}
  .open-i{width:38px;height:38px;border-radius:12px}
}

/* ---------- the two switches wear the appearance switch's depth ----------
   A track cut into the surface, and a knob standing out of it: the same
   inner shadow and the same drop shadow the sun/moon switch uses. */
.mode{background:#E4E9F2;
  box-shadow:inset 2px 2px 5px rgba(16,28,58,.20),inset -2px -2px 5px rgba(255,255,255,.9),
             0 1px 0 rgba(255,255,255,.75)}
:where(html[data-appearance="dark"]) .mode{background:rgba(255,255,255,0.07);box-shadow:inset 2px 2px 5px rgba(0,0,0,0.4),inset -2px -2px 5px rgba(255,255,255,0.315),
             0 1px 0 rgba(255,255,255,0.038)}
.metsw{background:#E4E9F2;
  box-shadow:inset 1.5px 1.5px 4px rgba(16,28,58,.18),inset -1.5px -1.5px 4px rgba(255,255,255,.9),
             0 1px 0 rgba(255,255,255,.7)}
:where(html[data-appearance="dark"]) .metsw{background:rgba(255,255,255,0.07);box-shadow:inset 1.5px 1.5px 4px rgba(0,0,0,0.36),inset -1.5px -1.5px 4px rgba(255,255,255,0.315),
             0 1px 0 rgba(255,255,255,0.035)}
.segind > i{background:linear-gradient(160deg,#FFFFFF 0%,#F4F6FB 100%);
  box-shadow:0 4px 8px -2px rgba(16,28,58,.28),inset 0 1px 0 rgba(255,255,255,1),
             inset 0 -2px 4px rgba(16,28,58,.10)}
:where(html[data-appearance="dark"]) .segind > i{background:linear-gradient(160deg,#10152A 0%,rgba(255,255,255,0.06) 100%);box-shadow:0 4px 8px -2px rgba(0,0,0,0.722),inset 0 1px 0 rgba(255,255,255,0.35),
             inset 0 -2px 4px rgba(0,0,0,0.2)}
.metsw .segind > i{box-shadow:0 3px 6px -2px rgba(16,28,58,.26),inset 0 1px 0 rgba(255,255,255,1),
             inset 0 -1.5px 3px rgba(16,28,58,.09)}
:where(html[data-appearance="dark"]) .metsw .segind > i{box-shadow:0 3px 6px -2px rgba(0,0,0,0.674),inset 0 1px 0 rgba(255,255,255,0.35),
             inset 0 -1.5px 3px rgba(0,0,0,0.18)}
/* Partner keeps its dark block, now with the same standing-out shadow */
.mode.is-gold .segind > i{
  box-shadow:0 5px 10px -3px rgba(12,21,38,.55),inset 0 1px 0 rgba(255,255,255,.2),
             inset 0 -2px 4px rgba(0,0,0,.45)}
:where(html[data-appearance="dark"]) .mode.is-gold .segind > i{box-shadow:0 5px 10px -3px rgba(0,0,0,0.75),inset 0 1px 0 rgba(255,255,255,0.07),
             inset 0 -2px 4px rgba(0,0,0,0.6)}

/* ============================================================
   Profile — the account's own page. Rows that state a fact, rows
   that go somewhere, and two that are dangerous. Preferences are
   not here on purpose: language and appearance live in the header.
   ============================================================ */
.tag-ok{background:#E7F6F0;color:var(--up)}
:where(html[data-appearance="dark"]) .tag-ok{background:rgba(88,228,172,0.14)}

/* the identity block */
.pme{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.pme-av{width:64px;height:64px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-size:20px;font-weight:600;letter-spacing:.02em;color:#fff;
  background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%);
  box-shadow:0 10px 22px -12px rgba(12,21,38,.8)}
:where(html[data-appearance="dark"]) .pme-av{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%);box-shadow:0 10px 22px -12px rgba(0,0,0,0.75)}
.pme-t{min-width:0}
.pme-t h2{display:flex;align-items:center;gap:8px;font-size:22px;letter-spacing:-.024em}
.pme-t h2 svg{width:17px;height:17px;color:var(--up);flex:none}
.pme-t p{font-size:13.6px;color:var(--ink-3);margin-top:3px}
.pme-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}

/* a panel that is nothing but rows */
.panel-rows{padding:4px 22px}
.prow{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px 0;border-bottom:1px solid var(--line)}
.prow:last-child{border-bottom:0}
.prow dt{font-size:13.4px;color:var(--ink-3);flex:none}
/* not a flex row: a long name — and the Thai one is longer — has to wrap, and
   an anonymous flex item cannot be given min-width:0 to let it */
.prow dd{margin:0;font-size:14.2px;font-weight:500;line-height:1.45;
  text-align:right;min-width:0;overflow-wrap:anywhere}
.prow dd > *{vertical-align:middle}
.pok{color:var(--up);font-weight:600}

/* a masked value and the eye that shows it */
.pv{font-variant-numeric:tabular-nums}
.peye,.pcopy{width:30px;height:30px;margin:-6px -6px -6px 4px;border-radius:8px;display:inline-grid;
  place-items:center;color:var(--ink-4);flex:none;vertical-align:middle;
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
.peye svg,.pcopy svg{width:16px;height:16px}
.peye:hover,.pcopy:hover{background:var(--surface-sunk);color:var(--ink)}
.peye.is-on{color:var(--ink)}

/* rows that go somewhere */
.plinks{display:flex;flex-direction:column;gap:8px}
.plink{display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  background:var(--surface);border-radius:14px;padding:13px 16px;box-shadow:var(--lift-card);
  transition:background var(--t-quick) var(--ease),transform var(--t-quick) var(--ease)}
.plink:hover{background:#FBFCFE;transform:translateY(-1px)}
:where(html[data-appearance="dark"]) .plink:hover{background:rgba(255,255,255,0.05)}
.plink-i{width:34px;height:34px;border-radius:10px;background:var(--surface-sunk);display:grid;
  place-items:center;color:var(--ink-2);flex:none}
.plink-i svg{width:17px;height:17px}
.plink-t{flex:1;min-width:0}
.plink-t b{display:block;font-size:14.4px;font-weight:600;letter-spacing:-.012em}
.plink-t span{display:block;font-size:12.4px;color:var(--ink-3);line-height:1.45;margin-top:2px}
.plink-r{font-size:13.2px;color:var(--ink-3);flex:none}
.plink > svg:last-child{width:15px;height:15px;color:var(--ink-4);flex:none;transform:rotate(-90deg)}
.plink.is-risk .plink-i{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .plink.is-risk .plink-i{background:rgba(228,109,88,0.14)}
.plink.is-danger .plink-t b{color:var(--down)}
.plink.is-danger .plink-i{background:#FBEAE7;color:var(--down)}
:where(html[data-appearance="dark"]) .plink.is-danger .plink-i{background:rgba(228,109,88,0.14)}

.pcan{display:flex;flex-wrap:wrap;gap:7px}
.pcan .tag{font-size:12px;padding:5px 11px;border-radius:99px}
.plogout{margin-top:18px;border-radius:99px;min-height:46px;color:var(--down);font-weight:600}
.plogout:hover{border-color:var(--down);color:var(--down)}

/* Profile's two columns are flex with a gap, so a section heading's own
   margins are added to that gap rather than collapsing into it: the rhythm
   came out at 30/44 on the left and 26/40 on the right, and the two columns
   drifted out of step as the page went down. Here the gap owns the spacing
   between a heading and its block, and the heading only adds the extra air
   that separates one section from the last. */
body[data-page="Profile"] .col-main,
body[data-page="Profile"] .col-side{gap:12px}
body[data-page="Profile"] .sec-head{margin:14px 0 0}
body[data-page="Profile"] .col-main > .sec-head:first-child,
body[data-page="Profile"] .col-side > .sec-head:first-child{margin-top:0}
/* the note belongs to the links above it, and the way out stands apart */
body[data-page="Profile"] .col-side > .note{margin-top:0}
body[data-page="Profile"] .plogout{margin-top:12px}
/* stacked on a phone, the seam between the two columns is a section break like
   any other — the grid's own 18px row gap read tighter than the 26 beside it */
body[data-page="Profile"] .grid{row-gap:26px}


/* the background video of the dark appearance: fixed behind everything and out
   of the flow, so it moves nothing. Hidden unless dark shows it (dark.css) */
.bgv{display:none;position:fixed;inset:0;width:100%;height:100%;object-fit:cover;
  z-index:-1;pointer-events:none;background:transparent}
/* light shows the ribbon: a glass ribbon turning on a lavender ground, laid over
   the painted ground at a little over half strength, so the page keeps its own
   blue-grey and the ribbon moves through it. Dark raises it (dark.css) */
/* --bgv-fade (core.js) takes the clip out at its end and in at its start */
html.has-bgv .bgv{display:block;opacity:calc(.55 * var(--bgv-fade,1))}
/* the shade over the clip: after the video in the document, so it paints
   above it in the same layer, and under everything else. Dark shows it. */
.bgv-shade{display:none;position:fixed;inset:0;z-index:-1;pointer-events:none}
/* dark's ground: a field of dots on a canvas (dot-matrix/animation.js), in the
   clip's place — fixed behind everything, shown while html carries has-field
   (core.js). It paints its own ground, so nothing shows through it. */
.bgfield{display:none;position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
html.has-field .bgfield{display:block}
