/*@pf start style id=rh-clean-layout-css */

html body #panel-holding .hp-about h2, html body #panel-holding .rhp-stats > h2, html body #panel-holding .fh-stock-section h2 { border-bottom: 0 !important; padding-bottom: 0 !important; }
html body #panel-holding .hp-about .hp-about-more { display: inline-block; margin-top: 12px; padding: 0 0 3px !important; border-bottom: 1px solid currentColor; color: var(--green-ink); font-weight: 700 !important; }
html body #panel-holding .hp-about .hp-about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 26px 18px !important; margin-top: 24px !important; }
html body #panel-holding .hp-about .hp-about-grid > div { display: block !important; grid-column: auto !important; padding: 0 !important; border: 0 !important; }
html body #panel-holding .rhp-stats .rhp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 26px 12px !important; margin-top: 24px !important; }
html body #panel-holding .rhp-stats .rhp-grid > div { display: block !important; min-height: 0 !important; min-width: 0; padding: 0 !important; border: 0 !important; }
html body #panel-holding .hp-about .hp-about-grid .k, html body #panel-holding .rhp-stats .rhp-grid > div span { display: block; color: var(--muted); margin: 0 0 4px !important; }
html body #panel-holding .hp-about .hp-about-grid .v, html body #panel-holding .rhp-stats .rhp-grid > div b { display: block; text-align: left !important; overflow-wrap: anywhere; }
html body #panel-holding .rhp-stats .rhp-book { margin: 28px 0 0 !important; padding: 0 0 22px !important; border-bottom: 1px solid var(--line2, var(--line)) !important; }
html body #panel-holding .rhp-stats .rhp-book .s b { font-size: 20px !important; font-weight: 700 !important; }
html body #panel-holding .rhp-stats .rhp-book .s small { display: block; font-size: 15px; color: var(--text); }
html body #panel-holding .rhp-stats .rhp-book .rhp-boxes { align-items: flex-end !important; }
html body #panel-holding .rs-block h3.rs-h { border-bottom: 0 !important; padding-bottom: 0 !important; font-size: 24px !important; font-weight: 500 !important; line-height: 32px !important; }

/*@pf end */
/*@pf start style id=rh-news-analyst-css */

