peak-explorer, river-explorer { display: block; min-width: 0; }
.pd-panel {
  --demo-green: #254b40;
  --demo-rust: #96452f;
  --demo-rule: #c8cec3;
  padding: clamp(1rem, 3.5vw, 1.65rem);
  border: 1px solid var(--demo-rule);
  background: #f8f8f3;
  color: #1a312b;
  font: 400 .94rem/1.5 var(--sans, system-ui, sans-serif);
  text-align: left;
}
.pd-intro { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .15rem 1rem; }
.pd-intro strong { font-family: var(--serif, Georgia, serif); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.2; }
.pd-intro > span, .pd-label { color: #505c54; font-size: .72rem; }
.pd-description, .pd-explanation { margin: .65rem 0 1rem; line-height: 1.55; }
.pd-plot { display: block; width: 100%; height: auto; overflow: visible; }
.pd-plot text { font: 13px var(--sans, system-ui, sans-serif); fill: #47554c; font-variant-numeric: tabular-nums; }
.pd-axis, .pd-baseline, .pd-trace, .pd-edge { vector-effect: non-scaling-stroke; }
.pd-axis { stroke: #b7c1b7; stroke-width: 1; }
.pd-baseline { fill: none; stroke: #788775; stroke-width: 1; stroke-dasharray: 3 3; }
.pd-trace { fill: none; stroke: var(--demo-green); stroke-width: 2; stroke-linejoin: round; }
.pd-area { fill: #c8d8c4; }
.pd-edge { stroke: var(--demo-rust); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pd-axis-label { color: #47554c; text-align: center; font-size: .73rem; }
.pd-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem 1.2rem; margin: 1.1rem 0 .7rem; }
.pd-controls label { display: grid; min-width: 0; }
.pd-controls label > span { display: flex; justify-content: space-between; gap: .4rem; }
.pd-controls label, .pd-choice { font-size: .82rem; }
.pd-controls b, .pd-actions strong, .pd-score { font-variant-numeric: tabular-nums; }
.pd-controls input { width: 100%; height: 2.05rem; margin: 0; accent-color: var(--demo-green); cursor: pointer; }
.pd-panel :is(input,select):focus-visible { outline: 2px solid var(--demo-rust); outline-offset: 3px; }
.pd-result { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.2rem; padding-top: .8rem; border-top: 1px solid var(--demo-rule); }
.pd-result > span:first-child, .pd-situation { font-size: .82rem; }
.pd-score { display: block; font-size: 1.02rem; }
.pd-review { max-width: 23ch; color: #435349; font-size: .79rem; }
.pd-board { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; }
.pd-label { display: block; margin-bottom: .2rem; }
.pd-cards { display: flex; gap: .22rem; }
.pd-card { display: inline-grid; min-width: 2.09rem; min-height: 2.45rem; place-items: center; padding: .1rem .22rem; border: 1px solid var(--demo-rule); border-radius: .2rem; background: #fffef8; font-weight: 650; font-size: 1rem; }
.pd-card.pd-red { color: #943e2a; }
.pd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pd-choice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; margin: 1rem 0; }
.pd-choice select { min-height: 2.35rem; max-width: 100%; font: inherit; color: inherit; background: #fffef8; border: 1px solid #96a699; border-radius: .15rem; padding: .22rem .5rem; cursor: pointer; }
.pd-river-result { border-top: 1px solid var(--demo-rule); padding-top: .8rem; }
.pd-situation { margin: 0 0 .65rem; color: #47554c; }
.pd-actions { display: flex; justify-content: space-between; gap: .5rem; font-size: .83rem; }
.pd-mix { height: .44rem; margin-top: .28rem; background: var(--demo-rust); border-radius: .1rem; overflow: hidden; }
.pd-mix span { display: block; height: 100%; background: var(--demo-green); }
.pd-explanation { margin: .6rem 0 0; font-size: .86rem; }
@media (max-width: 24rem) {
  .pd-controls { grid-template-columns: 1fr; }
  .pd-result { align-items: flex-start; flex-direction: column; }
  .pd-review { max-width: none; }
}
