.pf-hero-return > .pf-mobile-weight,
.pf-mobile-update,
.pf-metrics-toggle { display: none; }

.pf-decision-marker { cursor: pointer; outline: none; }
.pf-marker-core { fill: #eefbfd; stroke: #116a78; stroke-width: 2; }
.pf-marker-dot { fill: #116a78; }
.pf-decision-marker:hover .pf-marker-core,
.pf-decision-marker:focus-visible .pf-marker-core { fill: #c0fbfa; stroke: #123848; stroke-width: 3; }
.pf-chart-key .pf-key-decisions i {
  height: 11px; width: 11px; border: 2px solid #116a78; border-radius: 50%;
  background: radial-gradient(circle, #116a78 0 1.5px, #eefbfd 2px);
}
.pf-holding-link,.pf-replay-link {
  color: #075a65; background: none; border: 0; padding: 0; font: inherit;
  font-weight: 650; cursor: pointer; text-align: start;
}
.pf-holding-link span { margin-inline-start: .36em; color: #548487; font-size: .85em; }
.pf-holding-link:hover,.pf-replay-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-replay-dialog {
  --sheet-border: #dbe6e9;
  width: min(580px,100%); height: 100dvh; max-width: 100%; max-height: 100dvh;
  padding: 0; margin: 0 0 0 auto; border: 0; border-left: 1px solid #b6ced3;
  border-radius: 18px 0 0 18px; color: #19353e; background: #f7fafb;
  box-shadow: -18px 0 64px #17333b29; overflow: hidden;
}
.pf-replay-dialog[open] { display: flex; flex-direction: column; }
.pf-replay-dialog::backdrop { background: #102a3780; backdrop-filter: blur(3px); }
body:has(.pf-replay-dialog[open]) { overflow: hidden; }
.pf-replay-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 26px 18px; border-bottom: 1px solid var(--sheet-border);
  background: linear-gradient(110deg,#fff,#f3fafb);
}
.pf-replay-heading > div > span { color: #55747c; font-size: 13px; }
.pf-replay-heading h2 { margin: 4px 0 0; font-size: 26px; line-height: 1.3; letter-spacing: -.025em; }
.pf-replay-close {
  flex: 0 0 auto; color: #31525d; background: #e8f1f3; border: 1px solid #d5e2e5;
  border-radius: 50%; width: 42px; height: 42px; font-size: 25px; line-height: 1; cursor: pointer;
}
.pf-replay-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px 26px 30px; }
.pf-replay-picker,.pf-replay-subhead,.pf-replay-orders header,.pf-replay-stock summary,.pf-replay-facts { display: flex; align-items: center; gap: 10px; }
.pf-replay-picker,.pf-replay-subhead,.pf-replay-stock summary { justify-content: space-between; }
.pf-replay-picker { color: #516b76; font-size: 14px; }
.pf-replay-picker select {
  font: inherit; font-weight: 600; color: #174956; min-height: 42px; border: 1px solid #c7d9dd;
  background: white; border-radius: 7px; padding: 6px 9px; max-width: 75%;
}
.pf-replay-section { padding: 20px 0; border-bottom: 1px solid var(--sheet-border); }
.pf-replay-section h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 10px; color: #19353e; }
.pf-replay-subhead { flex-wrap: wrap; margin-bottom: 10px; }
.pf-replay-subhead h3 { margin: 0; }
.pf-replay-section p,.pf-replay-extra li { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; margin: 8px 0 12px; }
.pf-replay-section > :last-child { margin-bottom: 0; }
.pf-replay-facts { flex-wrap: wrap; color: #56727c; font-size: 13px; }
.pf-replay-facts b { color: #304e58; font-variant-numeric: tabular-nums; }
.pf-replay-stock {
  margin-top: 7px; border: 1px solid var(--sheet-border); border-radius: 8px;
  background: #fff; padding: 0 13px;
}
.pf-replay-stock summary { min-height: 45px; font-weight: 650; cursor: pointer; }
.pf-replay-stock summary small { color: #607982; font-size: 12px; margin-left: 7px; font-weight: 500; }
.pf-replay-stock summary b { margin-left: auto; color: #075c68; font-size: 14px; }
.pf-replay-stock summary::after { content: "＋"; color: #59757d; }
.pf-replay-stock[open] summary::after { content: "−"; }
.pf-replay-stock > div { border-top: 1px solid var(--sheet-border); padding: 3px 0 12px; }
.pf-replay-stock h4 { margin: 12px 0 4px; font-size: 14px; }
.pf-replay-extra { margin-top: 12px; font-size: 14px; }
.pf-replay-extra summary { cursor: pointer; padding: 6px 0; font-weight: 600; color: #355963; }
.pf-replay-extra ul { padding-left: 1.2em; }
.pf-replay-references > div { display: grid; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--sheet-border); }
.pf-replay-references a { color: #006875; overflow-wrap: anywhere; }
.pf-replay-references small,.pf-replay-empty,.pf-replay-period { color: #57727d; }
.pf-replay-orders { display: grid; gap: 8px; }
.pf-replay-orders article { background: #fff; border: 1px solid var(--sheet-border); padding: 11px 13px; border-radius: 8px; }
.pf-replay-orders header .pf-state { margin-left: auto; }
.pf-replay-orders article p,.pf-fill-result { color: #506a75; font-size: 13px; line-height: 1.7; margin: 5px 0; }
.pf-fill-result > div:first-child { color: #294954; font-size: 15px; }
.pf-fill-result span { margin-right: 8px; }
.pf-period-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pf-period-values > div { display: grid; gap: 5px; }
.pf-period-values span,.pf-period-values small { font-size: 12px; color: #54717b; }
.pf-period-values strong { font-variant-numeric: tabular-nums; font-size: 20px; }
.pf-period-values small { white-space: nowrap; font-weight: 500; }

@media (max-width: 699px) {
  .pf-overview { gap: 0; }
  .pf-overview .pf-equity-hero { min-height: 0; height: auto; padding-bottom: 16px; }
  .pf-hero-return { grid-template-columns: 1.2fr 1fr .96fr; gap: 8px; }
  .pf-hero-return > .pf-mobile-weight { display: grid; }
  .pf-hero-return > div > strong { font-size: clamp(18px,4.8vw,25px); white-space: nowrap; }
  .pf-hero-return > div > span { font-size: 13px; }
  .pf-mobile-update {
    display: grid; gap: 3px; margin-top: 9px; padding: 7px 12px;
    border: 1px solid #d7e6e9; border-radius: 9px; background: #fafdfd;
  }
  .pf-mobile-update:empty { display: none; }
  .pf-mobile-update > * {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    background: none; border: 0; text-align: left; padding: 3px 0; font: inherit;
    color: #4d6874; font-size: 13px; min-height: 26px;
  }
  .pf-mobile-update button { cursor: pointer; min-height: 34px; }
  .pf-mobile-update button strong { color: #165f67; }
  .pf-mobile-update i { font-style: normal; margin-left: 4px; }
  .pf-metrics-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 39px; color: #42636c; font: inherit; font-size: 13px;
    padding: 4px 5px; border: 0; background: transparent; cursor: pointer;
  }
  .pf-overview:not(.pf-metrics-open) .pf-account-grid { display: none; }
  .pf-replay-dialog { border: 0; border-radius: 0; }
  .pf-replay-heading { padding: 15px 18px; }
  .pf-replay-scroll { padding: 15px 18px 25px; }
  .pf-replay-heading h2 { font-size: 22px; }
  .pf-period-values small { display: block; }
}
