/* Hero phones: native iOS-style app screens (home page only).
   Sizes follow iOS text styles scaled to the 290px mock (≈0.74 of a 390pt iPhone). */

#page-home .qbc{animation:none}
#page-home .qbc-ph{will-change:auto}
#page-home .qbc-ph::after{background:rgba(250,250,250,.38)}
#page-home .qbc-ph[data-pos="1"],#page-home .qbc-ph[data-pos="2"]{filter:saturate(.7)}

#page-home .qbph-screen.na{
  --na-label:#000;
  --na-sec:#6e6e73;
  --na-ter:#aeaeb2;
  --na-sep:#e5e5ea;
  --na-bg:#f2f2f7;
  --na-up:#248a3d;
  --na-dn:#d70015;
  --na-tint:#0055ff;
  background:var(--na-bg);
  color:var(--na-label);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI",sans-serif;
  font-weight:500;
  font-feature-settings:"tnum" 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
#page-home .na .qbph-time{font-family:inherit;font-weight:700;color:#000}
#page-home .na .qbph-sys{color:#000}
#page-home .na .qbph-home{background:#000;opacity:.85;width:98px;margin:5px auto 7px}
#page-home .na .up{color:var(--na-up)}
#page-home .na .dn{color:var(--na-dn)}

/* Navigation bar with large title */
#page-home .na-nav{display:flex;align-items:center;justify-content:space-between;padding:4px 14px 0}
#page-home .na-lt{margin:0;font-size:25px;line-height:1.15;font-weight:700;letter-spacing:-.4px;color:#000}
#page-home .na-bell{position:relative;width:20px;height:20px;color:var(--na-tint)}
#page-home .na-bell svg{width:100%;height:100%;display:block}
#page-home .na-bell i{position:absolute;top:1px;right:1px;width:6px;height:6px;border-radius:50%;background:#ff3b30;box-shadow:0 0 0 1.5px var(--na-bg)}

/* Balance */
#page-home .na-bal{padding:10px 14px 2px}
#page-home .na-bal span{display:block;font-size:10px;color:var(--na-sec)}
#page-home .na-bal b{display:block;margin-top:1px;font-size:27px;line-height:1.1;font-weight:700;letter-spacing:-.6px}
#page-home .na-bal b small{font-size:17px;letter-spacing:-.3px}
#page-home .na-bal em{display:block;margin-top:3px;font-style:normal;font-size:10px;font-weight:700}

/* Section header + inset grouped list */
#page-home .na-sh{display:flex;align-items:baseline;justify-content:space-between;margin:14px 14px 5px 22px;font-size:11px;font-weight:700;color:#000}
#page-home .na-link{font-size:10px;font-weight:500;color:var(--na-tint);cursor:pointer}
#page-home .na-group{margin:0 12px;background:#fff;border-radius:10px;overflow:hidden}
#page-home .na-row{display:flex;align-items:center;gap:9px;min-height:40px;padding:0 10px;position:relative}
#page-home .na-row+.na-row::before{content:"";position:absolute;top:0;right:0;left:43px;height:1px;background:var(--na-sep)}
#page-home .na-tx{flex:1;min-width:0}
#page-home .na-tx b{display:block;font-size:11.5px;font-weight:700;letter-spacing:-.1px;white-space:nowrap}
#page-home .na-tx b i{font-style:normal;font-weight:500;color:var(--na-sec);margin-left:2px}
#page-home .na-tx small,#page-home .na-val small{display:block;margin-top:1px;font-size:9.5px;color:var(--na-sec);white-space:nowrap}
#page-home .na-val{text-align:right}
#page-home .na-val b{display:block;font-size:11.5px;font-weight:700;white-space:nowrap}

/* Product marks */
#page-home .na-ic{width:25px;height:25px;border-radius:7px;flex:none;display:flex;align-items:center;justify-content:center}
#page-home .na-ic svg{width:70%;height:70%;display:block}
#page-home .na-ic-snipe{background:#f59e0b}
#page-home .na-ic-vega{background:#f97316}

