/* Mobile shell — WALLET › WEB3 WALLET, iOS wallet layout (see mshell/web3wallet.js). */
@media (max-width: 979px) {
  html.web-shell .mw3 { gap: 14px; }
  html.web-shell .mw3-note { font-size: 13px; line-height: 17px; color: var(--mws-ink-3); }
  html.web-shell .mw3-note.c { text-align: center; padding: 0 12px; }
  html.web-shell .mw3-note.pad { padding: 14px; }
  html.web-shell .mw3-note.warn { color: var(--mws-down); }
  html.web-shell .mw3-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 0; }
  html.web-shell .mw3-sec .r { font-size: 12px; color: var(--mws-ink-3); font-family: var(--mws-mono); }

  /* hero */
  html.web-shell .mw3-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 0; }
  html.web-shell .mw3-hero b { font-family: var(--mws-mono); font-size: 42px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
  html.web-shell .mw3-hero .sub { font-size: 12px; color: var(--mws-ink-3); }

  /* wallet chips */
  html.web-shell .mw3-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  html.web-shell .mw3-chips::-webkit-scrollbar { display: none; }
  html.web-shell .mw3-chip {
    flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 22px;
    border: 1.5px solid var(--mws-line-strong); background: var(--mws-card); color: var(--mws-ink); font-family: inherit; position: relative;
  }
  html.web-shell .mw3-chip.on { border-color: var(--mws-gold); background: var(--hb-gold-bg); }
  html.web-shell .mw3-chip .mk { width: 30px; height: 30px; border-radius: 15px; background: rgba(240, 185, 11, .2); color: var(--mws-gold); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
  html.web-shell .mw3-chip .tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
  html.web-shell .mw3-chip .tx b { font-size: 13px; }
  html.web-shell .mw3-chip .tx .num { font-size: 10px; color: var(--mws-ink-3); }
  html.web-shell .mw3-chip .rx { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 8px; background: var(--mws-up); border: 2px solid var(--mws-bg); }
  html.web-shell .mw3-chip.add { width: 44px; padding: 0; justify-content: center; border-style: dashed; background: transparent; color: var(--mws-gold); font-size: 22px; font-weight: 700; }
  html.web-shell .mw3-chip.add[disabled] { opacity: .4; }

  /* actions */
  html.web-shell .mw3-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html.web-shell .mw3-act { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--mws-ink); font-family: inherit; font-size: 12px; font-weight: 600; padding: 0; }
  html.web-shell .mw3-act .ic { width: 56px; height: 56px; border-radius: 28px; background: var(--mws-card); border: 1px solid var(--mws-line-strong); display: flex; align-items: center; justify-content: center; }
  html.web-shell .mw3-act.gold .ic { background: var(--mws-gold); border-color: var(--mws-gold); color: #1a1206; }
  html.web-shell .mw3-act:active .ic { transform: scale(.94); }
  html.web-shell .mw3-act[disabled] { opacity: .4; }

  /* receiving row */
  html.web-shell .mw3-rxrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mws-card); border: 1px solid var(--mws-line-2); }
  html.web-shell .mw3-rxrow.on { border-color: rgba(32, 199, 117, .4); }
  html.web-shell .mw3-rxrow .ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--mws-well); color: var(--mws-ink-2); display: flex; align-items: center; justify-content: center; }
  html.web-shell .mw3-rxrow.on .ic { background: rgba(32, 199, 117, .14); color: var(--mws-up); }
  html.web-shell .mw3-rxrow .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  html.web-shell .mw3-rxrow .tx b { font-size: 14px; }
  html.web-shell .mw3-rxrow .tx span { font-size: 12px; color: var(--mws-ink-3); }

  /* tokens */
  html.web-shell .mw3-tokens { display: flex; flex-direction: column; border-radius: 16px; background: var(--mws-card); border: 1px solid var(--mws-line-2); overflow: hidden; }
  html.web-shell .mw3-tok { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-bottom: 1px solid var(--mws-line-2); }
  html.web-shell .mw3-tok:last-child { border-bottom: 0; }
  html.web-shell .mw3-tok .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell .mw3-tok .tx b { font-size: 15px; }
  html.web-shell .mw3-tok .tx span { font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell .mw3-tok .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  html.web-shell .mw3-tok .rt b { font-family: var(--mws-mono); font-size: 15px; }
  html.web-shell .mw3-tok .rt span { font-family: var(--mws-mono); font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell .mw3-tok .rt span.dim { color: var(--mws-ink-3); }
  html.web-shell .mw3-sym { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--mws-well); color: var(--mws-ink-2); }
  html.web-shell .mw3-sym.eth { background: rgba(127, 179, 255, .16); color: #7fb3ff; }
  html.web-shell .mw3-sym.usdc, html.web-shell .mw3-sym.coti { background: rgba(61, 220, 140, .16); color: #3ddc8c; }
  html.web-shell .mw3-sym.avax { background: rgba(232, 65, 66, .16); color: #ff6b6b; }
  html.web-shell[data-theme="light"] .mw3-sym.eth { color: #1d4ed8; }
  html.web-shell[data-theme="light"] .mw3-sym.usdc, html.web-shell[data-theme="light"] .mw3-sym.coti { color: #047857; }

  /* settings group */
  html.web-shell .mw3-group { display: flex; flex-direction: column; border-radius: 16px; background: var(--mws-card); border: 1px solid var(--mws-line-2); overflow: hidden; }
  html.web-shell .mw3-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--mws-line-2); background: transparent; color: var(--mws-ink); font-family: inherit; font-size: 14px; font-weight: 600; text-align: left; }
  html.web-shell .mw3-set:last-child { border-bottom: 0; }
  html.web-shell .mw3-set .v { color: var(--mws-ink-3); font-weight: 500; }
  html.web-shell .mw3-set.red { color: var(--mws-down); }
  html.web-shell .mw3-empty { gap: 10px; }
  html.web-shell .mw3-empty b { font-size: 15px; }
  html.web-shell .mw3-empty span { font-size: 13px; line-height: 17px; color: var(--mws-ink-2); }

  /* sheets: receive / send */
  html.web-shell .mw3-rxbody { display: flex; flex-direction: column; gap: 12px; }
  html.web-shell .mw3-seg { width: 100%; }
  html.web-shell .mw3-seg .s { flex: 1 1 0; text-align: center; }
  html.web-shell .mw3-qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--mws-bg); }
  html.web-shell .mw3-qr { width: 160px; height: 160px; border-radius: 16px; background: #fff; padding: 8px; box-sizing: border-box; }
  html.web-shell .mw3-qr.big { width: 180px; height: 180px; }
  html.web-shell .mw3-qr svg { width: 100%; height: 100%; display: block; }
  html.web-shell .mw3-qrbox .addr { font-family: var(--mws-mono); font-size: 12px; line-height: 1.5; text-align: center; word-break: break-all; color: var(--mws-ink-2); }
  html.web-shell .mw3-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  html.web-shell .mw3-net { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: rgba(127, 179, 255, .14); color: #7fb3ff; }
  html.web-shell .mw3-net.sm { font-size: 12px; padding: 3px 8px; flex: none; }
  html.web-shell[data-theme="light"] .mw3-net { color: #1d4ed8; }
  html.web-shell .mw3-listwrap { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell .mw3-listwrap[hidden] { display: none; }
  html.web-shell .mw3-search { min-height: 44px; border-radius: 12px; border: 1px solid var(--mws-line-strong); background: var(--mws-bg); color: var(--mws-ink); padding: 0 12px; font-family: inherit; font-size: 15px; }
  html.web-shell .mw3-people { display: flex; flex-direction: column; border-radius: 16px; background: var(--mws-bg); overflow: hidden; }
  html.web-shell .mw3-person { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--mws-line-2); background: transparent; color: var(--mws-ink); font-family: inherit; text-align: left; }
  html.web-shell .mw3-person:last-child { border-bottom: 0; }
  html.web-shell .mw3-person .mwl-av { width: 40px; height: 40px; font-size: 12px; }
  html.web-shell .mw3-person .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  html.web-shell .mw3-person .tx b { font-size: 15px; }
  html.web-shell .mw3-person .tx span { font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell .mw3-person .chev { color: var(--mws-ink-3); font-size: 18px; }
  html.web-shell .mw3-result { display: flex; flex-direction: column; gap: 10px; }
  html.web-shell .mw3-result:empty { display: none; }
  html.web-shell .mw3-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mws-bg); }
  html.web-shell .mw3-who .mwl-av { width: 40px; height: 40px; font-size: 12px; }
  html.web-shell .mw3-who .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  html.web-shell .mw3-who .tx b { font-size: 15px; }
  html.web-shell .mw3-who .tx span { font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell .mw3-warn { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(234, 57, 67, .1); border: 1px solid rgba(234, 57, 67, .3); font-size: 13px; line-height: 17px; color: var(--mws-down); }
  html.web-shell .mw3-warn b { font-weight: 800; }
  html.web-shell .mw3-link { background: none; border: 0; padding: 0; min-height: 40px; color: var(--mws-gold); font-family: inherit; font-size: 14px; font-weight: 700; }
  html.web-shell .mw3-link.c { align-self: center; }

  /* receive: network choice + gas row */
  html.web-shell .mw3-netopts { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell .mw3-netopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--mws-line-2); background: var(--mws-bg); color: var(--mws-ink); font-family: inherit; text-align: left; }
  html.web-shell .mw3-netopt .dot { flex: none; width: 20px; height: 20px; border-radius: 8px; border: 2px solid var(--mws-line-strong); }
  html.web-shell .mw3-netopt.on.base { border-color: var(--mws-gold); }
  html.web-shell .mw3-netopt.on.base .dot { border-color: var(--mws-gold); background: var(--mws-gold); }
  html.web-shell .mw3-netopt.on.priv { border-color: var(--mws-up); }
  html.web-shell .mw3-netopt.on.priv .dot { border-color: var(--mws-up); background: var(--mws-up); }
  html.web-shell .mw3-netopt .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell .mw3-netopt .tx b { font-size: 14px; }
  html.web-shell .mw3-netopt .tx span { font-size: 12px; color: var(--mws-ink-3); line-height: 1.35; }
  html.web-shell .mw3-person.hist { text-decoration: none; }
  html.web-shell .mw3-net.ok { background: rgba(32, 199, 117, .14); color: var(--mws-up); }
  html.web-shell .mw3-net.priv { background: rgba(61, 220, 140, .14); color: #3ddc8c; }
  html.web-shell[data-theme="light"] .mw3-net.priv { color: #047857; }
  html.web-shell .mw3-gasrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mws-bg); border: 1px solid var(--mws-line-2); }
  html.web-shell .mw3-gasrow.ok { border-color: rgba(32, 199, 117, .4); }
  html.web-shell .mw3-gasrow.need { border-color: rgba(240, 185, 11, .45); }
  html.web-shell .mw3-gasrow .ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--mws-well); color: var(--mws-ink-2); display: flex; align-items: center; justify-content: center; }
  html.web-shell .mw3-gasrow.ok .ic { background: rgba(32, 199, 117, .14); color: var(--mws-up); }
  html.web-shell .mw3-gasrow.need .ic { background: rgba(240, 185, 11, .14); color: var(--mws-gold); }
  html.web-shell .mw3-gasrow .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  html.web-shell .mw3-gasrow .tx b { font-size: 14px; }
  html.web-shell .mw3-gasrow .tx span { font-size: 12px; color: var(--mws-ink-3); line-height: 1.35; }
  html.web-shell .mw3-gasrow .ok { font-size: 12px; font-weight: 800; color: var(--mws-up); flex: none; }
  html.web-shell .mw3-gasbtn { flex: none; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--mws-gold); color: #1a1206; font-family: inherit; font-size: 13px; font-weight: 800; }

  /* gas pass sheet */
  html.web-shell .mw3-gashd { display: flex; align-items: center; gap: 14px; }
  html.web-shell .mw3-gashd .ic { flex: none; width: 48px; height: 48px; border-radius: 24px; background: rgba(240, 185, 11, .14); color: var(--mws-gold); display: flex; align-items: center; justify-content: center; }
  html.web-shell .mw3-gashd.ok .ic { background: rgba(32, 199, 117, .14); color: var(--mws-up); }
  html.web-shell .mw3-gashd .tx { display: flex; flex-direction: column; gap: 2px; }
  html.web-shell .mw3-gashd .tx b { font-size: 20px; letter-spacing: -0.3px; }
  html.web-shell .mw3-gashd .tx span { font-size: 13px; color: var(--mws-ink-3); }
  html.web-shell .mw3-para { font-size: 13px; line-height: 1.5; color: var(--mws-ink-2); }
  html.web-shell .mw3-para b { color: var(--mws-ink); }
  html.web-shell .mw3-fact b.up { color: var(--mws-up); }
  html.web-shell .mw3-fact.link { text-decoration: none; color: inherit; }
  html.web-shell .mw3-fact.link b { color: #7fb3ff; }
  html.web-shell .mw3-info { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(32, 199, 117, .08); border: 1px solid rgba(32, 199, 117, .3); font-size: 13px; line-height: 1.45; color: var(--mws-ink-2); }
  html.web-shell .mw3-info b { color: var(--mws-up); font-weight: 800; }
  html.web-shell .mws-btn.big { min-height: 52px; font-size: 16px; }
  html.web-shell .mw3-portal { display: flex; align-items: center; justify-content: center; text-decoration: none; }

  /* unshield helper on the main screen */
  html.web-shell .mw3-unshield { gap: 10px; border-color: rgba(240, 185, 11, .35); }
  html.web-shell .mw3-unshield.ok { border-color: var(--mws-line-2); }
  html.web-shell .mw3-unshield .mw3-head .ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: rgba(61, 220, 140, .14); color: #3ddc8c; display: flex; align-items: center; justify-content: center; }

  /* trust & transparency */
  html.web-shell .mw3-trustrow { border-color: var(--mws-line-2); }
  html.web-shell .mw3-trustrow .ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: rgba(61, 220, 140, .14); color: #3ddc8c; display: flex; align-items: center; justify-content: center; }
  html.web-shell .mw3-trust { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--mws-bg); margin-top: 10px; }
  html.web-shell .mw3-trust > b { font-size: 14px; }
  html.web-shell .mw3-trust .ln { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--mws-ink-2); }
  html.web-shell .mw3-trust .tick { color: var(--mws-up); font-weight: 800; flex: none; }
  html.web-shell .mw3-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell .mw3-links .num { font-family: var(--mws-mono); font-size: 12px; }
  html.web-shell .mw3-xlink { color: var(--mws-gold); font-weight: 700; text-decoration: none; font-size: 12px; }

  /* private send steps */
  html.web-shell .mw3-steps { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell .mw3-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
  html.web-shell .mw3-step .n { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--mws-gold); color: #1a1206; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
}
