:root {
  --bg:#10131c;
  --panel:#151924;
  --panel-hover:#1b202d;
  --line:#252a36;
  --text:#e6e8ed;
  --muted:#939aa9;
  --faint:#626b7b;
  --red:#ff4d60;
  --green:#04bc8b;
  --orange:#ff805c;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color-scheme:dark;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-size:14px;
  line-height:1.6
}

button,input,select {
  font:inherit
}

button,select {
  cursor:pointer
}

button,a,input,select,summary {
  outline-offset:5px
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid #ff976e
}

button:disabled {
  cursor:wait;
  opacity:.5
}

button {
  color:inherit
}

a {
  color:inherit;
  text-decoration:none
}

h1,h2,h3,p {
  margin:0
}

h1 {
  font-size:30px;
  font-weight:650;
  letter-spacing:.6px
}

h2 {
  font-size:19px;
  font-weight:600
}

h3 {
  font-size:17px;
  font-weight:600
}

[hidden] {
  display:none!important
}

.icon-definitions {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}

.icon {
  width:19px;
  height:19px;
  stroke:currentColor;
  stroke-width:1.7;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}

.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  padding:8px 15px;
  background:var(--orange);
  color:#10131c;
  z-index:100
}

.skip-link:focus {
  top:12px
}

.site-header {
  height:88px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(32px,calc((100vw - 1120px)/2));
  gap:25px;
  background:#121620
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  font-weight:650;
  line-height:1.3;
  white-space:nowrap
}

.brand-mark,.dialog-brand {
  height:39px;
  width:39px;
  border-radius:12px;
  background:linear-gradient(150deg,#ff8657,#e34231);
  color:white;
  display:grid;
  place-items:center;
  font-size:27px;
  font-weight:750;
  font-style:italic;
  padding-right:3px;
  box-shadow:0 5px 20px #e3523019
}

.brand small {
  display:block;
  color:var(--faint);
  font-size:8px;
  font-weight:500;
  letter-spacing:3.8px;
  margin-top:4px
}

.header-center {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.5px
}

.live-dot {
  height:6px;
  width:6px;
  background:var(--green);
  border-radius:50%;
  display:inline-block;
  flex:none;
  box-shadow:0 0 8px #04bc8b25
}

.header-divider {
  height:12px;
  width:1px;
  background:#343a46;
  margin:0 10px
}

.button {
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:8px;
  padding:9px 15px;
  background:transparent;
  font-size:12px;
  font-weight:500;
  white-space:nowrap
}

.button.subtle {
  border-color:#313746;
  background:#191e29;
  color:#c5cbd7
}

.button.subtle:hover {
  background:#222938
}

.button.primary {
  background:#f06343;
  border-color:#f06343;
  color:#fff
}

.button.primary:hover {
  background:#ff7756
}

.button .icon {
  width:15px;
  height:15px
}

.main {
  max-width:1120px;
  margin:0 auto;
  padding:37px 0 24px
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:26px
}

.eyebrow {
  font-size:9px;
  letter-spacing:2.8px;
  color:var(--faint);
  margin-bottom:7px
}

.mode-tag {
  display:inline-block;
  font-size:9px;
  line-height:1.7;
  vertical-align:middle;
  color:#f6a27e;
  background:#39261f;
  border:1px solid #5d3529;
  border-radius:4px;
  letter-spacing:.9px;
  padding:2px 7px;
  margin:0 0 4px 13px;
  font-weight:550
}

.heading-actions {
  display:flex;
  align-items:center;
  gap:12px
}

.update-time {
  font-size:10px;
  color:var(--faint);
  font-variant-numeric:tabular-nums
}

.icon-button {
  height:35px;
  width:35px;
  display:inline-grid;
  place-items:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#a4acba;
  padding:0
}

.icon-button:hover {
  background:#222836;
  color:var(--text)
}

.icon-button .icon {
  width:19px;
  height:19px
}

.spinning .icon {
  animation:spin 1s linear infinite
}

.portfolio-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px
}

.market-tabs {
  display:flex;
  gap:7px
}

.market-tab {
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:7px;
  padding:7px 15px;
  font-size:13px
}

.market-tab span {
  font-size:10px;
  color:var(--faint);
  margin-left:8px
}

.market-tab.active {
  background:#282d3a;
  color:white
}

.market-tab.active span {
  color:#b6becc
}

.hero-card {
  width:100%;
  border:0;
  text-align:left;
  border-radius:19px;
  padding:27px 32px 23px;
  background:linear-gradient(115deg,#bf352a 0%,#bc4029 57%,#a94b29 100%);
  color:white;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:filter .2s;
  box-shadow:0 8px 30px #00000015
}

.hero-card:hover {
  filter:brightness(1.07)
}

.hero-card:after {
  content:"";
  position:absolute;
  width:400px;
  height:400px;
  border-radius:50%;
  border:65px solid #ffffff03;
  right:-65px;
  top:-200px;
  pointer-events:none
}

.hero-top {
  display:flex;
  justify-content:space-between;
  gap:20px;
  position:relative;
  z-index:1
}

.hero-label {
  font-size:13px;
  color:#f7c6b9;
  letter-spacing:.6px
}

.hero-value {
  font-size:54px;
  font-weight:650;
  letter-spacing:-1.3px;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
  margin-top:5px
}

.hero-account {
  text-align:right;
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  padding-top:2px;
  justify-content:space-between
}

.hero-account strong {
  font-size:12px;
  font-weight:500;
  letter-spacing:.3px
}

.hero-account small {
  font-size:10px;
  color:#efb9a7;
  display:block;
  margin-top:4px
}

.hero-hint {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:10px;
  color:#ffd7c9
}

.hero-hint .icon {
  width:13px;
  height:13px
}

.hero-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  border-top:1px solid #ffffff24;
  padding-top:17px;
  margin:22px 0 0;
  position:relative;
  z-index:1
}

