@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
.grid > * {
  min-width: 0;
}
.mobile-trade {
  display: none;
}
@media (max-width: 700px) {
  .mobile-trade {
    position: fixed;
    display: flex;
    gap: 10px;
    left: 0;
    right: 0;
    bottom: calc(73px + env(safe-area-inset-bottom));
    padding: 10px 18px;
    background: #222222f5;
    backdrop-filter: blur(12px);
    z-index: 14;
    border-top: 1px solid #3b3b3b;
  }
  .mobile-trade .btn {
    flex: 1;
  }
  .stock-page .page {
    padding-bottom: 175px;
  }
}
@media (max-width: 370px) {
  body .index-grid {
    margin-right: -13px;
    padding-right: 13px;
  }
}

:root {
  color-scheme: dark;
  --bg: #171717;
  --panel: #262626;
  --card: #2d2d2d;
  --line: #3b3b3b;
  --muted: #adadad;
  --text: #f5f5f5;
  --blue: #2675ff;
  --green: #62d4ae;
  --red: #f48f99;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  transition: background 0.15s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #80a7ff;
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
.value {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  font-weight: 650;
}
p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #292929;
  display: flex;
  flex-direction: column;
  padding: 34px 20px;
  background: #111111;
}
.brand {
  display: flex;
  align-items: center;
  width: 164px;
  height: 55px;
  overflow: hidden;
  margin: -4px 9px 42px;
}
.brand-logo {
  width: 150px;
  height: 45px;
  display: block;
  flex: 0 0 auto;
  position: relative;
  background: #fff;
  -webkit-mask: url("/assets/istreet-logo.png") center / contain no-repeat;
  mask: url("/assets/istreet-logo.png") center / contain no-repeat;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/istreet-logo.png") center / contain no-repeat;
  clip-path: inset(0 70% 0 0);
}
.nav {
  display: grid;
  gap: 9px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a3a3a3;
  padding: 14px 17px;
  font-size: 14px;
  border-radius: 12px;
}
.nav a.active {
  color: #f5f5f5;
  background: #2d2d2d;
}
.nav a.active svg {
  color: #5993ff;
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 14px 0;
  display: grid;
  gap: 20px;
}
.base-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a8a8a8;
}
.base-logo {
  width: 18px;
  height: 18px;
  background: #2675ff;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.base-logo:after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 13px;
  height: 2px;
  background: white;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 90px;
  border-bottom: 1px solid #292929;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a3a3a3;
  max-width: 420px;
  flex: 1;
}
.global-search input {
  background: none;
  border: 0;
  outline: none;
  color: white;
  width: 100%;
  font-size: 13px;
}
.global-search kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 5px;
  border-radius: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.network {
  font-size: 12px;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  gap: 7px;
}
.network i,
.online-dot {
  background: var(--green);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.avatar {
  height: 36px;
  width: 36px;
  background: #303030;
  color: #a8c6ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.btn {
  border-radius: 10px;
  min-height: 42px;
  padding: 11px 18px;
  background: #2675ff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.secondary {
  background: #3b3b3b;
  color: #eeeeee;
}
.btn.outline {
  background: transparent;
  border: 1px solid #505050;
}
.btn.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.text-link {
  color: #82aaff;
  font-size: 12px;
}
.page {
  max-width: 1510px;
  margin: auto;
  padding: 34px 40px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 15px;
}
.page-heading p {
  margin-top: 7px;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #b0b0b0;
  margin-bottom: 10px;
}
.pill {
  font-size: 10px;
  background: #333333;
  color: #c9c9c9;
  border: 1px solid #444444;
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 21px;
}
.panel {
  background: var(--panel);
  border: 1px solid #3a3a3a;
  border-radius: 17px;
  padding: 23px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.panel-head small {
  font-size: 11px;
}
.balance-panel {
  background:
    radial-gradient(ellipse at 15% 0%, #363636 0, transparent 70%), #262626;
}
.value {
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.35;
}
.value.compact {
  font-size: 31px;
}
.value small {
  font: 500 13px "DM Sans";
  letter-spacing: 0;
  margin-left: 8px;
}
.balance-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.balance-head p {
  font-size: 12px;
  margin-top: 9px;
}
.good {
  color: var(--green);
}
.bad {
  color: var(--red);
}
.chart {
  position: relative;
  height: 300px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #393939;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 20%, #37373766, transparent 30%),
    linear-gradient(180deg, #292929, #262626);
}
.chart.large {
  height: 410px;
}
.chart svg {
  width: 100%;
  height: 100%;
  display: block;
  padding: 33px 57px 19px 9px;
}
.chart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 61px,
    #55555555 62px,
    transparent 63px
  );
  color: var(--muted);
}
.chart-empty .icon {
  color: #3e72bd;
  width: 35px;
  height: 35px;
}
.chart-note {
  font-size: 10px;
  color: #a0a0a0;
  margin-top: 9px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaaaaa;
  margin: 9px 8px 0;
}
.chart-labels span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chart-labels b {
  color: #56677f;
  font-weight: 450;
}
.chart-state {
  position: absolute;
  z-index: 4;
  top: 13px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.chart-state i,
.feed-pill i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}
.feed-live {
  color: var(--green) !important;
}
.feed-delayed {
  color: #e7bc72 !important;
}
.feed-stale {
  color: #f08d91 !important;
}
.feed-unavailable {
  color: var(--muted) !important;
}
.feed-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.chart-axis {
  position: absolute;
  z-index: 3;
  top: 49px;
  right: 13px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a3a3a3;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.chart-observation {
  fill: #8cb7ff;
  stroke: #262626;
  stroke-width: 1.5;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.chart-stale .chart-observation {
  opacity: 0.5;
}
.observation-count {
  margin: 8px 8px 0;
  color: #9c9c9c;
  font-size: 9px;
}
.chart-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2s ease-out infinite;
}
.chart-tooltip {
  position: absolute;
  z-index: 6;
  top: 45px;
  left: 16px;
  padding: 8px 11px;
  border: 1px solid #515151;
  background: #303030f2;
  border-radius: 7px;
  font-size: 11px;
  pointer-events: none;
  box-shadow: 0 10px 28px #00000099;
}
.ranges {
  display: flex;
  gap: 5px;
}
.ranges button {
  font-size: 11px;
  color: #b0b0b0;
  min-width: 34px;
  padding: 7px;
  border-radius: 6px;
}
.ranges button.active {
  color: #ffffff;
  background: #414141;
}
.balance-bottom {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.balance-bottom strong {
  display: block;
  font-size: 16px;
  margin-top: 5px;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.market-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid #3b3b3b;
}
.market-row:last-child {
  border: 0;
}
.company-logo {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #f7f9fc;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  color: #253449;
  font-weight: 750;
  font-size: 13px;
}
.company-logo img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  border-radius: 5px;
  background: #f7f9fc;
}
.company-logo.large {
  width: 54px;
  height: 54px;
  font-size: 21px;
}
.company-label {
  flex: 1;
  min-width: 0;
}
.company-label b {
  font-size: 13px;
  font-weight: 550;
}
.company-label small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.row-value {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.row-value small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 34ch;
}
.star {
  color: #b0b0b0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.star.saved {
  color: #78a9ff;
  background: #353535;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 17px;
}
.section-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.index-card {
  padding: 22px;
  background: linear-gradient(140deg, #353535, #262626 70%);
  border: 1px solid #414141;
  border-radius: 16px;
  position: relative;
  min-width: 0;
}
.index-card h3 {
  margin: 19px 0 9px;
}
.index-card p {
  font-size: 12px;
  min-height: 40px;
}
.index-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 11px;
  color: #b5b5b5;
}
.logo-stack {
  display: flex;
  padding-left: 7px;
}
.logo-stack .company-logo {
  width: 29px;
  height: 29px;
  border: 2px solid #303030;
  margin-left: -7px;
  border-radius: 50%;
  font-size: 9px;
}
.logo-stack .company-logo img {
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}
.card-link {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.ai-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 25px;
  background: linear-gradient(110deg, #353535, #303030 50%, #292929);
  border: 1px solid #484848;
  border-radius: 15px;
  margin-top: 20px;
}
.ai-orb {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #225bb8;
  color: #d6e8ff;
  flex-shrink: 0;
}
.ai-banner p {
  font-size: 12px;
  margin-top: 5px;
}
.ai-banner .btn {
  margin-left: auto;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.table th {
  text-align: right;
  color: #a3a3a3;
  font-weight: 450;
  padding: 0 10px 16px;
  white-space: nowrap;
}
.table th:first-child,
.table td:first-child {
  text-align: left;
  padding-left: 0;
}
.table td {
  border-top: 1px solid #3b3b3b;
  padding: 18px 10px;
  text-align: right;
  white-space: nowrap;
}
.table td a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table td .company-logo {
  width: 33px;
  height: 33px;
}
.notice {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  background: #303030;
  color: #bcbcbc;
  border: 1px solid #414141;
  margin-top: 18px;
}
.notice.warning {
  background: #27231c;
  border-color: #423825;
  color: #d4bd8c;
}
.empty {
  padding: 38px 20px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.empty .icon {
  width: 29px;
  height: 29px;
  color: #6b96d2;
}
.empty p {
  font-size: 13px;
  max-width: 380px;
}
.empty h3 {
  font-size: 16px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  overflow-x: auto;
}
.tabs button {
  font-size: 13px;
  color: var(--muted);
  padding: 13px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #ffffff;
  border-color: var(--blue);
}
.filters {
  display: flex;
  gap: 8px;
  margin: 15px 0 22px;
  flex-wrap: wrap;
}
.filters button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: #adadad;
}
.filters button.active {
  background: #3e3e3e;
  color: #f5f5f5;
  border-color: #555555;
}
.input,
textarea,
select {
  width: 100%;
  background: #202020;
  border: 1px solid #494949;
  border-radius: 10px;
  padding: 13px 14px;
  color: white;
  outline: none;
}
.input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
}
label {
  display: block;
  font-size: 12px;
  color: #c4c4c4;
  margin: 17px 0 9px;
}
.field-row {
  display: flex;
  gap: 13px;
}
.field-row > * {
  flex: 1;
  min-width: 0;
}
.stock-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stock-title {
  flex: 1;
}
.stock-title p {
  font-size: 12px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5b5b5;
  font-size: 12px;
  margin-bottom: 23px;
}
.stock-chart .value {
  font-size: 41px;
  margin: 9px 0;
}
.chart-source-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 14px;
}
.chart-source-head h2 {
  margin: 5px 0 0;
  font-size: 19px;
}
.chart-controls {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.spot-chart {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  border-radius: 18px;
  background: #262626;
}
.spot-chart.loading {
  display: grid;
  place-items: center;
  padding: 28px;
  color: #adadad;
  text-align: center;
}
.spot-canvas {
  width: 100%;
  height: 100%;
}
.spot-live-dot {
  position: absolute;
  right: 66px;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: 2px solid #ddebff;
  border-radius: 999px;
  background: #438aff;
  box-shadow: 0 0 0 0 #438aff80;
  pointer-events: none;
  animation: chartPulse 1.8s ease-out infinite;
}
.chart-disclosure {
  margin-top: 16px;
}
.metric-strip {
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  overflow-x: auto;
  white-space: nowrap;
}
.metric-strip span {
  font-size: 11px;
  color: #aaaaaa;
}
.metric-strip b {
  color: #e8e8e8;
  font-weight: 500;
  margin-left: 7px;
}
.trade-layout {
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
}
.ticket {
  align-self: start;
  position: sticky;
  top: 20px;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  margin: 22px 0 25px;
}
.segmented button {
  flex: 1;
  padding: 10px;
  border-radius: 7px;
  color: #b0b0b0;
  font-size: 13px;
}
.segmented button.active {
  background: var(--blue);
  color: white;
}
.amount-field {
  position: relative;
}
.amount-field input {
  padding: 20px 70px 20px 15px;
  font-size: 29px;
  letter-spacing: -1px;
}
.amount-field span {
  position: absolute;
  right: 14px;
  top: 29px;
  color: #b0b0b0;
  font-size: 12px;
}
.ticket small {
  display: block;
  line-height: 1.6;
}
.ticket .btn.full {
  margin-top: 22px;
}
.ticket dl,
.receipt dl {
  margin: 20px 0;
}
.ticket dl div,
.receipt dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: #b5b5b5;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.subgrid .panel p {
  font-size: 12px;
  margin-top: 13px;
}
.news-item {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child {
  border: 0;
}
.news-item h4 {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  margin: 7px 0;
}
.news-item small {
  font-size: 10px;
}
.allocation {
  height: 8px;
  display: flex;
  gap: 4px;
  border-radius: 4px;
  overflow: hidden;
  margin: 23px 0;
}
.allocation i {
  background: #2675ff;
}
.allocation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.allocation-row .company-label small {
  font-size: 10px;
}
.weight-bar {
  width: 65px;
  background: #454545;
  height: 4px;
  border-radius: 3px;
}
.weight-bar i {
  display: block;
  height: 100%;
  background: #5590ff;
  border-radius: 3px;
}
.editor-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}
.editor-row label {
  margin: 0;
  flex: 1;
}
.editor-row input {
  width: 77px;
  padding: 9px;
  border-radius: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.stat small {
  font-size: 11px;
}
.stat strong {
  display: block;
  font: 600 27px Manrope;
  letter-spacing: -0.8px;
  margin: 11px 0;
}
.donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 25px auto;
  position: relative;
}
.donut:before {
  content: "";
  position: absolute;
  inset: 23px;
  background: #262626;
  border-radius: 50%;
}
.donut span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 13px;
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 12px;
}
.legend i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}
.activity-row {
  display: flex;
  gap: 15px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.activity-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #484848;
  background: #383838;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #8db6f0;
}
.status {
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  background: #1d3431;
  color: #8ad8b7;
}
.status.pending {
  background: #3a3121;
  color: #e4c485;
}
.page-foot {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #999999;
  line-height: 1.7;
}
.page-foot a {
  color: #b5b5b5;
}
.page-foot > span:last-child { display: flex; align-items: flex-start; gap: 16px; }
.page-foot a:hover { color: #8db6f0; }
.mobile-nav {
  display: none;
}
dialog {
  background: #292929;
  border: 1px solid #505050;
  border-radius: 19px;
  color: white;
  max-width: 510px;
  width: calc(100% - 32px);
  padding: 27px;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #000000b8;
  backdrop-filter: blur(7px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-head button {
  color: #c2c2c2;
  font-size: 23px;
}
.wallet-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  margin-top: 12px;
  border: 1px solid #4b4b4b;
  border-radius: 11px;
  text-align: left;
}
.wallet-option.featured-wallet { border-color: rgba(38,117,255,.62); background: linear-gradient(135deg,rgba(38,117,255,.18),rgba(38,117,255,.06)); }
.otp-input { font-size: 28px; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }
.wallet-option small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.address {
  overflow-wrap: anywhere;
  font-family: monospace;
  background: #202020;
  padding: 18px;
  border: 1px solid #444444;
  border-radius: 10px;
  font-size: 13px;
  margin: 19px 0;
}
.receipt > strong {
  font-size: 28px;
  font-family: Manrope;
  display: block;
  margin: 18px 0;
}
.trade-amounts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.trade-amounts > span {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #b5b5b5;
}
.trade-amounts b {
  color: var(--text);
  font: 700 22px/1.15 Manrope, sans-serif;
}
.trade-amounts small {
  grid-column: 2;
  text-align: right;
}
.trade-amounts i {
  color: var(--blue);
  font-style: normal;
  text-align: center;
}
.trade-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 18px;
}
.trade-total > span {
  font-weight: 700;
}
.trade-total > strong {
  font: 700 18px/1.35 Manrope, sans-serif;
  text-align: right;
}
.price-details {
  margin-top: 3px;
  color: #a9a9a9;
  font-size: 12px;
  font-weight: 500;
}
.price-details summary {
  cursor: pointer;
  list-style: none;
}
.price-details summary::-webkit-details-marker { display: none; }
.price-details summary::after { content: " ›"; }
.price-details[open] summary::after { content: " ⌄"; }
.price-details > div {
  display: grid;
  gap: 8px;
  min-width: 250px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #202020;
}
.price-details > div span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.price-details b { color: var(--text); }
.dialog-error {
  color: #ffadac;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0;
  white-space: pre-wrap;
}
.progress-message {
  font-size: 12px;
  line-height: 1.6;
  color: #a9c8f9;
  margin: 14px 0;
}
.check-label {
  display: flex;
  gap: 11px;
  line-height: 1.6;
  font-size: 12px;
}
.check-label input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: #2675ff;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #353535;
  color: #f2f2f2;
  border: 1px solid #606060;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: min(90vw, 520px);
  box-shadow: 0 10px 60px #0008;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.search-results {
  position: fixed;
  left: 265px;
  top: 75px;
  width: 390px;
  max-height: 70vh;
  overflow: auto;
  z-index: 10;
  background: #292929;
  border: 1px solid #505050;
  border-radius: 12px;
  padding: 5px 17px;
  box-shadow: 0 20px 40px #0008;
}
.search-results[hidden] {
  display: none;
}
@keyframes pulse {
  0% {
    opacity: 0.65;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 13px;
  }
  .topbar {
    padding: 0 25px;
  }
  .page {
    padding: 28px 25px;
  }
  .grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  }
  .trade-layout {
    grid-template-columns: minmax(0, 1.7fr) 270px;
  }
  .panel {
    padding: 19px;
  }
  .index-card {
    padding: 18px;
  }
  .value {
    font-size: 35px;
  }
  .search-results {
    left: 213px;
  }
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px;
  }
  .brand {
    width: 38px;
    height: 38px;
    margin: 0 6px 44px;
  }
  .brand-logo {
    width: 108px;
    height: 32px;
    margin-left: -2px;
    -webkit-mask-position: left center;
    mask-position: left center;
  }
  .brand-logo::after {
    background-position: left center;
  }
  .nav a {
    padding: 15px;
    justify-content: center;
  }
  .nav a span,
  .sidebar-foot {
    display: none;
  }
  .topbar {
    height: 77px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .index-grid {
    gap: 12px;
  }
  .index-card {
    padding: 17px;
  }
  .index-card h3 {
    font-size: 15px;
  }
  .search-results {
    left: 100px;
  }
  .trade-layout {
    grid-template-columns: 1fr;
  }
  .ticket {
    position: static;
  }
  .chart.large {
    height: 355px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    padding: 0 20px;
    height: 77px;
    gap: 12px;
    border-bottom: 0;
  }
  .global-search kbd,
  .network {
    display: none;
  }
  .global-search input {
    font-size: 12px;
  }
  .global-search {
    min-width: 0;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions .btn {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 35px;
  }
  .avatar {
    display: none;
  }
  .page {
    padding: 15px 18px 105px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: start;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 260px;
  }
  .page-heading > .pill {
    font-size: 9px;
    margin-top: 5px;
  }
  .grid,
  .trade-layout,
  .subgrid {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 18px;
  }
  .panel {
    border-radius: 17px;
    padding: 20px;
  }
  .value {
    font-size: 38px;
  }
  .balance-head {
    gap: 9px;
  }
  .balance-head p {
    font-size: 11px;
  }
  .balance-head .ranges {
    gap: 0;
  }
  .ranges button {
    min-width: 28px;
    font-size: 10px;
    padding: 7px 5px;
  }
  .chart {
    height: 255px;
  }
  .chart.large {
    height: 350px;
  }
  .balance-bottom .btn {
    font-size: 11px;
    padding: 10px 13px;
  }
  .balance-bottom small {
    font-size: 10px;
  }
  .balance-bottom strong {
    font-size: 15px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .index-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
    margin-right: -18px;
    padding-right: 18px;
  }
  .index-card {
    min-width: 260px;
    scroll-snap-align: start;
    padding: 22px;
  }
  .index-card h3 {
    font-size: 18px;
  }
  .index-card p {
    font-size: 12px;
  }
  .ai-banner {
    padding: 20px;
    flex-wrap: wrap;
    gap: 13px;
  }
  .ai-banner h3 {
    font-size: 15px;
  }
  .ai-banner > div:nth-child(2) {
    flex: 1;
  }
  .ai-banner .btn {
    margin-left: 56px;
  }
  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
  .table th,
  .table td {
    font-size: 11px;
    padding: 15px 7px;
  }
  .table .company-label b {
    font-size: 12px;
  }
  .table td a {
    gap: 8px;
  }
  .table td .company-logo {
    width: 29px;
    height: 29px;
  }
  .page-foot {
    flex-direction: column;
    gap: 9px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: #171717f5;
    backdrop-filter: blur(15px);
    border-top: 1px solid #3b3b3b;
    padding: 9px 12px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #a5a5a5;
    font-size: 9px;
    min-width: 53px;
    padding: 7px 5px;
  }
  .mobile-nav a.active {
    color: #7eacff;
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }

  .stock-title h1 {
    font-size: 23px;
  }
  .stock-heading {
    gap: 12px;
  }
  .stock-chart .value {
    font-size: 38px;
  }
  .stock-chart .balance-head {
    margin-top: 22px;
  }
  .chart-source-head {
    display: grid;
    align-items: flex-start;
    margin-top: 22px;
  }
  .chart-controls {
    margin-top: 4px;
  }
  .spot-chart {
    width: calc(100% + 20px);
    height: 390px;
    margin-inline: -10px;
    border-radius: 14px;
  }
  .metric-strip {
    gap: 20px;
    padding-bottom: 3px;
  }
  .metric-strip span {
    font-size: 10px;
  }
  .stock-heading .company-logo.large {
    width: 46px;
    height: 46px;
  }
  .stock-heading .pill {
    font-size: 9px;
  }
  .ticket {
    scroll-margin-top: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats .stat:last-child {
    grid-column: span 2;
  }
  .stat strong {
    font-size: 25px;
  }
  .stats .panel {
    padding: 18px;
  }
  .tabs {
    gap: 22px;
  }
  .activity-row {
    gap: 10px;
  }
  .activity-row .company-label b {
    font-size: 12px;
  }
  .activity-row .row-value {
    font-size: 11px;
  }
  .activity-row .status {
    font-size: 9px;
  }
  .search-results {
    left: 18px;
    right: 18px;
    top: 69px;
    width: auto;
  }
  dialog {
    padding: 22px;
  }
  .chart-note {
    font-size: 9px;
  }
  #toast {
    bottom: 95px;
  }
  .breadcrumb {
    margin-bottom: 20px;
  }
  .allocation-row {
    gap: 10px;
  }
  .weight-bar {
    width: 45px;
  }
}
@media (max-width: 370px) {
  .page {
    padding-left: 13px;
    padding-right: 13px;
  }
  .panel {
    padding: 16px;
  }
  .value {
    font-size: 32px;
  }
  .balance-head {
    flex-wrap: wrap;
  }
  .topbar {
    padding: 0 13px;
  }
  .stock-heading .pill {
    display: none;
  }
}

/* Shared iStreet surfaces: desktop and Base use this same design system. */
:root {
  --safe-top: max(env(safe-area-inset-top, 0px), var(--host-safe-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--host-safe-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--host-safe-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--host-safe-right, 0px));
}
html { scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { transition: color .18s, background .18s, border-color .18s, box-shadow .18s; }
input, textarea, select { font-size: 14px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #84afff; outline-offset: 3px;
}
h1 { font-size: clamp(27px, 2.4vw, 36px); font-weight: 600; letter-spacing: -1.4px; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
.page { max-width: 1450px; padding: 38px 36px 42px; }
.page:focus { outline: none; }
.page-heading { margin-bottom: 30px; }
.page-heading p { color: #b0b0b0; font-size: 13px; }
.sidebar { background: #111; border-color: #303030; padding-top: 27px; }
.brand { margin-bottom: 42px; }
.nav a { min-height: 48px; border-radius: 11px; }
.nav a.active { background: #2b2b2b; color: #fff; }
.nav a.active svg { color: #71a2ff; }
.topbar { height: 88px; padding: 0 36px; background: #171717; }
.global-search { padding: 12px 15px; border: 1px solid #373737; border-radius: 12px; background: #222; max-width: 385px; }
.global-search:focus-within { border-color: #7198df; }
.global-search input { min-width: 0; }
.top-actions > button:not(.btn) { width: 42px; height: 42px; border: 1px solid #3a3a3a; border-radius: 50%; color: #bcbcbc; display: grid; place-items: center; }
.mobile-brand { display: none; }
.btn { background: var(--blue); border: 1px solid transparent; border-radius: 11px; min-height: 46px; padding: 12px 19px; }
.btn.small { min-height: 40px; }
.btn.secondary { background: #3b3b3b; border-color: #4a4a4a; }
.text-link { color: #a5c4ff; display: inline-flex; gap: 7px; align-items: center; }
.text-link .icon { width: 15px; height: 15px; }
.panel { background: #262626; border: 1px solid #3a3a3a; border-radius: 22px; padding: 25px; }
.panel-head { margin-bottom: 20px; }
.pill { background: #343434; border-color: #484848; border-radius: 100px; color: #c4c4c4; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; padding: 6px 10px; }
.pill .base-logo { width: 13px; height: 13px; }
.pill .base-logo::after { top: 6px; height: 1px; width: 9px; }
.eyebrow { display: block; font-size: 10px; font-weight: 550; letter-spacing: 1.5px; color: #b6b6b6; }
.overview-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr); gap: 20px; }
.overview-balance { display: flex; flex-direction: column; background: linear-gradient(135deg, #373737 0%, #2d2d2d 55%, #262626 100%); }
.overview-balance .balance-head { align-items: center; margin-bottom: 22px; }
.overview-balance .eyebrow { margin: 0; }
.quiet-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #555; border-radius: 50%; color: #ddd; }
.welcome-value { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.22; letter-spacing: -1.3px; margin-bottom: 12px; }
.overview-balance > p { font-size: 12px; }
.overview-balance .balance-bottom { margin-top: auto; padding-top: 20px; padding-bottom: 20px; border: 0; }
.balance-actions { display: grid; gap: 9px; }
.ownership-note { display: flex; justify-content: center; align-items: center; gap: 7px; color: #b5b5b5; font-size: 10px; margin-top: 17px; }
.ownership-note .icon { width: 14px; height: 14px; }
.spotlight-panel { overflow: hidden; }
.spotlight-company { display: flex; gap: 12px; align-items: center; }
.spotlight-company h2 { font-size: 19px; margin-bottom: 3px; }
.spotlight-company small { font-size: 11px; }
.spotlight-price { display: flex; align-items: center; gap: 12px; font: 500 24px Manrope, sans-serif; letter-spacing: -.6px; }
.spotlight-price .icon { width: 18px; color: #adadad; }
.spotlight-panel > .ranges { justify-content: flex-end; }
.chart { background: transparent; border: 0; border-radius: 0; height: 248px; margin-top: 5px; }
.chart svg { padding: 33px 46px 12px 0; }
.chart-labels { color: #a0a0a0; }
.observation-count { color: #aaa; font-size: 10px; margin-top: 12px; }
.chart-state { top: 10px; left: 0; }
.chart-note { color: #aaa; font-size: 11px; line-height: 1.6; }
.dashboard-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.holdings-preview { display: flex; flex-direction: column; }
.holdings-preview .empty { flex: 1; align-content: center; }
.market-row { padding: 19px 0; gap: 12px; }
.company-label b { font-size: 14px; font-weight: 550; }
.row-value { font-size: 14px; font-weight: 550; }
.row-value small { font-size: 10px; font-weight: 400; }
.company-logo { border-radius: 13px; width: 42px; height: 42px; }
.star { min-width: 42px; width: 42px; height: 42px; border-radius: 50%; }
.star.saved { color: #85b0ff; background: #303b50; }
.empty { padding: 42px 18px; gap: 13px; }
.empty-symbol { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(140deg, #414141, #303030); border: 1px solid #525252; margin-bottom: 8px; box-shadow: 0 8px 25px #00000015; }
.empty-symbol .icon { width: 27px; height: 27px; color: #a3c3ff; }
.empty h3 { font-size: 18px; letter-spacing: -.4px; }
.empty p { max-width: 315px; font-size: 12px; }
.empty .btn { margin-top: 7px; }
.section-heading { margin-top: 36px; margin-bottom: 20px; gap: 15px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.8px; }
.index-card { background: linear-gradient(135deg, #343434, #272727 80%); border: 1px solid #444; border-radius: 22px; padding: 25px; overflow: hidden; }
.index-card::before { content: ""; position: absolute; top: -58px; right: -70px; width: 160px; height: 160px; border: 1px solid #ffffff0b; border-radius: 50%; box-shadow: 0 0 0 20px #ffffff02, 0 0 0 40px #ffffff02; pointer-events: none; }
.index-card h3 { margin: 30px 0 10px; font-size: 20px; letter-spacing: -.65px; }
.index-card p { color: #b5b5b5; font-size: 12px; min-height: 60px; }
.index-card-foot { margin-top: 24px; gap: 10px; font-size: 10px; }
.allocation { height: 6px; gap: 3px; margin: 25px 0; }
.allocation i { background: #4a8bff; }
.ai-banner { background: linear-gradient(110deg, #333, #292929); border: 1px solid #444; border-radius: 22px; padding: 25px; gap: 18px; }
.ai-orb { border: 1px solid #597aaf; background: #304568; color: #bfd4ff; width: 48px; height: 48px; border-radius: 16px; }
.filters button { min-height: 42px; border-radius: 100px; padding: 9px 18px; }
.filters button.active { background: #eeeeee; color: #171717; border-color: #eee; }
.tabs { gap: 28px; }
.tabs button { min-height: 48px; font-size: 13px; }
.tabs button.active { color: #fff; }
.input, textarea, select { background: #202020; border: 1px solid #4b4b4b; border-radius: 12px; padding: 14px 15px; min-height: 46px; }
.input::placeholder, textarea::placeholder { color: #8f8f8f; opacity: 1; }
textarea { resize: vertical; line-height: 1.7; }
label { color: #c6c6c6; margin-top: 21px; }
.editor-row { border-bottom: 1px solid #373737; padding: 11px 0; }
.editor-row .input { min-height: 42px; padding: 10px; }
.editor-row:last-of-type { border-bottom: 0; }
.allocation-row { padding: 20px 0; }
.allocation-row .company-label b { font-size: 14px; }
.allocation-row > b { margin-left: auto; font-size: 16px; font-weight: 500; }
.weight-bar { margin-left: auto; height: 5px; }
.notice { background: #2c2c2c; border-color: #414141; color: #bdbdbd; border-radius: 12px; font-size: 11px; padding: 14px 16px; }
.stats { gap: 20px; }
.stat { background: linear-gradient(135deg, #333, #262626); }
.stat small { font-size: 12px; }
.stat strong { font-size: 35px; font-weight: 500; margin: 19px 0 16px; letter-spacing: -1px; }
.stats .stat:first-child { border-color: #5b5b5b; }
.donut { width: 190px; height: 190px; margin-block: 32px; }
.donut::before { background: #262626; }
.activity-row { min-height: 88px; padding: 20px 0; }
.activity-icon { border-radius: 14px; background: #373737; color: #c1d5fa; width: 46px; height: 46px; }
.account-address { overflow-wrap: anywhere; }
.stock-page .page-heading { margin-bottom: 24px; }
.breadcrumb { color: #b9b9b9; margin-bottom: 22px; min-height: 24px; }
.stock-chart .balance-head { margin-top: 0; align-items: center; }
.stock-chart .value { font-size: 46px; line-height: 1.2; margin: 9px 0 6px; font-weight: 500; }
.stock-chart .balance-head > .pill { max-width: 52%; white-space: normal; }
.chart-controls { justify-content: space-between; margin-top: 28px; margin-bottom: 12px; }
.chart-interval { color: #aaa; font-size: 11px; }
.ranges { gap: 4px; }
.ranges button { min-width: 43px; min-height: 36px; border-radius: 100px; font-size: 11px; }
.ranges button.active { background: #eeeeee; color: #171717; }
.spot-chart { height: 430px; background: #262626; border: 0; border-radius: 0; }
.spot-chart.loading { display: flex; flex-direction: column; justify-content: center; gap: 16px; font-size: 13px; }
.loading-indicator { width: 25px; height: 25px; border: 2px solid #555; border-top-color: #78a9ff; border-radius: 50%; animation: loading-spin 1s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.metric-strip { gap: 24px; margin-top: 12px; padding: 17px 0; border-bottom: 1px solid #3a3a3a; }
.market-data-details { margin-top: 16px; font-size: 11px; color: #aaa; line-height: 1.7; }
.market-data-details summary { cursor: pointer; min-height: 28px; }
.market-data-details p { font-size: 11px; margin: 10px 0; }
.market-data-details .text-link { font-size: 11px; }
.company-about p { line-height: 1.85; }
.news-panel { margin-top: 20px; }
.news-item { padding: 22px 0; }
.news-item h4 { font-size: 14px; line-height: 1.65; margin: 8px 0; }
.ticket { background: linear-gradient(140deg, #303030, #262626); }
.ticket .segmented { background: #202020; border-color: #424242; margin-top: 25px; }
.segmented button { min-height: 42px; }
.segmented button.active { background: #414141; box-shadow: 0 1px 5px #0003; }
.amount-field input { font-size: 32px; padding-block: 24px; }
.amount-field span { top: 35px; }
.ticket small { font-size: 11px; color: #b5b5b5; }
.ticket .btn.full { min-height: 48px; margin-top: 12px; }
.ticket label { font-size: 12px; }
dialog { background: #292929; border-color: #505050; border-radius: 24px; padding: 28px; }
.dialog-head button { min-width: 42px; min-height: 42px; border-radius: 50%; }
.wallet-option { min-height: 78px; border-color: #4a4a4a; border-radius: 14px; background: #303030; }
.search-results { top: 75px; background: #292929; border-color: #505050; border-radius: 16px; }
.page-foot { color: #999; font-size: 10px; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: #4186ff; box-shadow: 0 4px 20px #2675ff20; }
  .btn.secondary:hover:not(:disabled) { background: #494949; box-shadow: none; }
  .nav a:hover, .top-actions > button:not(.btn):hover { background: #2e2e2e; color: #fff; }
  .index-card:hover { border-color: #727272; background: linear-gradient(135deg, #3b3b3b, #2b2b2b); }
  .market-row:hover, .activity-row:hover, .news-item:hover { background: #ffffff03; }
  .text-link:hover { color: #d3e2ff; }
  .filters button:not(.active):hover, .ranges button:not(.active):hover, .wallet-option:hover { background: #414141; }
}
@media (max-width: 1200px) {
  .page { padding: 30px 25px 40px; }
  .topbar { padding-inline: 25px; }
  .overview-grid { grid-template-columns: minmax(245px, .9fr) minmax(0, 1.5fr); gap: 16px; }
  .panel { padding: 21px; }
  .index-card { padding: 21px; }
  .spotlight-price { font-size: 21px; }
  .index-card h3 { font-size: 18px; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .grid:not(.trade-layout), .overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spotlight-panel .panel-head { align-items: start; flex-wrap: wrap; }
  .spotlight-price { font-size: 20px; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-card:last-child { grid-column: span 2; }
  .index-card p { min-height: auto; }
  .dashboard-secondary { grid-template-columns: 1fr; }
  .subgrid { grid-template-columns: 1fr; }
  .network { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: calc(16px + var(--safe-top)); }
  body { padding: var(--safe-top) var(--safe-right) 0 var(--safe-left); }
  .topbar { height: auto; min-height: 125px; padding: 16px 18px 12px; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .mobile-brand { display: flex; width: 112px; height: 34px; align-items: center; }
  .mobile-brand .brand-logo { width: 112px; height: 34px; margin: 0; }
  .top-actions { gap: 9px; }
  .top-actions > button:not(.btn) { width: 36px; height: 36px; }
  .top-actions .btn { min-height: 38px; padding: 8px 12px; font-size: 11px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; padding: 10px 13px; gap: 9px; }
  .global-search input { font-size: 16px; }
  .global-search .icon { width: 17px; height: 17px; }
  .page { padding: 19px 18px calc(105px + var(--safe-bottom)); }
  .page-heading { margin-bottom: 22px; align-items: start; }
  .page-heading h1 { font-size: 27px; line-height: 1.22; letter-spacing: -1px; }
  .page-heading p { font-size: 12px; line-height: 1.6; max-width: 310px; margin-top: 8px; }
  .page-heading > .pill { display: none; }
  .page-heading > .btn { flex-shrink: 0; padding: 10px 12px; font-size: 11px; }
  .page-heading:has(> .btn) h1 { font-size: 24px; }
  .panel { padding: 21px; border-radius: 21px; }
  .overview-grid, .dashboard-secondary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .overview-balance { padding: 23px; }
  .overview-balance .balance-head { margin-bottom: 14px; }
  .welcome-value { font-size: 33px; line-height: 1.2; letter-spacing: -1.3px; }
  .overview-balance .balance-bottom { margin-top: 16px; padding: 15px 0; border-top: 1px solid #484848; }
  .balance-actions { grid-template-columns: 1fr 1fr; gap: 9px; }
  .balance-actions .btn { min-height: 43px; font-size: 11px; padding: 10px 7px; }
  .balance-actions .btn .icon { width: 15px; }
  .ownership-note { justify-content: flex-start; margin-top: 15px; font-size: 10px; }
  .spotlight-panel .panel-head { gap: 7px; }
  .spotlight-company { gap: 10px; }
  .spotlight-company h2 { font-size: 19px; }
  .spotlight-price { font-size: 22px; gap: 7px; }
  .spotlight-price .icon { display: none; }
  .chart { height: 240px; }
  .chart-labels, .chart-state, .observation-count { font-size: 9px; }
  .chart-state { left: 0; }
  .dashboard-secondary { margin-top: 16px; }
  .section-heading { margin-top: 30px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 11px; max-width: 240px; }
  .section-heading > .text-link { font-size: 11px; text-align: right; }
  .index-grid { gap: 13px; margin-right: 0; padding-right: 0; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
  .index-card { min-width: min(285px, 89%); padding: 23px; border-radius: 21px; }
  .index-card h3 { font-size: 20px; }
  .index-card p { font-size: 12px; min-height: 58px; }
  .ai-banner { padding: 22px; gap: 14px; }
  .ai-banner h3 { font-size: 17px; line-height: 1.4; }
  .ai-banner p { font-size: 11px; }
  .ai-banner .btn { margin-left: 0; width: 100%; min-height: 43px; }
  .ai-orb { width: 43px; height: 43px; border-radius: 13px; }
  .company-label b { font-size: 13px; }
  .company-label small { font-size: 10px; }
  .row-value { font-size: 14px; }
  .row-value small { font-size: 9px; }
  .market-row { padding: 18px 0; gap: 9px; }
  .market-row .company-logo { width: 36px; height: 36px; border-radius: 11px; }
  .market-row .star { min-width: 34px; width: 34px; }
  .panel-head small { font-size: 10px; max-width: 125px; text-align: right; }
  .empty { padding: 32px 8px; }
  .empty h3 { font-size: 17px; }
  .empty p { font-size: 12px; }
  .empty-symbol { width: 60px; height: 60px; border-radius: 20px; }
  .stats { gap: 12px; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .stats .stat:last-child { grid-column: auto; }
  .stats .panel { padding: 20px; }
  .stat strong { font-size: 28px; margin: 13px 0; }
  .stats .stat:first-child strong { font-size: 38px; }
  .stat small { font-size: 11px; }
  .filters { gap: 7px; margin-top: 10px; }
  .filters button { min-height: 42px; font-size: 11px; padding: 10px 15px; }
  .input, textarea, select { font-size: 16px; }
  .editor-row { gap: 10px; }
  .editor-row label { font-size: 12px; }
  .editor-row .company-logo { width: 33px; height: 33px; border-radius: 10px; }
  .editor-row .input { width: 62px; font-size: 16px; }
  .field-row { gap: 10px; }
  .field-row label { font-size: 11px; }
  .field-row select { padding-inline: 10px; }
  .allocation-row { padding: 18px 0; }
  .allocation-row .company-label b { font-size: 13px; }
  .allocation-row > b { font-size: 14px; }
  .weight-bar { width: 35px; }
  .stock-page .breadcrumb { margin-bottom: 16px; }
  .stock-page .page-heading { margin-bottom: 20px; }
  .stock-title h1 { font-size: 27px; }
  .stock-chart { padding: 20px 16px 15px; }
  .stock-chart .balance-head { margin: 0; align-items: start; flex-wrap: nowrap; gap: 10px; }
  .stock-chart .balance-head > .pill { max-width: 145px; font-size: 9px; line-height: 1.5; padding: 5px 8px; }
  .stock-chart .value { font-size: 38px; margin: 7px 0; }
  .stock-chart .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .stock-chart .balance-head small { font-size: 11px; }
  .chart-controls { margin-top: 20px; margin-bottom: 8px; }
  .chart-interval { font-size: 10px; }
  .ranges button { min-width: 38px; min-height: 36px; font-size: 11px; padding: 8px; }
  .spot-chart { height: 335px; width: calc(100% + 12px); margin-inline: -6px; border-radius: 0; }
  .metric-strip { gap: 18px; padding-block: 14px; margin-top: 8px; }
  .metric-strip span, .market-data-details { font-size: 10px; }
  .market-data-details { margin-top: 12px; }
  .subgrid { gap: 16px; margin-top: 16px; }
  .news-panel { margin-top: 16px; }
  .news-item h4 { font-size: 13px; }
  .ticket { scroll-margin-top: calc(16px + var(--safe-top)); }
  .mobile-nav { background: #171717f5; padding: 8px max(8px, var(--safe-right)) calc(8px + var(--safe-bottom)) max(8px, var(--safe-left)); border-color: #383838; min-height: calc(72px + var(--safe-bottom)); }
  .mobile-nav a { flex: 1; min-width: 0; min-height: 54px; padding: 7px 3px; font-size: 10px; gap: 6px; position: relative; border-radius: 12px; }
  .mobile-nav a.active { color: #9bbfff; background: #292d36; }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .mobile-trade { bottom: calc(72px + var(--safe-bottom)); padding: 10px max(18px, var(--safe-right)) 10px max(18px, var(--safe-left)); background: #232323f5; border-color: #444; }
  .mobile-trade .btn { min-height: 44px; }
  .stock-page .page { padding-bottom: calc(190px + var(--safe-bottom)); }
  .search-results { top: calc(124px + var(--safe-top)); left: calc(18px + var(--safe-left)); right: calc(18px + var(--safe-right)); max-height: 55dvh; }
  dialog { margin: auto 0 0; width: 100%; max-width: none; max-height: calc(92dvh - var(--safe-top)); border-radius: 26px 26px 0 0; padding: 20px max(22px, var(--safe-right)) calc(24px + var(--safe-bottom)) max(22px, var(--safe-left)); border-bottom: 0; }
  .dialog-head { margin-bottom: 16px; }
  #toast { bottom: calc(90px + var(--safe-bottom)); font-size: 12px; }
  .stock-page #toast { bottom: calc(156px + var(--safe-bottom)); }
}
@media (max-width: 370px) {
  .page { padding-inline: 13px; }
  .topbar { padding-inline: 13px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading:has(> .btn) { flex-wrap: wrap; }
  .panel { padding: 18px; }
  .spotlight-price { font-size: 19px; }
  .index-grid { margin-right: 0; padding-right: 0; }
  .stock-chart { padding: 18px 12px 13px; }
  .stock-chart .balance-head > .pill { max-width: 120px; }
  .stock-chart .value { font-size: 34px; }
  .market-row > a.company-label { gap: 8px !important; }
  .market-row .company-logo { width: 30px; height: 30px; }
  .market-row .company-label b { font-size: 12px; }
  .row-value { font-size: 12px; }
  .row-value small { font-size: 8px; }
}

.nav .pro-shortcut {margin-top:12px;border-top:1px solid #353535;padding-top:18px;color:#9cbdff;}
.pro-shortcut-arrow {margin-left:auto;font-size:15px;}

/* Chain selection and sourced token disclosures share the existing app theme. */
#networkSelect { width: auto; min-width: 78px; max-width: 110px; height: 36px; padding: 6px 8px 6px 10px; font-size: 12px; }
.token-metadata { margin: 16px 0; font-size: 12px; }
.token-metadata > div { padding: 9px 0; border-bottom: 1px solid var(--border, #383838); }
.token-metadata dt { color: #a7a7a7; margin-bottom: 4px; }
.token-metadata dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
@media(max-width:600px) { #networkSelect { max-width: 80px; min-width: 65px; } }

/* Network filters affect discovery, never the connected trading network. */
.market-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.market-filters .filters { margin-bottom: 16px; }
.market-pagination { margin-top: 16px; flex-wrap: wrap; }

.market-row .market-asset-meta { display: flex; align-items: center; gap: 8px; }
.market-networks { display: inline-flex; align-items: center; gap: 0; isolation: isolate; }
.market-chain-label { font-size: 10px; line-height: 1.4; }
.market-row .market-asset-meta { flex-wrap: wrap; }
.market-filters > .filters { flex-wrap: wrap; }
.market-networks .chain-mini-logo { display: block; position: relative; width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; background: var(--panel); box-shadow: 0 0 0 2px var(--panel); transition: margin-inline-start 180ms ease; }
.market-networks .chain-mini-logo + .chain-mini-logo { margin-inline-start: -6px; }
.market-row > a.company-label:focus-visible .chain-mini-logo + .chain-mini-logo { margin-inline-start: 5px; }
@media (hover: hover) {
  .market-networks:hover .chain-mini-logo + .chain-mini-logo { margin-inline-start: 5px; }
}
/* Touch has no hover: keep the individual networks readable without navigation. */
@media (hover: none) {
  .market-networks .chain-mini-logo + .chain-mini-logo { margin-inline-start: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-networks .chain-mini-logo { transition: none; }
}

.market-country-filter { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; color: #aaa; }
.market-country-filter .input { width: 190px; max-width: 60%; height: 38px; padding: 7px 12px; }

@media (max-width: 370px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .mobile-brand, .mobile-brand .brand-logo { width: 96px; }
  .top-actions { gap: 5px; }
  .top-actions > button:not(.btn) { width: 28px; height: 32px; }
  .top-actions .btn { padding-inline: 8px; }
  .global-search { min-width: 0; width: 100%; }
  .global-search input { min-width: 0; width: 100%; }
}
