#cascade-stage {
  box-sizing: border-box;
  max-width: 100%;
  margin: 1.25rem 0;
  padding: clamp(14px, 2.3vw, 28px);
  color: #1a3433;
  border: 1px solid #c6cdc1;
  border-top: 4px solid #35756b;
  border-radius: 12px;
  background: #faf8f4;
  font: 16px/1.45 system-ui, sans-serif;
}
#cascade-stage h2 { margin: 0 0 .35rem; color: #173630; font: 600 clamp(23px,3vw,33px)/1.18 Georgia, serif; }
#cascade-stage > p { max-width: 70ch; margin: 0; font: inherit; }
#cascade-stage .funnel-scene { position: relative; margin: .65rem 0 0; width: 100%; height: clamp(130px,26vw,285px); }
#cascade-stage canvas { display: block; width: 100%; height: 100%; }
#cascade-stage .funnel-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; list-style: none; padding: 0 10px; margin: 0 0 1rem; }
#cascade-stage .funnel-legend li { padding: 3px 9px; margin: 0; border: 1px solid #b4c5bc; border-radius: 20px; font: 600 13px/1.4 system-ui,sans-serif; white-space: nowrap; }
#cascade-stage .funnel-legend li.active { background: #1e5950; color: #fff; }
#cascade-stage .funnel-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid #c6cdc1; padding-top: 12px; }
#cascade-stage .funnel-controls label { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.4 system-ui,sans-serif; color: inherit; }
#cascade-stage .funnel-controls select, #cascade-stage .funnel-controls button {
  appearance: auto; border-radius: 5px; box-shadow: none; text-transform: none; letter-spacing: normal;
  margin: 0; min-height: 38px; font: 600 14px/1.3 system-ui,sans-serif;
}
#cascade-stage select { border: 1px solid #82978c; padding: 5px; color: #173630; background: #fff; }
#cascade-stage input { width: 17px; height: 17px; accent-color: #21594f; }
#cascade-stage .funnel-controls button { border: 1px solid #133f37; padding: 6px 14px; color: #fff; background: #245e53; cursor: pointer; }
#cascade-stage :focus-visible { outline: 3px solid #a6511a; outline-offset: 3px; }
#cascade-stage #stage-status { margin: .85rem 0 0; border-left: 3px solid #b88742; padding-left: 10px; max-width: 74ch; color: #273f38; }
.cascade-primer { margin: 1rem 0; max-width: 72ch; line-height: 1.5; }
.cascade-primer summary { cursor: pointer; color: #21594f; font-weight: bold; }
