#tf-wdv {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

#tf-wdv[hidden] {
  display: none !important;
}

#tf-wdv .tf-wdv-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.76);
}

#tf-wdv .tf-wdv-card {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(88vh, 44rem);
  overflow: auto;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1726;
  color: #e2e8f0;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: Figtree, system-ui, sans-serif;
}

#tf-wdv .tf-wdv-k {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #64748b;
}

#tf-wdv h2 {
  margin: 0.35rem 0 0;
  font-family: Unbounded, Figtree, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

#tf-wdv .tf-wdv-lead,
#tf-wdv .tf-wdv-tip,
#tf-wdv .tf-wdv-msg {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
}

#tf-wdv .tf-wdv-msg.is-bad {
  color: #fda4af;
}

#tf-wdv label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

#tf-wdv input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

#tf-wdv .tf-wdv-cam {
  position: relative;
  margin-top: 0.8rem;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #050b14;
}

#tf-wdv .tf-wdv-cam video,
#tf-wdv .tf-wdv-cam img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#tf-wdv .tf-wdv-cam video.is-on,
#tf-wdv .tf-wdv-cam img.is-on {
  display: block;
}

#tf-wdv .tf-wdv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

#tf-wdv button {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(45, 212, 191, 0.12);
  color: #ccfbf1;
}

#tf-wdv #tf-wdv-ok,
#tf-wdv #tf-wdv-go {
  margin-top: 0.6rem;
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(13, 148, 136, 0.3);
}

#tf-wdv .tf-wdv-x {
  margin-top: 1rem;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #cbd5e1;
}

#tf-wdv .tf-wdv-tg {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
}

#tf-wdv .tf-wdv-tg[hidden] {
  display: none;
}

.tf-wdv-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #0f766e;
  color: #ecfeff;
  font: 600 0.85rem Figtree, system-ui, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

#tf-tx-list .tf-tx-actions .is-go {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(13, 148, 136, 0.3);
  color: #ccfbf1;
  font-weight: 600;
}

#tf-wdv .tf-wdv-pick {
  margin: 0.95rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

#tf-wdv .tf-wdv-opts {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.4rem;
}

#tf-wdv .tf-wdv-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
  font-weight: 600;
  cursor: pointer;
}

#tf-wdv .tf-wdv-opt input {
  width: auto;
  margin: 0;
  accent-color: #14b8a6;
}

#tf-wdv .tf-wdv-opt-t {
  flex: 1;
  font-size: 0.82rem;
  color: #e2e8f0;
}

#tf-wdv .tf-wdv-opt-b {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}

#tf-wdv .tf-wdv-opt:has(input:checked) {
  border-color: rgba(45, 212, 191, 0.6);
  background: rgba(13, 148, 136, 0.22);
}

#tf-wdv .tf-wdv-q {
  margin-top: 0.55rem;
}

#tf-wdv .tf-wdv-q label {
  margin: 0 0 0.3rem;
}

#tf-wdv #tf-wdv-quiz button {
  margin-top: 0.7rem;
}