.hero-metrics dt {
  font-size:12px;
  color:#f5c6ba;
  font-weight:400;
  letter-spacing:.3px
}

.hero-metrics dd {
  margin:4px 0 0;
  font-size:23px;
  font-weight:550;
  font-variant-numeric:tabular-nums;
  line-height:1.4;
  letter-spacing:-.3px
}

.hero-metrics small {
  font-size:8px;
  color:#efbcab;
  margin-left:5px
}

.hero-empty {
  background:#1b202c;
  padding:35px;
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:15px
}

.hero-empty h2 {
  color:var(--text);
  margin-bottom:8px
}

.hero-note {
  color:var(--faint);
  font-size:10px;
  padding:10px 3px 0;
  display:flex;
  justify-content:space-between;
  gap:10px
}

.hero-note span:last-child {
  white-space:nowrap
}

.holdings-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:37px 0 20px
}

.holdings-heading h2 {
  display:flex;
  align-items:center;
  gap:9px
}

.count-tag {
  font-size:10px;
  background:#232936;
  color:#acb5c4;
  padding:1px 7px;
  border-radius:5px;
  font-weight:500
}

.holdings-heading p {
  font-size:10px;
  color:var(--faint);
  margin-top:6px
}

.holding-tools {
  display:flex;
  align-items:center;
  gap:12px
}

.search-box {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #2b3140;
  background:#151924;
  padding:8px 11px;
  border-radius:7px
}

.search-box .icon {
  width:15px;
  height:15px;
  color:var(--faint)
}

.search-box input {
  background:none;
  outline:none;
  border:0;
  color:var(--text);
  font-size:11px;
  width:160px;
  min-width:0
}

.search-box input::placeholder {
  color:var(--faint)
}

.search-box:focus-within {
  border-color:#876145
}

.holding-tools select,.account-selector {
  border:1px solid #2b3140;
  background:#151924;
  color:var(--muted);
  border-radius:7px;
  padding:8px 10px;
  font-size:11px;
  max-width:100%
}

.market-group {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:18px;
  overflow:hidden
}

.market-header {
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr;
  align-items:center;
  gap:16px;
  padding:23px 24px;
  border-bottom:1px solid var(--line)
}

.market-name {
  display:flex;
  gap:10px;
  align-items:center
}

.market-symbol {
  height:29px;
  width:37px;
  border-radius:5px;
  background:#282f3d;
  color:#e8edf5;
  font-size:11px;
  letter-spacing:.5px;
  font-weight:650;
  display:grid;
  place-items:center;
  flex:none
}

.market-symbol.hk {
  background:#5b2630;
  color:#ff8f9c
}

.market-symbol.us {
  background:#24324c;
  color:#98b5f3
}

.market-symbol.cn {
  background:#5a3425;
  color:#ffbd81
}

.market-name h3 {
  font-size:17px
}

.market-name small {
  font-size:9px;
  color:var(--faint);
  display:block;
  margin-top:2px
}

.market-summary {
  text-align:right;
  min-width:0
}

.market-summary>span {
  color:var(--muted);
  font-size:10px;
  display:block;
  margin-bottom:3px
}

.market-summary>strong {
  font-size:20px;
  font-weight:550;
  line-height:1.4;
  display:block;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.3px
}

.market-summary>small {
  font-size:12px;
  display:block;
  margin-top:1px;
  line-height:1.4;
  font-variant-numeric:tabular-nums
}

.positive {
  color:var(--red)!important
}

.negative {
  color:var(--green)!important
}

.muted {
  color:var(--muted)
}

.account-subheading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 24px;
  color:var(--faint);
  font-size:10px;
  background:#121722;
  border-bottom:1px solid #222834
}

.account-subheading button {
  font-size:10px;
  color:#a9b2c2
}

.positions-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-variant-numeric:tabular-nums;
  table-layout:fixed
}

.positions-table th {
  font-size:10px;
  font-weight:400;
  color:#7e8797;
  padding:13px 15px 10px;
  text-align:right
}

.positions-table th:first-child {
  width:30%;
  text-align:left;
  padding-left:24px
}

.positions-table th:last-child {
  padding-right:24px
}

.positions-table td {
  padding:17px 15px;
  border-top:1px solid #222733;
  text-align:right;
  font-size:16px;
  line-height:1.5;
  letter-spacing:-.2px
}

.positions-table td:first-child {
  text-align:left;
  padding-left:24px
}

.positions-table td:last-child {
  padding-right:24px
}

