.top.market-top {
  height: var(--list-row-height); min-height: var(--tab-height); padding: 0 clamp(var(--space-5),var(--inset-3vw),var(--space-14)); margin: 0;
  position: sticky; inset-block-start: 0; z-index: 7;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: var(--space-2-half);
  background: var(--ground); pointer-events: auto;
}
.market-top .wordmark { position: static; margin-inline-end: auto; font-size: var(--type-wordmark); line-height: 1; }
.market-top .search-button {
  display: grid; place-items: center; width: calc(10.5 * var(--unit)); height: calc(10.5 * var(--unit)); border-radius: var(--radius-avatar);
  padding: 0; border: var(--space-hairline) solid var(--line); box-shadow: none; background: var(--surface); color: var(--ink);
}
.market-top .search-button span { display: grid; place-items: center; }
.market-top .search-button svg, .mh-wallet svg { width: calc(4.75 * var(--unit)); height: calc(4.75 * var(--unit)); }
.mh-wallet {
  display: inline-flex; align-items: center; gap: var(--space-2-half); justify-content: center;
  min-height: calc(10.5 * var(--unit)); max-width: min(55vw,calc(82.5 * var(--unit))); border: var(--space-hairline) solid var(--line);
  padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  font-size: var(--caption-size); font-weight: 590; font-variant-numeric: tabular-nums; text-decoration: none;
}
.mh-wallet > span:first-child { display: grid; place-items: center; }
.mh-wallet > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-wallet:hover, .market-top .search-button:hover { background: var(--hover); }
.mh-strip {
  display: flex; align-items: center; gap: var(--space-4);
  width: min(calc(100% - calc(24 * var(--unit))),calc(448 * var(--unit))); padding: var(--space-2) 0 var(--space-2) var(--space-25); margin: 0 auto;
  border-block: var(--space-hairline) solid var(--line);
}
.mh-strip[hidden] { display: none; }
.mh-ticker { min-width: 0; flex: 1; display: flex; gap: var(--space-2); align-items: center; overflow: hidden; }
.mh-still, .mh-scroll { display: block; min-width: 0; color: var(--muted); font-size: var(--type-label); line-height: 1.45; }
.mh-scroll { flex: 1; overflow: hidden; white-space: nowrap; mask-image: var(--header-scroll-mask); }
.mh-track {
  display: inline-flex; width: max-content;
  animation: mh-ticker var(--ticker-time,var(--motion-ticker)) var(--motion-linear) infinite;
}
.mh-track > span { display: inline-flex; align-items: center; }
.mh-receipt { display: inline-flex; align-items: baseline; gap: var(--space-1-half); padding-inline-end: var(--space-8); }
.mh-receipt::before { content: ""; display: inline-block; width: calc(1.25 * var(--unit)); height: calc(1.25 * var(--unit)); margin: 0 var(--space-1) var(--space-half) 0; border-radius: var(--radius-avatar); background: var(--money-green); }
.mh-receipt b { font-weight: 550; color: var(--ink); }
.mh-receipt strong { font-variant-numeric: tabular-nums; font-weight: 580; color: var(--ink); }
.mh-receipt time { color: var(--muted); font-size: var(--type-micro); }
.mh-ticker:focus-within .mh-track, .mh-ticker:hover .mh-track, .mh-paused .mh-track { animation-play-state: paused; }
.mh-pause { display: grid; place-items: center; flex: 0 0 calc(9 * var(--unit)); height: calc(9 * var(--unit)); background: var(--clear); color: var(--muted); border: 0; border-radius: var(--radius-avatar); font-size: var(--type-label); }
.mh-pause:hover { background: var(--hover); color: var(--ink); }
.mh-volume { display: flex; align-items: flex-end; flex-direction: column; gap: var(--space-hairline); padding-left: var(--space-4); border-left: var(--space-hairline) solid var(--line); }
.mh-volume small, .mh-period, .mh-metric small, .mh-empty { color: var(--muted); }
.mh-volume small { font-size: var(--type-micro); }
.mh-volume strong { color: var(--ink); font-size: var(--caption-size); font-weight: 590; font-variant-numeric: tabular-nums; }
.mh-period { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--caption-size); margin-bottom: var(--space-4); }
.mh-metrics { display: grid; gap: var(--space-4); grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 0 var(--space-4); }
.mh-metric { display: flex; min-width: 0; flex-direction: column; align-items: stretch; }
.mh-metric small { font-size: var(--caption-size); line-height: var(--caption-leading); font-weight: var(--caption-weight);}
.mh-metric strong { overflow-wrap: anywhere; margin-top: var(--space-1); letter-spacing: var(--headline-tracking); font-variant-numeric: tabular-nums; font-size: var(--title-size); line-height: var(--title-leading); font-weight: var(--title-weight); }
.mh-metric strong em { display: inline-block; margin-left: var(--space-1); font: var(--caption-weight,500) var(--caption-size) var(--typeface); letter-spacing: 0; color: var(--muted); font-size: var(--caption-size); line-height: var(--caption-leading); font-weight: var(--caption-weight);}
.mh-metric svg { width: 100%; height: calc(5.75 * var(--unit)); margin-top: var(--space-2); color: var(--money-green); }
.mh-metric:nth-child(2) svg { color: var(--muted); }
.mh-metric:nth-child(3) svg { color: var(--muted); }
.mh-metric:nth-child(4) svg { color: var(--muted); }
.mh-empty { margin: var(--space-3) 0; font-size: var(--caption-size); }
@keyframes mh-ticker { to { transform: translateX(-50%); } }
@media (max-width: 800px) {
  .top.market-top { height: var(--tab-height); padding: 0 var(--space-4); gap: var(--space-2); }
  .mh-strip { width: 100%; padding: var(--space-1-half) var(--space-4); gap: var(--space-2); }
  .mh-volume { padding-left: var(--space-2-half); }
  .mh-volume strong { font-size: var(--type-label); }
  .mh-metrics { gap: var(--space-2); }
  .mh-metric small { font-size: var(--caption-size); line-height: var(--caption-leading); font-weight: var(--caption-weight);}
}
@media (prefers-reduced-motion: reduce) {
  .mh-track { animation: none; }
  .mh-pause { display: none; }
}
.mh-brand { display: flex; align-items: center; gap: var(--space-2-half); margin-right: auto; min-width: 0; }
.market-top .mh-brand .wordmark { display: inline-flex; align-items: center; min-height: var(--hit); margin: 0; }
.mh-start {
  display: inline-flex; align-items: center; justify-content: center; border: var(--space-hairline) solid var(--ink);
  border-radius: var(--radius-pill); min-height: var(--hit); padding: 0 var(--space-4);
  color: var(--ink); background: var(--surface); font-size: var(--caption-size); font-weight: 600;
}
.market-top .search-button, .mh-pause { width: var(--hit); height: var(--hit); flex: 0 0 var(--hit); }
.mh-wallet { min-height: var(--hit); }
.mh-start:hover { background: var(--hover); }
.market-top [hidden] { display: none; }
.mh-still, .mh-scroll { display: flex; align-items: center; min-height: var(--hit); }
@media (max-width: 420px) {
  .mh-brand { gap: var(--space-1-half); }
  .top.market-top { padding-inline: var(--space-3); gap: var(--space-1-half); }
  .mh-wallet { gap: var(--space-1-half); padding-inline: var(--space-2-half); max-width: 42vw; }
}
@media (max-width: 350px) {
  .mh-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .market-top .mh-brand .wordmark { min-height: var(--hit); font-size: var(--title-size); margin-bottom: calc(-1 * var(--space-1-half)); }
  .mh-brand .money-tag { font-size: var(--type-micro); padding-block: 0; }
}

