/* ============================================================
   SkinSignal / css / market-monitor.css
   The member market board as a monitor (the design pass, js/market.js
   monitorHead and armTape):
     the head     a status line of real facts (the sweep's age, what the
                  board watches, its window, the three hour refresh) and
                  the tape: this sweep's top gainers and losers, the same
                  rows as the boards, gliding by transform only; paused
                  off screen, with the tab hidden and under a pointer;
                  still under reduced motion
     the screens  the boards and the index sections in a monitor's
                  bezel: a dark frame and a hairline round the panel, a
                  faint screen grid inside
   No dot pulses, nothing says live: the board is a sweep, and says so.
   Blue is the whisper (the terminal's id); green and red are data only.
   ============================================================ */

.mmon {
  position: relative;
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  border: 1px solid #1b2330;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e15, #06090e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 4px #080b11, 0 0 0 5px rgba(255, 255, 255, 0.05), 0 20px 46px -20px rgba(0, 0, 0, 0.9);
}
.mmon__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a6aebb;
}
.mmon__cell { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-right: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.mmon__cell b { font-weight: 500; color: #5f6876; }
.mmon__cell--id { color: #dfe4ec; }
.mmon__dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #3d7fff; box-shadow: 0 0 8px rgba(61, 127, 255, 0.8); }

/* ---------- The tape ---------- */
.mtape { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.mtape__k {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f9cff;
  white-space: nowrap;
}
.mtape__view {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.mtape__track {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: mtapeRun 90s linear infinite;
  will-change: transform;
}
.mtape.is-paused .mtape__track { animation-play-state: paused; }
@keyframes mtapeRun { to { transform: translateX(-100%); } }
.mtape__i {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.mtape__n { font-size: 12.5px; color: #c9d0dc; }
.mtape__v { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mtape__i.is-up .mtape__v { color: #4bd68a; }
.mtape__i.is-down .mtape__v { color: #ef5a61; }
.mtape__i.is-flat .mtape__v { color: #8d97a8; }

/* ---------- The screens ---------- */
.market-col,
.idx-section {
  border-color: #1b2330;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 0 4px #080b11,
    0 0 0 5px rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.45);
}
.market-col {
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)),
    var(--surface);
}
.idx-section {
  margin-top: 40px;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid #1b2330;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(180deg, #0c1018, #080b10);
}
.market-col__title { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 12px; letter-spacing: 0.18em; }

@media (max-width: 640px) {
  .mmon__cell { padding: 8px 12px; }
  .mmon__cell:not(.mmon__cell--id):nth-child(n+4) { display: none; }
  .mtape__k { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtape__track { animation: none; }
  .mtape__track[aria-hidden="true"] { display: none; }
  .mtape__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