html body .rhp-story { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 22px 0; }
html body .rhp-story.has-th { grid-template-columns: minmax(0, 1fr) 96px; }
html body .rhp-story:first-child { padding-top: 6px; }
html body .rhp-story .m { grid-column: 1 / -1; margin: 0 0 10px; color: var(--text); }
html body .rhp-story .m .src { font-weight: 700 !important; }
html body .rhp-story .m .ago { color: var(--muted); }
html body .rhp-story .h { grid-column: 1; font-size: 17px; font-weight: 400; line-height: 1.38; letter-spacing: -.1px; color: var(--text); }
html body .rhp-story .th { grid-column: 2; grid-row: 2 / span 2; width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--pill); display: block; }
html body .rhp-story .px { grid-column: 1; margin-top: 16px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
html body .rhp-story .px.up { color: var(--green-ink); }
html body .rhp-story .px.dn { color: var(--red-ink); }

html body #panel-holding .rs-an-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 0; }
html body #panel-holding .rs-an-sub b { font-size: 20px; font-weight: 500; color: var(--text); }
html body #panel-holding .rs-an-sub span { font-size: 14px; color: var(--muted); }
html body #panel-holding .rs-an { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
html body #panel-holding .rs-an-circ { flex: none; display: flex; align-items: flex-start; justify-content: center; width: 96px; height: 96px; padding-top: 28px; box-sizing: border-box; border-radius: 50%; background: var(--pill); color: var(--ac); }
@supports (background: color-mix(in srgb, red 10%, transparent)) { html body #panel-holding .rs-an-circ { background: color-mix(in srgb, var(--ac) 16%, transparent); } }
html body #panel-holding .rs-an-circ b { font-size: 38px; line-height: 1; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
html body #panel-holding .rs-an-circ sup { margin: 2px 0 0 1px; font-size: 16px; line-height: 1; font-weight: 500; }
html body #panel-holding .rs-an-bars { flex: 1; min-width: 0; display: grid; gap: 18px; }
html body #panel-holding .rs-an-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 14px; }
html body #panel-holding .rs-an-row .trk { position: relative; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
html body #panel-holding .rs-an-row .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--text); }
html body #panel-holding .rs-an-row .pc { font-size: 17px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
html body #panel-holding .rs-an-row.on .trk i { background: var(--ac); }
html body #panel-holding .rs-an-row.on .pc { color: var(--ac); }
html body #panel-holding .rhp-etfperf .ep-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
html body #panel-holding .rhp-etfperf .ep-row:first-of-type { margin-top: 6px; }
html body #panel-holding .rhp-etfperf .ep-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/*@pf end */
/*@pf start style id=rpnl-css */

#rpnl{position:fixed;inset:0;z-index:9000;background:var(--bg);color:var(--text);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(env(safe-area-inset-top,0px) + 16px) 0 max(28px,env(safe-area-inset-bottom));max-width:430px;margin:0 auto}
#rpnl[hidden],#rpnlSheet[hidden]{display:none}
#rpnl button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.rpn-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:64px;padding:0 14px}
.rpn-top svg{width:24px;height:24px}
.rpn-ic{width:44px;height:44px;display:grid;place-items:center}
.rpn-ttl{text-align:center;line-height:1.3}
.rpn-ttl b{display:block;font-weight:400;font-size:17px;line-height:22px}
.rpn-ttl button{font-size:15px;line-height:20px;color:var(--muted);display:inline-flex;align-items:center;gap:3px;margin-top:6px;padding:4px 8px}
.rpn-bar{display:flex;gap:12px;padding:24px 16px 0}
.rpn-seg{flex:1;display:flex;background:var(--pill);border-radius:999px;padding:3px}
.rpn-seg button{flex:1;height:40px;border-radius:999px;font-size:15px}
.rpn-seg button.on{background:var(--bg);font-weight:600;box-shadow:0 0 0 1px var(--line)}
.rpn-set{width:46px;height:46px;border-radius:50%;background:var(--pill);display:grid;place-items:center}
.rpn-set svg{width:22px;height:22px}
.rpn-amt{padding:32px 16px 0;font-family:"Capsule Sans Display","Capsule Sans Text",system-ui,-apple-system,sans-serif;font-size:36px;line-height:40px;font-weight:500;letter-spacing:-.02em}
.rpn-chg{padding:10px 16px 0;font-size:15px;line-height:23px;display:flex;gap:6px;align-items:center}
.rpn-chg b{font-weight:600}.rpn-pos{color:var(--green)}.rpn-neg{color:var(--red)}
#rpnChart{display:block;width:100%;height:210px;margin-top:32px}
.rpn-empty{padding:40px 24px;text-align:center;color:var(--muted);font-size:15px}
.rpn-list{padding:14px 16px 0}
.rpn-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:18px 0;border-bottom:1px solid var(--line)}
.rpn-row:last-child{border-bottom:0}
.rpn-row small{display:block;color:var(--muted);font-size:14px;margin-top:6px}
.rpn-row>span:first-child{font-size:17px}
.rpn-row>span:last-child{text-align:right;font-size:17px}
.rpn-more{margin:8px 16px 0;padding:14px;width:calc(100% - 32px);border-radius:999px;background:var(--pill)!important;font-weight:600}
.rpn-note{padding:18px 16px 0;color:var(--muted);font-size:12.5px;line-height:1.45}
#rpnlSheet{position:fixed;inset:0;z-index:9100;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
.rpn-sh{width:100%;max-width:430px;background:var(--bg);color:var(--text);border-radius:24px 24px 0 0;padding:10px 20px max(24px,env(safe-area-inset-bottom));max-height:80vh;overflow-y:auto}
.rpn-sh:before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--line2,var(--line));margin:0 auto 14px}
.rpn-sh h3{font-size:22px;font-weight:500;margin:6px 0 12px}
.rpn-sh p{color:var(--muted);font-size:15px;line-height:1.5;margin:0 0 12px}
.rpn-opt{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 0;font-size:17px;border-bottom:1px solid var(--line);background:none;border-left:0;border-right:0;border-top:0;color:inherit;font:inherit;cursor:pointer}
.rpn-opt i{width:20px;height:20px;border-radius:50%;border:2px solid var(--line2,var(--line));box-sizing:border-box}
.rpn-opt.on i{border:6px solid var(--text)}
.rpn-kv{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:16px}
.rpn-kv span:first-child{color:var(--muted)}
.rpn-cta{width:100%;margin-top:18px;padding:15px;border-radius:999px;background:var(--text);color:var(--bg);font:inherit;font-weight:600;border:0;cursor:pointer}

