.broker-screen {
  background:
    radial-gradient(circle at 84% 14%, rgba(48, 160, 133, 0.13), transparent 34%),
    linear-gradient(165deg, #111f2b 0%, #0c1722 54%, #0a141e 100%);
  border-radius: 26px;
  color: #ecf5f4;
  display: flex;
  flex-direction: column;
  inset: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 12px 15px 13px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.broker-status {
  align-items: center;
  color: #a7b9bf;
  display: flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.01em;
  line-height: 16px;
  margin-bottom: 14px;
  padding: 0 3px;
}

.broker-status-icons {
  align-items: end;
  display: inline-flex;
  gap: 3px;
  height: 11px;
}

.broker-status-icons i {
  background: #a7b9bf;
  border-radius: 2px;
  display: block;
  width: 3px;
}

.broker-status-icons i:nth-child(1) { height: 5px; }
.broker-status-icons i:nth-child(2) { height: 8px; }
.broker-status-icons i:nth-child(3) { height: 11px; }

.broker-topbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin-bottom: 25px;
}

.broker-brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #68e6b3, #38c5bc);
  border-radius: 11px;
  box-shadow: 0 4px 18px rgba(64, 214, 160, 0.19);
  color: #092527;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 18px;
  font-weight: 850;
  height: 38px;
  justify-content: center;
}

.broker-brand-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.broker-brand-name strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.broker-brand-name span {
  color: #90a5ac;
  font-size: 10px;
}

.broker-profile {
  align-items: center;
  background: #243542;
  border: 1px solid #39515a;
  border-radius: 50%;
  color: #c9e0dc;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 10px;
  font-weight: 750;
  height: 34px;
  justify-content: center;
}

.broker-overview {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.broker-caption {
  color: #8ea5ad;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.broker-balance {
  display: block;
  font-size: clamp(30px, 3vw, 37px);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.14;
}

.broker-gain {
  color: #56dfaa;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 7px 0 0;
}

.broker-gain-period {
  color: #94a9ad;
  font-weight: 500;
  margin-left: 4px;
}

.broker-chart {
  flex: 0 0 130px;
  height: 130px;
  margin: 4px 0 0;
  min-height: 0;
  width: 100%;
}

.broker-chart svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.broker-grid-line {
  fill: none;
  stroke: rgba(165, 192, 194, 0.1);
  stroke-width: 1;
}

.broker-chart-area {
  fill: url(#broker-chart-fill);
}

.broker-chart-line {
  fill: none;
  stroke: #58e4b0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.broker-chart-halo {
  fill: rgba(88, 228, 176, 0.2);
}

.broker-chart-point {
  fill: #70f0be;
}

.broker-chart-axis {
  color: #728b92;
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.06em;
  margin: 2px 0 15px;
}

.broker-periods {
  align-items: center;
  color: #7f969e;
  display: flex;
  flex: 0 0 30px;
  font-size: 10px;
  font-weight: 750;
  justify-content: space-between;
  margin-bottom: 15px;
}

.broker-periods span {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  min-width: 32px;
}

.broker-periods .is-selected {
  background: rgba(64, 214, 160, 0.14);
  color: #69edb8;
}

.broker-watchlist-heading {
  align-items: center;
  border-top: 1px solid rgba(174, 207, 209, 0.11);
  display: flex;
  flex: 0 0 31px;
  justify-content: space-between;
  margin-bottom: 3px;
  padding-top: 11px;
}

.broker-watchlist-heading strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.broker-watchlist-heading > span {
  color: #60e1ad;
  font-size: 10px;
  font-weight: 650;
}

.broker-watchlist-heading > span span {
  font-size: 16px;
  line-height: 0;
}

.broker-watchlist {
  flex: 0 0 auto;
}

.broker-asset {
  align-items: center;
  border-bottom: 1px solid rgba(174, 207, 209, 0.075);
  display: grid;
  gap: 8px;
  grid-template-columns: 31px minmax(0, 1fr) 66px 64px;
  min-height: 53px;
}

.broker-asset-icon {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.broker-asset-icon-nvda { background: #315326; color: #c6fa91; }
.broker-asset-icon-amd { background: #5a2634; color: #ffadb9; }
.broker-asset-icon-spy { background: #24446b; color: #a4d2ff; }

.broker-asset-name,
.broker-asset-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.broker-asset-name strong,
.broker-asset-price strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.broker-asset-name span {
  color: #80959c;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-asset-price {
  align-items: flex-end;
}

.broker-asset-price span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.broker-asset-price .is-positive {
  color: #59dbaa;
}

.broker-sparkline {
  fill: none;
  height: 27px;
  stroke: #4bd8a5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 66px;
}

.broker-sparkline-muted {
  stroke: #70accb;
}

.broker-disclaimer {
  color: #6b858b;
  flex: 0 0 auto;
  font-size: 9px;
  margin: auto 0 7px;
  text-align: center;
}

.broker-tabbar {
  align-items: center;
  border-top: 1px solid rgba(174, 207, 209, 0.1);
  color: #6f8790;
  display: flex;
  flex: 0 0 45px;
  justify-content: space-around;
  padding-top: 7px;
}

.broker-tabbar span {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  gap: 4px;
  line-height: 1;
  min-width: 55px;
}

.broker-tabbar .is-current {
  color: #68e9b5;
}

.broker-tab-icon {
  display: block;
  flex-shrink: 0;
  fill: none;
  height: 19px;
  width: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 620px) {
  .broker-screen {
    border-radius: 22px;
    inset: 0;
    padding: 9px 11px 10px;
  }

  .broker-status {
    font-size: 9px;
    line-height: 12px;
    margin-bottom: 8px;
  }

  .broker-topbar {
    margin-bottom: 14px;
  }

  .broker-brand-mark {
    border-radius: 9px;
    flex-basis: 34px;
    height: 34px;
  }

  .broker-profile {
    flex-basis: 30px;
    height: 30px;
  }

  .broker-overview {
    margin-bottom: 8px;
  }

  .broker-balance {
    font-size: 31px;
  }

  .broker-chart {
    flex-basis: 108px;
    height: 108px;
    margin-top: 0;
  }

  .broker-chart-axis {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .broker-periods {
    flex-basis: 26px;
    margin-bottom: 10px;
  }

  .broker-periods span {
    height: 25px;
    min-width: 29px;
  }

  .broker-watchlist-heading {
    flex-basis: 27px;
    margin-bottom: 2px;
    padding-top: 8px;
  }

  .broker-asset {
    gap: 6px;
    grid-template-columns: 29px minmax(0, 1fr) 51px 61px;
    min-height: 47px;
  }

  .broker-asset-icon {
    height: 29px;
    width: 29px;
  }

  .broker-sparkline {
    width: 51px;
  }

  .broker-disclaimer {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .broker-tabbar {
    flex-basis: 38px;
    padding-top: 5px;
  }
}
