/* Mobile shell — MARKETS › COIN (see mshell/marketcoin.js). */
@media (max-width: 979px) {
  html.web-shell .mmc { gap: 12px; }

  /* header star */
  html.web-shell .mmc-star {
    width: 38px; height: 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--mws-ink-3); cursor: pointer;
  }
  html.web-shell .mmc-star.on { color: var(--mws-gold); }
  html.web-shell .mmc-star.on svg { fill: currentColor; }

  /* hero */
  html.web-shell .mmc-hero { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
  html.web-shell .mmc-hero .id { display: flex; align-items: center; gap: 11px; }
  html.web-shell .mmc-hero .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  html.web-shell .mmc-hero .nm .t {
    display: flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: 16px; color: var(--mws-ink);
  }
  html.web-shell .mmc-hero .nm .s { font-family: var(--mws-mono); font-size: 11px; color: var(--mws-ink-3); }
  html.web-shell .mmc-hero .p {
    font-family: var(--mws-mono); font-weight: 700; font-size: 30px;
    letter-spacing: -0.01em; color: var(--mws-ink); line-height: 1.1;
  }
  html.web-shell .mmc-hero .c { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
  html.web-shell .mmc-hero .mmc-chg { font-size: 11.5px; padding: 4px 8px; }
  html.web-shell .mmc-hero .abs { font-family: var(--mws-mono); font-size: 12px; font-weight: 600; }
  html.web-shell .mmc-hero .lbl { font-family: var(--mws-mono); font-size: 11px; color: var(--mws-ink-3); }
  html.web-shell .mmc .up { color: var(--mws-up); }
  html.web-shell .mmc .down { color: var(--mws-down); }
  html.web-shell .mmc .mws-badge.up { color: var(--mws-up); }
  html.web-shell .mmc .mws-badge.down { color: var(--mws-down); }

  /* chart */
  html.web-shell .mmc-chart { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
  html.web-shell .mmc-rseg { align-self: stretch; }
  html.web-shell .mmc-rseg .s { flex: 1; min-height: 30px; }
  html.web-shell .mmc-rline {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-family: var(--mws-mono); font-size: 11.5px; color: var(--mws-ink-2);
  }
  html.web-shell .mmc-rline i, html.web-shell .mmc-band i {
    font-style: normal; color: var(--mws-ink-3);
  }
  html.web-shell .mmc-rline b { font-weight: 700; color: var(--mws-ink); }
  html.web-shell .mmc-rline b.up { color: var(--mws-up); }
  html.web-shell .mmc-rline b.down { color: var(--mws-down); }

  /* 24h stats */
  html.web-shell .mmc-stats { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
  html.web-shell .mmc-band { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell .mmc-band .bar {
    position: relative; height: 6px; border-radius: 99px;
    background: linear-gradient(90deg, rgba(234,57,67,0.55), rgba(240,185,11,0.55), rgba(32,199,117,0.55));
  }
  html.web-shell .mmc-band .dot {
    position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--mws-ink); border: 3px solid var(--mws-card);
    box-shadow: 0 0 0 1px var(--mws-line-strong);
  }
  html.web-shell .mmc-band .ends {
    display: flex; justify-content: space-between;
    font-family: var(--mws-mono); font-size: 11.5px;
  }
  html.web-shell .mmc-band .ends b { color: var(--mws-ink); font-weight: 700; }
  html.web-shell .mmc .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  html.web-shell .mmc .cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  html.web-shell .mmc .cell .k { font-size: 11.5px; color: var(--mws-ink-3); }
  html.web-shell .mmc .cell .v { font-family: var(--mws-mono); font-weight: 700; font-size: 15px; color: var(--mws-ink); }
  html.web-shell .mmc .cell .sub { font-family: var(--mws-mono); font-size: 10.5px; color: var(--mws-ink-3); }

  /* your bot / start one */
  html.web-shell .mmc-bot { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
  html.web-shell .mmc-bot.mine { cursor: pointer; }
  html.web-shell .mmc-bot.mine:active { background: var(--mws-well); }
  html.web-shell .mmc-bot .top { display: flex; align-items: center; justify-content: space-between; }
  html.web-shell .mmc-bot .st {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mws-mono); font-size: 11px; color: var(--mws-ink-3);
  }
  html.web-shell .mmc-bot .st .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mws-ink-3); }
  html.web-shell .mmc-bot .st.on { color: var(--mws-up); }
  html.web-shell .mmc-bot .st.on .dot { background: var(--mws-up); box-shadow: 0 0 6px var(--mws-up); }
  html.web-shell .mmc-bot .go {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 11px; border-top: 1px solid var(--mws-line-2);
    font-weight: 700; font-size: 14px; color: var(--mws-gold);
  }
  html.web-shell .mmc-bot .go .mws-chev { margin-left: 0; color: var(--mws-gold); }
  html.web-shell .mmc-bot .tx { font-size: 13px; line-height: 1.5; color: var(--mws-ink-2); }
  html.web-shell .mmc-bot .btns { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell .mmc-btn {
    min-height: 46px; border-radius: 12px; cursor: pointer;
    font-weight: 800; font-size: 14.5px;
  }
  html.web-shell .mmc-btn.pri { background: var(--mws-gold-2); color: #14161c; border: 0; }
  html.web-shell .mmc-btn.sec {
    background: transparent; color: var(--mws-ink);
    border: 1px solid var(--mws-line-strong);
  }

  /* signal */
  html.web-shell .mmc-sig { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
  html.web-shell .mmc-sig .top { display: flex; align-items: center; justify-content: space-between; }
  html.web-shell .mmc-sig .vd {
    font-family: var(--mws-mono); font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.06em; padding: 4px 9px; border-radius: 7px;
  }
  html.web-shell .mmc-sig .vd.buy { color: var(--mws-up); background: rgba(32,199,117,0.12); }
  html.web-shell .mmc-sig .vd.wait { color: #f0a020; background: rgba(240,160,32,0.13); }
  html.web-shell .mmc-sig .vd.block { color: var(--mws-down); background: rgba(234,57,67,0.12); }
  html.web-shell .mmc-sig .tier { font-weight: 800; font-size: 15px; color: var(--mws-ink); }
  html.web-shell .mmc-sig .score { display: flex; align-items: center; gap: 12px; }
  html.web-shell .mmc-sig .score b { font-family: var(--mws-mono); font-size: 20px; font-weight: 800; }
  html.web-shell .mmc-sig .score small { font-size: 11px; color: var(--mws-ink-3); font-weight: 600; }
  html.web-shell .mmc-sig .score .bar {
    flex: 1; height: 6px; border-radius: 99px; background: var(--mws-well); overflow: hidden;
  }
  html.web-shell .mmc-sig .score .bar span { display: block; height: 100%; border-radius: 99px; }
  html.web-shell .mmc-sig.v-buy .score b { color: var(--mws-up); }
  html.web-shell .mmc-sig.v-buy .score .bar span { background: var(--mws-up); }
  html.web-shell .mmc-sig.v-wait .score b { color: #f0a020; }
  html.web-shell .mmc-sig.v-wait .score .bar span { background: #f0a020; }
  html.web-shell .mmc-sig.v-block .score b { color: var(--mws-down); }
  html.web-shell .mmc-sig.v-block .score .bar span { background: var(--mws-down); }
  html.web-shell .mmc-sig .note { font-size: 12.5px; line-height: 1.5; color: var(--mws-ink-2); }
  html.web-shell .mmc-sig .note b { color: var(--mws-ink); }
  html.web-shell .mmc-sig .gates { display: flex; flex-wrap: wrap; gap: 6px; }
  html.web-shell .mmc-sig .gate {
    font-family: var(--mws-mono); font-size: 10.5px; font-weight: 700;
    padding: 4px 8px; border-radius: 7px;
  }
  html.web-shell .mmc-sig .gate.pass { color: var(--mws-up); background: rgba(32,199,117,0.12); }
  html.web-shell .mmc-sig .gate.wait { color: #f0a020; background: rgba(240,160,32,0.13); }
  html.web-shell .mmc-sig .gate.fail { color: var(--mws-down); background: rgba(234,57,67,0.12); }
  html.web-shell .mmc-all { align-self: flex-start; padding: 2px 0; font-weight: 700; }

  /* light theme tweaks */
  /* entry check — one row per bot filter */
  html.web-shell .mmc-ec { display: flex; flex-direction: column; gap: 2px; }
  html.web-shell .mmc-ec .r {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px;
    align-items: start; padding: 7px 8px; border-radius: 9px;
  }
  html.web-shell .mmc-ec .r:nth-child(odd) { background: var(--mws-well); }
  html.web-shell .mmc-ec .ic {
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    font: 800 10.5px/1 var(--mws-mono); margin-top: 1px;
  }
  html.web-shell .mmc-ec .r.pass .ic { background: rgba(32,199,117,.14); color: var(--mws-up); }
  html.web-shell .mmc-ec .r.fail .ic { background: rgba(234,57,67,.14); color: var(--mws-down); }
  html.web-shell .mmc-ec .r.na .ic { background: var(--mws-card); color: var(--mws-ink-3); }
  html.web-shell .mmc-ec .nm { font-size: 13px; font-weight: 700; color: var(--mws-ink); }
  html.web-shell .mmc-ec .nm i {
    font: 700 9.5px/1 var(--mws-mono); font-style: normal; color: var(--mws-ink-3);
    margin-left: 6px; padding: 2px 5px; border: 1px solid var(--mws-line); border-radius: 5px;
  }
  html.web-shell .mmc-ec .vl { margin-top: 3px; font: 600 11.5px/1.4 var(--mws-mono); color: var(--mws-ink-2); }
  html.web-shell .mmc-ec .r.fail .vl { color: var(--mws-down); }
  html.web-shell .mmc-ec .vl span { color: var(--mws-ink-3); }
  html.web-shell .mmc-sig .vd.none { color: var(--mws-ink-3); background: var(--mws-well); }
  html.web-shell .mmc-sig.v-none .score b { color: var(--mws-ink-3); }
  html.web-shell .mmc-sig .what { font-size: 12.5px; line-height: 1.45; color: var(--mws-ink-2); }
  html.web-shell .mmc-sig .ctxl { font: 700 10px/1 var(--mws-mono); letter-spacing: .1em; color: var(--mws-ink-3); }
  html.web-shell .mmc-sig .track {
    font-size: 12px; line-height: 1.5; color: var(--mws-ink-2);
    padding: 9px 11px; border-radius: 10px; background: var(--mws-well);
  }
  html.web-shell[data-theme="light"] .mmc-btn.pri { background: #f0b90b; }
  html.web-shell[data-theme="light"] .mmc-band .dot { background: var(--mws-ink); border-color: #fff; }
}

/* Market signal state colours (2026-09-26) — tokens live in styles.css. */
html.web-shell .mmc-sig .vd.buy   { color: var(--ms-above); background: color-mix(in srgb, var(--ms-above) 13%, transparent); }
html.web-shell .mmc-sig .vd.wait  { color: var(--ms-usual); background: color-mix(in srgb, var(--ms-usual) 14%, transparent); }
html.web-shell .mmc-sig .vd.block { color: var(--ms-below); background: color-mix(in srgb, var(--ms-below) 14%, transparent); }
html.web-shell .mmc-sig .vd.none  { color: var(--ms-none);  background: color-mix(in srgb, var(--ms-none) 14%, transparent); }
html.web-shell .mmc-sig.v-buy .score b   { color: var(--ms-above); }
html.web-shell .mmc-sig.v-wait .score b  { color: var(--ms-usual); }
html.web-shell .mmc-sig.v-block .score b { color: var(--ms-below); }
html.web-shell .mmc-sig.v-none .score b  { color: var(--ms-none); }
html.web-shell .mmc-sig.v-buy .score .bar span   { background: var(--ms-above); }
html.web-shell .mmc-sig.v-wait .score .bar span  { background: var(--ms-usual); }
html.web-shell .mmc-sig.v-block .score .bar span { background: var(--ms-below); }
html.web-shell .mmc-sig.v-none .score .bar span  { background: var(--ms-none); }