.position-row {
  cursor:pointer
}

.position-row:hover {
  background:var(--panel-hover)
}

.position-row:focus-visible {
  outline-offset:-2px
}

.security-name {
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  letter-spacing:.1px
}

.secondary-value {
  display:block;
  color:var(--faint);
  font-size:11px;
  letter-spacing:0;
  margin-top:2px
}

.security-code {
  display:block;
  font-size:10px;
  color:var(--faint);
  letter-spacing:.5px;
  margin-top:4px
}

.position-pnl {
  font-weight:500
}

.group-empty {
  padding:25px 24px;
  font-size:12px;
  color:var(--faint);
  text-align:center
}

.group-warning {
  padding: 11px 20px;
  color: #e7b091;
  background: #34271f;
  border-bottom: 1px solid #59402f;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.source-notes {
  margin:25px 3px 0;
  color:var(--faint);
  font-size:10px;
  line-height:1.9
}

.source-notes summary {
  width:fit-content;
  cursor:pointer;
  color:var(--muted)
}

.source-notes p {
  margin-top:8px
}

.source-notes ul {
  padding-left:18px
}

.source-notes li {
  margin:4px 0
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:9px;
  color:#535e70;
  padding-top:34px;
  margin-top:12px;
  letter-spacing:.4px
}

.page-footer>span:last-child {
  font-size:8px;
  letter-spacing:1.2px
}

.footer-dot {
  margin:0 9px
}

.announcement,.error-banner {
  padding:10px 14px;
  border-radius:8px;
  font-size:11px;
  margin-bottom:20px;
  line-height:1.8
}

.announcement {
  border:1px solid #543d2d;
  background:#30241d;
  color:#e8af83
}

.error-banner {
  border:1px solid #60343b;
  background:#311e27;
  color:#edb2bb;
  overflow-wrap:anywhere
}

.connection-panel {
  text-align:center;
  padding:70px 25px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:15px;
  margin:30px 0
}

.connection-panel h1 {
  font-size:24px;
  margin-top:22px
}

.connection-panel p {
  color:var(--muted);
  font-size:13px;
  margin:14px auto 0;
  max-width:550px;
  overflow-wrap:anywhere
}

.empty-icon {
  display:inline-grid;
  place-items:center;
  width:72px;
  height:72px;
  background:#322820;
  color:#e99c6f;
  border:1px solid #57402f;
  border-radius:20px
}

.empty-icon .icon {
  width:32px;
  height:32px
}

.connection-actions {
  margin-top:25px;
  display:flex;
  justify-content:center;
  gap:12px
}

.connection-panel .small-note {
  font-size:10px;
  color:var(--faint);
  margin-top:25px
}

.loading-panel {
  display:grid;
  gap:20px;
  margin:40px 0
}

.skeleton {
  background:linear-gradient(100deg,#1a1e29 20%,#242a37 45%,#1a1e29 70%);
  background-size:250% 100%;
  animation:shimmer 2s linear infinite;
  border-radius:15px
}

.skeleton-hero {
  height:260px
}

.skeleton-table {
  height:210px
}

.detail-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-bottom:1px solid var(--line);
  padding:0 0 20px;
  margin-bottom:29px;
  font-size:14px;
  color:var(--muted)
}

.text-button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:12px;
  background:transparent;
  border:0;
  padding:3px 0
}

.text-button:hover {
  color:white
}

.text-button .icon {
  width:16px;
  height:16px
}

.detail-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:25px
}

.detail-title h1 {
  font-size:28px;
  letter-spacing:0
}

.detail-title p {
  font-size:11px;
  color:var(--faint);
  margin-top:4px;
  letter-spacing:.5px
}

.detail-title .market-symbol {
  height:36px;
  width:43px
}

.stock-summary {
  padding:0 0 25px
}

.stock-market-value {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}

.stock-market-value .label {
  font-size:12px;
  color:var(--muted)
}

.stock-market-value .amount {
  display:block;
  font-size:44px;
  line-height:1.5;
  font-weight:550;
  letter-spacing:-1px;
  margin-top:2px;
  font-variant-numeric:tabular-nums
}

.stock-market-value .quote {
  text-align:right
}

.stock-market-value .quote strong {
  display:block;
  font-size:24px;
  font-weight:550;
  font-variant-numeric:tabular-nums
}

.stock-market-value .quote small {
  font-size:10px;
  color:var(--faint)
}

.detail-metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  padding-top:19px;
  margin:22px 0 0;
  border-top:1px solid var(--line)
}

.detail-metrics dt {
  font-size:11px;
  color:var(--muted)
}

.detail-metrics dd {
  font-size:22px;
  margin:5px 0 0;
  font-variant-numeric:tabular-nums;
  font-weight:500
}

.detail-metrics dd small {
  display:block;
  font-size:12px;
  margin-top:2px
}

.detail-metrics .secondary-value {
  font-weight:400
}

.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  margin-top:20px;
  overflow:hidden
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:23px 24px 0
}

.panel-heading h2 {
  font-size:16px
}

.panel-heading p {
  font-size:10px;
  color:var(--faint);
  margin-top:4px
}

