/* Mobile shell — MARKET SIGNALS (see mshell/signals.js). */
@media (max-width: 979px) {
  html.web-shell .mwm { gap: 12px; }
  html.web-shell .mwm-live { display: inline-flex; align-items: center; gap: 6px; }
  html.web-shell .mwm-live .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--mws-up);
    box-shadow: 0 0 0 3px rgba(32, 199, 117, 0.15);
  }
  /* alert-on-flips card */
  html.web-shell .mwm-alert {
    flex-direction: row; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  }
  html.web-shell .mwm-alert .ic { color: var(--mws-gold); display: inline-flex; flex-shrink: 0; }
  html.web-shell .mwm-alert .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
  html.web-shell .mwm-alert .t { font-weight: 800; font-size: 14px; }
  html.web-shell .mwm-alert .s { font-size: 11.5px; color: var(--mws-ink-3); line-height: 1.4; }
  html.web-shell .mwm-alert .mws-link { flex-shrink: 0; min-height: 40px; padding: 0 4px; }
  html.web-shell .mwm-alert input.mws-switch:disabled { opacity: 0.5; }
  /* search + chips */
  html.web-shell .mwm-search {
    display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
    background: var(--mws-card); border: 1px solid var(--mws-line); border-radius: 12px;
    color: var(--mws-ink-3);
  }
  html.web-shell .mwm-search-in {
    flex: 1 1 auto; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
    color: var(--mws-ink); font-family: var(--mws-mono); font-size: 16px; padding: 0;
    -webkit-appearance: none; appearance: none;
  }
  html.web-shell .mwm-search:focus-within { border-color: rgba(240, 185, 11, 0.45); }
  html.web-shell .mwm-chips {
    display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 0 16px; scrollbar-width: none;
  }
  html.web-shell .mwm-chips::-webkit-scrollbar { display: none; }
  html.web-shell .mwm-chip {
    flex-shrink: 0; height: 32px; padding: 0 12px; font-size: 11px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  html.web-shell .mwm-chip .n { color: var(--mws-ink-3); font-size: 10px; }
  /* Market cap on the price row's second line. */
  html.web-shell .mwm-mcap { white-space: nowrap; }
  html.web-shell .mwm-mcap b { font-weight: 600; color: var(--mws-ink-2, var(--mws-ink)); }
  html.web-shell .mwm-chip.on .n { color: inherit; opacity: 0.75; }
  html.web-shell .mwm-mood {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; margin: 2px 2px -4px;
  }
  html.web-shell .mwm-counts { font-family: var(--mws-mono); font-size: 10px; color: var(--mws-ink-3); white-space: nowrap; }
  html.web-shell .mwm-counts .g { color: var(--mws-gold); }
  html.web-shell .mwm-moodbar { display: flex; align-items: center; gap: 10px; margin: 0 2px; }
  html.web-shell .mwm-moodbar .t { flex-shrink: 0; }
  html.web-shell .mwm-moodbar .gauge {
    flex: 1 1 auto; display: flex; height: 5px; border-radius: 999px; overflow: hidden; background: var(--mws-well);
  }
  html.web-shell .mwm-moodbar .gauge .b { background: var(--mws-up); }
  html.web-shell .mwm-moodbar .gauge .w { background: var(--mws-gold); }
  html.web-shell .mwm-moodbar .gauge .x { background: var(--mws-down); }
  html.web-shell .mwm-moodbar .gauge .n { background: var(--mws-line-strong); }
  /* signal card */
  html.web-shell .mwm-card { padding: 15px; gap: 12px; cursor: pointer; }
  html.web-shell .mwm-card.t-up { border-color: rgba(32, 199, 117, 0.3); }
  html.web-shell .mwm-card.t-down { border-color: rgba(234, 57, 67, 0.32); }
  html.web-shell .mwm-card.t-gold { border-color: rgba(240, 185, 11, 0.3); }
  html.web-shell .mwm-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
  html.web-shell .mwm-top .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
  html.web-shell .mwm-top .nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
  html.web-shell .mwm-top .nm .c { font-weight: 800; font-size: 14.5px; }
  html.web-shell .mwm-top .why {
    font-family: var(--mws-mono); font-size: 10.5px; color: var(--mws-ink-3); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  html.web-shell .mwm-top .right {
    margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  }
  html.web-shell .mwm-top .px { font-family: var(--mws-mono); font-size: 14px; font-weight: 600; }
  html.web-shell .mwm-top .chg { font-family: var(--mws-mono); font-size: 10.5px; color: var(--mws-ink-3); }
  html.web-shell .mwm-ms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  /* entry check: one cell per bot filter, 3 per row */
  html.web-shell .mwm-ms.ec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.web-shell .mwm-m {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    background: var(--mws-well); border: 1px solid var(--mws-line-2); border-radius: 8px; padding: 5px 7px;
  }
  html.web-shell .mwm-m .k { font-family: var(--mws-mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--mws-ink-3); white-space: nowrap; overflow: hidden; }
  html.web-shell .mwm-m .v { font-family: var(--mws-mono); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.web-shell .mwm-m.good .v { color: var(--mws-up); }
  html.web-shell .mwm-m.bad .v { color: var(--mws-down); }
  html.web-shell .mwm-m.warn .v { color: var(--mws-gold); }
  html.web-shell .mwm-foot {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    padding-top: 10px; border-top: 1px solid var(--mws-line-2);
  }
  html.web-shell .mwm-verdict {
    font-family: var(--mws-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em;
    padding: 2px 7px; border-radius: 6px; flex-shrink: 0;
  }
  html.web-shell .mwm-verdict.buy { color: var(--mws-up); background: rgba(32, 199, 117, 0.12); }
  html.web-shell .mwm-verdict.wait { color: var(--mws-gold); background: rgba(240, 185, 11, 0.12); }
  html.web-shell .mwm-verdict.block { color: var(--mws-down); background: rgba(234, 57, 67, 0.12); }
  html.web-shell .mwm-verdict.none { color: var(--mws-ink-3); background: var(--mws-well); }
  html.web-shell .mwm-sbar span.none { background: var(--mws-ink-3); }
  html.web-shell .mwm-score { font-size: 12px; font-weight: 600; flex-shrink: 0; }
  html.web-shell .mwm-score small { font-size: 9px; color: var(--mws-ink-3); }
  html.web-shell .mwm-sbar { width: 38px; height: 4px; border-radius: 999px; background: var(--mws-well); overflow: hidden; flex-shrink: 0; }
  html.web-shell .mwm-sbar span { display: block; height: 100%; border-radius: 999px; }
  html.web-shell .mwm-sbar .buy { background: var(--mws-up); }
  html.web-shell .mwm-sbar .wait { background: var(--mws-gold); }
  html.web-shell .mwm-sbar .block { background: var(--mws-down); }
  html.web-shell .mwm-note {
    flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--mws-ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell .mwm-star {
    width: 40px; height: 40px; margin: -10px -6px -10px 0; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--mws-ink-3); cursor: pointer; padding: 0;
  }
  html.web-shell .mwm-star.on { color: var(--mws-gold); }
  html.web-shell .mwm-star.on svg { fill: currentColor; }
  html.web-shell .mwm-go { font-size: 12px; font-weight: 700; color: var(--mws-gold); flex-shrink: 0; }
  @media (max-width: 374px) {
    html.web-shell .mwm-ms { gap: 4px; }
    html.web-shell .mwm-m { padding: 5px 4px; }
    html.web-shell .mwm-m .v { font-size: 11px; }
  }
  html.web-shell .mwm-intro { font-size: 11.5px; padding: 2px 6px; }
  html.web-shell .mwm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  html.web-shell .mwm-empty svg { color: var(--mws-ink-3); }
  html.web-shell .mwm-empty .t { font-weight: 800; color: var(--mws-ink); font-size: 14px; }
}

/* ---- Prices list, CoinMarketCap-app layout (owner request 2026-09-24):
   flat rows, rank · logo · symbol over market cap · price · sparkline
   over the % move. Header shares the row grid so columns line up. */
@media (max-width: 979px) {
  html.web-shell .mwm-chead,
  html.web-shell .mwm-crow {
    display: grid;
    grid-template-columns: 22px 32px minmax(0, 1fr) auto 70px;
    align-items: center;
    column-gap: 10px;
  }
  html.web-shell .mwm-chead {
    padding: 4px 4px 6px;
    font-size: 12px; color: var(--mws-ink-3);
  }
  html.web-shell .mwm-chead .rk { font-family: var(--mws-mono); font-size: 11px; text-align: center; }
  html.web-shell .mwm-chead .lb { grid-column: 2 / 4; display: inline-flex; align-items: center; gap: 6px; }
  html.web-shell .mwm-chead .car { color: var(--mws-gold); font-size: 10px; }
  html.web-shell .mwm-chead .px,
  html.web-shell .mwm-chead .pc { text-align: right; }

  html.web-shell .mwm-clist { display: flex; flex-direction: column; margin: 0 -4px; }
  html.web-shell .mwm-crow {
    min-height: 64px; padding: 8px 4px; border-radius: 12px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html.web-shell .mwm-crow:active { background: var(--mws-well); }
  html.web-shell .mwm-crow .rk {
    font-family: var(--mws-mono); font-size: 12px; color: var(--mws-ink-3); text-align: center;
  }
  html.web-shell .mwm-crow .nm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  html.web-shell .mwm-crow .nm b {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0;
    font-size: 15px; font-weight: 700; color: var(--mws-ink); line-height: 1.1;
  }
  html.web-shell .mwm-crow .nm .bot {
    font: 700 9px/1 var(--mws-mono); letter-spacing: 0.06em; padding: 3px 5px; border-radius: 5px;
    color: var(--mws-up); background: color-mix(in srgb, var(--mws-up) 14%, transparent);
  }
  html.web-shell .mwm-crow .nm .wst { display: inline-flex; color: var(--mws-gold); }
  html.web-shell .mwm-crow .nm .wst svg { width: 11px; height: 11px; fill: currentColor; }
  html.web-shell .mwm-crow .nm .mc {
    font-size: 13px; color: var(--mws-ink-3); font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell .mwm-crow .px {
    justify-self: end; font-size: 16px; font-weight: 600; color: var(--mws-ink);
    font-variant-numeric: tabular-nums; white-space: nowrap;
    transition: color 0.35s ease;
  }
  html.web-shell .mwm-crow .px.fl-up { color: var(--mws-up); transition: none; }
  html.web-shell .mwm-crow .px.fl-dn { color: var(--mws-down); transition: none; }
  html.web-shell .mwm-crow .rt {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0;
  }
  html.web-shell .mwm-crow .rt .sp { display: block; width: 64px; height: 22px; }
  html.web-shell .mwm-crow .rt .sp svg { display: block; }
  html.web-shell .mwm-crow .pc {
    font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
    white-space: nowrap; color: var(--mws-ink-3);
  }
  html.web-shell .mwm-crow .pc.up { color: var(--mws-up); }
  html.web-shell .mwm-crow .pc.dn { color: var(--mws-down); }
  html.web-shell .mwm-perchip .car { font-size: 9px; opacity: 0.7; }
}

/* Market signal state colours (2026-09-26) — tokens live in styles.css. */
html.web-shell .mwm-verdict.buy   { color: var(--ms-above); background: color-mix(in srgb, var(--ms-above) 13%, transparent); }
html.web-shell .mwm-verdict.wait  { color: var(--ms-usual); background: color-mix(in srgb, var(--ms-usual) 14%, transparent); }
html.web-shell .mwm-verdict.block { color: var(--ms-below); background: color-mix(in srgb, var(--ms-below) 14%, transparent); }
html.web-shell .mwm-verdict.none  { color: var(--ms-none);  background: color-mix(in srgb, var(--ms-none) 14%, transparent); }
html.web-shell .mwm-sbar .buy   { background: var(--ms-above); }
html.web-shell .mwm-sbar .wait  { background: var(--ms-usual); }
html.web-shell .mwm-sbar .block { background: var(--ms-below); }
html.web-shell .mwm-sbar .none  { background: var(--ms-none); }
html.web-shell .mwm-moodbar .gauge .b { background: var(--ms-above); }
html.web-shell .mwm-moodbar .gauge .w { background: var(--ms-usual); }
html.web-shell .mwm-moodbar .gauge .x { background: var(--ms-below); }
html.web-shell .mwm-card.v-buy   { border-color: color-mix(in srgb, var(--ms-above) 32%, transparent); }
html.web-shell .mwm-card.v-wait  { border-color: color-mix(in srgb, var(--ms-usual) 32%, transparent); }
html.web-shell .mwm-card.v-block { border-color: color-mix(in srgb, var(--ms-below) 32%, transparent); }
