@import url("./glass-tokens.css");

:root {
  --mt-gap-xs: 0.618rem;
  --mt-gap-sm: 1rem;
  --mt-gap-md: 1.618rem;
  --mt-gap-lg: 2.618rem;
  --mt-radius: 1.15rem;
  --mt-radius-sm: 0.9rem;
  --mt-panel: rgba(7, 10, 15, 0.86);
  --mt-panel-strong: rgba(4, 7, 10, 0.94);
  --mt-panel-soft: rgba(10, 14, 18, 0.72);
  --mt-line: rgba(255, 255, 255, 0.08);
  --mt-line-strong: rgba(142, 184, 234, 0.16);
  --mt-text: rgba(238, 242, 247, 0.96);
  --mt-muted: rgba(154, 168, 187, 0.78);
  --mt-dim: rgba(122, 136, 154, 0.68);
  --mt-blue: rgba(142, 184, 234, 0.94);
  --mt-blue-soft: rgba(142, 184, 234, 0.12);
  --mt-ok: rgba(109, 205, 168, 0.94);
  --mt-ok-soft: rgba(109, 205, 168, 0.14);
  --mt-warn: rgba(232, 176, 96, 0.94);
  --mt-warn-soft: rgba(232, 176, 96, 0.14);
  --mt-danger: rgba(224, 112, 112, 0.94);
  --mt-danger-soft: rgba(224, 112, 112, 0.14);
}

body.hg-markets {
  --font-display: "Aldrich", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", monospace;
  color: var(--mt-text);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1.618;
}

.mt-root {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1.15rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--mt-gap-md);
}

.mt-header,
.mt-pane,
.mt-feed,
.mt-sidepanel,
.mt-product-row,
.mt-ticker {
  position: relative;
  overflow: hidden;
  background: var(--mt-panel);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.mt-header::before,
.mt-pane::before,
.mt-feed::before,
.mt-sidepanel::before,
.mt-product-row::before,
.mt-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(142, 184, 234, 0.1) 0%, transparent 14%),
    radial-gradient(circle at 0% 0%, rgba(142, 184, 234, 0.06) 0%, transparent 42%);
  mix-blend-mode: screen;
}

.mt-header {
  padding: 1.25rem 1.25rem 1rem;
}

.mt-header::after {
  content: "[ pm ] [ hl ] [ coupling ] [ tape ]";
  position: absolute;
  inset: 1rem 1.1rem auto auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(142, 184, 234, 0.36);
  pointer-events: none;
}

.mt-header-top {
  display: flex;
  justify-content: space-between;
  gap: var(--mt-gap-md);
  align-items: flex-start;
}

.mt-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.mt-kicker,
.mt-pane-h,
.mt-feed-h,
.mt-product-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mt-kicker {
  color: var(--mt-blue);
}

.mt-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1vw + 1.15rem, 2rem);
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mt-tagline {
  margin: 0;
  max-width: 70ch;
  color: var(--mt-muted);
  font-size: 0.92rem;
}

.mt-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 0.9rem;
  align-items: center;
  color: var(--mt-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-shortcuts a {
  color: var(--mt-muted);
}

.mt-shortcuts a:hover,
.mt-shortcuts a:focus-visible {
  color: var(--mt-text);
  outline: none;
}

.mt-shortcuts kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.2rem 0.38rem;
  border-radius: 0.45rem;
  border: 1px solid var(--mt-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mt-text);
}

.mt-stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--mt-line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mt-muted);
}

.mt-stream-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(154, 168, 187, 0.72);
  box-shadow: 0 0 0 0 rgba(154, 168, 187, 0.12);
}

.mt-stream-pill.is-live {
  color: var(--mt-text);
  border-color: rgba(109, 205, 168, 0.24);
  background: rgba(109, 205, 168, 0.08);
}

.mt-stream-pill.is-live::before {
  background: var(--mt-ok);
  box-shadow: 0 0 0 0.35rem rgba(109, 205, 168, 0.12);
}

.mt-stream-pill.is-poll {
  color: var(--mt-warn);
  border-color: rgba(232, 176, 96, 0.24);
  background: rgba(232, 176, 96, 0.08);
}

.mt-stream-pill.is-poll::before {
  background: var(--mt-warn);
  box-shadow: 0 0 0 0.35rem rgba(232, 176, 96, 0.1);
}

.mt-stream-pill.is-error {
  color: rgba(255, 208, 208, 0.95);
  border-color: rgba(224, 112, 112, 0.26);
  background: rgba(224, 112, 112, 0.08);
}

