:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17191d;
  background: #e9ebf1;
  font-synthesis: none;
  --main-tab-visual-height: min(90.75px, 19.31vw);
  --analysis-tab-visual-height: min(103.45px, 22.01vw);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Allow native scrolling, but not pinch or double-tap viewport zoom. */
html, body { touch-action: pan-x pan-y; }
body { margin: 0; min-height: 100vh; background: #e5e8ee; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.app-shell { position: relative; max-width: 470px; min-height: 100vh; margin: 0 auto; overflow: hidden; background: #f5f7fc; box-shadow: 0 0 35px #bbc0ca; padding-bottom: 88px; }
.screen { display: none; min-height: 100vh; padding: env(safe-area-inset-top, 0) 14px 18px; background: linear-gradient(130deg, #f0f4fd 0, #fafbff 29%, #f3f5fa 78%); }
.screen.active { display: block; }
.status { display: flex; justify-content: space-between; align-items: center; height: 59px; padding: 0 15px; font-weight: 650; font-size: 1.65rem; letter-spacing: .02em; }
.signal { font-size: 1.25rem; letter-spacing: 0; color: #040506; }
.battery { padding: 0 5px; background: #1c1d20; color: white; font-size: 1.05rem; border-radius: 5px; vertical-align: 2px; }
.trade-head { display: flex; align-items: center; justify-content: space-between; }
.account-tabs { display: flex; gap: 15px; font-size: 1.28rem; color: #747981; white-space: nowrap; }
.account-tabs button { line-height: 36px; white-space: nowrap; }
.account-tabs .selected, .watch-tabs .selected, .report-tabs .selected { color: #1a1c21; font-weight: 800; position: relative; }
.account-tabs .selected::after, .watch-tabs .selected::after, .report-tabs .selected::after, .monthly-tabs .selected::after { content: ''; position: absolute; height: 4px; width: 34px; border-radius: 4px; background: currentColor; bottom: -4px; left: 50%; transform: translateX(-50%); }
.account { color: #747981; text-align: right; font-size: .8rem; line-height: 1.15; }
.account b { font-size: .94rem; font-weight: 650; }
.hero-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 13px; }
.quick { height: 61px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 7px; background: rgba(255,255,255,.86); box-shadow: 0 3px 9px #dde2eb; }
.quick strong { font-size: 1.82rem; line-height: 1; font-weight: 800; }.quick span { font-size: .78rem; margin-top: 6px; color: #676c75; }.quick sup { color: #73a7d2; font-size: .65rem; font-weight: 500; top: -1em; position: relative; }.buy strong { color: #e42d2c; }.sell strong { color: #176fca; }.cancel strong { color: #df7316; }.hold strong { color: #93723d; }.query strong { color: #41454e; }
.credit-actions { display: grid; grid-template-columns: repeat(5, 1fr); padding: 17px 2px 20px; gap: 7px; }.credit-actions button { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: .78rem; white-space: nowrap; }.credit-actions i { display: grid; place-items: center; width: 27px; height: 27px; font-size: 1.34rem; font-style: normal; border: 2px solid #1a1c20; border-radius: 3px; line-height: 1; }.credit-actions i::first-letter { color: #ed3334; }
.card { background: rgba(255,255,255,.96); border-radius: 13px; box-shadow: 0 5px 17px rgba(58,70,93,.05); }.asset-card { padding: 14px 14px 16px; }.asset-title, .gain-title { display: flex; justify-content: space-between; color: #848a93; font-size: .84rem; }.asset-title small { color: #abb0b8; }.asset-total { font-size: 1.76rem; font-weight: 750; letter-spacing: .01em; padding: 11px 0 15px; }.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 10px; }.asset-grid > div { min-width: 0; }.asset-grid label, .report-stats label { display: block; color: #9298a0; font-size: .7rem; margin-bottom: 4px; white-space: nowrap; }.asset-grid b { display: block; font-size: .84rem; letter-spacing: -.045em; white-space: nowrap; }.green { color: #159875 !important; }.red { color: #e43536 !important; }.transfer { min-width: 0; align-self: end; background: #ed3335; color: white; font-weight: 750; font-size: .93rem; padding: 8px 6px; border-radius: 999px; white-space: nowrap; }
.gain-card { margin-top: 12px; padding: 15px 14px 12px; }.gain-title b { font-size: 1.08rem; color: #191b20; }.gain-value { margin-top: 9px; color: #e43536; font-size: 1.4rem; font-weight: 800; }.gain-value small { font-size: .78rem; margin-left: 3px; }.gain-value em { color: #9a6a30; font-style: normal; font-weight: 500; font-size: .72rem; margin-left: 8px; white-space: nowrap; }.gain-value em b { color: #e43536; }.chart-legend { margin-top: 12px; color: #868a92; font-size: .73rem; }.orange-dot { color: #d88d29; }.blue-dot { color: #137bd7; }.mini-chart { width: 100%; height: 55px; display: block; margin-top: 2px; }.orange-line, .blue-line, .report-red-line { fill: none; stroke-width: 2.5; }.orange-line { stroke: #d7953d; }.blue-line { stroke: #197dce; }.blue-fill { fill: #197dce; }.tiles { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.tiles button { min-height: 83px; padding: 13px; background: #fff; border-radius: 7px; text-align: left; }.tiles b { display: block; font-size: 1.04rem; }.tiles span { display: block; color: #9a9fa8; margin-top: 10px; font-size: .74rem; }.tiles i { color: #dc8831; font-style: normal; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(470px, 100%); height: calc(76px + env(safe-area-inset-bottom, 0)); padding: 8px 8px env(safe-area-inset-bottom, 0); display: flex; justify-content: space-around; background: rgba(255,255,255,.97); border-top: 1px solid #e8e9ec; }.bottom-nav.hidden { display: none; }.bottom-nav button { min-width: 45px; display: flex; flex-direction: column; align-items: center; color: #747981; font-size: .85rem; }.bottom-nav i { display: grid; place-items: center; height: 31px; font-size: 1.55rem; line-height: 1; font-style: normal; }.bottom-nav .active { color: #eb3639; }.bottom-nav .active i { font-weight: 800; }
.search { height: 43px; margin: 6px 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: white; border: 1px solid #dfe2e8; padding: 0 15px; color: #888c94; font-size: 1rem; }.search span:first-child { font-size: 2rem; line-height: .6; color: #6f737b; }.search button { font-size: 1.7rem; margin-left: auto; }.indices { margin: 0 -14px; padding: 13px 15px 10px; display: grid; grid-template-columns: 1fr 1fr 1fr 42px 42px; gap: 8px; background: #fff; border-radius: 16px 16px 0 0; }.indices div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }.indices span { font-size: .9rem; white-space: nowrap; }.indices b, .indices em { color: #dc3639; font-style: normal; }.indices b { font-size: 1.35rem; }.indices em { font-size: .74rem; white-space: nowrap; }.indices button { font-size: 1.55rem; display: flex; flex-direction: column; align-items: center; }.indices small { font-size: .84rem; margin-top: 4px; }.watch { background: #fff; padding-left: 14px; padding-right: 14px; }.watch-tabs { display: grid; grid-template-columns: 1.15fr 1.15fr 1.4fr .4fr; border-top: 1px solid #f0f0f0; background: #fff; margin: 0 -14px; padding: 12px 14px 8px; }.watch-tabs button { font-size: 1.1rem; text-align: left; }.watch-tabs .selected::after { left: 27%; bottom: -8px; }.watch-tabs button:last-child { text-align: right; font-size: 1.45rem; color: #72777f; }.quote-header { display: grid; grid-template-columns: 1.7fr .8fr .85fr .75fr; color: #9a9da3; padding: 18px 0 8px; font-size: .95rem; }.quote-header span:not(:first-child) { text-align: right; }.quotes { background: #fff; }.quote { width: 100%; display: grid; grid-template-columns: 1.7fr .8fr .85fr .75fr; align-items: center; min-height: 72px; text-align: right; }.quote span { text-align: left; }.quote span b { display: block; font-size: 1.22rem; font-weight: 500; }.quote small { display: block; margin-top: 5px; color: #969aa1; font-size: .82rem; }.quote small i { display: inline-grid; place-items: center; margin-left: 3px; font-size: .7rem; height: 17px; width: 15px; color: #b07c38; border: 1px solid #e6d0ad; font-style: normal; }.quote small i:nth-of-type(n+2) { color: #43869c; border-color: #b9d6dd; }.quote strong { color: #df3335; font-size: 1.15rem; font-weight: 560; }
.analysis { padding-left: 14px; padding-right: 14px; padding-bottom: 90px; }.report-title { height: 95px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; }.report-title button { font-size: 3.5rem; font-weight: 200; line-height: 1; }.report-title h1 { margin: 0; text-align: center; font-size: 1.55rem; font-weight: 500; }.report-tabs { margin: 0 -14px; padding: 8px 19px 18px; display: flex; justify-content: space-between; border-bottom: 1px solid #e8eaee; }.report-tabs button { font-size: 1.15rem; }.report-tabs .selected::after { bottom: -18px; }.report-meta { display: flex; justify-content: space-between; padding: 26px 0 12px; color: #969ba4; font-size: .84rem; }.report-summary { overflow: hidden; text-align: center; }.monthly-tabs { height: 50px; display: flex; border-bottom: 1px solid #eff0f2; }.monthly-tabs button { flex: 1; font-size: 1.22rem; font-weight: 750; }.monthly-tabs .selected { position: relative; }.monthly-tabs .selected::after { bottom: 0; }.month { display: flex; justify-content: space-between; padding: 22px 29px 14px; color: #aab0b9; font-size: 2.1rem; }.month b { color: #1f2226; font-size: 1.25rem; }.report-summary > label { color: #9298a0; font-size: .95rem; }.report-summary > strong { display: block; color: #e43536; font-size: 2.55rem; padding: 10px 0 26px; }.report-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 0 14px 24px; text-align: center; }.report-stats b { font-size: 1.25rem; }.return-rate { margin-top: 15px; padding: 18px 15px 12px; overflow: hidden; }.return-rate h2 { margin: 0; font-size: 1.32rem; }.return-rate p { margin: 39px 0 20px; font-size: 1rem; line-height: 1.8; border-bottom: 1px solid #eff0f2; padding-bottom: 16px; }.return-rate > div:not(.report-legend) { display: flex; justify-content: space-between; font-size: 1rem; padding: 19px 0; border-bottom: 1px solid #f0f0f0; color: #9398a1; }.return-rate > div b { font-size: 1.1rem; }.return-rate h3 { margin: 26px 0 17px; font-size: 1.08rem; }.report-legend { text-align: right; color: #8b9099; font-size: .88rem; }.report-legend .red { color: #e63537; }.return-rate svg { width: 100%; height: 115px; margin-top: 6px; }.report-red-line { stroke: #e63537; }.analysis-nav { position: fixed; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%); width: min(470px, 100%); height: calc(85px + env(safe-area-inset-bottom, 0)); padding: 8px 12px env(safe-area-inset-bottom, 0); display: flex; justify-content: space-between; background: white; border-top: 1px solid #eee; }.analysis-nav button { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #777c84; font-size: .78rem; }.analysis-nav i { font-style: normal; font-size: 1.9rem; line-height: 1; }.analysis-nav .active { color: #ed3437; }
@media (min-width: 600px) { body { padding: 20px 0; }.app-shell { min-height: calc(100vh - 40px); border-radius: 26px; }.bottom-nav, .analysis-nav { border-radius: 0 0 26px 26px; } }
@media (max-width: 360px) { .account-tabs { gap: 8px; font-size: 1.08rem; }.account-tabs button { white-space: nowrap; }.account { font-size: .72rem; }.account b { font-size: .82rem; }.asset-grid label { font-size: .7rem; }.asset-grid b { font-size: .84rem; }.asset-total { font-size: 1.85rem; } }

/* Screenshot-backed display mode: source imagery is preserved at its native aspect ratio. */
.pixel-capture { padding-bottom: 0; background: #fff; }
.pixel-capture .screen { min-height: auto; padding: 0; background: #fff; }
.pixel-capture .screen > :not(.pixel-frame) { display: none !important; }
.pixel-frame { position: relative; display: block; width: 100%; line-height: 0; }
.pixel-frame img { display: block; width: 100%; height: auto; }
.status-icon-mask { position: absolute; z-index: 3; top: 1.1%; left: 8%; width: 20%; height: 3.1%; background: linear-gradient(135deg, #f1f5fc 0%, #f8f9fd 66%, #f3f6fb 100%); }
.status-icon-mask::after { content: ''; position: absolute; top: 0; left: 315%; width: 128%; height: 100%; background: inherit; }
.pixel-capture + .bottom-nav, .pixel-capture .bottom-nav, .pixel-capture .analysis-nav { display: none !important; }
.bottom-hitbar { position: absolute; left: 0; right: 0; bottom: 0; height: 12.7%; display: grid; grid-template-columns: repeat(6, 1fr); }
.bottom-hitbar button, .transfer-hit, .back-hit { border: 0; background: transparent; cursor: pointer; }
.numeric-layer { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.live-value { position: absolute; display: block; box-sizing: border-box; background: #fff; color: #17191d; font-weight: 650; line-height: 1.15; white-space: nowrap; }
.trade-values .asset-total { top: 34.3%; left: 5.9%; font-size: clamp(20px, 7.4vw, 35px); }
.trade-values .debt { top: 41.3%; left: 5.9%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .guarantee { top: 41.3%; left: 35.1%; font-size: clamp(10px, 3.5vw, 16px); }
.trade-values .daily { top: 41.3%; left: 64.3%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .cash { top: 47.6%; left: 5.9%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .usable { top: 47.6%; left: 35.1%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .withdraw { top: 47.6%; left: 64.3%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .ratio { top: 52.1%; left: 35.1%; font-size: clamp(11px, 3.7vw, 17px); }
.trade-values .monthly { top: 63.7%; left: 5.9%; font-size: clamp(16px, 5.4vw, 26px); }
.green { color: #159875 !important; }
.watch-values .live-value { color: #de3637; font-size: clamp(12px, 4.2vw, 20px); background: #fff; }
.watch-values .quote-price { left: 43.3%; width: 16%; text-align: right; }
.watch-values .quote-percent { left: 62.8%; width: 16%; text-align: right; }
.watch-values .quote-diff { left: 84%; width: 13%; text-align: right; }
.analysis-values .analysis-income { top: 34.9%; left: 29%; font-size: clamp(25px, 8.6vw, 40px); }
.analysis-values .analysis-rate { top: 44.8%; left: 18.6%; font-size: clamp(17px, 5.7vw, 27px); }
.analysis-values .analysis-net { top: 44.8%; left: 53.6%; font-size: clamp(17px, 5.7vw, 27px); }
.analysis-values .analysis-my-rate { top: 62.8%; right: 6%; font-size: clamp(15px, 5vw, 24px); }
.analysis-values .analysis-index-rate { top: 69.2%; right: 6%; font-size: clamp(15px, 5vw, 24px); }
.live-tabbar { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(470px, 100%); height: calc(76px + env(safe-area-inset-bottom, 0)); padding: 8px 8px env(safe-area-inset-bottom, 0); display: flex; justify-content: space-around; background: #fff; border-top: 1px solid #ececee; }
.live-tabbar.hidden { display: none; }
.live-tabbar button { min-width: 45px; display: flex; flex-direction: column; align-items: center; color: #747981; font-size: .85rem; }
.live-tabbar i { display: grid; place-items: center; height: 31px; font-size: 1.55rem; line-height: 1; font-style: normal; }
.live-tabbar .active { color: #eb3639; }.live-tabbar .active i { font-weight: 800; }
.analysis-livebar { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(470px, 100%); height: calc(85px + env(safe-area-inset-bottom, 0)); padding: 8px 12px env(safe-area-inset-bottom, 0); display: flex; justify-content: space-between; background: #fff; border-top: 1px solid #ececee; }
.analysis-livebar.hidden { display: none; }.analysis-livebar button { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #777c84; font-size: .78rem; }.analysis-livebar i { font-style: normal; font-size: 1.9rem; line-height: 1; }.analysis-livebar .active { color: #ed3437; }
.transfer-hit { position: absolute; right: 7%; top: 37.1%; width: 28%; height: 4%; border-radius: 999px; }
.back-hit { position: absolute; left: 0; top: 4.2%; width: 19%; height: 7%; }

/* Stable hybrid layout: screenshots end before live data begins. */
.pixel-capture { padding-bottom: 0; background: #f5f7fc; }
.pixel-capture .screen { min-height: 100vh; padding: 0 0 92px; background: #f5f7fc; }
.pixel-capture .screen:not(.active) { display: none; }
.pixel-capture .pixel-frame { position: relative; display: block; overflow: hidden; width: 100%; background: #f5f7fc; }
#trade .pixel-frame { aspect-ratio: 1279 / 678; }
#watch .pixel-frame { aspect-ratio: 1279 / 615; }
#analysis .pixel-frame { aspect-ratio: 1279 / 455; }
.pixel-capture .pixel-frame > img { position: absolute; inset: 0 auto auto 0; display: block; width: 100%; height: auto; transform: translateY(-4.687%); }
.pixel-capture .numeric-layer,
.pixel-capture .bottom-hitbar,
.pixel-capture .transfer-hit,
.pixel-capture .back-hit { display: none !important; }
.pixel-capture .status-icon-mask { display: none; }

#trade > .status, #trade > .trade-head, #trade > .hero-actions, #trade > .credit-actions,
#watch > .status, #watch > .search, #watch > .indices, #watch > .watch-tabs, #watch > .quote-header,
#analysis > .status, #analysis > .report-title, #analysis > .report-tabs, #analysis > .report-meta, #analysis > .analysis-nav { display: none !important; }

#trade > .asset-card, #trade > .gain-card { display: block !important; margin-left: 14px; margin-right: 14px; }
#trade > .asset-card { margin-top: 0; }
#trade > .gain-card { margin-top: 12px; }
#trade > .tiles { display: grid !important; margin-left: 14px; margin-right: 14px; }
#watch > .quotes { display: block !important; padding: 0 14px; }
#analysis > .report-summary, #analysis > .return-rate { display: block !important; margin-left: 14px; margin-right: 14px; }
#analysis > .report-summary { margin-top: 0; }

#trade .asset-title { font-size: .86rem; }
#trade .asset-total { padding: 12px 0 17px; font-size: 1.92rem; }
#trade .asset-grid { gap: 16px 9px; }
#trade .asset-grid label { overflow: hidden; text-overflow: clip; font-size: .72rem; }
#trade .asset-grid b { font-size: .88rem; letter-spacing: -.035em; }
#trade .gain-value { display: flex; align-items: baseline; flex-wrap: nowrap; }
#trade .gain-value > span { white-space: nowrap; }
#trade .gain-value em { overflow: hidden; text-overflow: clip; }

#watch .quote { min-height: 69px; }
#watch .quote span b { font-size: 1.18rem; }
#watch .quote strong { font-size: 1.12rem; }

#analysis .report-summary { border-radius: 0 0 14px 14px; }
#analysis .return-rate { margin-top: 14px; }

@media (max-width: 360px) {
  #trade .asset-total { font-size: 1.72rem; }
  #trade .asset-grid b { font-size: .78rem; }
  #trade .asset-grid label { font-size: .64rem; }
}

/* The opaque iOS status bar owns its vertical space. The preview-only class
   simulates that device-owned 44px area in browsers without native chrome. */
html.standalone-mode,
html.standalone-preview-mode {
  background: #f5f7fc;
}
html.standalone-mode body,
html.standalone-preview-mode body { background: #f5f7fc; }
html.standalone-mode .pixel-capture { padding-top: 0; }
html.standalone-preview-mode .pixel-capture {
  padding-top: 44px;
}

/* The source watchlist screenshot contains a soft transition above the search field.
   Cover only that empty strip so it reads as one clean status-area background. */
#watch .pixel-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 17px;
  background: #f5f7fc;
  pointer-events: none;
}

/* Pixel-exact fixed tab bars: reuse the corresponding bottom strip from each
   supplied source screenshot and keep transparent buttons as click targets. */
.live-tabbar {
  height: calc(var(--main-tab-visual-height) + env(safe-area-inset-bottom, 0px));
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border-top: 0;
  isolation: isolate;
}
.live-tabbar::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: var(--main-tab-visual-height);
  background: #fff url('/screenshots/trade.jpg') center bottom / 100% auto no-repeat;
  pointer-events: none;
}
.live-tabbar[data-screen='watch']::before {
  background-image: url('/screenshots/watch.jpg');
}
.live-tabbar button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: var(--main-tab-visual-height);
  color: transparent !important;
}
.live-tabbar button i,
.live-tabbar button span { opacity: 0; }

.analysis-livebar {
  height: calc(var(--analysis-tab-visual-height) + env(safe-area-inset-bottom, 0px));
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border-top: 0;
  isolation: isolate;
}
.analysis-livebar::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: var(--analysis-tab-visual-height);
  background: #fff url('/screenshots/analysis.jpg') center bottom / 100% auto no-repeat;
  pointer-events: none;
}
.analysis-livebar button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: var(--analysis-tab-visual-height);
  color: transparent !important;
}
.analysis-livebar button i,
.analysis-livebar button span { opacity: 0; }

/* Match each source strip's native aspect ratio at every iPhone width. The
   extra screen padding keeps the final content row scrollable above the fixed
   artwork and the device-owned home-indicator safe area. */
#trade.screen,
#watch.screen {
  padding-bottom: calc(var(--main-tab-visual-height) + env(safe-area-inset-bottom, 0px) + 18px);
}
#analysis.screen {
  padding-bottom: calc(var(--analysis-tab-visual-height) + env(safe-area-inset-bottom, 0px) + 18px);
}
