/* app.css — layout glue only; all colors/spacing come from LombokCSS tokens. */
.term-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lc-space-4);
}
@media (min-width: 992px) {
  .term-grid {
    grid-template-columns: minmax(0, 2.4fr) minmax(320px, 1fr);
  }
}

.chart-price {
  height: 360px;
}
.chart-sub {
  height: 120px;
}
.spark {
  height: 34px;
  width: 120px;
}

.ticker {
  display: flex;
  gap: var(--lc-space-4);
  flex-wrap: wrap;
  align-items: baseline;
}
.ticker .price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.35rem;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* Order book */
.ob-head,
.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  font-size: 0.82rem;
  padding: 2px 8px;
}
.ob-head {
  color: var(--lc-muted);
}
.ob-row {
  position: relative;
  font-variant-numeric: tabular-nums;
}
.ob-row span {
  position: relative;
  z-index: 1;
}
.ob-row .sz,
.ob-row .tot {
  text-align: right;
}
.ob-depth {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
  opacity: 0.16;
  border-radius: 3px;
}
.ask .ob-price {
  color: var(--lc-danger, #e03131);
}
.bid .ob-price {
  color: var(--lc-success, #2f9e44);
}
.ask .ob-depth {
  background: var(--lc-danger, #e03131);
}
.bid .ob-depth {
  background: var(--lc-success, #2f9e44);
}
.ob-spread {
  text-align: center;
  padding: 6px;
  color: var(--lc-muted);
  font-size: 0.82rem;
  border-block: 1px dashed var(--lc-border);
  margin-block: 4px;
}

/* Watchlist */
.wl-row {
  display: grid;
  grid-template-columns: 1fr auto 120px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-block-end: 1px solid var(--lc-border);
}
.wl-row:last-child {
  border: 0;
}
.wl-sym {
  font-weight: 600;
}
.wl-px {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Recent trades / blotter */
.blotter {
  max-height: 150px;
  overflow: auto;
  font-size: 0.82rem;
}
.blotter .tr {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
