/*@pf start style id=rh-acct-header-css */

/* Home header: swipeable portfolio cards that collapse into a pinned text tab row on scroll.
   Phone layout only; wider screens keep the original title picker. */
#rhAcct, #rhAcctTabs, .rha-gold { display: none; }

@media (max-width: 700px) {
  html body #panel-portfolio.rha-has #donutCard .rh-title { display: none !important; }
  html body #panel-portfolio.rha-has #donutCard { position: relative; }

  #rhAcct { display: block; margin: 2px 0 18px; }
  #rhAcct .rha-row {
    display: flex; gap: 12px; box-sizing: border-box;
    margin-left: var(--rha-ml, 0px); width: var(--rha-vw, 100%);
    padding: 0 20px 0 var(--rha-pl, 0px); scroll-padding-left: var(--rha-pl, 0px);
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #rhAcct .rha-row::-webkit-scrollbar, #rhAcctTabs .rha-tabs-in::-webkit-scrollbar { display: none; }

  .rha-card {
    flex: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    width: 170px; height: 112px; padding: 14px 16px; box-sizing: border-box; text-align: left;
    border-radius: 20px; border: 1.5px solid var(--line, rgba(128,128,128,.3)); background: transparent;
    color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent; transition: background .2s ease, border-color .2s ease, transform .15s ease;
  }
  .rha-card:active { transform: scale(.97); }
  .rha-card.on { background: var(--pill, rgba(128,128,128,.14)); border-color: var(--line2, var(--line, rgba(128,128,128,.4))); }
  @supports (background: color-mix(in srgb, red 10%, transparent)) {
    .rha-card { border-color: color-mix(in srgb, var(--text) 18%, transparent); }
    .rha-card.on { background: color-mix(in srgb, var(--text) 10%, var(--bg)); border-color: color-mix(in srgb, var(--text) 26%, transparent); }
  }
  .rha-t, .rha-v, .rha-c { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rha-t { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--muted, #8b8d90); transition: color .2s ease; }
  .rha-card.on .rha-t { color: var(--text); }
  .rha-v { margin-top: 9px; font-size: 19px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .rha-c { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .rha-c svg { flex: none; width: 12px; height: 10px; fill: currentColor; }
  .rha-c.neg svg { transform: rotate(180deg); }
  .rha-c.pos { color: var(--green, #00c805); }
  .rha-c.neg { color: var(--red, #ff5000); }

  .rha-gold {
    display: block; position: absolute; right: 0; top: 11px; padding: 0 16px; height: 28px; line-height: 28px; border-radius: 999px;
    background: #f2c464; color: #1a1306; font-size: 15px; font-weight: 600; letter-spacing: -.01em; pointer-events: none;
  }

  /* pinned tab row: fades in once the cards have scrolled away */
  #rhAcctTabs {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    padding-top: env(safe-area-inset-top, 0px); background: var(--bg);
    visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  #rhAcctTabs.on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
  #rhAcctTabs::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; background: linear-gradient(to bottom, var(--bg), transparent); }
  .rha-tabs-in { display: flex; align-items: center; gap: 26px; height: 48px; padding-left: var(--rha-pl, 20px); padding-right: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rha-tab { flex: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--muted, #8b8d90); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease; }
  .rha-tab.on { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  .rha-card, .rha-t, .rha-tab, #rhAcctTabs, #rhAcctTabs.on { transition: none !important; }
}

/*@pf end */