.period-selector {
  display:flex;
  gap:3px;
  background:#10151f;
  border:1px solid #242b39;
  border-radius:7px;
  padding:3px
}

.period-selector button {
  border:0;
  background:transparent;
  border-radius:4px;
  color:var(--faint);
  padding:4px 11px;
  font-size:10px
}

.period-selector button.active {
  background:#2a303e;
  color:#eceef3
}

.chart-legend {
  display:flex;
  gap:17px;
  align-items:center;
  font-size:10px;
  color:var(--muted);
  padding:16px 24px 0
}

.chart-legend i {
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  border-radius:50%;
  font-size:8px;
  font-style:normal;
  color:white;
  background:var(--red);
  margin-right:5px;
  font-weight:650
}

.chart-legend i.sell {
  background:var(--green)
}

.chart-legend .line-key {
  display:inline-block;
  height:2px;
  width:13px;
  background:#d3a47a;
  margin-right:6px;
  vertical-align:middle
}

.chart-wrap {
  position:relative;
  margin:6px 14px 0;
  touch-action:pan-y
}

.price-chart {
  display:block;
  width:100%;
  height:310px;
  overflow:visible
}

.chart-axis {
  font:10px var(--font);
  fill:#758093
}

.chart-note {
  font-size:10px;
  color:var(--faint);
  padding:0 24px 19px;
  line-height:1.8
}

.chart-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:240px;
  color:var(--faint);
  font-size:12px;
  padding:25px;
  line-height:1.9
}

.chart-tooltip {
  position:absolute;
  z-index:2;
  background:#303745;
  box-shadow:0 4px 20px #0006;
  color:var(--text);
  border-radius:7px;
  padding:8px 12px;
  font-size:10px;
  pointer-events:none;
  max-width:225px;
  white-space:normal;
  transform:translate(-50%,-105%);
  font-variant-numeric:tabular-nums
}

.chart-tooltip strong {
  display:block;
  font-size:14px;
  font-weight:550
}

.chart-tooltip small {
  color:#c0c8d5;
  display:block;
  margin-top:2px
}

.order-intro {
  font-size:10px;
  color:var(--faint);
  line-height:1.8;
  padding:15px 24px 18px
}

.orders-table {
  width:100%;
  border-collapse:collapse;
  font-variant-numeric:tabular-nums;
  table-layout:fixed
}

.orders-table th {
  font-size:11px;
  color:var(--muted);
  text-align:right;
  font-weight:400;
  padding:12px 24px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#131721
}

.orders-table th:first-child {
  width:28%;
  text-align:left
}

.orders-table td {
  font-size:17px;
  text-align:right;
  padding:18px 24px;
  border-bottom:1px solid #242a36;
  line-height:1.5
}

.orders-table td:first-child {
  text-align:left
}

.orders-table tr:last-child td {
  border-bottom:0
}

.orders-table .month-row td {
  background:#10141c;
  font-size:12px;
  color:#919aaa;
  text-align:left;
  padding:11px 24px;
  border-top:1px solid #282e3b;
  border-bottom:1px solid #282e3b
}

.order-side {
  font-size:15px
}

.order-side small {
  display:block;
  font-size:10px;
  color:var(--faint);
  margin-top:3px
}

.order-date {
  font-size:13px!important;
  letter-spacing:.2px
}

.orders-table .secondary-value {
  font-size:11px
}

.orders-empty {
  padding:35px;
  text-align:center;
  color:var(--faint);
  font-size:12px
}

.detail-note {
  padding:15px 1px;
  color:var(--faint);
  font-size:10px;
  line-height:1.9;
  overflow-wrap:anywhere
}

.extra-metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:24px
}

.extra-metrics dt {
  font-size:11px;
  color:var(--muted)
}

.extra-metrics dd {
  margin:7px 0 0;
  font-size:22px;
  font-weight:550;
  font-variant-numeric:tabular-nums
}

.account-chart-stat {
  padding:18px 24px 0;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:11px;
  color:var(--muted)
}

.account-chart-stat strong {
  font-size:24px;
  font-weight:550
}

.previous-position {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:17px 24px;
  border-top:1px solid var(--line);
  gap:20px;
  cursor:pointer
}

.previous-position:first-of-type {
  margin-top:20px
}

.previous-position:hover {
  background:var(--panel-hover)
}

.previous-position>span:first-child strong {
  font-size:13px;
  font-weight:500
}

.previous-position>span:last-child {
  font-size:10px;
  color:var(--muted)
}

.account-select-row {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  margin:0 0 20px
}

.login-dialog {
  width:min(460px,calc(100vw - 30px));
  padding:27px 29px 0;
  background:#181d29;
  border:1px solid #343b4c;
  border-radius:17px;
  color:var(--text);
  box-shadow:0 25px 80px #0008;
  max-height:calc(100dvh - 40px);
  overflow-y:auto
}

.login-dialog::backdrop {
  background:#07090ed9;
  backdrop-filter:blur(6px)
}

.dialog-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:23px
}

.dialog-brand {
  height:37px;
  width:37px;
  font-size:26px
}

.login-dialog h2 {
  font-size:25px
}

.dialog-intro {
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.9
}

