:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #203830;
  background: #f4f6f4;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  --green: #1b725a;
  --muted: #74857d;
  --line: #e3e9e3;
  --amber: #b77b3a;
  --red: #b6564b;
  --gain: var(--red);
  --loss: var(--green);
  --header-height: 83px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}
[hidden] {
  display: none !important;
}
.page-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  height: 100%;
  min-width: 0;
}
.page-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 15px 2px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.page-tabs button[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.strategy-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
  background: #eaf1eb;
}
.strategy-lead h2 {
  font-size: 27px;
  margin: 13px 0;
}
.strategy-lead p,
.strategy-steps p,
.strategy-notes p {
  font-size: 13px;
  line-height: 1.95;
  color: #5c7366;
}
.strategy-facts,
.stock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.strategy-facts strong,
.stock-metrics strong {
  display: block;
  font-size: 30px;
  font-weight: 550;
  color: var(--green);
}
.strategy-facts span,
.stock-metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.strategy-process {
  margin-top: 22px;
}
.strategy-steps {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 38px;
}
.strategy-steps li {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.strategy-steps li > span {
  color: var(--green);
  font-size: 13px;
  padding-top: 3px;
}
.formula {
  background: #f4f7f3;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.9;
}
.strategy-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0;
}
.strategy-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0 35px;
}
.stock-page-title {
  margin-bottom: 22px;
}
.stock-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stock-picker,
.stock-detail {
  min-width: 0;
}
.stock-picker {
  border-right: 1px solid var(--line);
}
.stock-picker-content {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-height) - 24px);
  min-height: 320px;
  padding: 22px;
}
.stock-detail {
  padding: 22px;
}
#stock-search-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}
.search-row {
  display: flex;
  gap: 7px;
}
.search-row input {
  width: 0;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #fbfcfa;
  font-size: 12px;
}
.stock-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 12px 0;
  scrollbar-width: thin;
}
#stock-list-more,
#stock-list-retry {
  flex: none;
  width: 100%;
}
.stock-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 10px;
  margin: 3px 0;
}
.stock-choice strong {
  font-size: 13px;
  font-weight: 550;
}
.stock-choice span {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: var(--muted);
}
.stock-choice:hover {
  background: #f3f6f2;
}
.stock-choice[aria-pressed="true"] {
  background: #eaf2eb;
  border-color: #c5dccd;
}
.stock-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.stock-metrics strong {
  font-size: 25px;
}
.stock-metrics div:last-child strong {
  font-size: 17px;
  padding-top: 8px;
}
.timeline-heading,
.stock-event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 16px;
}
.stock-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 5px;
}
.period-dot {
  border: 0;
  border-radius: 3px;
  min-height: 27px;
  font-size: 10px;
  padding: 4px 0;
}
.state-added {
  background: #21785c;
  color: white;
}
.state-retained {
  background: #dfede1;
  color: #477552;
}
.state-removed {
  background: #f3e5d7;
  color: #996230;
}
.state-absent {
  background: #f0f3f0;
  color: #87968c;
}
.event-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}
.timeline-legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.timeline-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: #f0f3f0;
}
.timeline-legend .added::before {
  background: #21785c;
}
.timeline-legend .retained::before {
  background: #dfede1;
}
.timeline-legend .removed::before {
  background: #f3e5d7;
}
.timeline-legend .removed {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
.stock-events {
  min-width: 650px;
}
.stock-events td:nth-child(4) {
  color: inherit;
}
.stock-events td:first-child {
  white-space: nowrap;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  font: inherit;
  text-align: inherit;
}
.text-link:hover {
  text-decoration: underline;
}
.security-link {
  font-weight: 600;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
select,
summary {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
svg:focus-visible,
summary:focus-visible {
  outline: 3px solid #6da58f;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: rgb(244 246 244 / 96%);
  backdrop-filter: blur(16px);
  box-shadow: 0 3px 14px #20383005;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: white;
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-divider {
  color: #a4b1a8;
  margin: 0 9px;
}
.top-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 46px 5% 0;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 650;
  color: var(--muted);
}
h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 14px 0 12px;
}
.intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 8px 0;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  padding-bottom: 4px;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: var(--green);
  border-radius: 50%;
}
.tag {
  background: #e7eee7;
  color: #677c6b;
  font-size: 10px;
  border-radius: 4px;
  padding: 5px 7px;
  margin-left: 3px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.metric {
  padding: 23px 27px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric.primary {
  background: #edf3ef;
}
.metric p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #62766a;
}
.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 400;
}
.metric-foot {
  font-size: 11px;
  margin-top: 11px;
  color: var(--muted);
}
.positive {
  color: var(--gain);
}
.negative {
  color: var(--loss);
}
.neutral {
  color: var(--muted);
}
.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 22px;
  margin-bottom: 26px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.button {
  border: 1px solid #d6dfd7;
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.button:hover {
  background: #f0f5f0;
  border-color: #b2c6b9;
}
.button.quiet {
  color: var(--muted);
}
.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
}
.segments {
  display: flex;
  background: #f4f6f3;
  border-radius: 6px;
  padding: 3px;
}
.segments button {
  font-size: 11px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--muted);
}
.segments button[aria-pressed="true"] {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #142b1714;
}
#range-form {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
input[type="date"] {
  font-size: 11px;
  color: #54685a;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px;
  max-width: 117px;
  background: white;
}
.chart-readout {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 26px 0 0;
  min-height: 24px;
  font-size: 11px;
  color: var(--muted);
}
.chart-readout strong {
  font-size: 18px;
  color: #203830;
  font-weight: 500;
}
#nav-chart,
#dd-chart {
  width: 100%;
  display: block;
  overflow: visible;
}
#nav-chart {
  cursor: crosshair;
  margin-top: 5px;
}
.chart-grid {
  stroke: #e7eee7;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.axis-text {
  fill: #89958d;
  font-size: 11px;
}
.price-line {
  stroke: var(--series-color);
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
}
.price-area {
  fill: url(#area);
}
.price-stop {
  stop-color: var(--series-color);
}
.rebalance-dot {
  fill: #a9cbbb;
  opacity: 0.8;
}
.focus-line {
  stroke: #8ba497;
  stroke-dasharray: 4 4;
}
.focus-dot {
  fill: var(--series-color);
  stroke: white;
  stroke-width: 3;
}
.drawdown-area {
  fill: var(--loss);
  opacity: 0.28;
}
.drawdown-line {
  stroke: var(--loss);
  stroke-width: 1.3;
  fill: none;
}
.level-0 {
  color: #8a958d;
}
.level-1 {
  color: #a18135;
}
.level-2 {
  color: #c16c34;
}
.level-3 {
  color: #ad4848;
}
.episode-band {
  fill: currentColor;
  opacity: 0.07;
}
.episode-band.selected {
  opacity: 0.16;
}
.episode-line {
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.episode-node {
  fill: white;
  stroke: currentColor;
  stroke-width: 2;
}
.episode-node-label {
  fill: #59665d;
  font-size: 11px;
  paint-order: stroke;
  stroke: white;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.signal-marker {
  cursor: pointer;
}
.signal-dot {
  fill: currentColor;
  stroke: white;
  stroke-width: 1.5;
}
.signal-stem {
  stroke: currentColor;
  stroke-width: 0.8;
  opacity: 0.6;
}
.signal-tag {
  fill: #fffefa;
  stroke: currentColor;
  stroke-width: 0.8;
}
.signal-text {
  fill: currentColor;
  font-size: 11px;
  font-weight: 600;
}
.focus-line,
.focus-dot {
  pointer-events: none;
}
.threshold-line {
  stroke: currentColor;
  stroke-dasharray: 5 5;
  opacity: 0.6;
}
.threshold-text {
  fill: currentColor;
  font-size: 11px;
}
.episode-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  font-size: 10px;
  margin-top: 15px;
}
.episode-legend > .muted {
  flex-basis: 100%;
}
.drawdown-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.level-badge {
  display: inline-block;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}
button.level-badge[aria-pressed="true"] {
  background: white;
  box-shadow: 0 0 0 1px currentColor;
}
.drawdown-caption {
  margin-bottom: 0;
}
.drawdown-panel {
  margin-bottom: 25px;
}
.drawdown-panel > .small {
  max-width: 960px;
}
.drawdown-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.drawdown-stats > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.drawdown-stats > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.drawdown-stats strong {
  font-size: 28px;
  font-weight: 500;
}
.drawdown-stats span {
  font-size: 11px;
}
.drawdown-detail {
  background: #f7f8f4;
  border: 1px solid #e7ebe2;
  border-radius: 8px;
  padding: 18px 20px;
}
.drawdown-detail h3 {
  font-size: 15px;
  margin: 0;
}
.drawdown-detail > p {
  margin-bottom: 0;
  color: #697466;
}
#drawdown-current {
  color: var(--loss);
}
.episode-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}
.episode-journey > div {
  display: grid;
  gap: 7px;
  border-left: 2px solid #d6decf;
  padding-left: 12px;
}
.episode-journey span,
.episode-journey small {
  color: var(--muted);
  font-size: 11px;
}
#drawdown-trough-value {
  color: var(--loss);
}
.episode-journey strong {
  font-size: 17px;
  font-weight: 500;
}
.drawdown-table-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0 4px;
}
.drawdown-table-wrap {
  max-height: 355px;
  scrollbar-width: thin;
}
.drawdown-table th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.drawdown-table tbody td {
  color: #203830;
  font-weight: 400;
  letter-spacing: 0;
}
.drawdown-table tr.selected {
  background: #f5f7f1;
}
.drawdown-table td:nth-child(6) {
  color: var(--loss);
}
@media (max-width: 760px) {
  .drawdown-panel > .panel-title {
    flex-wrap: wrap;
  }
  .drawdown-stats > div {
    flex-direction: column;
    gap: 6px;
    padding-left: 14px;
  }
  .episode-journey {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .drawdown-stats strong {
    font-size: 24px;
  }
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.line-key {
  width: 15px;
  height: 2px;
  background: var(--series-color);
}
.dot-key {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9cbeaa;
  margin-left: 12px;
}
#range-count {
  margin-left: auto;
}
.drawdown-label {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0ed;
  padding-top: 15px;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.8;
}
.annual-panel h2 {
  margin-top: 9px;
}
.annual-panel > p {
  font-size: 11px;
  margin-bottom: 29px;
}
.year-row {
  display: grid;
  grid-template-columns: 35px 1fr 58px;
  align-items: center;
  gap: 9px;
  margin: 19px 0;
  font-size: 11px;
}
.year-row svg {
  width: 100%;
  height: 8px;
}
.year-row strong {
  text-align: right;
  font-weight: 500;
}
.year-bar {
  fill: currentColor;
}
.year-bg {
  fill: #edf2ec;
}
.data-count {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 9px;
  margin-top: 31px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  font-size: 10px;
  color: var(--muted);
}
.data-count strong {
  font-size: 24px;
  color: #375a46;
  font-weight: 500;
}
.data-count span {
  align-self: center;
  text-align: right;
}
#rebalance-statistics-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 10px;
}
.rebalance-panel {
  padding-bottom: 15px;
}
.period-jump {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
select {
  max-width: 200px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 8px 12px;
  color: #36513f;
  font-size: 12px;
}
.history-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.periods {
  border-right: 1px solid var(--line);
  padding: 16px 18px 0 0;
}
.period-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 0 9px 15px;
}
.period-list {
  max-height: 790px;
  overflow: auto;
  scrollbar-width: thin;
}
.period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: white;
  padding: 12px 10px;
  border-radius: 6px;
  text-align: left;
  margin-bottom: 4px;
}
.period-row:hover {
  background: #f5f8f4;
}
.period-row[aria-pressed="true"] {
  background: #edf4ee;
}
.period-row strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.period-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.period-return {
  font-size: 12px;
}
.holdings {
  padding: 23px 0 0 28px;
  min-width: 0;
}
.holding-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}
.holding-title p {
  font-size: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 9px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px 9px;
  border-bottom: 1px solid #f0f3ef;
}
th:first-child,
td:first-child {
  padding-left: 0;
  color: var(--muted);
  width: 50px;
}
td:nth-child(2) {
  font-weight: 550;
  letter-spacing: 0.4px;
}
td:nth-child(3),
td:nth-child(4) {
  color: #6a7d70;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.holdings-table {
  min-width: 870px;
  font-size: 12px;
}
.holdings-table th:first-child {
  width: 32px;
}
.cell-detail {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.factor-method {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.factor-method summary {
  cursor: pointer;
}
th:last-child,
td:last-child {
  text-align: right;
  padding-right: 0;
}
.badge {
  font-size: 10px;
  display: inline-block;
  color: var(--green);
  background: #eaf2eb;
  padding: 3px 8px;
  border-radius: 4px;
}
.retained {
  color: #8a978d;
  font-size: 10px;
}
.removed {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  padding: 15px 0 0;
}
.removed span {
  display: inline-block;
  background: #f6f0e9;
  border-radius: 3px;
  margin: 3px 4px;
  padding: 2px 6px;
  color: #95714d;
}
.method {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 30px;
  padding: 36px 8px;
  margin: 12px 0 25px;
}
.method p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 10px;
  color: #708075;
}
.method details {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.method summary {
  color: #486b54;
}
.method dl {
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 9px;
  line-height: 1.8;
}
.method dd {
  margin: 0;
}
footer {
  max-width: 1500px;
  margin: auto;
  padding: 20px 5% 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.hidden {
  display: none !important;
}
#notice {
  font-size: 13px;
  padding: 20px 0;
  color: var(--muted);
}
#holding-notice {
  font-size: 12px;
  color: var(--red);
  margin: 10px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1450px) {
  .metric-value {
    font-size: 44px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }
  .top-note {
    display: none;
  }
  .stock-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .strategy-lead {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .performance-grid {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .panel {
    padding: 20px;
  }
  .chart-controls {
    flex-wrap: wrap;
  }
  .history-grid {
    grid-template-columns: 200px 1fr;
  }
  .metric {
    padding: 22px 19px;
  }
  .metric-value {
    font-size: 32px;
  }
  .holding-title {
    display: block;
  }
  .holding-title p {
    margin-bottom: 15px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .status {
    padding-top: 4px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 109px;
  }
  .page-tabs {
    gap: 0;
    width: 100%;
  }
  .page-tabs button {
    flex: 1;
    font-size: 14px;
    padding: 12px 2px;
  }
  .strategy-steps,
  .strategy-notes,
  .stock-layout {
    grid-template-columns: 1fr;
  }
  .strategy-steps {
    gap: 15px;
  }
  .strategy-lead h2 {
    font-size: 23px;
  }
  .strategy-facts strong {
    font-size: 26px;
  }
  .stock-list {
    flex: none;
    max-height: clamp(190px, 34dvh, 300px);
  }
  .stock-picker {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stock-picker-content {
    position: static;
    height: auto;
    min-height: 0;
  }
  .stock-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .timeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: 60px 48px;
    gap: 0;
  }
  main {
    padding-top: 28px;
  }
  h1 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric-value {
    font-size: 34px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .performance-grid {
    grid-template-columns: 1fr;
  }
  .annual-panel {
    display: none;
  }
  .chart-panel {
    padding: 18px 14px;
  }
  .panel-title {
    align-items: flex-start;
    gap: 12px;
  }
  h2 {
    font-size: 18px;
  }
  .chart-readout {
    margin-top: 18px;
  }
  .chart-controls {
    gap: 13px;
    margin-top: 18px;
  }
  .chart-controls #range-form {
    width: 100%;
    justify-content: space-between;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
  .periods {
    display: none;
  }
  .holdings {
    padding: 20px 0 0;
  }
  .rebalance-panel {
    padding: 20px 15px;
  }
  .rebalance-panel > .panel-title {
    flex-direction: column;
  }
  .period-jump {
    width: 100%;
    justify-content: space-between;
  }
  .method {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
  .method p {
    font-size: 11px;
  }
  td,
  th {
    padding-left: 7px;
    padding-right: 7px;
  }
  .metric {
    padding: 19px;
  }
  .chart-legend {
    font-size: 9px;
  }
  .method dl {
    grid-template-columns: 85px 1fr;
  }
  footer {
    font-size: 9px;
  }
  .axis-text {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