.mt-stream-pill.is-error::before {
  background: var(--mt-danger);
  box-shadow: 0 0 0 0.35rem rgba(224, 112, 112, 0.1);
}

.mt-tablist {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mt-line);
}

.mt-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--mt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--mt-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mt-tab:hover,
.mt-tab:focus-visible {
  color: var(--mt-text);
  border-color: rgba(142, 184, 234, 0.22);
  background: rgba(142, 184, 234, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.mt-tab.is-active {
  color: var(--mt-text);
  border-color: rgba(142, 184, 234, 0.28);
  background: linear-gradient(135deg, rgba(142, 184, 234, 0.16) 0%, rgba(142, 184, 234, 0.05) 100%);
}

.mt-ticker-slot {
  display: block;
}

.mt-ticker {
  border-radius: var(--mt-radius-sm);
  background: rgba(4, 6, 10, 0.9);
}

.mt-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  min-width: 100%;
  padding: 0.75rem 0;
  padding-left: 100%;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mt-text);
  animation: mt-marquee 62s linear infinite;
}

.mt-ticker .mt-tick-item {
  color: var(--mt-text);
}

.mt-ticker .mt-tick-item em {
  color: var(--mt-blue);
  font-style: normal;
}

.mt-ticker .is-negative {
  color: rgba(255, 198, 208, 0.92);
}

.mt-ticker .is-positive {
  color: rgba(182, 240, 217, 0.95);
}

@keyframes mt-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.is-hidden {
  display: none !important;
}

.mt-root > .hg-ascii-shell {
  margin: 0;
  background: var(--mt-panel-strong);
}

.mt-signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(22rem, 0.92fr);
  gap: var(--mt-gap-sm);
  align-items: stretch;
}

.mt-signal-main,
.mt-coupling-slot,
.mt-signal-side {
  min-height: 0;
}

.mt-signal-main > .hg-ascii-shell,
.mt-coupling-slot > .hg-ascii-shell {
  height: 100%;
}

.mt-signal-side {
  display: grid;
  grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--mt-gap-sm);
}

.mt-main {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(24rem, 1.618fr) minmax(17rem, 0.92fr);
  gap: var(--mt-gap-sm);
  min-height: clamp(28rem, 48vh, 46rem);
}

.mt-view.is-hidden {
  display: none !important;
}

.mt-pane,
.mt-feed,
.mt-sidepanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mt-pane-h,
.mt-feed-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--mt-line);
  color: var(--mt-blue);
  background: rgba(255, 255, 255, 0.015);
}

.mt-pane-h::after,
.mt-feed-h::after {
  content: "+ + +";
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  color: rgba(142, 184, 234, 0.34);
}

.mt-scroll,
.mt-feed-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.mt-scroll {
  scrollbar-width: thin;
}

.mt-markets-table {
  width: 100%;
  border-collapse: collapse;
}

