/* 911RRARI v149: iOS 27 "refined Liquid Glass" layer. Controls (tab bar, top bars, pills, segmented controls, sheets) are glass:
   diffused translucency, a darker outer edge, a brighter specular highlight on the top rim. Content stays on solid grouped cards.
   Respects Reduce Transparency and Increase Contrast. */
:root{--g-bg:rgba(44,44,46,.52);--g-bg2:rgba(60,60,63,.62);--g-blur:blur(28px) saturate(190%);--g-edge:0 0 0 .5px rgba(0,0,0,.6);--g-rim:inset 0 .5px 0 rgba(255,255,255,.34),inset 0 0 0 .5px rgba(255,255,255,.1);--g-shadow:0 10px 30px rgba(0,0,0,.45);--ios-blue:#0a84ff;}

.glass,.tabbar,.mspanel,.fu-bar,.chartbar,.hdr,.top,.pf-seg,.pc-seg,.tseg,.ttabs{-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);}


/* floating capsule tab bar */
@media(max-width:899px){
  :root{--tabh:calc(78px + env(safe-area-inset-bottom,0px))}
  .tabbar{left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;height:62px!important;padding:5px!important;border-radius:34px!important;background:var(--g-bg)!important;border:0!important;box-shadow:var(--g-edge),var(--g-rim),var(--g-shadow)!important;box-sizing:border-box}
  .tabbar button{border-radius:28px;font-size:10.5px;gap:2px}
  .tabbar button.on{color:var(--ios-blue)!important;background:rgba(255,255,255,.14);box-shadow:inset 0 .5px 0 rgba(255,255,255,.3)}
  .chartbox,.ahbox,.fu-sheet{padding-bottom:var(--tabh)!important}
}
/* sheets and menus */
.mspanel{background:var(--g-bg2)!important;border-radius:30px!important;box-shadow:var(--g-edge),var(--g-rim),0 24px 60px rgba(0,0,0,.6)!important;}

.mspanel button{background:rgba(255,255,255,.08)!important;box-shadow:inset 0 .5px 0 rgba(255,255,255,.18);}

.mscrim{background:rgba(0,0,0,.42)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}


/* top bars: glass with a soft scroll edge */
.fu-bar,.chartbar{background:linear-gradient(180deg,rgba(0,0,0,.78),rgba(0,0,0,.5))!important;border-bottom:0!important;box-shadow:0 .5px 0 rgba(255,255,255,.08);}

.fu-bar .nx,.chartbar .nx,#trClose.nx,#pcClose,#perClose{background:var(--g-bg)!important;border:0!important;box-shadow:var(--g-edge),var(--g-rim)!important;color:#fff!important;-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);}


/* pills and chips are glass buttons */
.chip,.key,.btn:not(.tgo):not(.primary):not(.dpri),.tcalc,.pf-nav,.pc-zoom button{background:var(--g-bg)!important;border:0!important;box-shadow:var(--g-edge),var(--g-rim)!important;-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);color:#f5f5f7;}

.chip[aria-pressed="true"],.chip.on,.key[aria-pressed="true"],#jBox .chip[aria-pressed="true"]{background:rgba(245,245,247,.92)!important;color:#000!important;box-shadow:var(--g-edge),inset 0 .5px 0 #fff!important;}

.tcalc{color:var(--ios-blue)!important;}