/*@pf end */

/*@pf start style id=rh-guide-alignment-css */

/* 1. stock detail: 40px between sections */
html body #panel-holding .hp-about,
html body #panel-holding .rs-block { margin-top: 40px !important; }
/* 2. shared data-row rhythm: 64px minimum height, tight vertical padding */
html body #panel-holding .rs-row,
html body #panel-holding .rhp-etfperf .ep-row { min-height: 64px; padding: 8px 0 !important; align-items: center; box-sizing: border-box; }
html body #panel-activity .act-row { min-height: 64px; padding: 12px 0; box-sizing: border-box; }
/* 3. positions list sits open instead of inside a bordered card (same as the overview) */
html body #panel-holdings .table-card:has(#posRows) { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
html body #panel-holdings .table-card:has(#posRows) .table { overflow: visible; }

/*@pf end */

/*@pf start style id=hp-sticky-header-css */

/* stock detail header: chevron + tools pill stay pinned while scrolling; a compact price/ticker fades in next to the chevron once the big price scrolls away.
   Desktop keeps the original layout (the wrappers are display:contents). */
html body #panel-holding .hp-topbar, html body #panel-holding .hp-tb { display: contents; }
html body #panel-holding .hp-mini { display: none; }
@media (max-width: 700px) {
  html body #panel-holding .hp-topbar { display: block; position: relative; height: 44px; margin: 0 0 26px; }
  html body #panel-holding .hp-tb { display: flex; align-items: center; gap: 12px; position: absolute; left: 0; right: 0; top: 0; height: 44px; z-index: 60; }
  html body #panel-holding .hp-topbar.on .hp-tb { position: fixed; top: var(--hp-tb-top, 12px); left: var(--hp-tb-l, 20px); right: auto; width: var(--hp-tb-w, calc(100% - 40px)); }
  html body #panel-holding .hp-tb #hpBack { flex: none; margin: 0 !important; }
  html body #panel-holding .hp-tb .rhp-tools { position: static !important; flex: none; margin-left: auto; }
  html body #panel-holding .hp-tb .hp-mini { display: block; flex: 1 1 auto; min-width: 0; line-height: 1.25; opacity: 0; transform: translateY(5px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  html body #panel-holding .hp-mini b { display: block; font-weight: 500; font-size: 17px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #panel-holding .hp-mini span { display: block; font-size: 13px; color: var(--muted, var(--text2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #panel-holding .hp-topbar.mini .hp-mini { opacity: 1; transform: none; }
  /* soft fade so scrolled content slips under the pinned controls */
  html body #panel-holding .hp-topbar.on .hp-tb::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: calc(var(--hp-tb-top, 12px) + 44px + 20px); z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s ease;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 60%, transparent 100%); }
  html body #panel-holding .hp-topbar.on.scrolled .hp-tb::before { opacity: .94; }
  /* the chevron turns more see-through once content is scrolling beneath it */
  html body:not(#lgfa):not(#lgfb) #panel-holding .hp-topbar.scrolled #hpBack { background: rgba(127,127,127,.18) !important; background: color-mix(in srgb, var(--hp-acc, var(--green)) 20%, transparent) !important; background-image: none !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important; backdrop-filter: blur(18px) saturate(1.6) !important; transition: background .2s ease; }
}
@media (prefers-reduced-motion: reduce) { html body #panel-holding .hp-mini, html body #panel-holding .hp-tb::before { transition: none !important; } }

/*@pf end */