.mt-markets-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.7rem 0.8rem;
  background: rgba(7, 10, 15, 0.96);
  border-bottom: 1px solid var(--mt-line);
  color: var(--mt-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-markets-table tbody tr {
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.mt-markets-table tbody tr:hover,
.mt-markets-table tbody tr:focus-visible {
  background: rgba(142, 184, 234, 0.06);
  outline: none;
}

.mt-markets-table tbody tr.is-selected {
  background: rgba(142, 184, 234, 0.12);
}

.mt-markets-table tbody tr.is-hovered {
  background: rgba(196, 154, 88, 0.09);
}

.mt-markets-table tbody tr.is-coupled {
  box-shadow: inset 0 0 0 1px rgba(196, 154, 88, 0.16);
}

.mt-markets-table td {
  padding: 0.82rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.mt-market-cell {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.mt-market-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mt-text);
}

.mt-market-meta {
  color: var(--mt-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt-market-meta strong {
  color: var(--mt-blue);
  font-weight: 500;
}

.mt-value {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.mt-value.mt-yes,
.mt-yes {
  color: rgba(182, 240, 217, 0.94);
}

.mt-value.mt-no,
.mt-no {
  color: rgba(255, 198, 208, 0.94);
}

.mt-spark {
  display: block;
  width: 100%;
  min-width: 5rem;
  height: 1.4rem;
  color: var(--mt-blue);
}

.mt-spark.is-positive {
  color: var(--mt-ok);
}

.mt-spark.is-negative {
  color: var(--mt-danger);
}

.mt-vol {
  text-align: right;
  color: var(--mt-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.mt-note {
  margin: 0;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--mt-line);
  color: var(--mt-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.mt-books {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--mt-gap-sm);
  padding: var(--mt-gap-sm);
}

.mt-book-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--mt-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.mt-book-block:hover,
.mt-book-block:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(142, 184, 234, 0.18);
  background: rgba(142, 184, 234, 0.05);
  outline: none;
}

.mt-book-block.is-selected {
  border-color: rgba(142, 184, 234, 0.28);
  background:
    linear-gradient(135deg, rgba(142, 184, 234, 0.12) 0%, rgba(142, 184, 234, 0.04) 100%);
}

.mt-book-block.is-unavailable {
  border-color: rgba(224, 112, 112, 0.16);
  background: rgba(224, 112, 112, 0.04);
}

.mt-book-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.mt-book-q {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.mt-book-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mt-muted);
}

.mt-book-chip.is-live {
  color: var(--mt-ok);
  border-color: rgba(109, 205, 168, 0.22);
  background: rgba(109, 205, 168, 0.08);
}

.mt-book-chip.is-poll {
  color: var(--mt-warn);
  border-color: rgba(232, 176, 96, 0.22);
  background: rgba(232, 176, 96, 0.08);
}

.mt-book-chip.is-error {
  color: rgba(255, 208, 208, 0.95);
  border-color: rgba(224, 112, 112, 0.22);
  background: rgba(224, 112, 112, 0.08);
}

.mt-book-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.mt-book-metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.mt-book-metric-label,
.mt-detail-label {
  color: var(--mt-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-book-metric-value,
.mt-detail-value {
  color: var(--mt-text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.mt-depth {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 0.28rem;
  min-height: 4.6rem;
  padding: 0.4rem 0;
}

.mt-depth-bar {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.18rem;
  min-height: 4.2rem;
}

.mt-depth-bid,
.mt-depth-ask {
  align-self: end;
  border-radius: 999px;
  min-height: 0.3rem;
}

.mt-depth-bid {
  background: linear-gradient(180deg, rgba(109, 205, 168, 0.18) 0%, rgba(109, 205, 168, 0.94) 100%);
}

.mt-depth-ask {
  background: linear-gradient(180deg, rgba(232, 176, 96, 0.18) 0%, rgba(232, 176, 96, 0.94) 100%);
}

.mt-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mt-book-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
}

.mt-book-level {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--mt-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.mt-book-level strong {
  color: var(--mt-text);
  font-weight: 500;
}

.mt-book-note {
  margin: 0;
  color: var(--mt-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.mt-book-empty,
.mt-empty {
  padding: 1rem;
  border-radius: var(--mt-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--mt-muted);
  font-size: 0.82rem;
}

.mt-hl-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mt-gap-sm);
  padding: var(--mt-gap-sm);
  border-bottom: 1px solid var(--mt-line);
}

.mt-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: var(--mt-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mt-feed-body {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1rem;
  gap: 0.45rem;
}

.mt-feed-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--mt-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
}

.mt-feed-line.is-fresh {
  background: rgba(142, 184, 234, 0.08);
  color: var(--mt-text);
}

.mt-feed-time {
  color: var(--mt-dim);
  white-space: nowrap;
}

.mt-leader-inner {
  gap: 0.55rem;
}

.mt-product-row {
  padding: 1rem 1.1rem;
}

.mt-product-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.mt-product-inner a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--mt-text);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-product-note {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.78rem;
}

.mt-product-note code {
  font-family: var(--font-mono);
  font-size: 0.74em;
  color: var(--mt-blue);
}

.mt-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mt-gap-sm);
  min-height: 14rem;
}

.mt-sidepanel .mt-feed-body {
  padding-top: 1rem;
}

@media (max-width: 1240px) {
  .mt-signal-row {
    grid-template-columns: 1fr;
  }

  .mt-signal-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .mt-main {
    grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 1.25fr);
  }

  .mt-main > :last-child {
    grid-column: 1 / -1;
  }

  .mt-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .mt-root {
    width: min(100% - 20px, 100%);
    padding-top: 0.7rem;
  }

  .mt-header,
  .mt-pane,
  .mt-feed,
  .mt-sidepanel,
  .mt-product-row,
  .mt-ticker,
  .mt-root > .hg-ascii-shell {
    border-radius: 1rem;
  }

  .mt-header-top {
    flex-direction: column;
  }

  .mt-header::after {
    display: none;
  }

  .mt-shortcuts {
    justify-content: flex-start;
  }

  .mt-main,
  .mt-footer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mt-signal-side {
    grid-template-columns: 1fr;
  }

  .mt-book-meta,
  .mt-hl-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mt-root {
    width: calc(100% - 14px);
    gap: 0.85rem;
    padding-bottom: 1rem;
  }

  .mt-header {
    padding: 0.95rem;
  }

  .mt-tablist {
    gap: 0.5rem;
  }

  .mt-tab {
    flex: 1 1 0;
    padding-inline: 0.6rem;
  }

  .mt-markets-table thead th,
  .mt-markets-table td {
    padding-inline: 0.55rem;
  }

  .mt-market-label {
    font-size: 0.82rem;
  }

  .mt-book-meta,
  .mt-hl-detail,
  .mt-book-grid {
    grid-template-columns: 1fr;
  }

  .mt-books {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .mt-feed-line {
    flex-direction: column;
    gap: 0.2rem;
  }

  .mt-product-inner {
    align-items: flex-start;
  }
}

/* Light brand palette for markets terminal */

body.hg-markets {
  --mt-panel: rgba(255, 255, 255, 0.84);
  --mt-panel-strong: rgba(255, 255, 255, 0.94);
  --mt-panel-soft: rgba(255, 255, 255, 0.74);
  --mt-line: rgba(33, 79, 184, 0.12);
  --mt-line-strong: rgba(30, 102, 255, 0.22);
  --mt-text: #1e2f67;
  --mt-muted: rgba(56, 79, 139, 0.74);
  --mt-dim: rgba(56, 79, 139, 0.58);
  --mt-blue: #1e66ff;
  --mt-blue-soft: rgba(30, 102, 255, 0.1);
}

body.hg-markets .mt-header,
body.hg-markets .mt-pane,
body.hg-markets .mt-feed,
body.hg-markets .mt-sidepanel,
body.hg-markets .mt-product-row,
body.hg-markets .mt-ticker,
body.hg-markets .mt-root > .hg-ascii-shell {
  border-color: var(--mt-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 246, 255, 0.84) 100%);
  box-shadow: 0 18px 44px rgba(95, 131, 218, 0.14);
}

body.hg-markets .mt-header::before,
body.hg-markets .mt-pane::before,
body.hg-markets .mt-feed::before,
body.hg-markets .mt-sidepanel::before,
body.hg-markets .mt-product-row::before,
body.hg-markets .mt-ticker::before {
  background:
    linear-gradient(180deg, rgba(30, 102, 255, 0.08) 0%, transparent 14%),
    radial-gradient(circle at 0% 0%, rgba(30, 102, 255, 0.06) 0%, transparent 42%);
  mix-blend-mode: normal;
}

body.hg-markets .mt-shortcuts kbd,
body.hg-markets .mt-stream-pill,
body.hg-markets .mt-tab,
body.hg-markets .mt-book-chip,
body.hg-markets .mt-detail-card,
body.hg-markets .mt-feed-line,
body.hg-markets .mt-product-inner a,
body.hg-markets .mt-book-block,
body.hg-markets .mt-empty,
body.hg-markets .mt-book-empty {
  border-color: rgba(33, 79, 184, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(122, 146, 214, 0.06);
}

body.hg-markets .mt-tab:hover,
body.hg-markets .mt-tab:focus-visible,
body.hg-markets .mt-book-block:hover,
body.hg-markets .mt-book-block:focus-visible {
  background: rgba(30, 102, 255, 0.08);
  border-color: rgba(30, 102, 255, 0.22);
}

body.hg-markets .mt-tab.is-active,
body.hg-markets .mt-book-block.is-selected,
body.hg-markets .mt-feed-line.is-fresh,
body.hg-markets .mt-markets-table tbody tr.is-selected {
  background: rgba(30, 102, 255, 0.1);
}

body.hg-markets .mt-ticker {
  background: rgba(255, 255, 255, 0.76);
}

body.hg-markets .mt-pane-h,
body.hg-markets .mt-feed-h {
  border-bottom-color: var(--mt-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(241, 246, 255, 0.3));
}

body.hg-markets .mt-markets-table thead th {
  background: rgba(245, 248, 255, 0.96);
  border-bottom-color: var(--mt-line);
}

body.hg-markets .mt-markets-table td {
  border-bottom-color: rgba(33, 79, 184, 0.08);
}

body.hg-markets .mt-markets-table tbody tr:hover,
body.hg-markets .mt-markets-table tbody tr:focus-visible {
  background: rgba(30, 102, 255, 0.06);
}