button.primary,.btn.primary,.btn.dpri,.tgo.dpri:not(.buy):not(.sell){background:linear-gradient(180deg,#2f95ff,#0a84ff)!important;color:#fff!important;border:0!important;box-shadow:inset 0 .5px 0 rgba(255,255,255,.45),0 6px 18px rgba(10,132,255,.35)!important;}

.tgo.buy{box-shadow:inset 0 .5px 0 rgba(255,255,255,.4),0 6px 18px rgba(48,209,88,.3);}
.tgo.sell{box-shadow:inset 0 .5px 0 rgba(255,255,255,.35),0 6px 18px rgba(255,69,58,.3);}


/* segmented controls: glass track, lifted glass thumb */
.tseg,.ttabs,.pf-seg,.pc-seg{background:rgba(118,118,128,.26)!important;border-radius:999px!important;padding:3px!important;box-shadow:inset 0 .5px 0 rgba(0,0,0,.4),inset 0 -.5px 0 rgba(255,255,255,.08);}

.tseg button,.ttabs button,.pf-seg button,.pc-seg button{border-radius:999px!important;}

.tseg button.on,.ttabs button.on,.pf-seg button.on,.pc-seg button.on,#trBox .ttabs button.on{background:rgba(255,255,255,.2)!important;color:#fff!important;box-shadow:var(--g-rim),0 3px 10px rgba(0,0,0,.35)!important;}

.tseg button.on.buy{background:#30d158!important;color:#04210d!important;}
.tseg button.on.sell{background:#ff453a!important;color:#fff!important;}


/* cards: larger continuous radius, hairline rim so they read as layers on black */
#trBox .tcard,.pf-card,.pf-t,.fu-c,.fu-al,.fu-r,.fu-key,.jcard,.jlims .jlim,.jsumbar span,.pc-card,.pc-tiles>div,.today .tdc{border-radius:var(--r-card)!important;box-shadow:inset 0 .5px 0 rgba(255,255,255,.09)!important;}

.tdc,.pc-tiles>div,.pf-t{border-radius:22px!important;}

/* inputs */
#trBox .tsym input,#trBox .trow2 input,.fu-r input,.fu-mx input{background:rgba(118,118,128,.24)!important;box-shadow:inset 0 .5px 0 rgba(0,0,0,.4);}

/* status pills keep their meaning but get the glass rim */
.fu-st,.tsrc,.apvd{box-shadow:inset 0 .5px 0 rgba(255,255,255,.2);}

/* sticky order buttons float on glass */
@media(max-width:899px){#trBox .tmain>.tgo,#trBox .tconf>.tbtns{bottom:calc(var(--tabh) + 6px)!important}}
/* accessibility */
@media(prefers-reduced-transparency:reduce){:root{--g-bg:#2c2c2e;--g-bg2:#2c2c2e;--g-blur:none}.mscrim{backdrop-filter:none}}
@media(prefers-contrast:more){:root{--g-bg:#3a3a3c;--g-bg2:#3a3a3c}.chip,.tabbar{box-shadow:0 0 0 1px rgba(255,255,255,.35)!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{--g-bg:#2c2c2e;--g-bg2:#2c2c2e}}

/* ===== v149b: rounder everywhere ===== */
:root{--r-card:32px;--r-tile:26px;--r-in:20px;}

/* every button is a pill */
button,.btn,.chip,.key,input[type=button],input[type=submit]{border-radius:999px;}

.tgo,#trBox .tgo,.tbtns .btn,.pc-acts .btn,.apacts .btn,.tpb .chip,.mspanel button{border-radius:999px!important;}

.mspanel button{border-radius:26px!important;}

/* cards, panels and figures */
#trBox .tcard,.pf-card,.fu-c,.fu-al,.fu-r,.fu-key,.jcard,.jlims .jlim,.pc-card,.apchart,.apsec,.apwhy,.aprec,.apv,.apempty,.tcard,.panel{border-radius:var(--r-card)!important;}

.pf-t,.pc-tiles>div,.today .tdc,.aptile,.jsumbar span,.apcard,.fu-fib,.tgrid,.apchk,.trbody .tgrid{border-radius:var(--r-tile)!important;}
.apchk{border-radius:26px!important;}
.aptile{padding:14px 16px;}

.pf-d{border-radius:16px;}
.fu-fl span,.fu-cs{border-radius:999px;}

#trBox .tplan,#trBox .tcard .tplan,.trbody .tplan{border-radius:26px!important;}

/* inputs, search, selects */
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,#trBox .tsym input,#trBox .trow2 input,.fu-r input,.fu-mx input{border-radius:var(--r-in)!important;}

#q,.search,.searchbox,#alSearch,.apsearch input{border-radius:999px!important;}

/* status and tag pills are fully round */
.ty,.fu-st,.tsrc,.apvd,.apsr,.tbadge,.tag,.badge{border-radius:999px!important;}

/* round the outer shell of full-screen pages' close buttons and floating bars */
.apacts{border-radius:32px;}

.apcard.on{box-shadow:0 0 0 2px var(--ios-blue)!important;}


/* ===== ChartKit ===== */
.ck{display:grid;gap:10px;}

.ck-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}

.ck-seg{display:inline-grid;grid-template-columns:repeat(4,auto);gap:2px;padding:3px;border-radius:999px;background:rgba(118,118,128,.26);box-shadow:inset 0 .5px 0 rgba(0,0,0,.4);}

.ck-seg button{height:32px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;}

.ck-seg button.on{background:rgba(255,255,255,.2);box-shadow:inset 0 .5px 0 rgba(255,255,255,.3),0 3px 10px rgba(0,0,0,.35);}

.ck-tools{display:flex;gap:6px;align-items:center;}

.ck-tools button{width:38px;height:38px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(118,118,128,.26);color:#e5e5ea;cursor:pointer;box-shadow:inset 0 .5px 0 rgba(255,255,255,.14);}

.ck-tools button.on{background:var(--ios-blue,#0a84ff);color:#fff;}

.ck-tools #ckLatest{width:auto;padding:0 14px;border-radius:999px;font:inherit;font-size:13px;font-weight:650;background:var(--ios-blue,#0a84ff);color:#fff;}
.ck-tools #ckLatest[hidden]{display:none;}

.ck-wrap{touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;border-radius:22px;background:#111113;padding:6px 2px 2px;min-height:200px;box-shadow:inset 0 .5px 0 rgba(255,255,255,.07);}

.ck-wrap:active{cursor:grabbing;}

.ck-msg{margin:0;padding:60px 12px;text-align:center;color:#8e8e93;}
.ck-hint{margin:0;text-align:center;font-size:12px;color:#8e8e93;}

@media(max-width:520px){.ck-seg button{padding:0 11px}.ck-tools button{width:36px;height:36px}.ck-hint{display:none}}
@media(max-width:899px){.apacts{padding:10px!important;gap:8px!important}.apacts .btn{height:44px!important;font-size:15px!important}.apacts .tgo{height:50px!important}}

/* v151: Today strip is one slim pill, not three big cards */
.today{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:0 0 12px!important;padding:6px!important;border-radius:999px!important;background:#1c1c1e;box-shadow:inset 0 .5px 0 rgba(255,255,255,.09);}

.today .tdc{background:transparent!important;box-shadow:none!important;border-radius:999px!important;padding:6px 14px!important;gap:0!important;align-items:flex-start;position:relative;}

.today .tdc+.tdc::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:.5px;background:rgba(255,255,255,.14);}

.today .tdc span{font-size:11px!important;font-weight:500;color:#8e8e93;line-height:1.2;}

.today .tdc b{font-size:16px!important;font-weight:700;letter-spacing:-.02em;line-height:1.25;}

.today .tdc em{display:none!important;}

.today .tdc:active{background:rgba(255,255,255,.08)!important;}

@media(max-width:480px){.today .tdc{padding:5px 10px!important}.today .tdc b{font-size:15px!important}}
#detail .d-head{background:none!important;border-radius:0;}

#detail .d-sym{gap:8px;}

#detail .d-sym .tier{font-size:10.5px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.07);color:#98989d;}

#detail .d-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:2px 0;}

#detail .d-actions .btn{height:36px!important;min-height:36px;padding:0 12px;font-size:13px!important;font-weight:500!important;gap:6px;background:rgba(255,255,255,.06)!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;color:#e5e5ea!important;}

#detail .d-actions .btn svg{width:14px;height:14px;}

#detail .d-actions kbd{display:none;}

#detail .d-actions .dpri{background:#f2f2f7!important;color:#1c1c1e!important;font-weight:600!important;box-shadow:none!important;}

#detail .d-actions .dwide{grid-column:auto;}

#detail .d-actions .dpri{grid-column:1/-1;}

#detail .setup,#detail .news,#detail .kv,#detail .plan,#detail .d-chart:not(:empty){padding:14px;border-radius:20px;background:rgba(255,255,255,.035);}

#detail .setup .sh{margin-bottom:10px;}

#detail .sbadge{background:rgba(255,255,255,.08)!important;color:#d1d1d6!important;border:0;font-size:11px;padding:3px 10px;}

#detail .setup .sscore{font-size:12px;}

#detail .setup .sscore b{font-size:20px;font-weight:600;}

#detail .setup .sl,#detail .setup .grp-t{font-size:11.5px;font-weight:500;color:#8e8e93;}

#detail .setup .sr,#detail .setup .sw{background:none!important;border-radius:0;font-size:13px;color:#d1d1d6;}

#detail .setup .sr li,#detail .setup .sw li{padding:6px 0 6px 18px;min-height:0;border:0!important;}

#detail .setup .sr li::before,#detail .setup .sw li::before{content:""!important;left:2px;top:12px;width:5px;height:5px;border-radius:50%;background:#636366!important;}

#detail .setup .sw li::before{background:#ff9f0a!important;}

#detail .setup .sdis{font-size:11.5px;color:#636366;margin-top:10px;}

#detail .plan .plh b{font-weight:600;letter-spacing:-.01em;}


/* v155: Apple Stocks look — pure black, flat lists, solid change pills, sheet-style detail */
html,body{background:#000!important;}

.panel,.panel.pr{background:transparent!important;border:0!important;box-shadow:none!important;}

.chgp{background:#2c2c2e;color:#fff!important;border-radius:8px;font-weight:600;font-variant-numeric:tabular-nums;}

.n.up .chgp{background:#30d158;}
.n.down .chgp{background:#ff453a;}

.n.up .chgp,.n.down .chgp{color:#fff!important;}


/* detail sheet */
#detail .ph{border:0;padding:16px 18px 0;font-size:12.5px;color:#8e8e93;}

#detail .ph>span:first-child{display:none;}

#detail .backlist{position:absolute;top:10px;left:14px;width:40px;height:40px;border-radius:50%;background:#2c2c2e!important;color:#fff!important;border:0;font-size:16px;line-height:40px;padding:0;text-align:center;display:grid;place-items:center;z-index:2;}

#detail{position:relative;}

#detail .pb{padding:54px 16px 16px;gap:12px;}

#detail .d-head{flex-direction:column;align-items:flex-start;gap:6px;padding:0 2px;border-bottom:.5px solid rgba(255,255,255,.16);padding-bottom:12px;}

#detail .d-head>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}

#detail .d-sym{font-size:34px;font-weight:700;letter-spacing:-.02em;}

#detail .d-name{font-size:14px;color:#8e8e93;font-weight:600;}

#detail .d-px{display:flex;align-items:baseline;gap:10px;text-align:left;}

#detail .d-price{font-size:28px;font-weight:700;letter-spacing:-.02em;}

#detail .d-chg{font-size:16px;font-weight:600;}

#detail .setup,#detail .news,#detail .plan,#detail .d-chart:not(:empty){background:#1c1c1e;border-radius:18px;}

#detail .kv{background:none!important;padding:4px 0 0;border:0;border-top:.5px solid rgba(255,255,255,.16);border-radius:0;display:grid;grid-template-columns:1fr 1fr;gap:0 26px;}

#detail .kv::before{display:none;}

#detail .kv>div{display:flex;justify-content:space-between;align-items:baseline;padding:9px 0;border-bottom:.5px solid rgba(255,255,255,.1);}

#detail .kv dt{font-size:14px;color:#8e8e93;font-weight:600;}

#detail .kv dd{margin:0;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;}


@media(max-width:700px){
  /* header: title + date, capsule on the right */
  .top{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;padding:10px 18px 0!important}
  .top .brand{grid-column:1;grid-row:1}
  .top .brandicon{display:none}
  .top .brandword{height:30px}
  .top-r{display:contents!important}
  .top-r .trow{grid-column:2;grid-row:1;justify-self:end}
  .top-r .clock{grid-column:1/-1;grid-row:2;display:flex;gap:10px;align-items:center;font-size:15px;color:#8e8e93;font-weight:600;margin:0;padding:0;background:none}
  .top-r .clock .cdate{font-size:15px;color:#8e8e93}
  .top-r .clock .ctime{font-size:13px;color:#636366}
  /* summary tiles → quiet scroll row */
  #summary{display:flex!important;overflow-x:auto;gap:22px!important;padding:6px 18px 10px!important;border:0!important;scrollbar-width:none}
  #summary::-webkit-scrollbar{display:none}
  #summary .si{flex:none;background:none!important;padding:0!important;border-radius:0;min-width:0}
  #summary .si .k{font-size:11.5px}
  #summary .si .v{font-size:16px}
  /* list rows */
  .panel.pr .ph{padding:10px 18px 4px;border:0;font-size:12.5px;color:#8e8e93;text-transform:none;letter-spacing:0}
  .panel.pr .ph>span:first-child{display:none}
  #thead{display:none}
  table:has(#tbody),#tbody{display:block;width:100%}
  #tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 18px;border-bottom:.5px solid rgba(255,255,255,.14);background:none!important}
  #tbody tr.sel{background:rgba(255,255,255,.05)!important}
  #tbody td{border:0!important;padding:0!important;display:block;min-width:0}
  #tbody td:nth-child(n+5){display:none!important}
  #tbody td:nth-child(1){grid-column:1;grid-row:1/3;text-align:left}
  #tbody td:nth-child(2){grid-column:2;grid-row:1/3;text-align:center;opacity:.9;font-size:12px}
  #tbody td:nth-child(3){grid-column:3;grid-row:1;text-align:right;font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
  #tbody td:nth-child(4){grid-column:3;grid-row:2;text-align:right;margin-top:6px}
  #tbody td:nth-child(3) .rng{display:none}
  #tbody .chgp{display:inline-block;min-width:88px;text-align:center;padding:5px 10px;font-size:16px}
  #tbody .id b{font-size:20px;font-weight:700;letter-spacing:-.01em}
  #tbody .id small{display:block!important;font-size:14px;color:#8e8e93;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  #tbody .cell{gap:8px;align-items:center}
  #tbody .star{width:22px;height:22px;opacity:.45;flex:none}
  #tbody .star.on{opacity:1}
  #tbody .sc,#tbody .st{font-size:11px}
  #tbody .st,#tbody .recb,#tbody .ichip{display:none}
}
#detail .ph{justify-content:flex-end;padding-top:22px;}

@media(max-width:700px){
  .top .brand{min-width:0}
  .top .brandword{height:21px;max-width:100%;width:auto}
  .top-r .trow{padding:4px 8px!important;gap:0!important}
  .top-r .trow .bell{width:34px!important;height:34px!important}
  .top-r .trow .bell svg{width:18px;height:18px}
  #summary{flex-wrap:nowrap!important}
  #summary .si .k{white-space:nowrap}
  #tbody td:nth-child(2) .sc,#tbody td:nth-child(2) .sc-run{background:none!important;color:#8e8e93!important;font-size:12px;font-weight:600;padding:0!important;border:0!important}
  details.pf#rail,#rail{background:none!important;border-radius:0!important;border:0!important;border-top:.5px solid rgba(255,255,255,.14)!important}
}
@media(max-width:700px){#tbody tr{grid-template-columns:minmax(0,1fr) 64px 104px!important}#tbody td:nth-child(2){justify-self:center}}

/* v156: one look everywhere — same page titles, flat lists, calm tags */
.chartbar>b,.fu-bar>b,.cbox-h>b{font-size:30px!important;font-weight:700!important;letter-spacing:-.02em;line-height:1.1;}

.chartbar,.fu-bar{border-bottom:0!important;background:#000!important;min-height:64px;}

.chartbar .nx,.fu-bar .nx{width:40px;height:40px;border-radius:50%!important;background:#2c2c2e!important;border:0!important;box-shadow:none!important;color:#fff;display:grid;place-items:center;padding:0;}

.chartbar .khint,.chartbar .mut.sm{display:none;}

/* alert list: flat rows */
.apcard{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;border-bottom:.5px solid rgba(255,255,255,.14)!important;padding:14px 18px!important;}

.apcard.on{background:rgba(255,255,255,.05)!important;}

.apcard .aph b{font-size:20px;font-weight:700;}

.apcard .ty,.apcard .apvd,.apcard .apsr{background:none!important;border:0!important;color:#8e8e93!important;padding:0!important;font-weight:600;}

.apcard .apq,.apcard .apq em{font-weight:700;}

.apcard .apq em.up,.apcard .apsince.up{color:#30d158;}
.apcard .apq em.down,.apcard .apsince.down{color:#ff453a;}

/* cards everywhere: flat dark grey, no borders */
.fu-card,.jcard,.pcard,.pf-card,.aptile,.ptile{border:0!important;box-shadow:none!important;background:#1c1c1e;}

/* futures status tags quiet */
.fu-tag,.fu-st{background:rgba(255,255,255,.08)!important;color:#aeaeb2!important;border:0!important;}


/* v157: compact trade plan */
#detail .plan{padding:12px 14px 14px!important;}

#detail .plan .plh{margin-bottom:6px;align-items:baseline;}

#detail .plan .plh b{font-size:15px;}

#detail .plan .plh .mut{font-size:11.5px;color:#8e8e93;}

#detail .plan .plg{display:block!important;background:none;padding:0;border-radius:0;}

#detail .plan .plg>span{display:grid!important;grid-template-columns:1fr auto auto;align-items:center;column-gap:12px;padding:8px 0!important;margin:0;border:0!important;border-top:.5px solid rgba(255,255,255,.12)!important;border-radius:0!important;background:none!important;min-height:0;}

#detail .plan .plg>span:first-child{border-top:0!important;}

#detail .plan .plg i{font-size:13px!important;font-weight:600;color:#e5e5ea!important;display:flex;flex-direction:column;gap:1px;min-width:0;}

#detail .plan .plg i u{text-decoration:none;font-size:11px;font-weight:500;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

#detail .plan .plg b{font-size:15px!important;font-weight:700;font-variant-numeric:tabular-nums;}

#detail .plan .plg em{display:flex!important;flex-direction:column!important;align-items:flex-end;gap:0!important;margin:0!important;padding:0!important;border:0!important;font-size:11.5px!important;min-width:64px;text-align:right;line-height:1.25;}

#detail .plan .plr3{margin-top:8px;padding-top:10px;gap:6px;}

#detail .plan .plr3 label{font-size:11px;gap:3px;}

#detail .plan .plr3 input{min-height:34px;font-size:14px;padding:0 10px;border-radius:999px;background:#2c2c2e;border:0;}

#detail .plan .plnote{font-size:11.5px;margin:8px 0 0;line-height:1.35;}

#detail .plan .plg em .pp,#detail .plan .plg em .pd{font-size:11.5px!important;font-weight:500;line-height:1.3;color:inherit;}

#detail .plan .plg em[data-o="pos"]{color:#8e8e93;}

#detail .plan .plg em[data-o="pos"] .pp{display:none;}


/* v157: Stocks-style scan list at every width, with sparklines */
#thead{display:none!important;}

table:has(#tbody),#tbody{display:block!important;width:100%!important;min-width:0!important;table-layout:auto;}

#tbody tr{display:grid!important;align-items:center;column-gap:14px;padding:12px 20px!important;border-bottom:.5px solid rgba(255,255,255,.14)!important;background:none!important;cursor:pointer;grid-template-columns:minmax(0,1fr) 96px 104px!important;grid-template-rows:auto auto;}

#tbody tr.sel{background:rgba(255,255,255,.05)!important;}

#tbody tr:hover{background:rgba(255,255,255,.04)!important;}

#tbody td{display:none!important;border:0!important;padding:0!important;min-width:0;}

#tbody td:nth-child(1){display:block!important;grid-column:1;grid-row:1/3;text-align:left;}

#tbody td.spk{display:block!important;grid-column:2;grid-row:1/3;height:38px;}

#tbody td.spk svg{display:block;width:100%;height:100%;}

#tbody td:nth-child(3){display:block!important;grid-column:3;grid-row:1;text-align:right;letter-spacing:-.01em;line-height:1.2;}

#tbody td:nth-child(4){display:block!important;grid-column:3;grid-row:2;margin-top:6px;}

#tbody td:nth-child(3) .rng{display:none;}

#tbody .chgp{display:inline-block;text-align:center;font-weight:600;}

#tbody .id b{font-size:20px;font-weight:700;letter-spacing:-.01em;}

#tbody .id small{display:block!important;font-size:14px;color:#8e8e93;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}

#tbody .id .tier{display:none!important;}

#tbody .cell{gap:8px;align-items:center;}

#tbody .star{width:22px;height:22px;opacity:.4;flex:none;}
#tbody .star.on{opacity:1;}

#tbody td .sc,#tbody td .sc-run{background:none!important;color:#8e8e93!important;font-size:12px;font-weight:600;padding:0!important;border:0!important;}

#tbody td:nth-child(2) .st,#tbody td:nth-child(2) .recb,#tbody td:nth-child(2) .ichip{display:none;}

.sortc{font-size:12px;color:#8e8e93;margin-right:6px;}

#sortSel{background:#2c2c2e;color:#fff;border:0;border-radius:999px;padding:5px 10px;font:inherit;font-size:12.5px;}

.sortd{background:#2c2c2e;color:#fff;border:0;border-radius:50%;width:26px;height:26px;margin-right:10px;cursor:pointer;}

.panel.pr .ph{padding:10px 20px 6px!important;border:0!important;font-size:12.5px;color:#8e8e93;text-transform:none;letter-spacing:0;display:flex;justify-content:space-between;align-items:center;}

.panel.pr .ph>span:first-child{display:none;}

.panel.pr .ph .meta{display:flex;align-items:center;width:100%;justify-content:flex-end;}

@media(min-width:561px){
  #tbody tr{grid-template-columns:minmax(0,1.6fr) 84px 112px 118px!important}
  #tbody td:nth-child(2){display:block!important;grid-column:2;grid-row:1/3;text-align:center}
  #tbody td.spk{grid-column:3}
  #tbody td:nth-child(3),#tbody td:nth-child(4){grid-column:4}
}
@media(min-width:1700px){
  #tbody tr{grid-template-columns:minmax(0,1.6fr) 84px 112px 118px 84px 74px 74px!important}
  #tbody td:nth-child(6),#tbody td:nth-child(7),#tbody td:nth-child(8){display:block!important;grid-row:1/3;text-align:right;font-size:15px;font-weight:600;color:#e5e5ea;line-height:1.25}
  #tbody td:nth-child(6){grid-column:5}#tbody td:nth-child(7){grid-column:6}#tbody td:nth-child(8){grid-column:7}
  #tbody td:nth-child(6)::before,#tbody td:nth-child(7)::before,#tbody td:nth-child(8)::before{display:block;font-size:11px;font-weight:500;color:#8e8e93}
  #tbody td:nth-child(6)::before{content:"Volume"}#tbody td:nth-child(7)::before{content:"Rel vol"}#tbody td:nth-child(8)::before{content:"Float"}
}
#tbody .chgp{box-sizing:border-box;}


/* v158: smaller, quieter Trade page, ticket, Position chart and ticker popup */
/* ticker popup */
.tkcard{background:#1c1c1e!important;border:0!important;border-radius:22px!important;padding:14px!important;box-shadow:0 18px 50px rgba(0,0,0,.6)!important;}

.tkcard .tks{font-size:24px!important;font-weight:700;}

.tkcard .tks .tier{font-size:10.5px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.07)!important;color:#98989d!important;border:0;}

.tkcard .tks .tier.rk{color:#ff9f0a!important;}

.tkcard .tkn{font-size:12.5px;color:#8e8e93;}

.tkcard .tkpx{font-size:22px!important;font-weight:700;}

.tkcard .tkg{background:none!important;border-radius:0!important;gap:0 18px!important;margin:6px 0 10px;}

.tkcard .tkg>div{display:flex!important;justify-content:space-between;align-items:baseline;padding:7px 0!important;border:0!important;border-bottom:.5px solid rgba(255,255,255,.1)!important;background:none!important;}

.tkcard .tkg span{font-size:13px;color:#8e8e93;}
.tkcard .tkg b{font-size:13.5px;font-weight:700;color:#fff!important;}

.tkcard .tka .btn{height:36px!important;font-size:13px!important;background:rgba(255,255,255,.06)!important;box-shadow:none!important;color:#e5e5ea!important;}

.tkcard .tka .dpri{background:#f2f2f7!important;color:#1c1c1e!important;font-weight:600;}

/* Trade page */
#trBox .tcard{gap:10px;}

#trBox .tstrip .tsh{font-size:13px;}
#trBox .tsx em{font-size:12px;}

#trBox .tsx>div+div b,#trBox .tsx [class*=tw] b{font-size:16px!important;}

#trBox .tseg button{height:34px;font-size:14px;}

#trBox .tsym input{height:46px;border-radius:999px;}

#trBox .tgo{border-radius:999px;}

#trBox .tpr,#trBox .thr,#trBox .tord{padding-top:10px!important;padding-bottom:10px!important;}

#trBox .tpr b,#trBox .tord b{font-size:16px;}

#trBox .tcard .mut.sm,#trBox .tnote{font-size:12px;}

#trBox .tacct .tbig{font-size:22px;}

#trBox .plan{background:none!important;border:0!important;}

#trBox .plan .plh .mut{font-size:11.5px;}

#trBox .plan .plg>span{border-top:.5px solid rgba(255,255,255,.12)!important;}

#trBox .plan .plg>span:first-child{border-top:0!important;}

#trBox .plan .plg i{font-weight:600;color:#e5e5ea!important;display:flex;}

#trBox .plan .plg i u{text-decoration:none;font-weight:500;color:#8e8e93;}

#trBox .plan .plg b{font-weight:700;}

#trBox .plan .plg em{display:flex!important;align-items:flex-end;margin:0!important;padding:0!important;border:0!important;}

#trBox .plan .plg em .pp,#trBox .plan .plg em .pd{font-size:11.5px!important;font-weight:500;}

#trBox .plan .plg em.mut .pp{display:none;}

#trBox .tuse{border-radius:999px;border:0!important;}
.pc-pl span{font-size:13px;}

.pc-warn{font-size:13px!important;padding:8px 12px!important;border-radius:14px!important;background:rgba(255,159,10,.1)!important;}

.pc-tiles{gap:8px!important;}

.pc-tiles>div{padding:9px 12px!important;border-radius:16px!important;}

.pc-tiles span{font-size:11.5px!important;}
.pc-tiles b{font-size:16px!important;}

.pc-tiles small,.pc-tiles em{font-size:11px!important;}

.pc-acts .btn{height:40px;font-size:14px;border-radius:999px;}

@media(max-width:560px){.pc-tiles{grid-template-columns:repeat(2,1fr)!important}}

/* v159: Position chart, TradingView-style P&L */
.pc-head{align-items:center!important;padding:4px 2px 0;}

.pc-sym{font-size:30px!important;}
.pc-px{font-size:18px!important;color:#aeaeb2!important;}

.pc-pl{align-items:flex-end;gap:4px;}

.pc-pl b{font-size:34px!important;font-weight:800!important;letter-spacing:-.03em;line-height:1;}

.pc-pl .pc-pct{display:inline-block;padding:3px 10px;border-radius:999px;font-size:14px!important;font-weight:700;color:#fff;}

.pc-pl.up .pc-pct{background:#30d158;}
.pc-pl.down .pc-pct{background:#ff453a;}

.pc-chartwrap{padding:8px!important;}

.ck-svg{display:block;width:100%;height:auto;}

@media(max-width:560px){.pc-pl b{font-size:26px!important}}
.pc-tiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;}
@media(max-width:560px){.pc-tiles{grid-template-columns:repeat(2,1fr)!important}}

/* v159: scan picker dropdown */
#presets{display:none!important;}

.pmbtn{display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:#fff;font:inherit;font-size:22px;font-weight:700;letter-spacing:-.02em;padding:6px 18px;margin:2px 0 4px;cursor:pointer;}

.pmbtn svg{color:#fff;opacity:.95;}

.pmmenu{position:fixed;min-width:250px;max-height:70vh;overflow:auto;padding:8px;border-radius:24px;background:rgba(44,44,46,.92);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6);box-shadow:0 22px 60px rgba(0,0,0,.65),inset 0 0 0 .5px rgba(255,255,255,.14);}

.pmmenu[hidden]{display:none;}

.pmi{display:flex;align-items:center;gap:10px;width:100%;padding:0 14px 0 6px;border:0;border-radius:14px;background:none;color:#fff;font:inherit;font-weight:500;text-align:left;cursor:pointer;}

.pmi:hover,.pmi:active{background:rgba(255,255,255,.1);}

.pmck{width:22px;text-align:center;font-weight:700;color:#fff;}

.pmsep{height:1px;margin:6px 10px;background:rgba(255,255,255,.14);}

.pmi{height:40px!important;font-size:16px!important;}

.pmmenu{z-index:300!important;}


/* v160: Chat that feels like Messages */
.chatpop{background:#000!important;}

.chatpop .alp-h{justify-content:center;position:relative;border:0!important;padding:14px 56px 8px!important;}

.chatpop .alp-h b{font-size:17px;font-weight:600;}

.chatpop .alp-h .meta{display:none;}

.chatpop .alp-h .nx{position:absolute;right:12px;top:8px;width:36px;height:36px;border-radius:50%;background:#2c2c2e!important;border:0!important;}

.chatpop .clog{display:flex;flex-direction:column;gap:2px;padding:6px 14px 10px!important;background:#000;}

.chatpop .crow{max-width:100%!important;margin-top:0;}

.chatpop .crow.me+.crow.them,.chatpop .crow.them+.crow.me{margin-top:10px;}

.chatpop .crow .pav{width:28px;height:28px;font-size:13px;align-self:flex-end;}

.chatpop .crow.me .pav{display:none;}

.chatpop .crow .cmsg{max-width:min(78%,420px)!important;}

.chatpop .cwho{font-size:11.5px;font-weight:600;color:#8e8e93;padding:0 12px 1px;}

.chatpop .cb{position:relative;padding:8px 14px;border-radius:19px!important;font-size:17px;line-height:1.28;letter-spacing:-.01em;}

.chatpop .cmsg.me .cb{background:#0a84ff;color:#fff;}

.chatpop .cmsg.them .cb{background:#262629;color:#fff;}

.chatpop .cmsg.ai .cb{background:#262629;}

.chatpop .cb.cbc{background:#1c1c1e!important;border-radius:20px!important;padding:6px;}

.chatpop .cmsg.me .cb .ctk{background:rgba(255,255,255,.22);color:#fff;}

/* tail on the last bubble of a run */
.chatpop .crow.me:not(:has(+.crow.me)) .cmsg>.cb:not(.cbc):last-of-type::before,.chatpop .crow.them:not(:has(+.crow.them)) .cmsg>.cb:not(.cbc):last-of-type::before{content:"";position:absolute;bottom:0;height:20px;width:20px;}

.chatpop .crow.me:not(:has(+.crow.me)) .cmsg>.cb:not(.cbc):last-of-type::before{right:-7px;background:#0a84ff;border-bottom-left-radius:16px 14px;}

.chatpop .crow.me:not(:has(+.crow.me)) .cmsg>.cb:not(.cbc):last-of-type::after{content:"";position:absolute;bottom:0;right:-26px;width:26px;height:20px;background:#000;border-bottom-left-radius:10px;}

.chatpop .crow.them:not(:has(+.crow.them)) .cmsg>.cb:not(.cbc):last-of-type::before{left:-7px;background:#262629;border-bottom-right-radius:16px 14px;}

.chatpop .crow.them:not(:has(+.crow.them)) .cmsg>.cb:not(.cbc):last-of-type::after{content:"";position:absolute;bottom:0;left:-26px;width:26px;height:20px;background:#000;border-bottom-right-radius:10px;}

.chatpop .ct{display:none;font-size:11.5px;color:#8e8e93;padding:2px 8px 0;}

.chatpop .crow.sel .ct,.chatpop .clog>.crow:last-child .ct{display:block;}

.chatpop .cnote{text-align:center;color:#8e8e93;padding:40px 24px;}

/* composer */
.chatpop .cform{display:flex;align-items:flex-end;gap:8px;padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#000;border:0;position:relative;}

.chatpop .cplus{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:#2c2c2e;color:#aeaeb2;display:grid;place-items:center;cursor:pointer;transition:transform .18s;}

.chatpop .cplus.on{transform:rotate(45deg);color:#fff;}

.chatpop .cpill{flex:1;min-width:0;display:flex;gap:6px;min-height:38px;padding:3px 4px 3px 14px;border:1px solid rgba(255,255,255,.22);border-radius:20px;background:#000;}

.chatpop .cpill textarea{flex:1;min-width:0;border:0;outline:0;background:none;color:#fff;font:inherit;font-size:17px;line-height:1.25;padding:6px 0;resize:none;max-height:120px;box-shadow:none;}

.chatpop .cpill textarea::placeholder{color:#8e8e93;}

.chatpop .cpill .cemo{width:30px;height:30px;font-size:19px;background:none;margin-bottom:0;opacity:.8;}

.chatpop .cpill .csend{width:30px;height:30px;padding:0;border-radius:50%;background:#0a84ff;color:#fff;display:none;place-items:center;}

.chatpop .cform.has .csend{display:grid;}
.chatpop .cform.has .cemo{display:none;}

.chatpop .cshare{position:absolute;left:12px;bottom:62px;z-index:5;min-width:250px;padding:6px;border-radius:24px;background:rgba(44,44,46,.94);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6);box-shadow:0 20px 50px rgba(0,0,0,.65),inset 0 0 0 .5px rgba(255,255,255,.14);display:flex;flex-direction:column;gap:0;}

.chatpop .cshare[hidden]{display:none;}

.chatpop .cmi{display:flex;align-items:center;gap:14px;height:52px;padding:0 14px 0 10px;border:0;border-radius:16px;background:none;color:#fff;font:inherit;font-size:17px;font-weight:500;text-align:left;cursor:pointer;}

.chatpop .cmi:hover,.chatpop .cmi:active{background:rgba(255,255,255,.1);}

.chatpop .cmic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;}

.chatpop .catt{padding:0 14px 6px;}

.chatpop .crow .cmsg{min-width:0;overflow-wrap:break-word;word-break:normal;}

.chatpop .cb{white-space:pre-wrap;}

.chatpop .crow.me{justify-content:flex-end;}

.chatpop .cpill textarea{height:26px;min-height:26px;overflow-y:auto;display:block;}

.chatpop .cpill{align-items:center;}

.chatpop .crow .cmsg{width:auto;flex:0 1 auto;display:flex;flex-direction:column;}

.chatpop .crow.me .cmsg{align-items:flex-end;}

.chatpop .cb{width:max-content;max-width:100%;}


/* v160: summary stats — quiet row at every width */
#summary{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:26px!important;padding:8px 18px 12px!important;border:0!important;background:none!important;scrollbar-width:none;}

#summary::-webkit-scrollbar{display:none;}

#summary .si{flex:none!important;grid-column:auto!important;background:none!important;padding:0!important;border:0!important;border-radius:0!important;min-width:0;}

#summary .si .k{font-size:11.5px;font-weight:500;color:#8e8e93;white-space:nowrap;}

#summary .si .v{font-size:17px;font-weight:600;white-space:nowrap;}

/* chat bubbles: no early wrap */
.chatpop .clog .crow .cmsg{max-width:min(78%,420px)!important;width:max-content!important;}

.chatpop .clog .crow .cmsg .cb{width:auto!important;min-width:0;}

.chatpop .cb,.chatpop .cmsg{overflow-wrap:break-word!important;word-break:normal!important;}

.chatpop .clog>.crow{width:100%;align-self:stretch;}

.chatpop .clog>.crow.me{flex-direction:row-reverse;justify-content:flex-start;}

.chatpop .clog>.crow.me .cwho{display:none;}

.chatpop .clog>.crow.me .ct{text-align:right;}


/* v161: red active tab */
.tabbar button.on,.tabbar button.on svg,.tabbar button.on span{color:#ff453a!important;}

.tabbar button.on svg *{stroke:#ff453a;}

.tabbar button.on{background:rgba(255,69,58,.14)!important;box-shadow:none!important;}


/* v162: slide right for every column (gap, volume, rel vol, float, rotation, cap, 52w) */
@media(min-width:561px){
  .panel.pr .tablewrap{overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#3a3a3c transparent;overscroll-behavior-x:contain}
  table:has(#tbody),#tbody{width:max-content!important;min-width:100%!important}
  #tbody tr{grid-template-columns:230px 84px 112px 118px repeat(7,86px)!important;min-width:max-content;width:max-content;min-width:100%;column-gap:14px}
  #tbody td:nth-child(1){position:sticky;left:0;z-index:2;background:#000;margin:-12px 0 -12px -20px;padding:12px 8px 12px 20px!important;width:auto}
  #tbody tr:hover td:nth-child(1){background:#0b0b0c}
  #tbody tr.sel td:nth-child(1){background:#0e0e0f}
  #tbody td:nth-child(2){display:block!important;grid-column:2;grid-row:1/3;text-align:center}
  #tbody td.spk{grid-column:3}
  #tbody td:nth-child(3),#tbody td:nth-child(4){grid-column:4}
  #tbody td:nth-child(n+5):nth-child(-n+11){display:block!important;grid-row:1/3;text-align:right;font-size:15px;font-weight:600;color:#e5e5ea;line-height:1.3;white-space:nowrap}
  #tbody td:nth-child(5){grid-column:5}#tbody td:nth-child(6){grid-column:6}#tbody td:nth-child(7){grid-column:7}#tbody td:nth-child(8){grid-column:8}#tbody td:nth-child(9){grid-column:9}#tbody td:nth-child(10){grid-column:10}#tbody td:nth-child(11){grid-column:11}
  #tbody td:nth-child(n+5):nth-child(-n+11)::before{display:block;font-size:11px;font-weight:500;color:#8e8e93;margin-bottom:2px}
  #tbody td:nth-child(5)::before{content:"Gap"}#tbody td:nth-child(6)::before{content:"Volume"}#tbody td:nth-child(7)::before{content:"Rel vol"}#tbody td:nth-child(8)::before{content:"Float"}#tbody td:nth-child(9)::before{content:"Rotation"}#tbody td:nth-child(10)::before{content:"Mkt cap"}#tbody td:nth-child(11)::before{content:"52w range"}
  #tbody td:nth-child(11) .rng{display:inline-block;width:70px;vertical-align:middle}
  #tbody td.hot{color:#ff9f0a}
  #tbody td.up{color:#30d158}#tbody td.dn{color:#ff453a}
}
@media(min-width:561px){
  #tbody tr{grid-template-columns:200px 118px 100px 84px repeat(7,86px)!important;column-gap:12px}
  #tbody td:nth-child(2){grid-column:4!important}
  #tbody td.spk{grid-column:3!important}
  #tbody td:nth-child(3),#tbody td:nth-child(4){grid-column:2!important}
}

/* v163: Trade page flows like the Home screen — flat sections, grouped lists */
#trBox .tcard{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;}

#trBox .tcard .th{padding:0 4px 6px;}

#trBox .tcard .th b{font-weight:700;letter-spacing:-.02em;}

#trBox .tcard .th .mut{font-size:13px;}

#trBox .tcard.tstrip{background:#1c1c1e!important;}

#trBox .tcard.tstrip .tsh span{font-size:13px;color:#8e8e93;font-weight:500;}

#trBox .tacct .tlist,#trBox .tacct>div:not(.th){background:#1c1c1e!important;border-radius:16px!important;}

#trBox .tsym input,#trBox .trow2 input{background:#1c1c1e!important;}

#trBox .tpr,#trBox .thr,#trBox .tord{background:none!important;border-radius:0!important;border:0!important;border-bottom:.5px solid rgba(255,255,255,.14)!important;}

#trBox .tpr:last-child,#trBox .thr:last-child,#trBox .tord:last-child{border-bottom:0!important;}

#trBox .tpb .chip{background:#1c1c1e!important;border:0!important;font-weight:600;}

#trBox .tpm b{font-weight:700;letter-spacing:-.01em;}

#trBox .tpm span{font-size:13px;color:#8e8e93;}

#trBox .tpv b{font-weight:700;}

#trBox .tpv span{font-size:13px;}

#trBox .tlist{background:none!important;}

@media(min-width:900px){#trBox .trbody{max-width:1080px;margin:0 auto;gap:18px}}

/* v165: phone top bar back to normal; profile on the bottom bar; chat and video live in More */
@media(max-width:700px){
  #cBell,#vBell,#who{display:none!important}
  .tabbar button{min-width:0}
  .tabbar button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tbav{width:26px;height:26px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;background:#3a3a3c;box-shadow:0 0 0 1.5px rgba(255,255,255,.55);flex:none}
  .tbav img{width:100%;height:100%;object-fit:cover;display:block}
  .tabbar button.on .tbav{box-shadow:0 0 0 1.5px #ff453a}
}


/* v167: Positions page breakdown */
#trBox .psum{display:grid;background:#1c1c1e;margin:6px 0 10px;}

#trBox .psum>div{display:flex;flex-direction:column;gap:3px;position:relative;}

#trBox .psum>div+div::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:.5px;background:rgba(255,255,255,.14);}

#trBox .psum span{color:#8e8e93;font-weight:500;}

#trBox .psum b{font-weight:700;letter-spacing:-.01em;}

#trBox .prk{display:inline-block;font-style:normal;font-size:12px;font-weight:600;color:#8e8e93;margin-top:4px;}

#trBox .prk.warn{color:#ff9f0a;}

@media(max-width:560px){#trBox .psum{grid-template-columns:repeat(2,1fr);row-gap:12px}#trBox .psum>div:nth-child(3)::before{display:none}}
#trBox .tcard .th{padding-left:18px;padding-right:18px;}


/* v168: name | chart | price | change as four clean columns */
#tbody td:nth-child(3),#tbody td:nth-child(4){grid-row:1/3!important;align-self:center;margin:0!important;justify-self:end;}

#tbody td:nth-child(3){font-size:16px!important;font-weight:600!important;}

#tbody .chgp{min-width:0!important;width:84px;padding:6px 0!important;border-radius:8px;}

@media(max-width:560px){
  #tbody tr{grid-template-columns:minmax(0,1fr) 58px 64px 80px!important;column-gap:10px!important;padding:12px 14px!important}
  #tbody td.spk{grid-column:2!important;grid-row:1/3!important}
  #tbody td:nth-child(3){grid-column:3!important;font-size:15px!important}
  #tbody td:nth-child(4){grid-column:4!important}
  #tbody .chgp{width:80px;font-size:14px!important}
  #tbody .id b{font-size:18px}
  #tbody .id small{font-size:12.5px}
}
@media(min-width:561px){
  #tbody tr{grid-template-columns:200px 104px 92px 96px 84px repeat(7,86px)!important}
  #tbody td.spk{grid-column:2!important}
  #tbody td:nth-child(3){grid-column:3!important}
  #tbody td:nth-child(4){grid-column:4!important}
  #tbody td:nth-child(2){grid-column:5!important}
  #tbody td:nth-child(5){grid-column:6!important}#tbody td:nth-child(6){grid-column:7!important}#tbody td:nth-child(7){grid-column:8!important}#tbody td:nth-child(8){grid-column:9!important}#tbody td:nth-child(9){grid-column:10!important}#tbody td:nth-child(10){grid-column:11!important}#tbody td:nth-child(11){grid-column:12!important}
}

/* v169: search lives behind the magnifier */
body:not(.sopen) .bar .cmd,body:not(.sopen) #qRes{display:none!important;}

body:not(.sopen) .bar{padding-top:0!important;padding-bottom:0!important;min-height:0;}


/* v170: Trade page aligned to the main page — one left edge, one radius, one gray */
#trBox .tcard{padding:14px 0!important;}

#trBox .tcard .th,#trBox .tcard>p,#trBox .tcard .tpriv,#trBox .plan .plh,#trBox .plan .plh+*{padding-left:0!important;padding-right:0!important;}

#trBox .tpriv{margin:2px 0 10px!important;font-size:13px!important;color:#8e8e93!important;}

#trBox .plan{padding:0!important;}

#trBox .plan .plh{margin:6px 0 8px;}

#trBox .plan .plh b{font-size:17px!important;font-weight:700;}

#trBox .tacct .tlist,#trBox .tacct>div:not(.th),#trBox .plan .plg,#trBox .tcard.tstrip{border-radius:18px!important;background:#1c1c1e!important;}

#trBox .tseg,#trBox .ttabs{border:0!important;box-shadow:none!important;background:#1c1c1e!important;border-radius:999px!important;}

#trBox .tseg button.on,#trBox .ttabs button.on{background:#3a3a3c!important;box-shadow:none!important;}

#trBox .tseg button.on.buy,#trBox .tseg [data-side=BUY].on{background:#30d158!important;color:#04210d!important;}

#trBox .tcheck,#trBox .tbr,#trBox label.tbracket,#trBox .tatt{background:#1c1c1e!important;border-radius:18px!important;box-shadow:none!important;}

#trBox .tuse{background:#1c1c1e!important;color:#fff!important;font-weight:600;}

#trBox .tgo{background:#f2f2f7!important;color:#000!important;box-shadow:none!important;font-weight:600;}

#trBox .tgo:disabled{opacity:.4;}

#trBox .tnote,#trBox .tfoot,#trBox .tmain>.mut{color:#8e8e93!important;font-size:12.5px;}

#trBox .trow2 label,#trBox .tsym label{color:#8e8e93;font-weight:500;}

#trBox .tpr,#trBox .thr,#trBox .tord{padding-left:0!important;padding-right:0!important;}


/* v171: colour only for up/down — everything else neutral */
#trBox .tord b.up,#trBox .tord b.down,#trBox .tord b{color:#fff!important;}

#trBox .tord b.up,#trBox .tord b.down{color:#fff!important;}

#trBox .tpb .chip,#trBox .tpb .chip[data-sell]{color:#fff!important;}

#trBox .tord .btn,#trBox .tord button,#trBox .tcalc,#trBox .tcard .th button{color:#fff!important;}

#trBox .tcalc{background:#2c2c2e!important;border:0!important;}

#trBox .prk,#trBox .prk.warn{color:#8e8e93!important;}

#trBox .psum b.down:not(.pl),#trBox .psum>div:nth-child(4) b{color:#fff!important;}

#trBox .tseg button.on,#trBox .tseg button.on.buy,#trBox .tseg [data-side].on{background:#3a3a3c!important;color:#fff!important;}

#trBox .tsrc{color:#8e8e93!important;background:#2c2c2e!important;}

#trBox a,#trBox .tlink{color:#fff!important;}

#trBox .tcard .th .mut{color:#8e8e93;}

#trBox .twarn{color:#fff!important;}

#trBox .tlist{margin-left:0!important;margin-right:0!important;}

#trBox .psum{padding-left:0;padding-right:0;}



/* v174: filters rail flows with the list — flat, one gray, quiet chips */
@media(min-width:900px){
  details.pf#rail,#rail{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
  #rail>summary{background:none!important;border:0!important;padding:6px 4px 14px!important;font-size:22px!important;font-weight:700;letter-spacing:-.02em;color:#fff}
  #rail>div,#rail>div>div,#rail .grp{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding-left:0!important;padding-right:0!important}
  #rail .grp-t{font-size:12px!important;font-weight:600;color:#8e8e93!important;text-transform:none;letter-spacing:0;margin:18px 4px 8px!important;padding:0!important}
  #rail .fields{background:#1c1c1e!important;border-radius:16px!important;overflow:hidden}
  #rail .chip{background:#1c1c1e!important;color:#fff!important;box-shadow:none!important;height:34px;font-weight:600}
  #rail .chip[aria-pressed="true"]{background:#3a3a3c!important;color:#fff!important}
}
@media(min-width:900px){
  .shell>.bar{float:left;width:auto!important;margin:6px 28px 0 0!important;padding:0!important;background:none!important}
  body.sopen .shell>.bar{float:none;margin:0 0 8px!important;width:auto!important}
  .shell>.today{overflow:hidden;max-width:760px;margin:0 0 8px auto!important;float:none}
  .shell>.summary{clear:both}
}

/* v175: change is plain red/green text, no box */
#tbody .chgp,.chgp{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;min-width:0!important;width:auto!important;font-weight:600;color:#30d158!important;}

#tbody td.dn .chgp,#tbody td.down .chgp,#tbody td.neg .chgp{color:#ff453a!important;}

#tbody td:nth-child(4){text-align:right;}

#tbody .chgp{font-size:16px!important;}

@media(min-width:900px){.shell>.today{width:min(760px,calc(100% - 280px))!important;display:grid!important;margin-top:0!important}}
@media(min-width:900px){body:not(.sopen) .shell>.bar{width:max-content!important;max-width:40%}.shell>.today{margin-top:4px!important}}
@media(min-width:900px){.shell>.today{float:right!important;overflow:visible!important;margin:4px 0 8px 0!important}}
@media(min-width:900px){
  .shell{display:grid!important;grid-template-columns:max-content minmax(0,1fr);column-gap:28px;align-items:center}
  .shell>*{grid-column:1/-1}
  .shell>.bar,.shell>.bar{float:none!important;grid-column:1;margin:0!important;width:auto!important;max-width:none!important}
  .shell>.today{float:none!important;grid-column:2;width:auto!important;max-width:760px;justify-self:end;margin:6px 0!important;overflow:visible!important}
  body.sopen .shell>.bar{grid-column:1/-1}
  body.sopen .shell>.today{grid-column:1/-1;justify-self:stretch;max-width:none}
}
#trBox .tcard .th .mut,#trBox .tpriv{font-size:12.5px!important;}

#trBox .tgrid{background:none!important;display:flex!important;flex-direction:column;gap:8px;padding:0!important;border-radius:0!important;}

#trBox .tgrid>div{background:#1c1c1e!important;border:0!important;border-radius:999px!important;height:44px;padding:0 20px!important;display:flex!important;align-items:center;justify-content:space-between;font-size:14.5px;}

#trBox .tgrid>div span{font-size:14.5px;color:#a1a1a6;}

#trBox .tgrid>div b{font-size:15.5px!important;font-weight:600;}

#trBox .tsym input,#trBox .trow2 input{border-radius:999px!important;padding:0 20px!important;}

#trBox .tsym input{font-size:17px!important;}

#trBox .trow2 label,#trBox .tsym label{padding-left:16px;}

#trBox .tbr,#trBox .tcard.tstrip{border-radius:26px!important;}

#trBox .tord,#trBox .tpr,#trBox .thr{background:#1c1c1e!important;border:0!important;border-radius:26px!important;padding:12px 20px!important;margin-bottom:8px;}

#trBox .tpm b{font-size:17px!important;}

#trBox .tpv b{font-size:17px!important;}

#trBox .tord b{font-size:15px!important;}

#trBox .tpm span,#trBox .tord span,#trBox .tpv span{font-size:12.5px!important;}

#trBox .tord .btn,#trBox .tord button{height:32px;padding:0 16px;font-size:13px;background:#2c2c2e!important;}

#trBox .psum{border-radius:28px!important;}

#trBox .tgo{font-size:16px;}

#trBox .tlist{display:block;}

#trBox .tsx b{font-size:22px!important;}

#trBox .tsx>div+div b{font-size:15px!important;}

#trBox .tstrip .tsh span{font-size:12.5px;}

#trBox .tcard.tstrip{padding:12px 18px!important;border-radius:28px!important;}

#trBox .tcalc{height:26px;font-size:12px;padding:0 12px;}

#trBox .tseg button,#trBox .ttabs button{font-size:13.5px;}

#trBox .tcard .th b{font-size:19px!important;}

#trBox .psum{grid-template-columns:repeat(4,1fr)!important;padding:10px 4px!important;row-gap:0!important;}

#trBox .psum>div{padding:0 10px;}

#trBox .psum>div:nth-child(3)::before{display:block!important;}

#trBox .psum span{font-size:11px;}

#trBox .psum b{font-size:14.5px;}

#trBox .tpb .chip{height:30px;font-size:12.5px;}

#trBox .tpr,#trBox .thr,#trBox .tord{padding:10px 18px!important;}

#trBox .tpm b,#trBox .tpv b{font-size:16px!important;}

#trBox .trow2 label,#trBox .tsym label{font-size:12px;}

#trBox .tsym input,#trBox .trow2 input{height:38px!important;font-size:15px!important;}


/* v177: ticket — one slim pill per line */
#trBox .plan .plg{background:none!important;padding:0!important;border-radius:0!important;display:flex!important;flex-direction:column;gap:6px;}

#trBox .plan .plg>span{background:#1c1c1e!important;border:0!important;border-radius:999px!important;height:40px;padding:0 18px!important;display:grid!important;grid-template-columns:1fr auto auto;column-gap:14px;align-items:center;}

#trBox .plan .plg i{flex-direction:row!important;align-items:baseline;gap:8px!important;font-size:13px!important;}

#trBox .plan .plg i u{font-size:11px;}

#trBox .plan .plg b{font-size:14.5px!important;}

#trBox .plan .plg em{flex-direction:row!important;gap:0!important;min-width:48px;font-size:12px!important;}

#trBox .plan .plg em .pd{display:none!important;}

#trBox .plan .plg em.mut{display:none!important;}

#trBox .tbr,#trBox .tchk{background:#1c1c1e!important;border-radius:999px!important;}

#trBox .tbr{padding:0 18px!important;min-height:42px;display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;}

#trBox .tbr .tchk{background:none!important;font-size:14px!important;font-weight:600;}

#trBox .tbr p,#trBox .tbr .mut{font-size:11.5px!important;margin:0 0 6px;flex-basis:100%;}

#trBox .tbr input[type=checkbox]{width:18px;height:18px;}

#trBox .tseg,#trBox .ttabs{height:38px;padding:3px!important;}

#trBox .tseg button,#trBox .ttabs button{height:32px!important;}

#trBox .tgo{height:44px!important;}

#trBox .tuse{height:38px!important;font-size:13px!important;}

#trBox .ttot,#trBox .tsum,#trBox .test{font-size:13px!important;}

#trBox .tnote{font-size:11.5px!important;}

#trBox .plan .plg>span{align-content:center;grid-template-rows:1fr;box-shadow:none!important;background-image:none!important;}

#trBox .plan .plg>span::before,#trBox .plan .plg>span::after{display:none!important;}

#trBox .plan .plg>span>*{align-self:center;margin:0!important;}

#trBox .plan .plg>span+span{border-top:0!important;}

#trBox .tacct>div.tgrid,#trBox .tacct .tgrid{background:none!important;border-radius:0!important;overflow:visible!important;}

#trBox .tacct .tgrid>div{background:#1c1c1e!important;}

#trBox .tcalcrow b,#trBox .ttot b,#trBox .tmain>div:has(>b.tbig) b{font-size:22px!important;}

#trBox .tbig{font-size:22px!important;}

@media(max-width:700px){.top-r .trow{display:none!important}}

/* Alerts: "hot" cards lost their green fill in the flat restyle, so their dark text vanished on black */
.apcard.hot,.apcard.hot b,.apcard.hot .apq,.apcard.hot .apt,.apcard.hot .apx2,.apcard.hot .mut,.apcard.hot .apw,.apcard.hot p,.apcard.hot span{color:#fff!important}
.apcard.hot .mut,.apcard.hot .apt,.apcard.hot .apx2{color:#aeaeb2!important}
.apcard.hot .ty,.apcard.hot .apvd,.apcard.hot .apsr{color:#8e8e93!important;background:none!important}
.apcard.hot .apq em.up,.apcard.hot .apsince.up{color:#30d158!important}
.apcard.hot .apq em.down,.apcard.hot .apsince.down{color:#ff453a!important}
.apcard.hot{position:relative;box-shadow:inset 3px 0 0 #30d158!important}

/* v183: phone — slide the list sideways to see gap, volume, rel vol, float, rotation, cap, 52w (name stays pinned) */
@media(max-width:560px){
  .panel.pr .tablewrap{overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
  table:has(#tbody),#tbody{width:max-content!important;min-width:100%!important}
  #tbody tr{grid-template-columns:136px 58px 64px 80px 70px repeat(7,84px)!important;width:max-content;min-width:100%;column-gap:10px!important}
  #tbody td:nth-child(1){position:sticky;left:0;z-index:2;background:#000;margin:-12px 0 -12px -14px;padding:12px 8px 12px 14px!important}
  #tbody tr.sel td:nth-child(1){background:#0e0e0f}
  #tbody td:nth-child(2){display:block!important;grid-column:5!important;grid-row:1/3;text-align:center}
  #tbody td:nth-child(n+5):nth-child(-n+11){display:block!important;grid-row:1/3;text-align:right;font-size:14px;font-weight:600;color:#e5e5ea;line-height:1.3;white-space:nowrap}
  #tbody td:nth-child(5){grid-column:6!important}#tbody td:nth-child(6){grid-column:7!important}#tbody td:nth-child(7){grid-column:8!important}#tbody td:nth-child(8){grid-column:9!important}#tbody td:nth-child(9){grid-column:10!important}#tbody td:nth-child(10){grid-column:11!important}#tbody td:nth-child(11){grid-column:12!important}
  #tbody td:nth-child(n+5):nth-child(-n+11)::before{display:block;font-size:10.5px;font-weight:500;color:#8e8e93;margin-bottom:2px}
  #tbody td:nth-child(5)::before{content:"Gap"}#tbody td:nth-child(6)::before{content:"Volume"}#tbody td:nth-child(7)::before{content:"Rel vol"}#tbody td:nth-child(8)::before{content:"Float"}#tbody td:nth-child(9)::before{content:"Rotation"}#tbody td:nth-child(10)::before{content:"Mkt cap"}#tbody td:nth-child(11)::before{content:"52w range"}
  #tbody td:nth-child(11) .rng{display:inline-block;width:60px;vertical-align:middle}
  #tbody td.hot{color:#ff9f0a}#tbody td.up{color:#30d158}#tbody td.dn{color:#ff453a}
}

/* v184: alert detail — compact, one family with the rest of the app */
.apdet{gap:10px!important;padding-top:12px!important}
.apdet .apacts{display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:8px!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;scrollbar-width:none;position:static!important}
.apdet .apacts::-webkit-scrollbar{display:none}
.apdet .apacts .btn{flex:none;height:36px!important;padding:0 16px!important;font-size:14px!important;font-weight:600!important;white-space:nowrap;line-height:1!important;border-radius:999px!important}
.apdet .apacts .tgo.buy{background:#30d158!important;color:#04210d!important;height:36px!important}
.apdet .apsec{padding:14px 16px!important;background:#1c1c1e!important}
.apdet .apsec h4{margin:0 0 10px!important;font-size:15px!important;font-weight:600!important;color:#fff}
.apdet .aptiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important}
@media(max-width:560px){.apdet .aptiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:12px!important}}
.apdet .aptile{background:none!important;padding:0 8px 0 0!important;border-radius:0!important;gap:1px!important}
.apdet .aptile span{font-size:11.5px!important;color:#8e8e93}
.apdet .aptile b{font-size:17px!important;font-weight:600!important;color:#fff}
.apdet .aptile b.up,.apdet .aptile b .up{color:#30d158}.apdet .aptile b .down{color:#ff453a}
.apdet .aptile em{font-size:11.5px!important;color:#8e8e93}
.apdet .apchk{background:none!important;border-radius:0!important}
.apdet .apc{padding:9px 0!important;gap:10px!important;align-items:center}
.apdet .apc i{width:20px!important;height:20px!important;font-size:11px!important}
.apdet .apc b{font-size:14px!important;font-weight:600!important}
.apdet .apc em{font-size:12.5px!important;line-height:1.35!important}
.apdet .apv{padding:12px 16px!important}.apdet .apv b{font-size:20px!important}.apdet .apv span{font-size:13px!important}.apdet .apv em{font-size:12px!important}
.apdet .apchart{padding:8px 8px 4px!important}

/* v184: no market-session / phone status text in the Alerts header */
#apMeta{display:none!important}

/* v185: phone — Today strip sits on the same row as the Top Gainers dropdown */
@media(max-width:899px){
  .shell{display:grid!important;grid-template-columns:max-content minmax(0,1fr);column-gap:10px;align-items:center}
  .shell>*{grid-column:1/-1}
  .shell>.bar{grid-column:1;margin:0!important;width:auto!important;max-width:none!important;float:none!important}
  .shell>.today{grid-column:2;float:none!important;width:auto!important;max-width:none;justify-self:stretch;margin:0!important;padding:3px!important;overflow:hidden!important;min-width:0}
  .shell>.today .tdc{padding:3px 4px!important;min-width:0}
  .shell>.today .tdc span{font-size:9.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .shell>.today .tdc b{font-size:11.5px!important;white-space:nowrap;letter-spacing:-.03em}
  .shell>.today .tdc+.tdc::before{top:8px;bottom:8px}
  body.sopen .shell>.bar,body.sopen .shell>.today{grid-column:1/-1}
}

/* v185: ticker header — symbol + name on the left, price + change right-aligned */
#detail .d-head{flex-direction:row!important;align-items:flex-end!important;justify-content:space-between;gap:12px;padding:2px 2px 14px!important}
#detail .d-head>div:first-child{display:block!important;min-width:0}
#detail .d-sym{font-size:30px!important;line-height:1.05;display:flex;align-items:center;gap:8px}
#detail .d-sym .tier{font-size:10.5px!important;font-weight:600;line-height:1.6}
#detail .d-name{font-size:13px!important;font-weight:500!important;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
#detail .d-px{display:grid!important;justify-items:end;gap:0!important;text-align:right!important;flex:none}
#detail .d-price{font-size:26px!important;line-height:1.1}
#detail .d-chg{font-size:15px!important;font-weight:600;margin-top:2px}
/* Today strip: size cells to their content so nothing clips */
@media(max-width:899px){.shell>.today{grid-template-columns:auto auto auto!important;justify-content:space-between}}

/* v186: active tab = glass pill filling the bar, tinted red inside, white icon + label (iOS 26 style) */
.tabbar{padding:4px!important}
.tabbar button{border-radius:999px!important}
.tabbar button.on{
  background:linear-gradient(180deg,rgba(255,92,80,.55),rgba(255,59,48,.32))!important;
  box-shadow:inset 0 .5px 0 rgba(255,255,255,.45),inset 0 -1px 2px rgba(255,255,255,.12),0 0 0 .5px rgba(255,255,255,.14),0 2px 10px rgba(255,59,48,.25)!important;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.tabbar button.on,.tabbar button.on svg,.tabbar button.on span{color:#fff!important}
.tabbar button.on svg *{stroke:#fff!important}
.tabbar button.on .tbav{box-shadow:0 0 0 1.5px #fff}

/* v187: Account — alert toggles are one dark grouped card (no light "selected chip" fill) */
#acct .al-ctl{background:#2c2c2e!important;border-radius:16px!important;overflow:hidden!important}
#acct .al-ctl>.chip,#acct .al-ctl>.chip[aria-pressed],#acct .al-ctl>.chip[aria-pressed="true"],#acct .al-ctl>.al-min{background:none!important;color:#fff!important;box-shadow:none!important;border:0!important;border-radius:0!important;height:auto;min-height:48px;font-size:15px!important;font-weight:500!important}
#acct .al-ctl>*+*:not([hidden]){border-top:.5px solid rgba(255,255,255,.14)!important}
#acct .al-ctl .chip[aria-pressed="true"]::before{background:#30d158!important}
#acct .al-ctl #alTest{color:#0a84ff!important;font-weight:600!important}
#acct .al-ctl .al-min select{background:none!important;color:#8e8e93!important;border:0!important}
#acct .acct-edit{background:#2c2c2e!important;border-radius:16px!important}
#acct .acct-edit .pav{width:52px!important;height:52px!important}

/* v187: Edit profile sheet — respects the iPhone notch / home bar and sits above the tab bar so ✕ and Save are always reachable */
.pfsheet{z-index:200!important}
@media(max-width:700px){
  .pfs-box{padding-top:env(safe-area-inset-top,0px)!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
  .pfs-h{padding-top:12px!important;position:sticky;top:0}
}
#acct .acct-edit{flex-direction:row!important;align-items:center!important;gap:14px!important;padding-top:12px!important;padding-bottom:12px!important}

/* v187: Review order sits in the flow, not floating over the plan */
.trbody .tmain>.tgo,.trbody .tconf>.tbtns,#trBox .tmain>.tgo,#trBox .tconf>.tbtns{position:static!important;box-shadow:none!important;margin-top:14px}

/* v188: Chat — full-screen like iMessage: solid header, composer at the bottom (tab bar steps aside), compact cards */
body:has(#chatPop:not([hidden])) .tabbar{display:none!important}
@media(max-width:899px){
  #chatPop:not([hidden]){padding-bottom:0!important;bottom:auto!important;height:var(--vvh,100dvh)!important;top:var(--vvt,0)!important;inset:auto 0 auto 0!important}
  #chatPop .alp-h{position:relative;z-index:5;background:#000!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:max(12px,env(safe-area-inset-top)) 16px 10px!important;border-bottom:.5px solid rgba(255,255,255,.14)!important;min-height:52px;align-items:center}
  #chatPop .alp-h b{font-size:20px!important;font-weight:700!important;color:#fff!important;opacity:1!important}
  #chatPop .alp-h .nx{opacity:1!important;background:#2c2c2e!important;color:#fff!important}
  #chatPop .cform{margin:6px 10px calc(8px + env(safe-area-inset-bottom,0px))!important}
  #chatPop .clog{padding-bottom:12px!important;overscroll-behavior:contain}
}
.chatpop .ccard{padding:10px 14px!important;border-radius:20px!important;gap:6px!important;max-width:min(78%,320px)}
.chatpop .ccard .cc-h b,.chatpop .ccard .cc-sym{font-size:16px!important}
.chatpop .ccard .cc-h span{font-size:13px!important}
.chatpop .ccard .cc-btns{margin:0!important}
.chatpop .ccard .chip{height:32px!important;min-height:0!important;padding:0 14px!important;font-size:14px!important;font-weight:600}
.chatpop .ccard .cc-n{font-size:13px!important}
@media(max-width:899px){#chatPop:not([hidden]){border:0!important;box-shadow:none!important}}

/* v189: Assistant lives in More on the phone — no floating button */
@media(max-width:899px){.afab{display:none!important}}
/* v190: while searching, the header block stacks normally */
@media(max-width:899px){body.sopen .shell{display:block!important}body.sopen .shell>.today{margin:8px 0!important}}

/* v191: Journal on the phone — compact header, grouped limits, tidy stat tiles */
@media(max-width:899px){
  #jBox .chartbar{flex-wrap:wrap!important;row-gap:8px;padding:max(10px,env(safe-area-inset-top)) 16px 10px!important;min-height:0!important;align-items:center}
  #jBox .chartbar>b{font-size:26px!important;order:1;margin-right:auto}
  #jBox .chartbar #jClose{order:2}
  #jBox .chartbar .mut{display:none}
  #jBox .chartbar #jTabs{order:3;flex:0 0 100%;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0}
  #jBox .chartbar #jTabs::-webkit-scrollbar{display:none}
  #jBox .chartbar #jTabs .chip{flex:none;height:34px!important;padding:0 14px!important;font-size:14px!important}
  #jBox .jbody{padding:12px 16px calc(96px + env(safe-area-inset-bottom))!important}
  #jBox .jlims{display:block!important;background:#1c1c1e;border-radius:18px;overflow:hidden;margin-bottom:14px}
  #jBox .jlim{display:grid!important;grid-template-columns:1fr 92px;align-items:center;column-gap:12px;row-gap:2px;padding:10px 14px!important;background:none!important;border-radius:0!important;border:0!important}
  #jBox .jlim+.jlim{border-top:.5px solid rgba(255,255,255,.12)!important}
  #jBox .jlim label{font-size:15px!important;font-weight:600!important;margin:0!important}
  #jBox .jlim input{height:34px!important;font-size:15px!important;padding:0 12px!important;text-align:right;border-radius:999px!important;width:100%!important}
  #jBox .jlim>span{grid-column:1/-1;font-size:12px!important;color:#8e8e93!important;margin:0!important}
  #jBox .jsumbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
  #jBox .jsumbar span{padding:10px 12px!important;border-radius:16px!important;min-width:0}
  #jBox .jsumbar span small,#jBox .jsumbar span>*:first-child{font-size:11.5px!important}
  #jBox .jsumbar b{font-size:19px!important;font-weight:700}
  #jBox .jfilt{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:8px}
  #jBox .jfilt .chip{flex:none;height:32px!important;padding:0 14px!important;font-size:13.5px!important}
}

/* v193: Trade history — rows stay inside the card (no negative margins), pill rows like the rest of Trade */
#trBox .thist{overflow:visible!important}
#trBox .thr,#trBox .thd,#trBox .tcard.tords>.tlist,#trBox .tlist{margin-left:0!important;margin-right:0!important}
#trBox .thd{display:flex;justify-content:space-between;align-items:center;background:none!important;border:0!important;border-radius:0!important;padding:14px 6px 6px!important;font-size:13px;color:#8e8e93}
#trBox .thd b{font-weight:600;color:#8e8e93;font-size:13px}
#trBox .thd span{font-weight:700;font-size:14px}
#trBox .thr{padding:10px 18px!important;border-radius:22px!important;background:#1c1c1e!important;margin-bottom:6px!important}
#trBox .thr .tpm b{font-size:16px}
#trBox .thr .tpm span{font-size:12.5px;color:#8e8e93}
#trBox .thr .tpv{text-align:right}
#trBox .thr .tpv b{font-size:16px}

/* v193: alert detail blocks — smaller, calmer (verdict is a dark card with colored label, not a big solid pill) */
.apdet .apwhy,.apdet .aprec{border-radius:16px!important;padding:10px 14px!important;font-size:13px!important;line-height:1.35}
.apdet .apwhy .ty{font-size:12px!important;padding:2px 8px!important}
.apdet .aprec{font-size:12.5px!important}
.apdet .apv{background:#1c1c1e!important;color:#fff!important;border-radius:16px!important;padding:10px 14px!important;gap:10px}
.apdet .apv b{font-size:18px!important;font-weight:700!important}
.apdet .apv.go b{color:#30d158}.apdet .apv.skip b{color:#ff453a}.apdet .apv.wait b{color:#ffd60a}
.apdet .apv span{font-size:12.5px!important;color:#aeaeb2!important;opacity:1!important}
.apdet .apv em{font-size:11.5px!important;color:#8e8e93!important}
.apdet .apsec,.apdet .apchart,.apdet .apempty{border-radius:18px!important;padding-top:12px!important;padding-bottom:12px!important}
.apdet .apsec h4{margin-bottom:8px!important}
/* v193: trade plan — every tile value the same size, card corners modest */
.apdet .aptile b,.apdet .aptile b span{font-size:17px!important;font-weight:600!important;line-height:1.2}
#apDet .apsec,.apdet>.apsec{border-radius:16px!important}
/* v201 data feed panel */
.fu-feed .fu-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px -4px}
.fu-feed table{width:100%;min-width:820px;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.fu-feed th{text-align:left;font-weight:500;color:var(--mut,#8e8e93);padding:4px 6px;white-space:nowrap}
.fu-feed td{padding:6px;border-top:.5px solid rgba(255,255,255,.1);vertical-align:top}
.fu-feed td .mut{font-size:11px;line-height:1.3;max-width:260px;white-space:normal}
.fu-feed .fu-sec{margin-top:12px}
/* v202 Trade on Schwab pill on every symbol list */
.tgm{display:inline-flex;align-items:center;height:20px;padding:0 9px;margin-left:8px;border-radius:999px;background:rgba(10,132,255,.18);color:#64b5ff;font-size:11px;font-weight:650;letter-spacing:.01em;cursor:pointer;white-space:nowrap;vertical-align:middle;-webkit-tap-highlight-color:transparent}
.tgm:active{background:rgba(10,132,255,.34)}
.wc .tgm{margin:6px 0 0;display:flex;width:max-content}
.cell .tgm{margin-left:6px}
.apcard .tgm{margin-left:auto}
td.l .id .tgm{display:flex;width:max-content;margin:4px 0 0}
.aptrade{width:100%;height:48px;border-radius:14px;font-size:16px;font-weight:650;margin:10px 0 2px}
/* v207 chat: the bubble tails drew a black block over the avatars, so the tails are gone; the last bubble of a run gets the small corner instead */
.chatpop .crow .cmsg>.cb::before,.chatpop .crow .cmsg>.cb::after{content:none!important;display:none!important}
.chatpop .crow.them:not(:has(+.crow.them)) .cmsg>.cb:not(.cbc):last-of-type{border-bottom-left-radius:6px!important}
.chatpop .crow.me:not(:has(+.crow.me)) .cmsg>.cb:not(.cbc):last-of-type{border-bottom-right-radius:6px!important}
.chatpop .crow.me{padding-right:12px}
.chatpop .crow .pav{align-self:flex-end;flex:0 0 auto}

/* v208 alert detail: one grouped summary card instead of stacked pills */
.apdet .apsum{flex:none!important;min-height:auto!important;background:#1c1c1e;border-radius:16px;overflow:clip;margin:0}
.apdet .apsum>*{background:none!important;border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important;padding:10px 14px!important}
.apdet .apsum>*+*{border-top:.5px solid rgba(255,255,255,.12)!important}
.apdet .apsum .apwhy p{margin:6px 0 0!important;font-size:14px;line-height:1.35}
.apdet .apsum .twarn{font-size:12px!important;color:#aeaeb2!important;background:none!important}
.apdet .apsum .aprec{font-size:12px!important;color:#8e8e93!important}
.aptrade{height:42px!important;border-radius:12px!important;font-size:15px!important;box-shadow:none!important;margin:8px 0 4px!important}

/* v210 coach note sheet */
.coachpop{position:fixed;inset:0;z-index:99990;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center}
.coachpop .cp-in{position:relative;width:100%;max-width:520px;max-height:80vh;overflow:auto;background:#1c1c1e;border-radius:20px 20px 0 0;padding:22px 20px calc(24px + env(safe-area-inset-bottom))}
.coachpop h3{margin:0 0 12px;font-size:20px}
.coachpop .cp-t{font-size:15px;line-height:1.45;color:#fff}
.coachpop .cp-d{margin-top:14px;font-size:12px}
.coachpop .cp-x{position:absolute;right:14px;top:14px;width:32px;height:32px;border-radius:50%;border:0;background:#2c2c2e;color:#fff}
@media(min-width:700px){.coachpop{align-items:center}.coachpop .cp-in{border-radius:20px}}

/* v212 tab bar: no filled pill or glow on the active tab, the icon and the word turn red instead */
.tabbar button.on{background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.tabbar button.on,.tabbar button.on svg,.tabbar button.on span{color:#ff453a!important}
.tabbar button.on svg *{stroke:#ff453a!important}
.tabbar button.on .tbav{box-shadow:0 0 0 1.5px #ff453a}

/* v213 kill button and trailing stop option */
.chip.kill,.btn.kill{color:#ff453a!important}
.chip.kill.armed,.btn.kill.armed{background:#ff453a!important;color:#fff!important}
.ttrail{display:flex;margin-top:8px}
#trBox .tbr{border-radius:16px!important}
html body .chip.kill,html body .btn.kill{color:#ff453a!important;white-space:nowrap}
html body .chip.kill.armed,html body .btn.kill.armed{background:#ff453a!important;color:#fff!important}
.tpb{flex-wrap:wrap}
#trBox .tpb .chip.kill{color:#ff453a!important}
#trBox .tpb .chip.kill.armed{background:#ff453a!important;color:#fff!important}
#trBox .tpb .chip{white-space:nowrap;padding:0 10px}
