/* Phone Markets polish (2026-11-07, user: cards "as professionally done as possible"; same pass as Home's
   css/aiq-phone-home.css and My stocks' css/aiq-phone-mspolish.css). Loaded last by markets/index.html (?look=before
   skips it). Scoped to Markets' card lists (.mpc). Same anatomy: one card style (white, 20px, a faint edge); rows 64px
   with a 40px round visual (the logo 34px inside a hairline ring, so wordmarks like S&P / Dow Jones aren't cut by the
   circle), name 16/600 over a muted line, value 16/600 over its change; quiet group labels. Weights on <b> carry
   !important: aiq-table-attio.css sets every main <b> to 500 !important. The open (charcoal) card is left alone.
   Phones only (tests/test_phone_layout.py). */
@media (max-width: 767px) {
  /* ── cards ── */
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-list { border-radius: 20px; background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 0 0 1px rgba(16, 24, 40, .025); }

  /* ── rows ── */
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) { min-height: 64px; padding: 10px 14px 10px 12px; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-hd { gap: 14px; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-lw { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08); display: grid; place-items: center; overflow: hidden; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-lw > img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-nm { gap: 2px; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-nm b { font-size: 16px; font-weight: 600 !important; letter-spacing: -.01em; color: #101112; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-nm small { font-size: 13px; font-weight: 400; color: #80868F; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-pr { gap: 2px; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-pr b { font-size: 16px; font-weight: 600 !important; letter-spacing: -.01em; color: #101112; font-variant-numeric: tabular-nums; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .pc-r:not(.is-open) .pc-tg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

  /* ── group labels ("United States", "Energy") and Show all ── */
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .mpc-g { padding-top: 14px; padding-bottom: 2px; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .mpc-g > span { font-size: 13px; font-weight: 600; color: #80868F; }
  html.aiq-phone:not(#_):not(#_):not(#_) .mpc .mpc-all { font-size: 14.5px; font-weight: 600; }
}
