/* DRAFT (2026-11-08): the draft bar's Investors and Congress tab screens (phone/tab_investors.html, tab_congress.html).
   User: "less text, more color, and images and cards so it feels like there is nice variety on each page". White page,
   one colour hero card per page, photo / portrait cards in a sideways row, tinted logo tiles, a feed with a face + stock
   badge, bars. Brand blue + the house green/red; party colours on Congress. Phones only: every selector under
   html.aiq-phone (tests/test_phone_layout.py). */
@media (max-width: 767px) {
  html.aiq-phone .tp { --ink: #101112; --mut: #80868F; --acc: #455DDC; --line: #ECEDF1; --soft: #F3F5F8; padding: 0 0 28px; color: var(--ink); }
  html.aiq-phone[data-theme]:has(.tp:not(.ms2)):not(#_):not(#_):not(#_):not(#_), html.aiq-phone[data-theme]:has(.tp:not(.ms2)):not(#_):not(#_):not(#_):not(#_) body,
  html.aiq-phone[data-theme]:has(.tp:not(.ms2)):not(#_):not(#_):not(#_):not(#_) main, html.aiq-phone[data-theme]:has(.tp:not(.ms2)):not(#_):not(#_):not(#_):not(#_) #ph-cbar,
  html.aiq-phone[data-theme]:has(.tp:not(.ms2)):not(#_):not(#_):not(#_):not(#_) #ph-th, html.aiq-phone .tp:not(#_):not(#_):not(#_):not(#_) { background: #FFFFFF !important; }
  html.aiq-phone .tp i { font-family: "Phosphor-Bold" !important; }
  html.aiq-phone .tp .up { color: #0d8a66; } html.aiq-phone .tp .dn { color: #c8203f; }
  html.aiq-phone .tp-empty { padding: 40px 8px; font-size: 15px; color: var(--mut); }
  html.aiq-phone .tp-empty a { color: var(--acc); font-weight: 600; }

  /* the colour hero */
  html.aiq-phone .tp-hero { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 26px; color: #FFFFFF; }
  html.aiq-phone .tp-hero.cg { background: linear-gradient(135deg, #2F3E9E 0%, #455DDC 55%, #7B5BE8 100%); }
  html.aiq-phone .tp-hero.si { background: linear-gradient(135deg, #0F7A62 0%, #1FA889 50%, #43D1A7 100%); }
  html.aiq-phone .tp-hero small { font-size: 13.5px; font-weight: 600; opacity: .85; }
  html.aiq-phone .tp-hero > b { font-size: 38px; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-hero em { font-style: normal; font-size: 13px; opacity: .8; margin-top: 6px; }
  html.aiq-phone .tp-split { display: flex; gap: 3px; height: 12px; margin-top: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.2); }
  html.aiq-phone .tp-split i { min-width: 4px; }
  html.aiq-phone .tp :is(.tp-split, .tp-split-l) i.d { background: #8FB4FF; }
  html.aiq-phone .tp :is(.tp-split, .tp-split-l) i.r { background: #FF8FA8; }
  html.aiq-phone .tp-split-l { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
  html.aiq-phone .tp-split-l span { display: inline-flex; align-items: center; gap: 6px; }
  html.aiq-phone .tp-split-l i { width: 8px; height: 8px; border-radius: 50%; }
  html.aiq-phone .tp-hero-buys { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
  html.aiq-phone .tp-hero-buys em { margin: 0; font-weight: 600; }
  html.aiq-phone .tp-hero-logos { display: flex; }
  html.aiq-phone .tp-hero-logos .tp-lg { width: 40px; height: 40px; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
  html.aiq-phone .tp-hero-logos .tp-lg + .tp-lg { margin-left: -8px; }

  /* headings */
  html.aiq-phone .tp-h { display: flex; align-items: center; margin: 30px 0 12px; }
  html.aiq-phone .tp-h h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
  html.aiq-phone .tp-h > a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--acc); text-decoration: none; }

  /* logos + faces */
  html.aiq-phone .tp-lg { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(16,24,40,.08); }
  html.aiq-phone .tp-lg img { width: 70%; height: 70%; object-fit: contain; }
  html.aiq-phone .tp-lt { width: 100%; height: 100%; display: grid; place-items: center; background: #2F374C; color: #FFFFFF; font-weight: 700; }
  html.aiq-phone .tp-face { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: #EEF1FD; color: var(--acc); font-weight: 750; font-size: 15px; }
  html.aiq-phone .tp-face img { width: 100%; height: 100%; object-fit: cover; }
  html.aiq-phone .tp-face.xl { width: 84px; height: 84px; font-size: 26px; }
  html.aiq-phone .tp-face.sm { width: 34px; height: 34px; font-size: 12px; }
  html.aiq-phone .tp-face.sq { width: 100%; height: 100%; border-radius: 18px; font-size: 34px; background: transparent; }
  html.aiq-phone .tp-face.sq img { object-position: center 20%; }

  /* sideways rows */
  html.aiq-phone .tp-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
  html.aiq-phone .tp-row::-webkit-scrollbar { display: none; }
  html.aiq-phone .tp-row > * { flex: none; scroll-snap-align: start; }

  /* Congress: member cards tinted by party */
  html.aiq-phone .tp-person { width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px 16px;
    border-radius: 24px; background: var(--soft); color: inherit; text-decoration: none; }
  html.aiq-phone .tp-person.d { background: #E8EEFC; } html.aiq-phone .tp-person.r { background: #FBEAEC; }
  html.aiq-phone .tp-person.d .tp-face { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #4F7BEF; }
  html.aiq-phone .tp-person.r .tp-face { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #E5465F; }
  html.aiq-phone .tp-person .tp-face { margin-bottom: 8px; }
  html.aiq-phone .tp-person b { font-size: 15.5px; font-weight: 650; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.aiq-phone .tp-chip { height: 24px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255,255,255,.85);
    font-size: 12px; font-weight: 700; color: var(--mut); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-person small { font-size: 12.5px; font-weight: 600; }

  /* Investors: portrait cards */
  html.aiq-phone .tp-inv { width: 170px; display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 14px; border-radius: 24px; background: var(--soft);
    color: inherit; text-decoration: none; }
  html.aiq-phone .tp-inv-pic { height: 150px; border-radius: 18px; overflow: hidden; margin-bottom: 10px; background: var(--t-bg); }
  html.aiq-phone .tp-inv b { padding: 0 6px; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-inv small { padding: 0 6px; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-inv-f { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0; }
  html.aiq-phone .tp-inv-f em { font-style: normal; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-logos { display: flex; }
  html.aiq-phone .tp-logos .tp-lg { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--soft); }
  html.aiq-phone .tp-logos .tp-lg + .tp-lg { margin-left: -7px; }

  /* tinted tiles (colour per tile, in order) */
  html.aiq-phone .tp .c0 { --t-bg: #E6ECFD; --t-fg: #3049B8; }
  html.aiq-phone .tp .c1 { --t-bg: #E2F5EE; --t-fg: #0F7A62; }
  html.aiq-phone .tp .c2 { --t-bg: #F0E8FD; --t-fg: #6C3FD1; }
  html.aiq-phone .tp .c3 { --t-bg: #FFF0E3; --t-fg: #B8620E; }
  html.aiq-phone .tp .c4 { --t-bg: #FCE8EF; --t-fg: #B42357; }
  html.aiq-phone .tp .c5 { --t-bg: #E1F2F7; --t-fg: #1C6E8A; }
  html.aiq-phone .tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  html.aiq-phone .tp-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 22px; background: var(--t-bg); color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-tile .tp-lg { margin-bottom: 10px; }
  html.aiq-phone .tp-tile b { font-size: 18px; font-weight: 700; color: var(--t-fg); }
  html.aiq-phone .tp-tile small { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-tile-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
  html.aiq-phone .tp-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.8);
    font-size: 12px; font-weight: 700; color: var(--t-fg); }
  html.aiq-phone .tp-pill i { font-size: 13px; }
  html.aiq-phone .tp-net { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

  /* feeds: a face with the stock's logo as a badge */
  html.aiq-phone .tp-card { border: 1px solid var(--line); border-radius: 22px; padding: 2px 16px; }
  html.aiq-phone :is(.tp-feed, .tp-bar-r) { display: flex; align-items: center; gap: 12px; min-height: 64px; color: inherit; text-decoration: none; }
  html.aiq-phone :is(.tp-feed, .tp-bar-r) + :is(.tp-feed, .tp-bar-r) { border-top: 1px solid var(--line); }
  html.aiq-phone .tp-pair { position: relative; flex: none; width: 50px; height: 46px; }
  html.aiq-phone .tp-pair .tp-face { width: 42px; height: 42px; }
  html.aiq-phone .tp-pair .tp-lg.badge { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; box-shadow: 0 0 0 2px #FFFFFF, inset 0 0 0 1px rgba(16,24,40,.08); }
  html.aiq-phone .tp-k { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  html.aiq-phone .tp-k b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-k small { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-v { flex: none; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-bar { display: block; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
  html.aiq-phone .tp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #43D1A7, #1FA889); }

  /* the full list */
  html.aiq-phone .tp-more { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 22px; background: var(--soft);
    color: inherit; text-decoration: none; }
  html.aiq-phone .tp-more-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #E6ECFD; color: var(--acc); font-size: 20px; }
  html.aiq-phone .tp-more > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.aiq-phone .tp-more b { font-size: 16px; font-weight: 650; }
  html.aiq-phone .tp-more small { font-size: 13px; color: var(--mut); }
  html.aiq-phone .tp-more > i { font-size: 18px; color: var(--acc); }
  /* My stocks' extra cards (phone/_ms_more.html) */
  html.aiq-phone .ms2[hidden] { display: none !important; }
  html.aiq-phone .ms2:not(#_):not(#_):not(#_):not(#_) { margin-top: 0; padding: 4px 16px 28px; background: #FFFFFF !important; }   /* the list card's 16px inset */
  html.aiq-phone .ms2 .tp-row { margin: 0 -16px; }
  html.aiq-phone .ms2 .tp-inv { background: #FFFFFF; }
  html.aiq-phone .tp-hero.ms { background: linear-gradient(135deg, #2F3E9E 0%, #455DDC 60%, #43A3D1 100%); text-decoration: none; border: 0; text-align: left; width: 100%; font: inherit; }
  html.aiq-phone .ms2 .tp-split i.u { background: #7FE3C4; } html.aiq-phone .ms2 .tp-split i.dn { background: #FF8FA8; }
  html.aiq-phone .ms2 .ms2-avg.up, html.aiq-phone .ms2 .ms2-avg.dn, html.aiq-phone .ms2 .ms2-avg.flat { color: #FFFFFF; }
  html.aiq-phone .ms2-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  html.aiq-phone .ms2-chip { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18);
    font-size: 13px; font-variant-numeric: tabular-nums; }
  html.aiq-phone .ms2-start b { font-size: 26px !important; line-height: 1.15 !important; }
  html.aiq-phone .ms2-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 40px; padding: 0 16px; border-radius: 999px;
    background: #FFFFFF; color: #2F3E9E; font-size: 15px; font-weight: 650; }
  html.aiq-phone .tp-list { width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 22px; background: var(--t-bg); color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-list-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  html.aiq-phone .tp-sq { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.8); color: var(--t-fg); font-size: 21px; }
  html.aiq-phone .tp-list-avg { height: 26px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255,255,255,.8);
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-list b { font-size: 17px; font-weight: 700; color: var(--t-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-list small { font-size: 12.5px; color: var(--mut); }
  html.aiq-phone .tp-list .tp-logos { margin-top: 12px; }
  html.aiq-phone .tp-list .tp-logos .tp-lg { box-shadow: 0 0 0 2px var(--t-bg); }
  html.aiq-phone .tp-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  html.aiq-phone .tp-fc { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-fc .tp-face { width: 62px; height: 62px; }
  html.aiq-phone .tp-fc.d .tp-face { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #4F7BEF; }
  html.aiq-phone .tp-fc.r .tp-face { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #E5465F; }
  html.aiq-phone .tp-fc small { font-size: 12.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Investors: the newest buys as portrait bubbles */
  html.aiq-phone .tp-h.first { margin-top: 6px; }
  html.aiq-phone .tp-q { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; background: #E2F5EE;
    color: #0F7A62; font-size: 12.5px; font-weight: 700; }
  html.aiq-phone .tp-bubbles { gap: 6px; }
  html.aiq-phone .tp-bub { width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-bub-ring { position: relative; width: 78px; height: 78px; margin-bottom: 8px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 200deg, var(--t-fg), var(--t-bg), var(--t-fg)); }
  html.aiq-phone .tp-bub-ring .tp-face { width: 100%; height: 100%; box-shadow: 0 0 0 3px #FFFFFF; font-size: 20px; }
  html.aiq-phone .tp-bub-ring .tp-lg.badge { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; box-shadow: 0 0 0 3px #FFFFFF, inset 0 0 0 1px rgba(16,24,40,.08); }
  html.aiq-phone .tp-bub b { font-size: 14px; font-weight: 650; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-bub small { font-size: 12px; font-weight: 600; color: var(--mut); }
  html.aiq-phone .tp-bub em { font-style: normal; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
  /* round 2: one white page, your lists in the same card as everything under them (user, 2026-11-08: "the my
     watchlists card needs to feel more integrated"); html.ms2-on is set by phone/_ms_more.html */
  html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_), html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_) body, html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_) main,
  html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_) #ph-th, html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_) #ph-cbar, html.aiq-phone.ms2-on[data-theme]:not(#_):not(#_):not(#_):not(#_):not(#_) .msa-at { background: #FFFFFF !important; }
  html.aiq-phone.ms2-on .ms2-mine:not(#_):not(#_):not(#_):not(#_):not(#_) { margin: 6px 16px 12px; padding: 0; background: transparent !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-list:not(#_):not(#_):not(#_):not(#_):not(#_) { border: 1px solid #ECEDF1 !important; border-radius: 22px !important; box-shadow: none !important; background: #FFFFFF !important; }
  html.aiq-phone .ms2-pg .tp-list { width: auto; }
  html.aiq-phone .ms2-pg .tp-list b { font-size: 16px; }
  html.aiq-phone .ms2-pg .tp-cls { width: auto; gap: 10px; padding: 14px; }
  html.aiq-phone .tp-ret { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; background: #F3F5F8;
    font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-ret.up { background: #E3F5EE; } html.aiq-phone .tp-ret.dn { background: #FDE8EC; }
  html.aiq-phone .ms2-pg .tp-cls b { font-size: 15.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.5em; line-height: 1.25; }
  html.aiq-phone .tp-cls { width: 230px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; border: 1px solid #ECEDF1;
    background: #FFFFFF; color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-cls b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-alloc { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
  html.aiq-phone .tp-alloc i { min-width: 3px; }
  html.aiq-phone .tp-alloc-l { display: flex; flex-wrap: wrap; gap: 6px 12px; }
  html.aiq-phone .tp-alloc-l span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; }
  html.aiq-phone .tp-alloc-l span i { width: 8px; height: 8px; border-radius: 50%; }
  html.aiq-phone .tp-alloc-l em { font-style: normal; font-weight: 500; color: var(--mut); font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-alloc-l .more { color: var(--mut); }
  /* Top portfolios round 3: one featured leader + compact ranked rows */
  html.aiq-phone .tp-top1 { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 24px; color: #FFFFFF; text-decoration: none;
    background: linear-gradient(135deg, #2F3E9E 0%, #455DDC 60%, #6E8BF0 100%); }
  html.aiq-phone .tp-top1-h { display: flex; align-items: center; gap: 10px; }
  html.aiq-phone .tp-top1-h b { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-top1-h em { font-style: normal; font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-top1 .tp-rank { background: rgba(255,255,255,.2); color: #FFFFFF; }
  html.aiq-phone .tp-spark { display: block; width: 100%; height: 70px; overflow: visible; }
  html.aiq-phone .tp-spark path { fill: none; stroke: #FFFFFF; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  html.aiq-phone .tp-top1 .tp-alloc { height: 8px; background: rgba(255,255,255,.12); }
  html.aiq-phone .tp-top1-l { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 650; }
  html.aiq-phone .tp-top1-l em { font-style: normal; font-weight: 500; opacity: .75; }
  html.aiq-phone .tp-ranks { margin-top: 10px; }
  html.aiq-phone .tp-rk { display: flex; align-items: center; gap: 12px; min-height: 58px; color: inherit; text-decoration: none; }
  html.aiq-phone .tp-rk + .tp-rk { border-top: 1px solid #ECEDF1; }
  html.aiq-phone .tp-rank { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EEF1FD; color: #455DDC;
    font-size: 13px; font-weight: 750; }
  html.aiq-phone .tp-rk .tp-k b { font-size: 15px; }
  html.aiq-phone .tp-alloc.sm { height: 5px; margin-top: 4px; max-width: 160px; }
  /* Top portfolios round 4: white theme cards with overlapping holding logos */
  html.aiq-phone .tp-pf { width: 196px; min-height: 176px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px;
    border: 1px solid #ECEDF1; background: #FFFFFF; color: var(--ink); text-decoration: none; }
  html.aiq-phone .tp-pf b { flex: 1; font-size: 18px; font-weight: 650; line-height: 1.22; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.aiq-phone .tp-pf b { flex: none; }
  html.aiq-phone .tp-pf-real { flex: 1; margin-top: -6px; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .tp-pf-lg { display: flex; margin-top: auto; }
  html.aiq-phone .tp-pf-lg .tp-lg { width: 46px; height: 46px; box-shadow: 0 0 0 3px #FFFFFF, inset 0 0 0 1px rgba(16,24,40,.08); }
  html.aiq-phone .tp-pf-lg .tp-lg + .tp-lg { margin-left: -12px; }
  html.aiq-phone .tp-tk { width: 100%; height: 100%; display: grid; place-items: center; background: #15171C; color: #FFFFFF; font-size: 10.5px; font-weight: 700;
    letter-spacing: -.01em; }
  html.aiq-phone .tp-more-n { background: #F3F5F8; color: #80868F; font-size: 12.5px; font-weight: 700; }
  /* pastel bands behind one section per page (user, 2026-11-08: "use more variety of background colors across the
     website"), edge to edge */
  html.aiq-phone .tp-band { margin: 26px -16px 0; padding: 2px 16px 22px; }
  html.aiq-phone .tp-band.a { background: linear-gradient(115deg, #FBEAF6 0%, #EEF0FC 50%, #E6F7F8 100%); }
  html.aiq-phone .tp-band.b { background: linear-gradient(115deg, #E8F6EF 0%, #EAF1FD 55%, #F3ECFC 100%); }
  html.aiq-phone .tp-band > .tp-h:first-child { margin-top: 20px; }
  /* a band that opens the page sits right under the header: no white strip above it (user, 2026-11-08) */
  html.aiq-phone .tp > .tp-band:first-child { margin-top: -10px; }
  html.aiq-phone .tp > .tp-band:first-child > .tp-h:first-child { margin-top: 14px; }
  html.aiq-phone .tp-band .tp-person, html.aiq-phone .tp-band .tp-inv { box-shadow: 0 1px 2px rgba(16,24,40,.05); }
  html.aiq-phone .tp-band .tp-inv { background: #FFFFFF; }
  html.aiq-phone .ms2 .tp-band { margin: 18px -16px 0; }
}
@media (max-width: 767px) {
  /* "Build your own" (the phone builder) above Top portfolios */
  html.aiq-phone .tp-build { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; padding: 16px; border-radius: 22px; color: #FFFFFF; text-decoration: none;
    background: linear-gradient(135deg, #2F3E9E 0%, #455DDC 60%, #6E8BF0 100%); }
  html.aiq-phone .tp-build-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 21px; }
  html.aiq-phone .tp-build > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  html.aiq-phone .tp-build b { font-size: 16px; font-weight: 700; } html.aiq-phone .tp-build small { font-size: 13px; opacity: .85; }
  /* Investors tab, Dataroma-style stats (2026-11-08) */
  html.aiq-phone .tp-most .tp-bar-r { min-height: 58px; }
  html.aiq-phone .tp-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t-bg); color: var(--t-fg);
    font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-most .tp-pill { flex: none; background: var(--t-bg); }
  html.aiq-phone .tp-bets .tp-tile { width: 156px; }
  html.aiq-phone .tp-bet { margin-top: 10px; font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1; color: var(--t-fg); font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-bar i.c0 { background: #455DDC; } html.aiq-phone .tp-bar i.c1 { background: #43D1A7; } html.aiq-phone .tp-bar i.c2 { background: #9646EF; }
  html.aiq-phone .tp-bar i.c3 { background: #FF862E; } html.aiq-phone .tp-bar i.c4 { background: #F73463; } html.aiq-phone .tp-bar i.c5 { background: #2BA3C4; }
  /* My stocks, round 3 (user, 2026-11-08): no grey band above the white page; "Your lists" as colour tiles like the rest of the
     page (two across, logos on top, today's move as a pill); popular stocks + funds rows */
  html.aiq-phone.ms2-on:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .app-shell > .w-full { background: #FFFFFF !important; }
  html.aiq-phone.ms2-on .msa-at .pcl:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)::after, html.aiq-phone.ms2-on .msa-at .pcl:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)::before, html.aiq-phone.ms2-on .msa-at .pc-list:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)::after, html.aiq-phone.ms2-on .msa-at .pc-list:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)::before { content: none !important; display: none !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-list:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) { border: 0 !important; padding: 0 !important; background: none !important; }
  html.aiq-phone.ms2-on .msa-at .pcl:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) { padding: 4px 16px 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; }
  html.aiq-phone.ms2-on:not(#_):not(#_) body, html.aiq-phone.ms2-on:not(#_):not(#_) main { background: #FFFFFF !important; }
  html.aiq-phone.ms2-on .msa-at .pcl :is(.pc-list):not(#_):not(#_):not(#_):not(#_) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
    padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:not(#_):not(#_):not(#_):not(#_) { margin: 0 !important; padding: 14px !important; border: 0 !important; border-radius: 22px !important;
    background: var(--t-bg, #E6ECFD) !important; box-shadow: none !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+1) { --t-bg: #E6ECFD; --t-fg: #3049B8; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+2) { --t-bg: #E2F5EE; --t-fg: #0F7A62; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+3) { --t-bg: #F0E8FD; --t-fg: #6C3FD1; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+4) { --t-bg: #FFF0E3; --t-fg: #B8620E; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+5) { --t-bg: #FCE8EF; --t-fg: #B42357; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r:nth-child(6n+6) { --t-bg: #E1F2F7; --t-fg: #1C6E8A; }
  html.aiq-phone.ms2-on .msa-at .pcl .pcl-r .pc-hd:not(#_):not(#_):not(#_):not(#_) { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 10px !important;
    padding: 0 !important; min-height: 0 !important; border: 0 !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-nm:not(#_):not(#_):not(#_):not(#_) { width: 100%; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-nm b:not(#_):not(#_):not(#_):not(#_) { font-size: 16px !important; font-weight: 700 !important; color: var(--t-fg) !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-pr:not(#_):not(#_):not(#_):not(#_) { margin: 0 !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-tg:not(#_):not(#_):not(#_):not(#_) { display: inline-flex; align-items: center; height: 24px; padding: 0 9px !important; border-radius: 999px !important;
    background: rgba(255,255,255,.85) !important; font-size: 12.5px !important; font-weight: 700 !important; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-add:not(#_):not(#_):not(#_):not(#_) { grid-column: auto; margin: 0 !important; width: auto !important; min-height: 132px; height: auto !important; border-radius: 22px !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  html.aiq-phone.ms2-on .msa-at .pcl .pc-list > :last-child:nth-child(odd):not(#_):not(#_):not(#_):not(#_) { grid-column: 1 / -1; min-height: 64px; flex-direction: row; }
  html.aiq-phone .tp-pop .tp-tile { width: 128px; }
  html.aiq-phone :is(.tp-pop, .tp-funds) .tp-pill:not(.up):not(.dn):not(.flat) { display: none; }
  /* Popular funds as Bloom's holdings list (user, 2026-11-08: "make it like the bloom one"): no box, hairline rows, a big
     round logo, bold ticker over the plain name, price then a tinted change pill */
  html.aiq-phone .tp-funds { border-top: 1px solid var(--line); }
  html.aiq-phone .tp-funds .tp-bar-r { min-height: 76px; gap: 14px; border-bottom: 1px solid var(--line); }
  html.aiq-phone .tp-funds .tp-bar-r + .tp-bar-r { border-top: 0; }
  html.aiq-phone .tp-funds .tp-lg { width: 46px; height: 46px; }
  html.aiq-phone .tp-funds .tp-k b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
  html.aiq-phone .tp-funds .tp-k small { font-size: 14px; }
  html.aiq-phone .tp-px { flex: none; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
  html.aiq-phone .tp-funds .tp-pill { flex: none; min-width: 74px; height: 32px; justify-content: center; font-size: 14px; background: var(--soft); }
  html.aiq-phone .tp-funds .tp-pill.up { color: #0d8a66; background: #E3F5EE; } html.aiq-phone .tp-funds .tp-pill.dn { color: #c8203f; background: #FDE8EC; }   /* no empty pill while (or if) the quote is missing */
  html.aiq-phone .tp-pop .tp-pill.up { color: #0d8a66; } html.aiq-phone .tp-pop .tp-pill.dn { color: #c8203f; }
  /* the full investor list (phone/investors_all.html, 2026-11-08): a section per style, each its own layout */
  html.aiq-phone .ia-n { min-width: 34px; background: var(--t-bg); color: var(--t-fg); }
  html.aiq-phone .ia-grid .tp-inv { width: auto; min-width: 0; background: var(--t-bg); }
  html.aiq-phone .ia-grid .tp-inv-f .tp-ret { height: 24px; font-size: 12.5px; background: rgba(255,255,255,.85); }
  html.aiq-phone .ia-row .ia-tall { width: 138px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 10px 14px; border-radius: 24px;
    background: var(--t-bg); color: var(--ink); text-decoration: none; text-align: center; }
  html.aiq-phone .ia-tall .tp-face { margin-bottom: 8px; box-shadow: 0 0 0 3px #FFFFFF; background: #FFFFFF; color: var(--t-fg); }
  html.aiq-phone .ia-tall b { max-width: 100%; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .ia-tall small { max-width: 100%; font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .ia-tall .tp-ret { align-self: center; margin-top: 8px; height: 24px; font-size: 12.5px; background: rgba(255,255,255,.85); }
  html.aiq-phone .tp-band .ia-list { background: #FFFFFF; border-color: transparent; }
  html.aiq-phone .ia-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.aiq-phone .ia-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 20px; background: #FFFFFF;
    color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
  html.aiq-phone .ia-chip .tp-face { width: 46px; height: 46px; background: var(--t-bg); color: var(--t-fg); font-size: 14px; }
  html.aiq-phone .ia-chip b { max-width: 100%; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.aiq-phone .ia .tp-face:not(:has(img)) { background: var(--t-bg, #E6ECFD); color: var(--t-fg, #3049B8); font-weight: 700; }
  html.aiq-phone .ia-more { margin-top: 10px; }
  html.aiq-phone .tp-band .ia-more { background: #FFFFFF; border-color: transparent; }
  html.aiq-phone .ia-more[hidden] { display: none; }
  html.aiq-phone .ia-all { display: block; width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--t-bg); color: var(--t-fg);
    font: 650 15px/1 Inter, system-ui, sans-serif; cursor: pointer; }
}