/* Segmented control */
#page-home .na-seg{display:flex;margin:9px 12px 0;padding:2px;border-radius:8px;background:#e3e3e8}
#page-home .na-seg span{flex:1;text-align:center;padding:4px 0;border-radius:6px;font-size:9.5px;font-weight:500;color:#000}
#page-home .na-seg span.on{background:#fff;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* Activity: month calendar */
#page-home .na-month{display:flex;align-items:center;justify-content:space-between;margin:11px 16px 0;color:var(--na-tint)}
#page-home .na-month svg{width:7px;height:11px}
#page-home .na-month b{font-size:12px;font-weight:700;color:#000}
#page-home .na-sum{display:flex;gap:10px;margin:9px 12px 0;padding:9px 10px;background:#fff;border-radius:10px}
#page-home .na-sum div{flex:1}
#page-home .na-sum div+div{flex:none;text-align:right}
#page-home .na-sum small{display:block;font-size:9.5px;color:var(--na-sec)}
#page-home .na-sum b{display:block;margin-top:1px;font-size:17px;font-weight:700;letter-spacing:-.3px}
#page-home .na-cal{margin:8px 12px 0;padding:7px 6px 6px;background:#fff;border-radius:10px}
#page-home .na-dow,#page-home .na-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
#page-home .na-dow span{text-align:center;font-size:8.5px;font-weight:700;color:var(--na-sec);padding-bottom:3px}
#page-home .na-grid i{display:flex;flex-direction:column;align-items:center;justify-content:center;height:30px;border-radius:6px;font-style:normal}
#page-home .na-grid b{font-size:9.5px;font-weight:500;line-height:1.1}
#page-home .na-grid em{font-style:normal;font-size:7.5px;font-weight:700;line-height:1.2}
#page-home .na-grid .g{background:#e9f6ec}
#page-home .na-grid .g em{color:var(--na-up)}
#page-home .na-grid .r{background:#fdecee}
#page-home .na-grid .r em{color:var(--na-dn)}
#page-home .na-grid .w b{color:var(--na-ter)}
#page-home .na-foot{margin:6px 22px 0;font-size:9px;color:var(--na-sec)}

/* Strategy detail */
#page-home .na-back{display:flex;align-items:center;gap:3px;padding:6px 10px 0;font-size:12px;color:var(--na-tint)}
#page-home .na-back svg{width:8px;height:13px}
#page-home .na-title{display:flex;align-items:center;gap:9px;padding:9px 14px 0}
#page-home .na-title .na-ic{width:32px;height:32px;border-radius:9px}
#page-home .na-title h3{margin:0;font-size:19px;line-height:1.15;font-weight:700;letter-spacing:-.3px;color:#000}
#page-home .na-title small{display:block;font-size:9.5px;color:var(--na-sec)}
#page-home .na-metric{padding:13px 14px 0}
#page-home .na-metric small{display:block;font-size:10px;color:var(--na-sec);margin-bottom:3px}
#page-home .na-metric b{display:block;font-size:24px;line-height:1.1;font-weight:700;letter-spacing:-.5px}
#page-home .na-chart{display:block;width:calc(100% - 28px);height:54px;margin:8px 14px 6px}
#page-home .na-per{display:flex;gap:4px;margin:0 14px 10px}
#page-home .na-per span{padding:3px 8px;border-radius:6px;font-size:9px;font-weight:500;color:var(--na-sec)}
#page-home .na-per span.on{background:#e3e3e8;color:#000;font-weight:700}
#page-home .na-kv{min-height:25px;justify-content:space-between;font-size:10.5px}
#page-home .na-kv+.na-kv::before{left:10px}
#page-home .na-kv b{font-weight:700}
#page-home .na-cta{margin:10px 12px 0;padding:8px 0;border-radius:10px;background:var(--na-tint);color:#fff;text-align:center;font-size:11.5px;font-weight:700}

/* Tab bar: identical on all three screens */
#page-home .na-tabbar{display:flex;justify-content:space-around;margin-top:auto;padding:6px 8px 0;background:rgba(249,249,249,.96);border-top:1px solid #dcdce0}
#page-home .na-tabbar span{display:flex;flex-direction:column;align-items:center;gap:2px;width:25%;font-size:8.5px;font-weight:500;color:#8e8e93}
#page-home .na-tabbar span.on{color:var(--na-tint)}
#page-home .na-tabbar svg{width:19px;height:19px;display:block}
#page-home .na .na-tabbar+.qbph-home{margin-top:0}
#page-home .na .qbph-home{position:relative}
#page-home .qbph-screen.na>.qbph-home{margin-top:5px}
#page-home .qbph-screen.na{padding-bottom:0}
#page-home .na-tabbar{padding-bottom:4px}