.login-status {
  font-size:11px;
  color:#b4bdcc;
  background:#222a39;
  border:1px solid #343e50;
  border-radius:7px;
  padding:10px 12px;
  margin-top:20px;
  line-height:1.9;
  overflow-wrap:anywhere
}

.login-form {
  margin-top:19px
}

.login-form label {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:14px
}

.login-form input {
  display:block;
  width:100%;
  background:#111620;
  border:1px solid #363e4e;
  border-radius:7px;
  padding:10px 12px;
  margin-top:6px;
  color:var(--text);
  font-size:14px;
  outline-offset:2px
}

.login-form .button {
  width:100%;
  margin-top:20px
}

.login-help {
  font-size:11px;
  color:var(--muted);
  line-height:1.9;
  margin-top:17px
}

.login-help p {
  margin-top:10px
}

.login-help a {
  color:#e8ac80;
  text-decoration:underline;
  text-underline-offset:3px
}

.login-help code {
  font-size:10px;
  background:#101620;
  padding:2px 5px;
  border-radius:4px;
  color:#c6cfdf;
  word-break:break-all
}

.login-help ol {
  padding-left:20px
}

.login-help li {
  margin:10px 0
}

.login-help .button {
  width:100%;
  margin-top:16px;
  text-decoration:none;
  color:white
}

.dialog-footer {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  color:var(--faint);
  border-top:1px solid #303746;
  margin-top:24px;
  padding:15px 0
}

.dialog-footer .live-dot {
  height:4px;
  width:4px
}

.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:#373f4f;
  border:1px solid #535e72;
  color:white;
  border-radius:9px;
  padding:11px 18px;
  font-size:12px;
  z-index:90;
  max-width:90%;
  width:max-content;
  box-shadow:0 8px 24px #0005
}

.privacy .sensitive {
  filter:blur(8px);
  user-select:none
}

