/* Final market activity is part of the open canvas, with no enclosing card. */
.market-activity {
  --ma-text: #ede8de;
  --ma-muted: #979fa8;
  --ma-line: rgb(198 211 225 / 14%);
  --ma-yes: #00bfae;
  --ma-no: #7b9ee0;
  color: var(--ma-text);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  width: 100%;
  min-width: 0;
  padding-top: 36px;
}
.ma-header,
.ma-section-header,
.ma-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ma-header {
  margin-bottom: 28px;
}
.ma-title-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ma-eyebrow,
.ma-simulation,
.ma-trade-status {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ma-muted);
}
.ma-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.ma-simulation {
  align-self: start;
  padding-top: 2px;
  letter-spacing: 0.08em;
}
.ma-market-select {
  appearance: auto;
  display: block;
  width: min(440px, 100%);
  border: 0;
  border-bottom: 1px solid var(--ma-line);
  border-radius: 0;
  padding: 0 24px 7px 0;
  background: transparent;
  color: var(--ma-text);
  color-scheme: dark;
  font:
    500 20px/1.3 "Instrument Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  cursor: pointer;
}
.ma-market-select option {
  background: #101317;
  color: var(--ma-text);
}
.ma-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.ma-book,
.ma-trades {
  min-width: 0;
}
.ma-section-header {
  min-height: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ma-line);
}
.ma-section-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.ma-outcomes {
  display: flex;
  gap: 4px;
}
.ma-outcome {
  appearance: none;
  min-width: 44px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ma-muted);
  font:
    500 12px/20px "Instrument Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  cursor: pointer;
}
.ma-outcome:first-child[aria-pressed="true"] {
  color: var(--ma-yes);
  border-color: rgb(0 191 174 / 30%);
  background: rgb(0 191 174 / 6%);
}
.ma-outcome:last-child[aria-pressed="true"] {
  color: var(--ma-no);
  border-color: rgb(123 158 224 / 30%);
  background: rgb(123 158 224 / 6%);
}
.ma-market-select:focus-visible,
.ma-outcome:focus-visible {
  outline: 2px solid var(--ma-yes);
  outline-offset: 4px;
}
.ma-table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
}
.ma-table th {
  padding: 13px 12px 11px;
  color: var(--ma-muted);
  text-align: right;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
}
.ma-table td {
  height: 34px;
  box-sizing: border-box;
  padding: 7px 12px;
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
}
.ma-table th:first-child,
.ma-table td:first-child {
  text-align: left;
}
.ma-book-table th:first-child {
  width: 25%;
}
.ma-level {
  background: linear-gradient(
    to left,
    var(--ma-depth-color) var(--ma-depth),
    transparent var(--ma-depth)
  );
}
.ma-level-ask {
  --ma-depth-color: rgb(123 158 224 / 8%);
}
.ma-level-bid {
  --ma-depth-color: rgb(0 191 174 / 8%);
}
.ma-level-ask .ma-price {
  color: var(--ma-no);
}
.ma-level-bid .ma-price {
  color: var(--ma-yes);
}
.ma-level td:last-child {
  color: #b4bac2;
}
.ma-spread-row td {
  height: 58px;
  padding: 10px 12px;
}
.ma-spread {
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ma-muted);
  font-size: 12px;
}
.ma-spread strong {
  padding-left: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--ma-text);
}
.ma-spread .ma-last {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.ma-trade td {
  height: 49px;
  border-bottom: 1px solid rgb(198 211 225 / 7%);
}
.ma-trades-table th:first-child {
  width: 27%;
}
.ma-trade td:first-child {
  color: var(--ma-muted);
  font-size: 11px;
}
.ma-trade .ma-yes {
  color: var(--ma-yes);
}
.ma-trade .ma-no {
  color: var(--ma-no);
}
.ma-note {
  margin: 14px 0 0;
  color: var(--ma-muted);
  font-size: 11px;
  line-height: 1.5;
}
.ma-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .market-activity {
    padding-top: 24px;
  }
  .ma-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .ma-header {
    margin-bottom: 20px;
  }
  .ma-market-select {
    font-size: 17px;
  }
  .ma-table td,
  .ma-table th {
    padding-left: 8px;
    padding-right: 8px;
  }
  .ma-trade td {
    height: 42px;
  }
  .ma-trade-status {
    font-size: 9px;
  }
}
