.demo-interactions { min-width: 0; }

.pressure-disclosure {
  margin-top: 12px;
  border: 1px solid #3a4a3c;
  border-radius: 15px;
  background: #111a14;
}

.pressure-disclosure summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 13px 44px 13px 18px;
  list-style: none;
  color: #d8e9dd;
  font-size: 14px;
  cursor: pointer;
}

.pressure-disclosure summary::-webkit-details-marker { display: none; }
.pressure-disclosure summary::after {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #a5f5ce;
  border-bottom: 1.5px solid #a5f5ce;
  transform: rotate(45deg);
  content: "";
}
.pressure-disclosure[open] summary::after { top: 21px; transform: rotate(225deg); }
.pressure-disclosure summary:focus-visible { outline-offset: 3px; border-radius: 14px; }

.pressure-card {
  --pressure-accent: #a5f5ce;
  padding: 16px clamp(12px, 3vw, 24px) 19px;
  border-top: 1px solid #354a3c;
  border-radius: 0 0 14px 14px;
  background:
    radial-gradient(ellipse at 50% 115%, #2c533c 0, transparent 64%),
    #0d1811;
}

.pressure-card #pressure-help { color: #b8cebf; font-size: 13px; }
.pressure-card #pressure-note { margin-top: 11px; color: #a7bdaf; font-size: 12px; }

.pressure-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
}

.pressure-card-heading p { color: #bed5c7; font-size: 13px; }
.pressure-reading {
  color: var(--ink);
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.pressure-plot {
  position: relative;
  height: clamp(112px, 15vw, 157px);
  margin-top: 4px;
  border-radius: 8px;
}

.pressure-plot::before {
  position: absolute;
  inset: 0 12px 14px;
  content: "";
  background-image: linear-gradient(#87c5a21f 1px, transparent 1px), linear-gradient(90deg, #87c5a21f 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(transparent, #000 55%);
  pointer-events: none;
}

.pressure-canvas { position: relative; display: block; width: 100%; height: 100%; }
.pressure-position {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.pressure-plot:focus-within { outline: 2px solid var(--pressure-accent); outline-offset: 3px; }
.pressure-ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 12px 0;
  color: #b7cdbf;
  font-size: 11px;
}

.pressure-sample {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 13px;
  border: 1px solid #9dcfb046;
  border-radius: 9px;
  background: #09140e80;
  color: #d2e5d9;
  font-size: 12px;
}

.pressure-ink {
  width: min(49%, 170px);
  height: var(--pressure-width, 14px);
  border-radius: 100% 45% 78% 30% / 90% 58% 80% 60%;
  background: linear-gradient(90deg, #48976c, var(--pressure-accent) 55%, #8fe0ad);
}
