.hl-peaks {
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin: 2rem auto;
  padding: clamp(18px, 4.4vw, 52px);
  border: 1px solid rgba(128, 164, 207, .28);
  border-radius: clamp(22px, 3vw, 36px);
  background: radial-gradient(ellipse at 90% 20%, #f2edff94, transparent 52%), linear-gradient(145deg, #f8fcfff7, #e8f4ffed);
  box-shadow: inset 0 1px 0 #fff, 0 16px 48px #163f7010;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #10253e;
  color-scheme: light;
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
.hl-peaks *, .hl-peaks *::before, .hl-peaks *::after { box-sizing: border-box; }
.hl-peaks .hl-peaks__intro { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.hl-peaks p { margin: 0; max-width: 65ch; font: inherit; color: #334963; }
.hl-peaks .hl-peaks__label { color: #005ab6; font-size: .86em; font-weight: 620; }
.hl-peaks h2 { margin: 9px 0 15px; max-width: 28ch; font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.12; font-weight: 660; letter-spacing: -.035em; color: inherit; text-wrap: balance; }
.hl-peaks:lang(zh) h2 { line-height: 1.27; letter-spacing: -.015em; }
.hl-peaks .hl-peaks__figure { display: block; margin: 30px 0 24px; padding: 0; background: transparent; border: 0; }
.hl-peaks .hl-peaks__key { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 0 0 14px; padding: 0; list-style: none; }
.hl-peaks .hl-peaks__key li { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; font-size: 14px; font-weight: 540; }
.hl-peaks .hl-peaks__key i { width: 22px; height: 0; border-top: 3px solid #112d4c; }
.hl-peaks .hl-peaks__key li:nth-child(2) i { border-top: 3px dashed #0068ca; }
.hl-peaks .hl-peaks__key li:nth-child(3) i { border-top: 3px dotted #803bb7; }
.hl-peaks .hl-peaks__key li:nth-child(4) i { height: 11px; border: 1px solid #9c9dd5; border-radius: 3px; background: #c8ccf7; }
.hl-peaks__chart { width: 100%; min-width: 0; height: clamp(235px, 30vw, 330px); }
.hl-peaks .hl-peaks__chart svg { display: block; width: 100%; height: 100%; overflow: visible; color: #435876; font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hl-peaks figcaption { display: block; margin: 10px 0 0; color: #475b72; font-size: 14px; line-height: 1.5; text-align: left; }
.hl-peaks__control label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 16px; font-weight: 550; }
.hl-peaks__value { color: #0458af; font-variant-numeric: tabular-nums; }
.hl-peaks .hl-peaks__control input { display: block; margin: 0; padding: 0; width: 100%; min-width: 0; height: 44px; cursor: pointer; accent-color: #0068ca; }
.hl-peaks :is(input, summary):focus-visible { outline: 3px solid #0068ca; outline-offset: 3px; border-radius: 6px; }
.hl-peaks__ends { display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: #475b72; }
.hl-peaks__result { display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(16px, 4vw, 46px); margin: 24px 0 16px; padding: clamp(16px, 2.6vw, 26px); border: 1px solid #fff; border-radius: 20px; background: #ffffffb8; }
.hl-peaks__result strong { display: block; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 650; color: #005dbd; font-variant-numeric: tabular-nums; }
.hl-peaks__result span { font-size: 14px; color: #475b72; }
.hl-peaks__result p { flex: 1 1 270px; max-width: none; font-size: 16px; }
.hl-peaks details { display: block; margin: 0; padding: 0; background: none; border: 0; }
.hl-peaks summary { display: list-item; padding: 11px 0; min-height: 44px; font-size: 15px; font-weight: 550; color: #005ab6; cursor: pointer; }
.hl-peaks details p { font-size: 15px; margin: 4px 0 12px; max-width: 78ch; }

.hl-peaks:lang(zh) .hl-peaks__intro p { max-width: 45em; text-wrap: pretty; }

/* Keep the field and the controls in view together on portrait tablets. */
@media screen {
  .lab { overflow-wrap:anywhere }
  .lab .settings label,.hl-peaks .hl-peaks__key li { hyphens:auto }
  .lab .link { min-height:44px; max-width:100% }
  .lab .settings input { flex-shrink:0 }
  .lab .settings select {
    min-inline-size:7.4rem; max-inline-size:100%; height:2.875rem;
    font-size:1rem; padding-inline:12px 34px;
    -webkit-appearance:none; appearance:none;
    background-image:linear-gradient(45deg,transparent 50%,#354256 50%),linear-gradient(135deg,#354256 50%,transparent 50%);
    background-size:6px 6px; background-position:right 18px center,right 12px center;
    background-repeat:no-repeat;
  }
  html[dir=rtl] .lab .settings select { background-position:left 12px center,left 18px center }
  .field { container-type:inline-size }
  /* Enlarge just the legend and its backdrop. The calibrated bar stays at 88.49 image pixels. */
  @container (max-width:570px) {
    .lab .field svg g rect:first-child { x:913px; y:1205px; width:343px; height:88px }
    .lab .field svg g text { font-size:56px; text-anchor:end; transform:translate(-72px,27px) }
  }
  @container (max-width:305px) {
    .lab .field svg g rect:first-child { x:878px; y:1199px; width:378px; height:96px }
    .lab .field svg g text { font-size:68px }
  }
  .hl-peaks .hl-peaks__control input { height:48px; touch-action:pan-y pinch-zoom }
}
@media screen and (min-width:680px) and (max-width:980px) {
  .lab { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; padding:22px; align-items:start }
}
@media screen and (min-width:680px) and (max-width:1100px) and (min-height:720px) {
  .lab figure { position:sticky; top:105px; align-self:start }
}
@media screen and (max-width:679px) {
  .lab { gap:16px }
  .lab figure { max-width:420px; justify-self:center }
  .lab .settings .interactive { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; margin:18px 0 }
  .lab .settings label { margin:0; gap:5px }
  .lab .settings label:has(select) { flex-direction:column; align-items:stretch; justify-content:space-between }
  .lab .settings select { min-inline-size:0; width:100%; padding-inline-start:8px; padding-inline-end:25px; background-position:right 12px center,right 6px center }
  html[dir=rtl] .lab .settings select { background-position:left 6px center,left 12px center }
  .lab .settings label:has(input) { align-self:end; min-height:46px }
  .lab .settings .interactive small { grid-column:1/-1 }
  .hl-peaks .hl-peaks__key { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:8px 12px }
  .hl-peaks .hl-peaks__key i { flex:none }
  .hl-peaks .hl-peaks__figure { margin:22px 0 16px }
  .hl-peaks__result { margin-top:16px }
  .hl-peaks .actions { margin-top:8px }
}
@media screen and (max-width:379px) {
  .lab .settings .interactive { grid-template-columns:minmax(0,1fr); gap:10px }
  .lab .settings label:has(select) { flex-direction:row; align-items:center; flex-wrap:wrap }
  .lab .settings select { width:6.4rem }
}
@media screen and (min-width:620px) and (max-height:520px) {
  .hl-peaks { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px 22px; padding:20px; align-items:start }
  .hl-peaks__intro,.hl-peaks details,.hl-peaks .actions { grid-column:1/-1 }
  .hl-peaks .hl-peaks__figure { grid-row:2/4; margin:0 }
  .hl-peaks__chart { height:185px }
  .hl-peaks__result { margin:0; padding:12px; gap:6px }
  .hl-peaks .actions,.hl-peaks .actions a { margin-top:0 }
}
@media screen and (forced-colors:none) {
  .hl-peaks .hl-peaks__control input { -webkit-appearance:none; appearance:none; background:transparent }
  .hl-peaks__control input::-webkit-slider-runnable-track { height:6px; border-radius:9px; background:#65849f }
  .hl-peaks__control input::-moz-range-track { height:6px; border-radius:9px; background:#65849f }
  .hl-peaks__control input::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; margin-top:-11px; border:3px solid #fff; border-radius:50%; background:#0068ca; box-shadow:0 1px 5px #10253e66 }
  .hl-peaks__control input::-moz-range-thumb { width:22px; height:22px; border:3px solid #fff; border-radius:50%; background:#0068ca; box-shadow:0 1px 5px #10253e66 }
}
@media (forced-colors:active) {
  .lab .settings select { appearance:auto; background-image:none; padding-inline:5px }
}
