/* The phone look for Home, My stocks, Markets (and Explore's deck). History: a Pinterest-app look (bold colour blocks,
   uppercase titles) was picked 2026-11-01, then the same day the user felt it was "not 'finance' enough" and sent
   Revolut / Wealthsimple shots: "we can go for this look". So: a light grey page (aiq-phone-mspin.css) with WHITE rounded
   cards, large title-case titles, lists grouped inside one white card (logo circle · name over a quiet line · price over
   a small ▲/▼ change), colour only on gains / losses and the one brand accent, soft pastel tints for the odd feature card.
   Each page opts in with its own class (Home .hm-pin, My stocks html.pin-ms, Markets html.pin-mk). Phones only. */
@media (max-width: 767px) {
  /* ── shared ── */
  html.aiq-phone .pin-t { margin: 2px 4px 14px; font: 700 34px/1.05 Inter, system-ui, sans-serif; letter-spacing: -.03em; text-transform: none; color: #101112; }
  html.aiq-phone .pin-t small { display: block; margin-top: 6px; font: 500 14px/1 Inter, system-ui, sans-serif; letter-spacing: 0; color: #80868F; }
  html.aiq-phone:has(.pin-page) #ph-th:not(#_):not(#_):not(#_):not(#_) { display: none !important; }
  html.aiq-phone .pin-page { padding-top: calc(10px + env(safe-area-inset-top)); }
  html.aiq-phone .pin-page .pin-t:is(.ph-h1-dup, .at-dup-title):not(#_):not(#_) { display: block !important; }
  /* a change: small coloured signed text, not a pill (Revolut's "▲ 3.04%"; the sign already says the direction) */
  html.aiq-phone .pc .pc-tg:not(#_):not(#_) { padding: 0; background: none; font-size: 13px; font-weight: 600; }
  html.aiq-phone .pc .pc-tg.up:not(#_):not(#_) { color: #0d8a66; } html.aiq-phone .pc .pc-tg.dn:not(#_):not(#_) { color: #c8203f; }
  /* logos: round, on a hairline ring so a white logo still has an edge on the white card */
  html.aiq-phone .pc .pc-lw:not(#_) { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,17,21,.07); }

  /* ── Home (.hm.hm-pin, phone/today.html) ── */
  html.aiq-phone .hm.hm-pin .hm-title { display: none !important; }
  /* the S&P hero: a white card, the big figure, the line in its own up/down colour */
  html.aiq-phone .hm.hm-pin .hx-a { margin: 0 0 16px; padding: 18px 18px 14px; border-radius: 22px; background: #FFFFFF; color: #101112; overflow: hidden; }
  html.aiq-phone .hm.hm-pin .hx-a .k { color: #80868F; margin: 0 0 4px; }
  html.aiq-phone .hm.hm-pin .hx-a .big { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
  html.aiq-phone .hm.hm-pin .hx-a canvas { width: calc(100% + 36px); margin: 10px -18px 6px; height: 160px; }
  /* time frames (user, 2026-11-01, a Wealthsimple chart): spread across the card, the chosen one in a soft grey pill */
  html.aiq-phone .hm.hm-pin .hx-rng { margin: 0; justify-content: space-between; }
  html.aiq-phone .hm.hm-pin .hx-rng button:not(#_) { padding: 0 14px; border: 0; border-radius: 999px; font: 600 14px/1 Inter, system-ui, sans-serif; color: #80868F; }
  html.aiq-phone .hm.hm-pin .hx-rng button.on:not(#_) { background: #F2F3F5; color: #101112; }
  /* Highlights: white cards, label + figure + a small coloured change */
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard:not(#_):not(#_) { min-height: 104px; border-radius: 20px; box-shadow: none; color: #101112; background: #FFFFFF; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .l:not(#_):not(#_) { color: #80868F; opacity: 1; font-weight: 500; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .l i:not(#_):not(#_) { display: none; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .v:not(#_):not(#_) { flex-direction: column; align-items: flex-start; gap: 4px; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .v b:not(#_):not(#_) { color: #101112; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .ph-rpill:not(#_):not(#_) { padding: 0; background: none; font-size: 13px; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .ph-rpill.pos:not(#_):not(#_) { color: #0d8a66; }
  html.aiq-phone .hm.hm-pin .ph-rcards > .ph-rcard .ph-rpill.neg:not(#_):not(#_) { color: #c8203f; }
  /* section headings: quiet title case */
  html.aiq-phone .hm.hm-pin .ph-rh:not(#_) { color: #101112; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
  /* stock lists: one white card, rows inside it, no separators */
  html.aiq-phone .hm.hm-pin .ph-rlist:has(> .hm-rr):not(#_):not(#_) { background: #FFFFFF; border-radius: 22px; padding: 6px 0; }
  html.aiq-phone .hm.hm-pin .hm-rr:not(#_):not(#_) { margin: 0; border-radius: 0; background: none; min-height: 64px; }
  html.aiq-phone .hm.hm-pin .hm-rr .lg:not(#_):not(#_) { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,17,21,.07); }
  html.aiq-phone .hm.hm-pin .hm-v > span.pos:not(#_), html.aiq-phone .hm.hm-pin .hm-v > span.neg:not(#_) { padding: 0; background: none; font-size: 13px; }

  /* ── My stocks (html.pin-ms, js/aiq-phone-mslists.js): the lists grouped in one white card ── */
  html.aiq-phone.pin-ms:has(.msa-at:not(.is-drill)) #ph-th:not(#_):not(#_):not(#_):not(#_) { display: none !important; }
  html.aiq-phone.pin-ms .msa-at.is-drill .pcl-pin-t:not(#_):not(#_):not(#_) { display: none !important; }   /* the page title belongs to the list of lists, not an opened list */
  html.aiq-phone.pin-ms .pcl-pin-t:not(#_):not(#_) { display: block !important; position: relative; margin: 0 16px 14px; padding-top: calc(36px + env(safe-area-inset-top)); }
  /* title + card on the 16px page edge like Congress / Screener / Settings (they sat at 14px / 12px; 2026-11-08 spacing pass) */
  html.aiq-phone .pc.pcl.pcl-deck:not(#_):not(#_) { padding-left: 16px; padding-right: 16px; }
  html.aiq-phone .pcl.pcl-deck .pc-list:not(#_) { display: flex; flex-direction: column; padding: 6px 0; margin-bottom: 12px; border-radius: 22px; background: #FFFFFF; }
  html.aiq-phone .pcl.pcl-deck .pcl-r:not(#_):not(#_) { margin: 0; padding: 12px 16px; border-radius: 0; background: none; color: #101112; box-shadow: none; }
  html.aiq-phone .pcl.pcl-deck .pcl-r .pc-nm b:not(#_) { font-size: 16px; font-weight: 600; }
  html.aiq-phone .pcl.pcl-deck .pcl-r .pc-lw.pcl-ic:not(#_) { width: 40px; height: 40px; border-radius: 50%; }
  /* inset inside the white card like the table pages' add card (aiq-phone-tcards.css): flush, its dashes ran along the card's own edge (2026-11-07) */
  html.aiq-phone .pcl.pcl-deck .pc-add:not(#_) { width: calc(100% - 20px); margin: 6px 10px 4px; border-radius: 16px; }

  /* ── Markets (html.pin-mk, markets/index.html): title-case title (the header keeps only its ≡); each group's cards in
     one white card; an open card stays charcoal ── */
  html.aiq-phone .mk-pin-t { display: none; }
  html.aiq-phone.pin-mk .mk-pin-t:not(#_) { display: block !important; margin: 0 18px 8px; }   /* inline display:none keeps it off desktop */
  html.aiq-phone.pin-mk #ph-th .ph-th-t:not(#_):not(#_):not(#_):not(#_) { visibility: hidden; }
  /* the header row holds only the ≡ now: it floats on the title's line, so no empty band above "Markets" (user, 2026-11-01:
     "There is no need for the whitespace above markets") */
  html.aiq-phone.pin-mk #ph-th:not(#_):not(#_):not(#_):not(#_) { position: absolute !important; top: 0; left: auto; right: 0; z-index: 5; min-height: 0;
    padding: calc(12px + env(safe-area-inset-top)) 10px 0 0 !important; background: none !important; border: 0 !important; }
  html.aiq-phone.pin-mk #ph-th > :not(#ph-navmenu):not(#_):not(#_):not(#_) { display: none !important; }
  html.aiq-phone.pin-mk .mk-pin-t:not(#_):not(#_) { padding-top: calc(14px + env(safe-area-inset-top)); }
  html.aiq-phone.pin-mk .mkad-s > header .mst:not(#_):not(#_):not(#_) { color: #101112 !important; font-size: 19px !important; font-weight: 700 !important; letter-spacing: -.02em; }
  html.aiq-phone.pin-mk .mpc .pc-list:not(#_) { padding: 6px 0; border-radius: 22px; background: #FFFFFF; }
  html.aiq-phone.pin-mk .mpc .pc-r:not(.is-open):not(#_):not(#_) { margin: 0; border-radius: 0; background: none; }
  html.aiq-phone.pin-mk .mpc .pc-r.is-open:not(#_):not(#_) { margin: 6px 8px; }
  html.aiq-phone.pin-mk .mpc .mpc-g:not(#_) { padding: 12px 16px 2px; color: #80868F; font-size: 13px; font-weight: 500; }
  html.aiq-phone.pin-mk .mpc .mpc-all:not(#_) { padding: 0 16px; }
}
