.dental-3d .rest-gallery {
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 32px 0 0;
  border-top: 1px solid #ba9d72;
  scroll-margin-top: 112px;
}
.dental-3d .rest-intro { max-width: 760px; margin: 0 0 24px; color: var(--body); }
.dental-3d .rest-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.dental-3d .rest-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
  scroll-margin-top: 110px;
}
.dental-3d .rest-choice[aria-current] { border-bottom-color: #6c5231; }
.dental-3d .rest-choice:hover { border-bottom-color: #977645; }
.dental-3d .rest-choice-image {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.75;
  overflow: hidden;
  background: #35332d;
}
.dental-3d .rest-choice-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dental-3d .rest-choice .ai-badge { inset: 5px auto auto 6px; font-size: 10px; padding: 2px 6px; }
.dental-3d .rest-choice .image-brand { inset: auto 5px 5px auto; width: 32px; padding: 2px; }
.dental-3d .rest-choice-title {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 9px 0; color: var(--body); font: 550 clamp(13px,1.25vw,17px)/1.4 var(--sans);
}
.dental-3d .rest-choice[aria-current] .rest-choice-title { color: var(--ink); font-weight: 700; }
.dental-3d .rest-choice[aria-current] .rest-choice-title::after { content: '✓'; font-size: 15px; }
.dental-3d .rest-layout { display: grid; gap: clamp(24px,4vw,64px); }
.dental-3d .rest-interactive .rest-layout { grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); align-items: start; }
.dental-3d .rest-stage { min-width: 0; }
.dental-3d .rest-stage .viewer-frame {
  width: 100%; height: auto; max-height: none; min-height: 0;
  aspect-ratio: 1; background: #35332d; scroll-margin-top: 108px;
}
.dental-3d .rest-stage .viewer-cover > img { object-fit: contain; }
.dental-3d .rest-stage .start-wrap { bottom: clamp(20px, 7%, 42px); }
.dental-3d .rest-stage button.model-hotspot:focus-visible { position: absolute; }
.dental-3d .rest-stage .viewer-status { margin-bottom: 5px; }
.dental-3d .rest-stage .view-chooser { margin: 10px 0 0; }
.dental-3d .rest-panels { min-width: 0; }
.dental-3d .rest-panel { margin: 0 0 30px; scroll-margin-top: 110px; }
.dental-3d .rest-panel h3 { font: 500 clamp(30px,2.6vw,41px)/1.1 var(--serif); }
.dental-3d .rest-panel > p { margin: 10px 0 18px; color: var(--body); }
.dental-3d .rest-points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.dental-3d .rest-points li {
  border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  padding: 6px 12px 12px;
}
.dental-3d .rest-interactive .rest-points li { cursor: pointer; }
.dental-3d .rest-interactive .rest-points li:hover { background: #f3eee7; }
.dental-3d .rest-points li.rest-selected { border-left-color: #187c79; background: #e4f0ed; }
.dental-3d .rest-points h4 { margin: 0; font: inherit; }
.dental-3d .rest-points button {
  min-height: 44px; border: 0; background: transparent; padding: 3px 0;
  color: var(--ink); font: 650 16px/1.4 var(--sans); text-align: left;
  display: inline-flex; align-items: center; gap: 11px;
}
.dental-3d .rest-points button:disabled { opacity: 1; }
.dental-3d .rest-points .rest-number {
  display: inline-grid; place-items: center; flex: 0 0 24px;
  width: 24px; height: 24px; border: 1px solid #b8aa96; border-radius: 50%;
  font: 600 10px/1 var(--sans); color: #624b2a;
}
.dental-3d .rest-selected .rest-number { background: #186d69; color: #fff; border-color: #186d69; }
.dental-3d .rest-points p { margin: 0 0 0 35px; font-size: 14px; color: var(--body); line-height: 1.65; }
.dental-3d .rest-sources { margin-top: 20px; font-size: 14px; }
.dental-3d .rest-sources summary { cursor: pointer; min-height: 44px; padding-block: 9px; }
.dental-3d .rest-sources a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .dental-3d .rest-interactive .rest-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .dental-3d .rest-stage .viewer-frame { max-width: 640px; margin: auto; }
}
@media (max-width: 620px) {
  .dental-3d .rest-choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dental-3d .rest-choice-image { aspect-ratio: 1.8; }
  .dental-3d .rest-choice-title { font-size: 13px; padding: 6px 0; overflow-wrap: anywhere; }
  .dental-3d .rest-stage .start-button { min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .dental-3d .rest-stage .start-wrap { bottom: 18px; left: 60px; right: 60px; }
  .dental-3d .rest-stage .image-brand { width: 48px; }
  .dental-3d .rest-points li { padding-inline: 8px; }
}
