.swn-vto-pd__tool {
  position: absolute;
  top: calc(50% + 70px);
  right: 16px;
  z-index: 9;
  width: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 7px 5px;
  background: rgba(13,13,13,.62);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.swn-vto-pd__tool[hidden],
.swn-vto-pd[hidden],
.swn-vto-pd-capture[hidden],
.swn-vto-pd-capture [hidden] { display: none !important; }

.swn-vto-pd__tool:hover { background: rgba(13,13,13,.78); }
.swn-vto-pd__tool-label { font: 700 13px/1 Arial, sans-serif; }
.swn-vto-pd__tool-value { font: 600 10px/1 Arial, sans-serif; opacity: .82; }

.swn-vto-pd {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.swn-vto-pd__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13,13,13,.54);
  backdrop-filter: blur(3px);
}

.swn-vto-pd__card {
  position: relative;
  z-index: 1;
  width: min(92%, 440px);
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  text-align: center;
  font-family: Arial, sans-serif;
}

.swn-vto-pd__card h2 {
  margin: 0;
  font: 700 22px/1.2 Arial, sans-serif;
  color: #1f1f1f;
}

.swn-vto-pd__subtitle {
  margin: 8px auto 18px;
  max-width: 350px;
  color: #666;
  font: 400 13px/1.45 Arial, sans-serif;
}

.swn-vto-pd__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  color: #333;
  cursor: pointer;
  font: 400 25px/30px Arial, sans-serif;
}

.swn-vto-pd__reading {
  width: max-content;
  margin: 0 auto 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 700 17px/1 Arial, sans-serif;
}

.swn-vto-pd__range {
  width: 100%;
  accent-color: #111;
  cursor: pointer;
}

.swn-vto-pd__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: #777;
  font: 500 11px/1 Arial, sans-serif;
}

.swn-vto-pd__measure {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
}

.swn-vto-pd__measure:disabled {
  cursor: wait;
  opacity: .65;
}

.swn-vto-pd__measure[data-loading="true"]::after {
  content: '…';
  margin-left: 4px;
}

.swn-vto-pd__status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #555;
  font: 500 12px/1.4 Arial, sans-serif;
}

.swn-vto-pd__disclaimer {
  margin: 12px 0 0;
  color: #8a8a8a;
  font: 400 10px/1.4 Arial, sans-serif;
}

.swn-vto-pd-capture {
  position: absolute;
  inset: 0;
  z-index: 24;
  overflow: hidden;
  color: #fff;
  font-family: Arial, sans-serif;
  pointer-events: auto;
}

.swn-vto-pd-capture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.02) 28%, rgba(0,0,0,.04) 60%, rgba(0,0,0,.48) 100%);
  pointer-events: none;
}

.swn-vto-pd-capture__back,
.swn-vto-pd-capture__sound {
  position: absolute;
  top: 18px;
  z-index: 3;
  border: 0;
  background: rgba(13,13,13,.42);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.swn-vto-pd-capture__back {
  left: 18px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font: 700 13px/1 Arial, sans-serif;
}

.swn-vto-pd-capture__back span { font-size: 23px; vertical-align: -2px; margin-right: 4px; }

.swn-vto-pd-capture__sound {
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
}

.swn-vto-pd-capture__sound:not(.is-on) { opacity: .55; }

.swn-vto-pd-capture__guide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.swn-vto-pd-capture__face-frame {
  width: min(35%, 300px);
  aspect-ratio: .78;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 34%;
  box-shadow: 0 0 0 999px rgba(0,0,0,.06), 0 0 28px rgba(0,0,0,.15);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.swn-vto-pd-capture.is-ready .swn-vto-pd-capture__face-frame {
  border-color: #39d98a;
  box-shadow: 0 0 0 999px rgba(0,0,0,.04), 0 0 28px rgba(57,217,138,.22);
}

.swn-vto-pd-capture__instruction {
  margin-top: 22px;
  max-width: min(82%, 520px);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(13,13,13,.58);
  text-align: center;
  font: 700 17px/1.25 Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

.swn-vto-pd-capture__progress {
  width: min(300px, 56%);
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
}

.swn-vto-pd-capture__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #39d98a;
  transition: width .16s ease;
}

.swn-vto-pd-capture__result {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(13,13,13,.52);
  backdrop-filter: blur(5px);
  text-align: center;
}

.swn-vto-pd-capture__result-label {
  font: 700 16px/1.3 Arial, sans-serif;
}

.swn-vto-pd-capture__result-value {
  margin: 8px 0 28px;
  font: 800 38px/1 Arial, sans-serif;
}

.swn-vto-pd-capture__continue,
.swn-vto-pd-capture__restart {
  width: min(360px, 78%);
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
}

.swn-vto-pd-capture__continue {
  background: #39d98a;
  color: #0d0d0d;
}

.swn-vto-pd-capture__restart {
  margin-top: 9px;
  background: rgba(255,255,255,.18);
  color: #fff;
}

.swn-vto-pd-capture__result p {
  max-width: 390px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.72);
  font: 400 10px/1.4 Arial, sans-serif;
}

@media (max-width: 749px) {
  .swn-vto-pd__tool {
    right: 10px;
    top: calc(50% + 64px);
    width: 48px;
    min-height: 48px;
    border-radius: 14px;
  }
  .swn-vto-pd { padding: 14px; }
  .swn-vto-pd__card { width: min(94%, 400px); padding: 24px 20px; border-radius: 20px; }
  .swn-vto-pd-capture__face-frame { width: min(48%, 260px); }
  .swn-vto-pd-capture__instruction { font-size: 15px; }
  .swn-vto-pd-capture__back { left: 10px; top: 10px; }
  .swn-vto-pd-capture__sound { right: 10px; top: 10px; }
}
