/* ============================================================
   SkinSignal / css / market-terminal.css
   THE MEMBER'S MARKET TERMINAL (js/market-terminal.js, 2026-10-10):
   the rail, the hero chart and its own movers, the movers panel, the
   item drawer. The dashboard's language: steel frames (css/market-room.css
   --mk-steel), recessed readouts, JetBrains Mono figures, green and red
   for data only, blue the whisper. Motion is transform and opacity only.
   Nothing here touches the free reader's locked room.
   ============================================================ */

.mt-wrap { padding-bottom: clamp(30px, 5vw, 64px); }
.mt-wrap .mmon { margin-bottom: 14px; }
.mt { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(300px, 360px); gap: 14px; align-items: start; }

/* ---------- The three frames ---------- */
.mt-rail, .mt-hero, .mt-mv {
  position: relative;
  min-width: 0;
  border: 6px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 100% 28px padding-box,
    linear-gradient(180deg, #0b0f16, #06090e) padding-box,
    var(--mk-steel) border-box;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 26px rgba(0, 0, 0, 0.5), 0 0 0 1px #000, 0 20px 44px -22px rgba(0, 0, 0, 0.9);
}
.mt-k { margin: 0; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a92a0; }
.mt-k i, .mt-foot i { font-style: normal; opacity: 0.6; }
.mt-empty { margin: 0; padding: 12px; font-size: 13px; color: #8a92a0; list-style: none; }
.mt-note { margin: 8px 12px 0; font-size: 10.5px; line-height: 1.45; letter-spacing: 0.04em; color: #8a92a0; }

/* Tabs and window switches: recessed steel keys. */
.mt-tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px; background: #05070a; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05); }
.mt-tab { min-height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a92a0; cursor: pointer; }
.mt-tab[aria-selected="true"] { background: linear-gradient(180deg, #2a2f37, #1a1d23); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px #000; color: #f1f3f6; }
.mt-wins { display: inline-flex; gap: 4px; }
.mt-win { min-height: 28px; min-width: 40px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; background: #0a0d12; font-size: 11px; letter-spacing: 0.08em; color: #a6aebb; cursor: pointer; }
.mt-win[aria-pressed="true"] { border-color: rgba(61, 127, 255, 0.6); background: rgba(61, 127, 255, 0.14); color: #e6eeff; }
.mt-win:disabled { opacity: 0.38; cursor: not-allowed; }
.mt-tab:focus-visible, .mt-win:focus-visible, .mt-chip:focus-visible, .mt-sort:focus-visible, .mt-more:focus-visible,
.mt-item:focus-visible, .mt-mvr:focus-visible, .mt-rail__list:focus-visible, .mt-min select:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.9); outline-offset: 2px; }

/* ---------- The rail ---------- */
.mt-rail { display: flex; flex-direction: column; max-height: 720px; }
.mt-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.8); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.mt-sort { min-height: 30px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; background: #0a0d12; font-size: 10.5px; letter-spacing: 0.1em; color: #a6aebb; cursor: pointer; }
.mt-rail__list { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: 4px; list-style: none; scrollbar-width: thin; }
.mt-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 46px auto; grid-template-areas: "img name spark chg" "img lvl spark chg"; align-items: center; column-gap: 8px; padding: 7px 8px; border-radius: 5px; cursor: pointer; }
.mt-row__img { grid-area: img; }
.mt-row__name { grid-area: name; overflow: hidden; font-size: 13px; color: #dfe4ec; white-space: nowrap; text-overflow: ellipsis; }
.mt-row__lvl { grid-area: lvl; font-size: 10.5px; color: #8a92a0; }
.mt-row__spark { grid-area: spark; display: block; width: 46px; height: 18px; }
.mt-row__spark .mi-spark { width: 100%; height: 100%; }
.mt-row__spark .mi-spark__line { fill: none; stroke-width: 1.4; }
.mt-row__spark .mi-spark--up .mi-spark__line { stroke: #4bd68a; }
.mt-row__spark .mi-spark--down .mi-spark__line { stroke: #ef5a61; }
.mt-row__chg { grid-area: chg; min-width: 64px; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.mt-row:hover { background: rgba(255, 255, 255, 0.03); }
.mt-row.is-on { background: linear-gradient(90deg, rgba(61, 127, 255, 0.18), rgba(61, 127, 255, 0.04)); box-shadow: inset 2px 0 0 #3d7fff; }
.mt-row.is-on .mt-row__name { color: #fff; }
.is-up .mt-row__chg, .is-up .mt-item__chg, .is-up .mt-mvr__chg, .mt-hero__chgs .is-up, .mt-dr__chgs .is-up { color: #4bd68a; }
.is-down .mt-row__chg, .is-down .mt-item__chg, .is-down .mt-mvr__chg, .mt-hero__chgs .is-down, .mt-dr__chgs .is-down { color: #ef5a61; }
.is-flat .mt-row__chg { color: #8a92a0; }

/* ---------- The hero ---------- */
/* THE HEADER (2026-10-11): one row for the picture, the name and the big
   number, the three moves on their own row under it. The number never
   wraps: it and the name size from the hero column's own width (a
   container query), so a narrow column shrinks them instead. */
.mt-hero { padding: 14px 16px 16px; container-type: inline-size; }
.mt-hero__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "img id lvl" "chgs chgs chgs"; align-items: center; gap: 8px 14px; }
.mt-hero__img { grid-area: img; }
.mt-hero__id { grid-area: id; min-width: 0; }
.mt-hero__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 6.2cqi, 32px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: #f1f3f6; overflow-wrap: anywhere; }
.mt-hero__fig { display: contents; }
.mt-hero__lvl { grid-area: lvl; justify-self: end; padding: 4px 10px; border-radius: 5px; background: #05070a; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05); font-size: clamp(16px, 6cqi, 30px); font-weight: 500; line-height: 1.1; color: #f1f3f6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-hero__chgs { grid-area: chgs; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font-size: 12px; }
.mt-hero__chgs i, .mt-dr__chgs span { font-style: normal; font-variant-numeric: tabular-nums; }
.mt-hero__chgs em, .mt-dr__chgs em { margin-right: 5px; font-style: normal; font-size: 9.5px; letter-spacing: 0.14em; color: #8a92a0; }
.mt-hero__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.mt-hero__read { min-height: 1.2em; margin: 0; font-size: 11px; color: #a6aebb; }
.mt-chart { position: relative; height: clamp(260px, 30vw, 380px); border-radius: 6px; background: #05080d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 2px 8px rgba(0, 0, 0, 0.8); }
.mt-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-foot { margin: 8px 0 0; font-size: 10.5px; line-height: 1.5; letter-spacing: 0.03em; color: #8a92a0; }

.mt-cons { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.8); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04); }
.mt-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.mt-sub__title { margin: 0; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #dfe4ec; }
.mt-cons__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.mt-cons__col + .mt-cons__col { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.mt-cons__col { margin: 0; padding: 0; list-style: none; }
.mt-item, .mt-mvr { display: grid; width: 100%; align-items: center; border: 0; border-radius: 5px; background: none; color: inherit; text-align: left; cursor: pointer; }
.mt-item { grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; min-height: 36px; padding: 6px 8px; }
.mt-item:hover, .mt-mvr:hover { background: rgba(255, 255, 255, 0.035); }
.mt-item__name { overflow: hidden; font-size: 12.5px; line-height: 1.3; color: #dfe4ec; white-space: nowrap; text-overflow: ellipsis; }
.mt-item__px { font-size: 11px; color: #8a92a0; }
.mt-item__chg { min-width: 62px; font-size: 12px; text-align: right; }

/* ---------- The movers panel ---------- */
.mt-mv { padding-bottom: 8px; }
.mt-mv__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 10px; }
.mt-chip { min-height: 26px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; background: #0a0d12; font-size: 11px; color: #a6aebb; cursor: pointer; }
.mt-chip[aria-pressed="true"] { border-color: rgba(61, 127, 255, 0.6); background: rgba(61, 127, 255, 0.14); color: #e6eeff; }
.mt-min { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 10px 0; }
.mt-min select { min-height: 30px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; background: #05070a; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11.5px; color: #dfe4ec; }
.mt-mv__list { margin: 8px 0 0; padding: 0 6px; list-style: none; }
.mt-mvr { grid-template-columns: 18px 44px minmax(0, 1fr) auto auto; gap: 8px; min-height: 44px; padding: 4px 6px; }
.mt-mvr__n { font-size: 10px; color: #6f7888; text-align: right; }
.mt-mvr__img { display: block; width: 44px; height: 33px; }
.mt-mvr__name { overflow: hidden; font-size: 12.5px; line-height: 1.3; color: #dfe4ec; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mt-mvr__px { font-size: 10.5px; color: #8a92a0; }
.mt-mvr__chg { min-width: 54px; font-size: 12px; text-align: right; }
.mt-more { display: block; width: calc(100% - 20px); min-height: 34px; margin: 8px 10px 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; background: #0a0d12; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a6aebb; cursor: pointer; }

/* ---------- The drawer ---------- */
.mt-drawer[hidden] { display: none; }
.mt-drawer { position: fixed; inset: 0; z-index: 95; }
.mt-drawer__scrim { position: absolute; inset: 0; background: rgba(2, 4, 8, 0.6); opacity: 0; transition: opacity 0.24s ease; }
.mt-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  overflow-y: auto;
  padding: 18px 18px 28px;
  border-left: 6px solid transparent;
  background: linear-gradient(180deg, #0b0f16, #06090e) padding-box, var(--mk-steel, #1b1e24) border-box;
  box-shadow: -24px 0 60px -20px #000;
  transform: translateX(104%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}
.mt-drawer.is-open .mt-drawer__scrim { opacity: 1; }
.mt-drawer.is-open .mt-drawer__panel { transform: none; }
html.mt-locked { overflow: hidden; }
.mt-drawer__x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: #0a0d12; font-size: 24px; line-height: 1; color: #a6aebb; cursor: pointer; }
.mt-drawer__x:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.9); }
.mt-dr__head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 44px; }
.mt-dr__img { display: block; width: 140px; aspect-ratio: 4 / 3; border-radius: 6px; background: radial-gradient(70% 70% at 50% 50%, rgba(61, 127, 255, 0.12), rgba(61, 127, 255, 0) 70%), #05080d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mt-dr__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mt-dr__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; color: #f1f3f6; }
.mt-dr__px { margin: 6px 0 0; font-size: 18px; color: #f1f3f6; font-variant-numeric: tabular-nums; }
.mt-held { display: inline-block; margin: 0; padding: 3px 8px; border: 1px solid rgba(75, 214, 138, 0.5); border-radius: 4px; background: rgba(75, 214, 138, 0.08); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fe8bf; }
.mt-held b { font-weight: 500; color: #fff; }
.mt-dr__chgs { display: flex; gap: 18px; margin: 14px 0 0; font-size: 14px; }
.mt-dr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.mt-chart--item { height: 280px; }
/* Our own sweep price (no cs2.sh history): a quiet blue line, broken at gaps. */
.mt-sweep { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.mt-sweep__line { fill: none; stroke: #76a6ff; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mt-sweep__dot { fill: #76a6ff; }
.mt-mk { margin-top: 16px; }
.mt-mk ul { margin: 8px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 18px; }
.mt-mk li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); break-inside: avoid; font-size: 12.5px; color: #b8bfcb; text-transform: capitalize; }
.mt-mk b { font-weight: 500; color: #f1f3f6; }
.mt-inspect { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 14px; border: 1px solid rgba(61, 127, 255, 0.5); border-radius: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #cfe0ff; text-decoration: none; }

/* ---------- Narrower ---------- */
@media (max-width: 1240px) {
  .mt { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .mt-mv { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .mt { grid-template-columns: minmax(0, 1fr); }
  /* The rail becomes a strip of chips above the hero. */
  .mt-rail { max-height: none; }
  .mt-rail__list { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px; scroll-snap-type: x proximity; }
  .mt-row { flex: none; grid-template-columns: 36px auto auto; grid-template-areas: "img name chg" "img lvl chg"; min-height: 44px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.07); scroll-snap-align: start; }
  .mt-row__spark { display: none; }
  .mt-row__name { max-width: 150px; }
  .mt-cons__cols { grid-template-columns: minmax(0, 1fr); }
  .mt-tab, .mt-win, .mt-sort, .mt-chip, .mt-min select { min-height: 44px; }
  .mt-chip { padding: 0 12px; }
  .mt-win, .mt-chip { min-width: 44px; }
  .mt-more { min-height: 44px; }
  .mt-item { min-height: 44px; }
  /* The drawer is a bottom sheet. */
  .mt-drawer__panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-left: 0; border-top: 6px solid transparent; border-radius: 14px 14px 0 0; transform: translateY(104%); box-shadow: 0 -24px 60px -20px #000; }
  .mt-dr__head { grid-template-columns: 96px minmax(0, 1fr); }
  .mt-dr__img { width: 96px; }
  .mt-chart--item { height: 230px; }
  .mt-mk ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-drawer__scrim, .mt-drawer__panel { transition: none; }
}

/* "Open full page": the item's own price page, /item/<slug> (2026-10-14) */
.mt-fullpage { display: inline-flex; margin-top: 14px; font-size: 12px; letter-spacing: 0.06em; color: #8fb3ff; text-decoration: none; border-bottom: 1px solid rgba(143, 179, 255, 0.35); }
.mt-fullpage:hover, .mt-fullpage:focus-visible { color: #ffffff; border-bottom-color: #ffffff; }
.mt-li { display: flex; align-items: center; gap: 2px; }
.mt-li > button { flex: 1 1 auto; min-width: 0; }
.mt-go { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 5px; font-size: 13px; color: #7f8796; text-decoration: none; }
.mt-go:hover, .mt-go:focus-visible { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.mt-go:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.9); outline-offset: 1px; }

/* The dashboard's ways in to an item's page: the inspect panel and the
   item detail ("Open full page"), Your signals and the vitrine plaque
   (the name is the link, in the row's own type). */
.item-full { display: inline-flex; align-self: flex-start; margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: #8fb3ff; text-decoration: none; border-bottom: 1px solid rgba(143, 179, 255, 0.35); }
.item-full:hover, .item-full:focus-visible { color: #ffffff; border-bottom-color: #ffffff; }
.item-full[hidden] { display: none; }
.detail__full { margin-top: 6px; }
.ymv__link, .vtr__plink { color: inherit; text-decoration: none; }
.ymv__link:hover, .ymv__link:focus-visible, .vtr__plink:hover, .vtr__plink:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* where the drawer's 7D / 30D come from (one market's history, not the consensus) */
.mt-dr__chgsrc { align-self: center; font-size: 10.5px; letter-spacing: 0.04em; color: #7f8796; }
