.dental-3d .gum-control {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 25rem;
  margin: 0.75rem 0 0;
  border: 0;
  padding: 0;
  color: var(--ink);
}

.dental-3d .gum-control[hidden] { display: none; }

.dental-3d .gum-control legend {
  float: none;
  width: auto;
  margin: 0 0 0.35rem;
  padding: 0;
  color: inherit;
  font: 600 0.875rem/1.4 var(--sans, sans-serif);
}

.dental-3d .gum-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
}

.dental-3d .gum-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.dental-3d .gum-choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dental-3d .gum-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.3rem 0.12rem;
  border: 1px solid #b8aaa0;
  border-radius: 3px;
  color: #40372e;
  background: #faf8f5;
  line-height: 1.25;
}

.dental-3d .gum-percent { font-size: 0.875rem; font-weight: 650; }
.dental-3d .gum-state { font-size: 0.75rem; }
.dental-3d .gum-choice input:checked + .gum-chip {
  border-color: #514239;
  background: #514239;
  color: #fff;
}

.dental-3d .gum-choice input:focus-visible + .gum-chip {
  outline: 2px solid #634d2c;
  outline-offset: 2px;
}

.dental-3d .gum-opaque .model-hotspot:is([data-point=root], [data-rest-marker=root], [data-rest-marker=fixture]) {
  display: none;
}

@media (forced-colors: active) {
  .dental-3d .gum-choice input:checked + .gum-chip { outline: 2px solid Highlight; outline-offset: -3px; }
  .dental-3d .gum-choice input:focus-visible + .gum-chip { outline: 3px solid Highlight; outline-offset: 2px; }
}
