/*@pf start style id=pic23-look */
/* Home screen restyle toward the Robinhood reference screenshots (account cards, badge, quick chips, nav glass).
   Visual only: no markup, script or behaviour changes, and no extra nav icons. Loaded last so it wins the cascade.
   Sizes were measured from the reference screenshots (iPhone 402pt wide) and every font size keeps the text-size scale. */

@media (max-width: 700px) {

  /* ---------- account cards (Growth Portfolio / Indian Portfolio / ...) ---------- */
  html #rhAcct { margin: 2px 0 2px; }
  html #rhAcct .rha-row { gap: 12px; padding-left: 10px; scroll-padding-left: 10px; }
  html #rhAcct .rha-card {
    width: auto; min-width: calc(126px * var(--pf-ts, 1)); height: 99px;
    padding: 11px 16px 0; justify-content: flex-start;
    border-radius: 14px; border-width: 1px;
  }
  html #rhAcct .rha-t { font-size: calc(16px * var(--pf-ts, 1)); line-height: 21px; }
  html #rhAcct .rha-v { margin-top: 11px; font-size: calc(18.5px * var(--pf-ts, 1)); line-height: 24px; font-weight: 400; }
  html #rhAcct .rha-c { margin-top: 5px; gap: 5px; font-size: calc(13px * var(--pf-ts, 1)); line-height: 18px; }
  html #rhAcct .rha-c svg { width: 9px; height: 8px; }
  :root[data-theme="dark"] #rhAcct .rha-card { border-color: #2a2d31; }
  :root[data-theme="dark"] #rhAcct .rha-card.on { background: #17191d; border-color: #33383d; }

  /* ---------- Gold badge: warm gradient pill with a small card icon ---------- */
  html #donutCard .rha-gold {
    display: inline-flex; align-items: center; gap: 8px; top: 17px; height: 33px; line-height: 33px; padding: 0 16px;
    background: linear-gradient(100deg, #ffb94f 0%, #ffd27b 55%, #ffd884 100%);
    font-size: calc(16px * var(--pf-ts, 1)); font-weight: 600;
  }
  html #donutCard .rha-gold::before {
    content: ""; flex: none; width: 13px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath fill-rule='evenodd' d='M2 0h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm1 3v5h3V3H3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath fill-rule='evenodd' d='M2 0h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm1 3v5h3V3H3z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* ---------- big balance: a touch larger, medium weight ---------- */
  html body #donutCard #centerVal .amt { font-size: calc(39px * var(--pf-ts, 1)) !important; }
  html body #donutCard #centerVal .amt, html body #donutCard #centerVal .amt * { font-weight: 500 !important; }

  /* ---------- quick chips (Top mover / Portfolio Digests): compact, and above the promo card ---------- */
  html body #panel-portfolio #phQuick { order: 1; gap: 11px; margin: 4px -20px 14px; max-width: none; }
  html body #panel-portfolio #pcSec { order: 2; }
  html body #panel-portfolio #phQuick .ph-q { width: 169px; padding: 11px 14px 9px; border-radius: 12px; }
  html body #panel-portfolio #phQuick .ph-q .l { margin-bottom: 8px; line-height: 18px; font-weight: 500; }
  html body #panel-portfolio #phQuick .ph-q .r { line-height: 20px; font-size: calc(15px * var(--pf-ts, 1)); font-weight: 700; }
  html body #panel-portfolio #phQuick .ph-q .r b, html body #panel-portfolio #phQuick .ph-q .r i { font-weight: 700; }
  :root[data-theme="dark"] #phQuick .ph-q { border-color: #282828; }
}

/* ---------- bottom nav: clear liquid glass (barely tinted, content shows through, dark selected lens) - nav only ---------- */
@media (max-width: 459px) {
  html body:not(#lgfa):not(#lgfb) #m1Tabs { left: 24px !important; right: 24px !important; }
}
:root[data-theme="dark"] body:not(#lgfa):not(#lgfb) #m1Tabs {
  --lgf-bar: linear-gradient(180deg, rgba(255,255,255,.105) 0%, rgba(255,255,255,.095) 100%);
  --lgf-fx: blur(5px) saturate(1.25);
  --lgf-rim: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.1);
  --lgf-pill: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.38));
  --lgf-pill-sh: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.1);
  --lgf-ic: #aeb2b9; --lgf-ic-on: #fff;
}

/*@pf end */
