/* Mobile shell — TRADE HISTORY (see mshell/history.js). */
@media (max-width: 979px) {
  html.web-shell .mwh { gap: 12px; }
  html.web-shell .mwh-filterrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
  html.web-shell .mwh-seg { flex: 1 1 auto; min-width: 0; }
  html.web-shell .mwh-seg .s {
    flex: 1 1 0; min-width: 0; text-align: center; padding: 0 6px;
    height: 34px; font-size: 11px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell .mwh-period {
    position: relative; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--mws-line); color: var(--mws-ink-2);
    font-family: var(--mws-mono); font-size: 11px; cursor: pointer;
    max-width: 44%;
  }
  html.web-shell .mwh-period > span:not(.ic):not(.car) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.web-shell .mwh-period .ic { display: inline-flex; color: var(--mws-ink-3); }
  html.web-shell .mwh-period .car { font-size: 9px; color: var(--mws-ink-3); }
  html.web-shell .mwh-period.on {
    color: var(--mws-gold); border-color: rgba(240, 185, 11, 0.35);
    background: rgba(240, 185, 11, 0.08);
  }
  html.web-shell .mwh-period.on .ic { color: var(--mws-gold); }
  html.web-shell .mwh-selnative {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; font-size: 16px;
  }
  /* coin pills: one line, swipe sideways inside the strip only */
  html.web-shell .mwh-pills {
    display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 0 16px; scrollbar-width: none;
  }
  html.web-shell .mwh-pills::-webkit-scrollbar { display: none; }
  html.web-shell .mwh-pill {
    flex-shrink: 0; height: 32px; padding: 0 14px; font-size: 11px;
    display: inline-flex; align-items: center;
  }
  html.web-shell .mwh-pill.on { border-color: transparent; }
  html.web-shell .mwh-tiles {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  }
  html.web-shell .mwh-tile { padding: 12px; gap: 3px; border-radius: 13px; min-width: 0; }
  html.web-shell .mwh-tile .mws-lbl { font-size: 9px; letter-spacing: 0.1em; }
  html.web-shell .mwh-tile .v {
    font-family: var(--mws-mono); font-size: 14px; font-weight: 600; color: var(--mws-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell .mwh-statline {
    display: flex; justify-content: space-between; gap: 10px; margin: -2px 2px 0;
    font-family: var(--mws-mono); font-size: 10.5px; color: var(--mws-ink-3);
  }
  html.web-shell .mwh-statline b { font-weight: 600; }
  html.web-shell .mwh-dayhd {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin: 4px 2px -2px 2px;
  }
  html.web-shell .mwh-dayhd .sum {
    font-family: var(--mws-mono); font-size: 10.5px; font-weight: 600; white-space: nowrap;
  }
  html.web-shell .mwh-row { padding: 13px 14px; border-radius: 14px; }
  html.web-shell .mwh-row .nm { font-size: 13.5px; }
  html.web-shell .mwh-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html.web-shell .mwh-row .nm .mws-badge { flex-shrink: 0; }
  html.web-shell .mwh-row .sub { font-size: 10.5px; }
  html.web-shell .mwh-row .right .v { font-size: 13.5px; }
  html.web-shell .mwh-row .right .cap { font-size: 10px; }
  html.web-shell .mwh-row.paper { border-color: rgba(139, 123, 255, 0.28); }
  html.web-shell .mwh-more { height: 44px; font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell .mwh-foot { font-size: 11.5px; padding: 2px 8px; }
  @media (max-width: 374px) {
    html.web-shell .mwh-seg .s { font-size: 10.5px; padding: 0 3px; }
    html.web-shell .mwh-period { padding: 0 10px; gap: 5px; font-size: 10.5px; }
    html.web-shell .mwh-period .car { display: none; }
  }
  html.web-shell .mwh-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  html.web-shell .mwh-empty svg { color: var(--mws-ink-3); }
  html.web-shell .mwh-empty .t { font-weight: 800; color: var(--mws-ink); font-size: 14px; }
}