.mh-loading { min-height: calc(45 * var(--unit)); padding-top: var(--space-2); }
.mh-loading div { height: calc(16.5 * var(--unit)); border-block: var(--space-hairline) solid var(--line); background: var(--surface); }

.mh-profile { display: none; }
@media (max-width: 800px) {
  .mh-profile { display: grid; flex: 0 0 var(--hit); place-items: center; width: var(--hit); height: var(--hit); border-radius: var(--radius-avatar); border: var(--space-hairline) solid var(--line); background: var(--surface); }
  .mh-profile span { display: grid; }
  .mh-profile svg { width: calc(4.75 * var(--unit)); height: calc(4.75 * var(--unit)); }
  .mh-profile[aria-current] { border-color: var(--muted); }
}
@media (max-width: 435px) {
  .mh-brand { flex-direction: column; align-items: flex-start; position: relative; }
  .market-top .mh-brand .wordmark { font-size: var(--title-size); align-items: flex-start; padding-top: var(--space-hairline); }
  .mh-brand .money-tag { position: absolute; bottom: 0; left: 0; pointer-events: none; padding: var(--space-half) var(--space-1); font-size: var(--type-micro); }
  .mh-wallet { max-width: 38vw; }
}

button.mh-volume { min-height: var(--hit); color: inherit; background: var(--clear); border-block: 0; border-right: 0; padding-block: 0; justify-content: center; }
.mh-total { font: var(--display-weight) var(--headline-size)/var(--headline-leading) var(--typeface); font-variant-numeric: tabular-nums; letter-spacing: var(--headline-tracking); }