/* --- Home screen v2: real iOS structure --- */
/* Bar buttons on their own row, large title below (UINavigationBar with prefersLargeTitles) */
#page-home .na-top{display:flex;align-items:center;justify-content:space-between;height:26px;padding:0 14px}
#page-home .na-av{width:24px;height:24px;border-radius:50%;background:linear-gradient(180deg,#a9aeb8,#878c97);color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;letter-spacing:.02em}
#page-home .na-lt-home{padding:0 14px}
#page-home .na-bal{padding-top:4px}
#page-home .na-bal em{font-weight:700}
/* Stocks-style chart with previous-value dotted line and range picker */
#page-home .na-pchart{display:block;width:calc(100% - 28px);height:56px;margin:8px 14px 4px}
#page-home .na-rng{display:flex;justify-content:space-between;margin:0 10px 2px}
#page-home .na-rng span{padding:3px 7px;border-radius:6px;font-size:9px;font-weight:700;color:var(--na-sec)}
#page-home .na-rng span.on{background:#e3e3e8;color:#000}
/* Disclosure chevron */
#page-home .na-chev{width:6px;height:10px;color:#c4c4c7;flex:none;margin-left:-2px}
#page-home .na-chev svg{width:100%;height:100%;display:block}
/* Translucent tab bar floating over scrolling content, home indicator inside it (as on iPhone) */
#page-home .qbph-screen.na{position:relative}
#page-home .qbph-screen.na .na-tabbar{position:absolute;left:0;right:0;bottom:0;margin:0;padding:6px 8px 22px;background:rgba(247,247,249,.8);-webkit-backdrop-filter:blur(14px) saturate(1.8);backdrop-filter:blur(14px) saturate(1.8);border-top:1px solid rgba(0,0,0,.1);z-index:4}
#page-home .qbph-screen.na>.qbph-home{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);margin:0;z-index:5}

/* --- Home screen v3: action buttons, today marker, own-profit row --- */
#page-home .na-btns{display:flex;gap:8px;margin:10px 12px 0}
#page-home .na-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;height:30px;border-radius:9px;background:#e3e3e8;color:var(--na-tint);font-size:10.5px;font-weight:700;white-space:nowrap}
#page-home .na-btn svg{width:12px;height:12px;flex:none}
#page-home .na-btn-p{background:var(--na-tint);color:#fff}
#page-home .na-grid .na-today{box-shadow:inset 0 0 0 1.5px var(--na-tint)}
#page-home .na-grid .na-today b{color:var(--na-tint);font-weight:700}
#page-home .na-mine{margin-top:10px}
#page-home .na-mine .na-kv{min-height:30px}
#page-home .na-mine .na-kv span{font-weight:700}
#page-home .na-btn{font-size:10px;gap:4px;padding:0 6px}

/* --- "In your account, in real time": same app as the hero, Activity > Trades --- */
#page-home .tb-panel.rt-panel{height:auto!important;min-height:0!important;overflow:hidden!important;padding:28px 24px!important;display:flex;align-items:center!important;justify-content:center}
#page-home .rt-phone.na-rt{width:290px;zoom:.86;margin:0!important;flex:none}
#page-home .rt-phone.na-rt .qbph{animation:none!important}
#page-home .na-rt .qbph-screen.na{height:560px;display:flex;flex-direction:column}
#page-home .na-sync{display:flex;align-items:center;gap:6px;margin:10px 16px 8px;font-size:9.5px;color:var(--na-sec)}
#page-home .na-sync i{width:6px;height:6px;border-radius:50%;background:#34c759;flex:none}
#page-home .na-sync span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-home .na-sync em{font-style:normal;font-weight:700;color:var(--na-up)}
#page-home .na-rt .na-sh{margin-top:11px}
#page-home .na-trade{min-height:38px}
#page-home .na-tx b i.na-buy{color:var(--na-tint);font-weight:700}
#page-home .na-tx b i.na-sell{color:var(--na-dn);font-weight:700}
#page-home .na-trade{gap:7px}#page-home .na-trade .na-tx b{font-size:11px;letter-spacing:-.15px}
/* backdrop-filter escapes the screen's overflow clipping in Chromium: round the bar itself to the screen's corners */
#page-home .qbph-screen.na .na-tabbar{border-radius:0 0 42px 42px;overflow:hidden}
