/* ============================================================
   SkinSignal / the member page
   The same page as the free dashboard (css/dash-climb.css,
   css/dash-free.css, under .dash--climb); these are the few pieces only a
   member's page draws (js/app.js THE MEMBER PAGE), scoped to
   .dash--member. Gold is prestige; green and red are real moves only.
   ============================================================ */

/* ---------- The insignia, beside the name ---------- */
.dash--member .rst__name { display: inline-flex; align-items: center; gap: 8px; }
/* Their member card, small: the plan's rim, sapphire or gold. */
.dash--member .mbr-insignia { position: relative; display: inline-block; flex: none; width: 34px; height: 20px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(70, 130, 255, 0.85), 0 0 8px rgba(70, 130, 255, 0.35); }
.dash--member.mbr-life .mbr-insignia { box-shadow: 0 0 0 1px rgba(228, 174, 57, 0.95), 0 0 8px rgba(228, 174, 57, 0.4); }
.dash--member .mbr-insignia img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- The plaque: WEARING, Change card ---------- */
.dash--member .rst__wearing { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: #e4ae39; }
.dash--member .rst__change {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(228, 174, 57, 0.55); border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 174, 57, 0.16), rgba(228, 174, 57, 0.04)); color: #f1cf7a;
  font: 600 12px/1 Inter, system-ui, sans-serif; cursor: pointer;
}
.dash--member .rst__change svg { width: 13px; height: 13px; }
.dash--member .rst__change:hover, .dash--member .rst__change:focus-visible { border-color: #e4ae39; color: #fff3d0; }

/* ---------- The card picker: every owned card, whole at 3:1 ---------- */
.vpk--cards .vpk__grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vpk--cards .vpk__tile--card { display: grid; gap: 6px; text-align: left; }
.vpk--cards .vpk__cardart { display: block; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 4px; background: #05080d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.vpk--cards .vpk__cardart img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vpk--cards .vpk__tile--card.is-current { box-shadow: inset 0 0 0 1px #e4ae39; }
.vpk--cards .vpk__wear { text-transform: capitalize; }
.vpk--cards .vpk__err { min-height: 1.2em; margin: 0 0 6px; color: #ef5a61; font-size: 12px; }
.vpk--cards .vpk__empty { margin: 20px 0; color: #9aa2b1; }

/* ---------- An item's price history (vitrine drawer, inspect) ---------- */
.mhist { display: grid; gap: 8px; }
.mhist__chips, .ipan .mhist__chips { display: inline-flex; gap: 4px; }
.mhist__chip {
  padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 4px; background: rgba(255, 255, 255, 0.03);
  color: #9aa2b1; font-size: 11px; letter-spacing: 0.12em; cursor: pointer;
}
.mhist__chip[aria-pressed="true"] { border-color: rgba(228, 174, 57, 0.7); color: #f1cf7a; background: rgba(228, 174, 57, 0.08); }
.mhist__chart svg { display: block; width: 100%; height: 96px; }
.mhist__line, .phist__line { fill: none; stroke: #9aa2b1; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mhist__area { fill: rgba(154, 162, 177, 0.08); }
.mhist__chart.is-up .mhist__line, .phist__chart.is-up .phist__line { stroke: #4bd68a; }
.mhist__chart.is-up .mhist__area { fill: rgba(75, 214, 138, 0.1); }
.mhist__chart.is-down .mhist__line, .phist__chart.is-down .phist__line { stroke: #ef5a61; }
.mhist__chart.is-down .mhist__area { fill: rgba(239, 90, 97, 0.1); }
.mhist__foot { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 11px; color: #9aa2b1; }
.mhist__pct.is-up, .phist__chg.is-up { color: #4bd68a; }
.mhist__pct.is-down, .phist__chg.is-down { color: #ef5a61; }
.mhist__pct.is-flat, .phist__chg.is-flat { color: #c8ccd4; }
.mhist__empty, .mhist__wait { margin: 6px 0; color: #9aa2b1; font-size: 13px; }

/* Inspect: the history under the float. */
.dash--member .ins__hist { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- The terminal's real 7D ---------- */
.dash--member .ht__7d--none { color: #5f6878; }

/* ---------- Your signals (was Your movers this week) ----------
   js/app.js renderYourMovers: every item past 2% over 7D, All / Up /
   Down, the first 10 then Show all. Green and red are data only. */
.dash--member .ymv[hidden] { display: none; }
.dash--member .ymv__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 12px; }
.dash--member .ymv__title { margin: 0; font: 800 clamp(20px, 2.4vw, 28px)/1.1 Saira, Inter, sans-serif; letter-spacing: 0.02em; text-transform: uppercase; color: #f2f4f8; }
.dash--member .ymv__title b { color: #e4ae39; font-weight: 800; }
.dash--member .ymv__sub { margin: 0 0 12px; color: #9aa2b1; font-size: 13px; }
.dash--member .ymv__body {
  padding: 6px 14px; border-radius: 6px; background: linear-gradient(180deg, rgba(14, 18, 26, 0.9), rgba(7, 10, 15, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.dash--member .ymv__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 6px; }
.dash--member .ymv__tab {
  min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #aab2c0;
  font: 600 13px/1 Inter, system-ui, sans-serif;
}
.dash--member .ymv__tab span { margin-left: 4px; color: #6f7888; font-size: 12px; }
.dash--member .ymv__tab[aria-pressed="true"] { border-color: rgba(61, 127, 255, 0.7); background: rgba(61, 127, 255, 0.12); color: #e8ecf2; }
.dash--member .ymv__tab[aria-pressed="true"] span { color: #9fc0ff; }
.dash--member .ymv__tab:focus-visible, .dash--member .ymv__more:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dash--member .ymv__list { list-style: none; margin: 0; padding: 0; }
.dash--member .ymv__cols, .dash--member .ymv__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px 96px 110px; align-items: center; gap: 12px; }
.dash--member .ymv__cols { padding: 8px 0 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #6f7888; }
.dash--member .ymv__cols span:nth-child(n+3) { text-align: right; }
.dash--member .ymv__row { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.dash--member .ymv__row:last-child { border-bottom: 0; }
.dash--member .ymv__img { display: block; width: 52px; height: 39px; }
.dash--member .ymv__img img { width: 100%; height: 100%; object-fit: contain; }
.dash--member .ymv__name { overflow: hidden; color: #e8ebf1; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dash--member .ymv__row.is-up .ymv__pct, .dash--member .ymv__row.is-up .ymv__chg { color: #4bd68a; }
.dash--member .ymv__row.is-down .ymv__pct, .dash--member .ymv__row.is-down .ymv__chg { color: #ef5a61; }
.dash--member .ymv__pct, .dash--member .ymv__chg, .dash--member .ymv__val { text-align: right; }
.dash--member .ymv__val { color: #c8ccd4; }
.dash--member .ymv__more {
  display: block; width: 100%; min-height: 40px; margin: 6px 0 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: #e8ecf2; font: 600 13px/1 Inter, system-ui, sans-serif;
}
.dash--member .ymv__more:hover { border-color: rgba(255, 255, 255, 0.28); }
.dash--member .ymv__empty { margin: 14px 0; color: #9aa2b1; }
.dash--member .ymv__note { margin: 4px 0 10px; color: #6f7888; font-size: 11px; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .dash--member .ymv__cols { display: none; }
  .dash--member .ymv__row { grid-template-columns: 40px minmax(0, 1fr) 72px; row-gap: 2px; }
  .dash--member .ymv__img { width: 40px; height: 30px; grid-row: span 2; }
  .dash--member .ymv__chg { grid-column: 2; text-align: left; font-size: 12px; }
  .dash--member .ymv__val { grid-column: 3; font-size: 12px; }
}

/* ---------- Your membership ---------- */
.dash--member .ymb[hidden] { display: none; }
.dash--member .ymb__plate {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; padding: 22px 26px; border-radius: 8px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(228, 174, 57, 0.12), rgba(228, 174, 57, 0) 55%), linear-gradient(180deg, #0e121a, #070a0f);
  box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.35), 0 18px 50px rgba(0, 0, 0, 0.45);
}
/* The member card, the plan cards' own component. Lifetime's foil: the
   holographic rim light turns and the glare shows, on hover only,
   transform and opacity only, never under reduced motion. */
.dash--member .ymb__cardwrap { width: 168px; }
.dash--member .ymb__card { margin-bottom: 0; }
.dash--member .ymb__cardwrap.msec__opt--lifetime .mcard { transform: none; }
.dash--member .ymb__card .mcard__rim > i { transition: opacity 300ms ease; }
.dash--member .ymb__cardwrap:hover .mcard__rim > i,
.dash--member .ymb__cardwrap:focus-within .mcard__rim > i { opacity: 0.9; }
.dash--member .ymb__cardwrap.msec__opt--lifetime:hover .mcard__rim > i { animation: ymb-foil 3.2s linear infinite; }
.dash--member .ymb__cardwrap:hover .mcard__glare { opacity: 1; }
@keyframes ymb-foil { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dash--member .ymb__cardwrap.msec__opt--lifetime:hover .mcard__rim > i { animation: none; }
}
.dash--member .ymb__eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #e4ae39; }
.dash--member .ymb__plan { margin: 0 0 10px; font: 800 clamp(22px, 2.6vw, 32px)/1.05 Saira, Inter, sans-serif; color: #f2f4f8; }
.dash--member .ymb__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.dash--member .ymb__facts dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa2b1; }
.dash--member .ymb__facts dd { margin: 2px 0 0; color: #e8ebf1; }
.dash--member .ymb__acts { display: grid; justify-items: end; gap: 6px; }
.dash--member .ymb__err { min-height: 1.2em; margin: 0; color: #ef5a61; font-size: 12px; }
@media (max-width: 720px) {
  .dash--member .ymb__plate { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .dash--member .ymb__cardwrap { width: 112px; }
  .dash--member .ymb__acts { grid-column: 1 / -1; justify-items: start; }
}
.dash--member .msec { padding-top: 8px; }

/* ---------- Member intel: the real screens, and the panel ---------- */
.dash--member .intel--member .intel__ex,
.dash--member .intel--member .intel__members,
.dash--member .intel--member .intel__dim,
.dash--member .intel--member .intel__dark { display: none; }
.dash--member .intel--member .intel__prev--history,
.dash--member .intel--member .intel__prev--signals,
.dash--member .intel--member .intel__prev--movers,
.dash--member .intel--member .intel__prev--indexes { display: none; }
.dash--member .intel__real { position: absolute; inset: 9% 7% 10%; z-index: 2; display: grid; align-content: center; gap: 6%; container-type: inline-size; }
.dash--member .intel__realspark { width: 100%; height: 62%; }
.dash--member .intel__realspark path { fill: none; stroke: #9aa2b1; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dash--member .intel__realspark.is-up path { stroke: #4bd68a; }
.dash--member .intel__realspark.is-down path { stroke: #ef5a61; }
.dash--member .intel__realk { font-size: max(8px, 7cqw); letter-spacing: 0.14em; text-transform: uppercase; color: #9aa2b1; text-align: center; }
.dash--member .intel__realrows { display: grid; gap: 4%; }
.dash--member .intel__realrows i { display: flex; justify-content: space-between; gap: 6px; font-style: normal; font-size: max(8px, 7.5cqw); color: #c8ccd4; white-space: nowrap; overflow: hidden; }
.dash--member .intel__realrows i b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dash--member .intel__realrows i.is-up span { color: #4bd68a; }
.dash--member .intel__realrows i.is-down span { color: #ef5a61; }
.dash--member .intel__realbars { display: flex; align-items: flex-end; gap: 4%; height: 62%; }
.dash--member .intel__realbars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: rgba(154, 162, 177, 0.55); }
.dash--member .intel__realbars i.is-up { background: #4bd68a; }
.dash--member .intel__realbars i.is-down { background: #ef5a61; }
.dash--member .intel__mon.is-open .intel__set { filter: drop-shadow(0 0 18px rgba(228, 174, 57, 0.45)); }

.dash--member .ipan {
  margin: 18px 0 8px; padding: 18px 20px 20px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.96), rgba(7, 10, 15, 0.96)); box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.3), 0 20px 50px rgba(0, 0, 0, 0.45);
}
.dash--member .ipan[hidden] { display: none; }
.dash--member .ipan__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash--member .ipan__title { margin: 0; font: 800 20px/1.1 Saira, Inter, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #f2f4f8; }
.dash--member .ipan__x { width: 32px; height: 32px; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: none; color: #c8ccd4; cursor: pointer; }
.dash--member .ipan__x svg { width: 100%; height: 100%; }
/* A borrowed module shows inside the panel (the page hides it elsewhere). */
.dash--climb #intelPanel .mod, .dash--climb #intelPanel #moversModule, .dash--climb #intelPanel #indexesModule { display: block; margin: 0; border: 0; background: none; box-shadow: none; }
.dash--climb #intelPanel .mod[hidden], .dash--climb #intelPanel section[hidden] { display: none; }
.phist { display: grid; gap: 10px; }
.phist__chart svg { display: block; width: 100%; height: 180px; }
.phist__tick { fill: rgba(154, 162, 177, 0.6); }
.phist__tick.is-gap { fill: none; stroke: rgba(154, 162, 177, 0.6); stroke-width: 1; }
.phist__legend { margin: 0; font-size: 11px; color: #9aa2b1; }
.phist__day { display: grid; gap: 4px; padding: 10px 0; }
.phist__fig { margin: 0; font-size: 32px; color: #f2f4f8; }
.phist__chg { margin: 0; font-size: 16px; }
.phist__note { margin: 0; color: #9aa2b1; }
.dash--member .iwear { display: grid; gap: 12px; justify-items: start; }
.dash--member .iwear__frame { position: relative; width: min(100%, 620px); padding: 12px; border-radius: 8px; background: #05080d; box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.35); }
.dash--member .iwear__card { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: contain; border-radius: 4px; }
.dash--member .iwear__who { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #f2f4f8; }
.dash--member .iwear__who img:first-child { border-radius: 50%; }
.dash--member .iwear__none { margin: 20px; color: #9aa2b1; }
.dash--member .iwear__line { margin: 0; color: #c8ccd4; }
.dash--member .iwear__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- The first visit after paying: the locks open ---------- */
.mwl__lock { position: absolute; z-index: 60; display: grid; place-items: center; pointer-events: none; border-radius: 6px; background: rgba(5, 8, 13, 0.72); box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.25); transition: opacity 600ms ease; }
.mwl__plate { position: relative; width: 72px; height: 68px; }
.mwl__plate img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 160ms ease, transform 260ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.mwl__plate img + img { opacity: 0; transform: translateY(-6px); }
.mwl__lock.is-open .mwl__plate img:first-child { opacity: 0; }
.mwl__lock.is-open .mwl__plate img + img { opacity: 1; transform: none; }
.mwl__lock.is-gone { opacity: 0; }
.mwl__banner {
  position: fixed; left: 50%; top: 42%; z-index: 70; display: grid; justify-items: center; gap: 10px; transform: translate(-50%, -50%);
  padding: 26px 64px; border-radius: 12px; background: radial-gradient(closest-side, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.7) 70%, rgba(5, 8, 13, 0));
  pointer-events: none; animation: mwlIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mwl__banner.is-gone { animation: mwlOut 700ms ease forwards; }
.mwl__word { margin: 0; font: 800 clamp(28px, 5vw, 56px)/1 Saira, Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #f2f4f8; text-shadow: 0 0 30px rgba(228, 174, 57, 0.45); white-space: nowrap; }
.mwl__word b { color: #e4ae39; font-weight: 800; }
.mwl__rule { display: block; width: min(60vw, 420px); height: 1px; background: linear-gradient(90deg, rgba(228, 174, 57, 0), #e4ae39, rgba(228, 174, 57, 0)); }
@keyframes mwlIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes mwlOut { to { opacity: 0; transform: translate(-50%, -54%); } }
@media (prefers-reduced-motion: reduce) { .mwl__lock, .mwl__banner { display: none; } }

/* ---------- A lapsed member: the way back ---------- */
.dash--climb .lkr__lapsed { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 12px auto 0; }
.dash--climb .lkr__lapsed .lkr__line { margin: 0; }

/* ---------- Nothing for sale on a member's page ----------
   The section's free parts, hidden outright: their own display rules
   would beat [hidden]. */
.dash--member #membership.is-member .msec__head,
.dash--member #membership.is-member .mstage,
.dash--member #membership.is-member .mtrust,
.dash--member #membership.is-member #yourUpgrade,
.dash--member #membership.is-member .intel__ask,
.dash--member #membership.is-member #intelCuriosity,
.dash--member .intel--member .intel__lock { display: none; }
.dash--member #membership.is-member .msec { display: block; padding: clamp(18px, 2.4vw, 30px) 0 0; }

/* ---------- The terminal: a real 7D needs room ---------- */
.dash--member .holdings__list { --ht-cols: 76px minmax(0, 2.3fr) minmax(86px, 0.75fr) minmax(108px, 0.9fr) minmax(110px, 1.15fr) 60px 98px 62px; }
@media (max-width: 1279.98px) {
  .dash--member .holdings__list { --ht-cols: 64px minmax(0, 2fr) minmax(96px, 0.9fr) minmax(90px, 1fr) 56px 90px 58px; }
}
.dash--member .ht__7d { justify-self: end; font-size: 12px; white-space: nowrap; color: #c9cfda; }
.dash--member .ht__7d.is-up { color: #4bd68a; }
.dash--member .ht__7d.is-down { color: #ef5a61; }

/* The monitors' real screens, sized to the screen. */
.dash--member .intel__real { display: flex; flex-direction: column; justify-content: center; }
.dash--member .intel__realspark { height: 30cqw; }
.dash--member .intel__realbars { height: 30cqw; flex: none; }
.dash--member .intel__realrows i:nth-child(n+4) { display: none; }
.phist__dot { fill: #9aa2b1; }
.phist__chart.is-up .phist__dot { fill: #4bd68a; }
.phist__chart.is-down .phist__dot { fill: #ef5a61; }
@media (max-width: 640px) {
  .dash--member .ymv > .container { padding-inline: 16px; }
}

/* ============================================================
   THE TERMINAL (js/app.js paintMemberTerminal, js/candles.js).
   The dashboard's own language: the rack frame's dark steel, recessed
   readouts with brushed grain, mono figures, the rack tabs as chips.
   Every display rule waits for :not([hidden]), so the attribute wins.
   ============================================================ */
.dash--member .intel--member .intel__head,
.dash--member .intel--member .intel__floor,
.dash--member .intel--member .intel__ask { display: none; }
.mterm[hidden] { display: none; }
.mterm .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mterm:not([hidden]) { display: block; margin: 0 0 18px; }
.mterm__frame { position: relative; padding: 0 0 12px; border: 1px solid rgba(0, 0, 0, 0.85); border-radius: 8px; background: linear-gradient(180deg, #12161d, #0a0d12 30%, #07090c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.5); }
.mterm__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #191d24, #10131a); }
.mterm__tab, .mterm__own { margin: 0; font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #9aa2b1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9); }
.mterm__tab { color: #c9cfda; }
.mterm__grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(220px, 270px); gap: 14px; padding: 14px; }
/* The picker. */
.mterm__pick { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-width: 0; }
.mterm__q { width: 100%; height: 34px; padding: 0 10px; border: 1px solid rgba(0, 0, 0, 0.8); border-radius: 4px; background: linear-gradient(180deg, #07090c, #0c0f14); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85); color: #eef1f5; font-size: 12px; }
.mterm__q:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.85); outline-offset: 1px; }
.mterm__list { max-height: 440px; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.mterm__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 4px; background: none; color: #c9cfda; text-align: left; cursor: pointer; }
.mterm__row:hover { background: rgba(255, 255, 255, 0.04); }
.mterm__row.is-on { background: linear-gradient(90deg, rgba(61, 127, 255, 0.14), rgba(61, 127, 255, 0.02)); box-shadow: inset 2px 0 0 #3d7fff; color: #fff; }
.mterm__row:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.85); outline-offset: -2px; }
.mterm__rimg { display: block; width: 34px; height: 26px; }
.mterm__rimg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mterm__rname { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.mterm__rval { font-size: 11px; color: #9aa2b1; }
.mterm__none { padding: 10px; color: #8a92a0; font-size: 12px; }
/* The main column. */
.mterm__main { display: grid; gap: 10px; min-width: 0; }
.mterm__head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.mterm__himg { display: block; flex: none; width: 58px; height: 44px; }
.mterm__himg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mterm__name { margin: 0; font: 700 clamp(16px, 1.5vw, 20px)/1.15 var(--font-display, Saira), sans-serif; color: #f2f4f8; }
.mterm__sub { margin: 2px 0 0; font-size: 11px; color: #8a92a0; }
.mterm__reads { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
/* A hover changes only these figures: kept inside their own cells, and the
   chart's box sized by the grid, so neither relays out the page. */
.mterm__cell { contain: layout paint style; }
.mterm__chart { contain: strict; }
.mterm__cell { min-width: 0; padding: 9px 9px 10px; border: 1px solid rgba(0, 0, 0, 0.75); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, rgba(255, 255, 255, 0) 1px 3px), linear-gradient(180deg, #07090c, #0c0f14); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(255, 255, 255, 0.06); }
.mterm__k { margin: 0; overflow: hidden; font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: #6f7888; }
.mterm__v { margin: 5px 0 0; overflow: hidden; font-size: clamp(13px, 0.95vw, 17px); font-weight: 500; line-height: 1; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; color: #eef1f5; }
.mterm__v.is-up, .mterm__pchg .is-up, .mterm__mv .is-up { color: #4bd68a; }
.mterm__v.is-down, .mterm__pchg .is-down, .mterm__mv .is-down { color: #ef5a61; }
.mterm__ctrls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mterm__chips { display: flex; gap: 6px; }
.mterm__chip { height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, 0.1); border-bottom-color: rgba(0, 0, 0, 0.6); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #22262e, #15181e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); font-size: 11px; color: #a7aebb; cursor: pointer; }
.mterm__chip[aria-pressed="true"] { border-color: rgba(110, 160, 255, 0.45); background: linear-gradient(180deg, #1f2a3e, #141b28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 #3d7fff; color: #fff; }
.mterm__chip:disabled { opacity: 0.4; cursor: not-allowed; }
.mterm__chip:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.85); outline-offset: 2px; }
/* The chart: the screen, recessed. A fixed height, so nothing moves when
   the candles land. */
.mterm__chart { position: relative; height: 340px; border: 1px solid rgba(0, 0, 0, 0.8); border-radius: 4px; background: radial-gradient(120% 90% at 50% 0%, rgba(61, 127, 255, 0.05), rgba(61, 127, 255, 0) 60%), linear-gradient(180deg, #06080b, #0a0d12); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.04); }
.mterm__chart .cdl { position: absolute; inset: 6px 4px 2px 6px; }
.mterm__chart canvas { position: absolute; left: 0; top: 0; }
/* The crosshair layer on its own compositor layer: a pointer move repaints
   this one small canvas, never the screen and glows under it. */
.mterm__chart .cdl__over { cursor: crosshair; touch-action: pan-y; will-change: transform; }
.mterm__state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; font-size: 12px; color: #8a92a0; text-align: center; pointer-events: none; }
.mterm__state[hidden] { display: none; }
.mterm__foot { min-height: 1.4em; margin: 0; font-size: 10.5px; color: #6f7888; }
/* The side panels. */
.mterm__side { display: grid; align-content: start; gap: 10px; min-width: 0; }
.mterm__panel { padding: 12px 13px; border: 1px solid rgba(0, 0, 0, 0.75); border-radius: 4px; background: linear-gradient(180deg, #0c0f14, #090b0f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.mterm__ph { margin: 0 0 8px; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #9aa2b1; }
.mterm__pl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.mterm__plabel { font-size: 12px; color: #c9cfda; }
.mterm__pfig { font-size: 16px; font-variant-numeric: tabular-nums; color: #eef1f5; }
.mterm__spark { display: block; width: 100%; height: 40px; }
.mterm__spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mterm__spark.is-up path { stroke: #4bd68a; }
.mterm__spark.is-down path { stroke: #ef5a61; }
.mterm__pchg { display: flex; gap: 14px; margin: 6px 0 0; font-size: 11px; color: #8a92a0; }
.mterm__pnote { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: #8a92a0; }
.mterm__pe { margin: 0; font-size: 12px; color: #8a92a0; }
.mterm__mv { margin: 8px 0 0; padding: 0; list-style: none; }
.mterm__mvrow { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.04); background: none; color: #c9cfda; font-size: 12px; text-align: left; cursor: pointer; }
.mterm__mvrow:hover .mterm__mvn { color: #fff; }
.mterm__mvn { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The tabs under it. */
.mterm__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.mterm__tabbtn { height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; background: linear-gradient(180deg, #1a1e25, #12151b); color: #c9cfda; font-size: 12px; cursor: pointer; }
.mterm__tabbtn[aria-expanded="true"] { border-color: rgba(110, 160, 255, 0.45); color: #fff; box-shadow: inset 0 -2px 0 #3d7fff; }
.mterm__tabbtn:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.85); outline-offset: 2px; }
@media (max-width: 1180px) {
  .mterm__grid { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); }
  .mterm__side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mterm__grid { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .mterm__list { max-height: 200px; }
  .mterm__reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mterm__reads .mterm__cell:last-child { grid-column: 1 / -1; }
  .mterm__chart { height: 260px; }
  .mterm__side { grid-template-columns: minmax(0, 1fr); }
  .mterm__tabs { padding: 0 10px; }
}