.privacy .sensitive::selection {
  background:transparent
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

@keyframes shimmer {
  to {
    background-position:250% 0
  }
}

@media(min-width:1500px) {
  .main {
    max-width:1160px;
    padding-top:43px
  }
  .site-header {
    padding-left:calc((100vw - 1160px)/2);
    padding-right:calc((100vw - 1160px)/2)
  }
  .hero-card {
    padding:31px 37px 26px
  }
  .hero-value {
    font-size:60px
  }
  .hero-metrics {
    margin-top:25px;
    padding-top:21px
  }
  .hero-metrics dd {
    font-size:26px
  }
  .positions-table td {
    padding-top:20px;
    padding-bottom:20px
  }
}

@media(max-width:1200px) {
  .main {
    margin:0 32px
  }
  .site-header {
    padding:0 32px
  }
  .hero-value {
    font-size:49px
  }
  .hero-metrics dd {
    font-size:22px
  }
}

@media(max-width:800px) {
  .main {
    margin:0 24px;
    padding-top:28px
  }
  .site-header {
    padding:0 24px;
    height:77px
  }
  .header-center {
    font-size:10px
  }
  .header-center .header-divider,.header-center span:last-child {
    display:none
  }
  .brand {
    font-size:18px
  }
  .brand-mark {
    height:35px;
    width:35px;
    font-size:25px
  }
  .hero-value {
    font-size:45px
  }
  .hero-card {
    padding:25px 26px 21px
  }
  .hero-metrics dd {
    font-size:21px
  }
  .hero-metrics {
    gap:12px
  }
  .holdings-heading {
    align-items:flex-start;
    gap:18px
  }
  .holding-tools {
    gap:8px
  }
  .search-box input {
    width:130px
  }
  .holding-tools select {
    max-width:115px
  }
  .market-header {
    padding:20px;
    gap:12px
  }
  .market-summary>strong {
    font-size:18px
  }
  .market-summary>small {
    font-size:11px
  }
  .positions-table th:first-child,.positions-table td:first-child {
    padding-left:20px
  }
  .positions-table th:last-child,.positions-table td:last-child {
    padding-right:20px
  }
  .positions-table td {
    font-size:15px;
    padding:17px 12px
  }
  .positions-table th {
    padding-left:12px;
    padding-right:12px
  }
  .security-name {
    font-size:14px
  }
  .detail-metrics dd {
    font-size:20px
  }
  .extra-metrics dd {
    font-size:20px
  }
}

@media(max-width:600px) {
  body {
    font-size:13px
  }
  .site-header {
    height:65px;
    padding:0 18px;
    gap:8px
  }
  .brand {
    gap:9px;
    font-size:16px
  }
  .brand-mark {
    height:31px;
    width:31px;
    border-radius:9px;
    font-size:23px
  }
  .brand small {
    font-size:6px;
    letter-spacing:2.9px;
    margin-top:3px
  }
  .header-center {
    margin-left:auto;
    font-size:9px;
    gap:6px
  }
  .header-center .live-dot {
    height:5px;
    width:5px
  }
  .site-header>.button {
    padding:7px 9px;
    font-size:10px;
    margin-left:5px;
    gap:6px
  }
  .site-header>.button .icon {
    width:13px;
    height:13px
  }
  .main {
    margin:0 16px;
    padding-top:25px
  }
  .page-heading {
    margin-bottom:20px
  }
  h1 {
    font-size:26px
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:2px;
    margin-bottom:5px
  }
  .mode-tag {
    font-size:7px;
    margin-left:9px;
    padding:1px 5px;
    margin-bottom:3px
  }
  .heading-actions {
    gap:7px;
    align-self:flex-end;
    margin-bottom:2px
  }
  .update-time {
    font-size:8px;
    max-width:95px;
    text-align:right;
    line-height:1.6
  }
  .icon-button {
    width:28px;
    height:28px
  }
  .icon-button .icon {
    width:18px;
    height:18px
  }
  .portfolio-topline {
    margin-bottom:12px
  }
  .market-tabs {
    gap:4px
  }
  .market-tab {
    padding:6px 11px;
    font-size:12px;
    border-radius:6px
  }
  .market-tab span {
    font-size:8px;
    margin-left:6px
  }
  .hero-card {
    border-radius:15px;
    padding:21px 20px 18px
  }
  .hero-top {
    gap:10px
  }
  .hero-label {
    font-size:11px
  }
  .hero-value {
    font-size:40px;
    letter-spacing:-1px;
    margin-top:9px
  }
  .hero-account {
    padding-top:1px;
    max-width:43%;
    padding-bottom:5px
  }
  .hero-account strong {
    font-size:9px;
    line-height:1.7
  }
  .hero-account small {
    font-size:8px;
    margin-top:3px
  }
  .hero-hint {
    font-size:8px;
    gap:2px;
    line-height:1.5
  }
  .hero-hint .icon {
    width:11px;
    height:11px
  }
  .hero-metrics {
    gap:8px;
    margin-top:18px;
    padding-top:13px
  }
  .hero-metrics dt {
    font-size:9px;
    letter-spacing:0;
    white-space:nowrap
  }
  .hero-metrics dd {
    font-size:16px;
    letter-spacing:-.5px;
    margin-top:5px
  }
  .hero-metrics small {
    display:none
  }
  .hero-note {
    font-size:8px;
    gap:5px;
    padding-top:8px;
    line-height:1.7
  }
  .hero-empty {
    padding:25px;
    font-size:11px
  }
  .hero-empty h2 {
    font-size:17px
  }
  .holdings-heading {
    margin:28px 0 15px;
    flex-wrap:wrap;
    gap:14px
  }
  .holdings-heading h2 {
    font-size:17px;
    gap:8px
  }
  .count-tag {
    font-size:9px;
    padding:0 6px
  }
  .holdings-heading p {
    font-size:9px;
    margin-top:5px
  }
  .holding-tools {
    width:100%;
    justify-content:space-between;
    gap:10px
  }
  .search-box {
    padding:7px 10px;
    flex:1;
    min-width:0;
    border-radius:6px;
    gap:7px
  }
  .search-box .icon {
    width:13px;
    height:13px
  }
  .search-box input {
    width:100%;
    font-size:10px
  }
  .holding-tools select {
    padding:7px 8px;
    font-size:10px;
    max-width:113px;
    border-radius:6px
  }
  .market-group {
    border-radius:10px;
    margin-bottom:15px
  }
  .market-header {
    grid-template-columns:1fr 1fr 1fr 1fr;
    padding:16px 13px;
    gap:8px
  }
  .market-name {
    gap:6px;
    align-items:flex-start
  }
  .market-symbol {
    height:20px;
    width:25px;
    font-size:8px;
    border-radius:4px;
    margin-top:2px
  }
  .market-name h3 {
    font-size:15px;
    white-space:nowrap
  }
  .market-name small {
    font-size:7px;
    margin-top:2px
  }
  .market-summary>span {
    font-size:8px;
    margin-bottom:4px;
    white-space:nowrap
  }
  .market-summary>strong {
    font-size:13px;
    letter-spacing:-.3px
  }
  .market-summary>small {
    font-size:10px;
    margin-top:3px;
    letter-spacing:-.2px
  }
  .positions-table th {
    font-size:8px;
    padding:10px 7px;
    text-align:right
  }
  .positions-table th:first-child {
    padding-left:13px;
    width:30%
  }
  .positions-table th:last-child {
    padding-right:13px
  }
  .positions-table td {
    padding:14px 7px;
    font-size:12px;
    letter-spacing:-.2px
  }
  .positions-table td:first-child {
    padding-left:13px
  }
  .positions-table td:last-child {
    padding-right:13px
  }
  .security-name {
    font-size:13px;
    letter-spacing:0
  }
  .secondary-value {
    font-size:9px;
    margin-top:3px
  }
  .security-code {
    font-size:8px;
    margin-top:5px;
    letter-spacing:.1px
  }
  .position-pnl .secondary-value {
    font-size:10px
  }
  .account-subheading {
    padding:8px 13px;
    font-size:8px;
    gap:5px
  }
  .account-subheading button {
    font-size:8px
  }
  .group-empty {
    font-size:10px;
    padding:25px 15px
  }
  .source-notes {
    font-size:9px;
    margin-top:21px
  }
  .page-footer {
    padding:26px 0 2px;
    margin-top:3px;
    font-size:8px;
    gap:12px;
    flex-wrap:wrap
  }
  .page-footer>span:last-child {
    font-size:6px;
    letter-spacing:1px
  }
  .footer-dot {
    margin:0 6px
  }
  .announcement,.error-banner {
    font-size:10px;
    padding:9px 11px;
    margin-bottom:17px
  }
  .connection-panel {
    padding:45px 20px;
    margin-top:10px
  }
  .connection-panel h1 {
    font-size:21px
  }
  .connection-panel p {
    font-size:11px
  }
  .connection-panel .small-note {
    font-size:9px;
    line-height:1.9
  }
  .connection-actions {
    gap:8px
  }
  .button {
    font-size:11px;
    padding:9px 12px
  }
  .empty-icon {
    width:62px;
    height:62px;
    border-radius:17px
  }
  .detail-nav {
    padding-bottom:15px;
    margin-bottom:23px;
    gap:10px;
    font-size:12px
  }
  .text-button {
    font-size:10px;
    gap:3px
  }
  .text-button .icon {
    width:14px;
    height:14px
  }
  .detail-title {
    margin-bottom:21px
  }
  .detail-title h1 {
    font-size:23px
  }
  .detail-title p {
    font-size:10px
  }
  .detail-title .market-symbol {
    height:30px;
    width:38px;
    font-size:10px
  }
  .stock-market-value .label {
    font-size:11px
  }
  .stock-market-value .amount {
    font-size:39px;
    letter-spacing:-.8px
  }
  .stock-market-value .quote strong {
    font-size:21px
  }
  .stock-market-value .quote small {
    font-size:8px
  }
  .detail-metrics {
    gap:10px;
    padding-top:15px;
    margin-top:17px
  }
  .detail-metrics dt {
    font-size:9px
  }
  .detail-metrics dd {
    font-size:16px;
    margin-top:7px
  }
  .detail-metrics dd small {
    font-size:11px;
    margin-top:3px
  }
  .stock-summary {
    padding-bottom:5px
  }
  .panel {
    border-radius:10px;
    margin-top:19px
  }
  .panel-heading {
    padding:18px 16px 0;
    gap:10px
  }
  .panel-heading h2 {
    font-size:14px
  }
  .panel-heading p {
    font-size:8px;
    line-height:1.8;
    margin-top:5px
  }
  .period-selector {
    gap:0;
    padding:3px;
    flex:none;
    border-radius:6px
  }
  .period-selector button {
    padding:3px 8px;
    font-size:9px
  }
  .chart-legend {
    padding:14px 16px 0;
    gap:12px;
    font-size:8px
  }
  .chart-legend i {
    width:13px;
    height:13px;
    font-size:7px;
    margin-right:4px
  }
  .chart-legend .line-key {
    width:11px;
    margin-right:4px
  }
  .chart-wrap {
    margin:6px 6px 0 0
  }
  .price-chart {
    height:235px
  }
  .chart-axis {
    font-size:10px
  }
  .chart-note {
    padding:0 16px 16px;
    font-size:8px;
    line-height:1.9
  }
  .chart-empty {
    min-height:210px;
    padding:20px;
    font-size:10px
  }
  .chart-tooltip {
    font-size:9px;
    padding:7px 9px;
    max-width:180px
  }
  .chart-tooltip strong {
    font-size:12px
  }
  .order-intro {
    font-size:8px;
    padding:12px 16px 15px
  }
  .orders-table th {
    font-size:9px;
    padding:10px 13px
  }
  .orders-table th:first-child {
    width:26%
  }
  .orders-table td {
    font-size:14px;
    padding:15px 13px;
    letter-spacing:-.2px
  }
  .order-side {
    font-size:13px
  }
  .order-side small {
    font-size:8px;
    line-height:1.7
  }
  .order-date {
    font-size:10px!important
  }
  .orders-table .secondary-value {
    font-size:9px
  }
  .orders-table .month-row td {
    font-size:11px;
    padding:9px 13px
  }
  .orders-empty {
    font-size:10px;
    padding:30px 20px
  }
  .detail-note {
    font-size:8px;
    line-height:1.9;
    padding:13px 1px
  }
  .extra-metrics {
    grid-template-columns:repeat(2,1fr);
    gap:22px 18px;
    padding:20px 17px
  }
  .extra-metrics dt {
    font-size:10px
  }
  .extra-metrics dd {
    font-size:20px;
    margin-top:5px
  }
  .account-chart-stat {
    padding:15px 16px 0;
    font-size:9px;
    gap:10px
  }
  .account-chart-stat strong {
    font-size:21px
  }
  .previous-position {
    padding:15px 16px;
    gap:10px
  }
  .previous-position>span:first-child strong {
    font-size:12px
  }
  .previous-position>span:last-child {
    font-size:9px
  }
  .account-select-row {
    font-size:10px;
    margin-bottom:18px
  }
  .account-selector {
    font-size:10px;
    padding:7px 9px
  }
  .login-dialog {
    padding:23px 23px 0;
    border-radius:14px
  }
  .login-dialog h2 {
    font-size:23px
  }
  .dialog-intro {
    font-size:11px
  }
  .login-form label {
    font-size:11px
  }
  .login-help {
    font-size:10px
  }
  .login-help code {
    font-size:9px
  }
  .toast {
    font-size:10px;
    bottom:20px;
    padding:9px 14px
  }
  .skeleton-hero {
    height:230px
  }
  .skeleton-table {
    height:200px
  }
  .loading-panel {
    gap:17px;
    margin-top:15px
  }
}

@media(max-width:380px) {
  .main {
    margin-left:12px;
    margin-right:12px
  }
  .site-header {
    padding-left:13px;
    padding-right:13px
  }
  .header-center {
    font-size:8px
  }
  .site-header>.button {
    font-size:9px;
    margin-left:3px;
    padding:6px 8px
  }
  .hero-card {
    padding:19px 16px 17px
  }
  .hero-value {
    font-size:35px
  }
  .hero-metrics dd {
    font-size:15px
  }
  .hero-metrics dt {
    font-size:8px
  }
  .market-header {
    padding-left:10px;
    padding-right:10px;
    gap:6px
  }
  .market-name {
    gap:4px
  }
  .market-symbol {
    width:22px;
    font-size:7px
  }
  .market-name h3 {
    font-size:13px
  }
  .market-summary>span {
    font-size:7px
  }
  .market-summary>strong {
    font-size:12px
  }
  .market-summary>small {
    font-size:9px
  }
  .positions-table th:first-child,.positions-table td:first-child {
    padding-left:10px
  }
  .positions-table th:last-child,.positions-table td:last-child {
    padding-right:10px
  }
  .positions-table td {
    font-size:11px
  }
  .security-name {
    font-size:12px
  }
  .stock-market-value .amount {
    font-size:35px
  }
  .detail-metrics dd {
    font-size:15px
  }
  .orders-table th,.orders-table td {
    padding-left:10px;
    padding-right:10px
  }
  .orders-table td {
    font-size:13px
  }
  .order-date {
    font-size:9px!important
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.current-user { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; white-space:nowrap; }
.unified-account { display:flex; align-items:center; gap:12px; color:var(--muted); }
.unified-account select { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:9px 12px; max-width:250px; }
.compact-market-header { grid-template-columns:1fr auto; }
.pnl-switch { border:0; padding:0; color:inherit; background:transparent; white-space:nowrap; font-size:inherit; }
.pnl-switch .icon { height:12px; width:12px; vertical-align:middle; }
.history-holdings { border-top:1px solid var(--line); }
.history-holdings summary { padding:16px 24px; cursor:pointer; color:var(--muted); }
.history-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.history-table th,.history-table td { padding:14px 24px; text-align:left; border-top:1px solid var(--line); }
.history-table th { font-size:11px; font-weight:400; color:var(--muted); }
.history-table td:last-child,.history-table th:last-child { text-align:right; }
.history-table td .secondary-value { display:block; }
.adjusted-price { display:block; color:var(--faint); font-size:10px; font-weight:400; white-space:nowrap; margin-top:3px; }
.quiet-label { font-size:10px; color:var(--muted); font-weight:400; margin-left:6px; }
.chart-tooltip { width:220px; max-width:calc(100% - 12px); white-space:nowrap; }
.tooltip-date { margin-bottom:5px; }
.tooltip-row { display:grid; grid-template-columns:auto 1fr; gap:6px; line-height:1.8; white-space:nowrap; }
.tooltip-row>span:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.history-progress { color:var(--muted); font-size:9px; margin-left:8px; white-space:nowrap; }

@media (max-width:600px) {
  .site-header { gap:10px; }
  .current-user { font-size:10px; gap:5px; }
  .current-user .icon { width:14px; height:14px; }
  .header-center { display:none; }
  .unified-account { font-size:11px; gap:8px; }
  .unified-account select { font-size:11px; max-width:220px; }
  .compact-market-header { grid-template-columns:1fr auto; }
  .history-holdings summary { padding:13px; font-size:11px; }
  .history-table th,.history-table td { padding:13px; font-size:12px; }
  .adjusted-price { font-size:8px; }
  .chart-tooltip { width:220px; font-size:11px; }
}

.hero-carousel {
  position:relative;
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}

.hero-carousel::-webkit-scrollbar { display:none; }

.hero-carousel>.hero-card,
.hero-carousel>.hero-empty {
  flex:0 0 100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

.hero-carousel>.hero-card[aria-hidden="true"] { pointer-events:none; }
.hero-carousel>.hero-card:focus-visible { outline-offset:-4px; }
.hero-card .hero-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }

.hero-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  margin-top:7px;
}

.hero-dot {
  position:relative;
  width:30px;
  height:28px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
}

.hero-dot::after {
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--faint);
  left:12px;
  top:11px;
}

.hero-dot[aria-pressed="true"]::after { background:var(--orange); }
.market-header.compact-market-header { grid-template-columns:repeat(3,minmax(0,1fr)); }
.compact-market-header .market-name { flex-wrap:wrap; }
.compact-market-header .history-progress { flex-basis:100%; margin-left:0; }

@media (max-width:600px) {
  .hero-card .hero-metrics dd { font-size:22px; }
  .hero-card .hero-metrics dt { font-size:10px; }
  .market-header.compact-market-header { gap:8px; }
}
