.surface-map path[data-restored] { stroke:#115385; stroke-width:1.45; }
.dialog-box.tooth3d-dialog { width:min(1020px, calc(100vw - 30px)); max-width:none; }
.tooth3d-body { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(15rem,1fr); gap:18px; }
.tooth3d-view { min-width:0; align-self:start; overflow:hidden; border:1px solid var(--dp-line); border-radius:14px; background:radial-gradient(ellipse at 45% 35%,#e9f6ff,#c5d7e7); color:#162e47; }
.clinic-branded:not(.clinic-theme-white) .tooth3d-view { background:radial-gradient(ellipse at 45% 35%,#30475c,#152536); color:#e8f2fa; }
.tooth3d-stage { position:relative; isolation:isolate; background:radial-gradient(ellipse at 48% 37%,#273e55,#0d1b2c 78%); color:#edf4fb; }
.clinic-theme-white .tooth3d-stage { background:radial-gradient(ellipse at 48% 37%,#e9f3fb,#a6bed1 100%); color:#162e47; }
.tooth3d-stage::before { position:absolute; z-index:-1; content:""; inset:auto 22% 6%; height:9%; background:radial-gradient(ellipse,#050d185a,transparent 67%); pointer-events:none; }
.tooth3d-status { position:absolute; inset:50% 0 auto; transform:translateY(-50%); margin:0; padding:0 16px; text-align:center; pointer-events:none; }
.tooth3d-status button { display:block; margin:8px auto 0; pointer-events:auto; }
.tooth3d-plan-label {
  position:absolute;
  top:12px;
  inset-inline-start:12px;
  padding:5px 8px;
  border-radius:8px;
  color:var(--dp-warning-text, #714c0a);
  background:var(--dp-warning-bg, #fff4d8);
  font-size:.8125rem;
}
.tooth3d-view canvas[hidden], .tooth3d-status button[hidden] { display:none; }
.tooth3d-toolbar button[aria-pressed="true"] {
  color:var(--dp-link, #225e9f);
  background:var(--dp-selected, #e4f0fc);
  border-color:currentColor;
}
.tooth3d-view canvas { display:block; width:100%; height:clamp(280px,55vh,510px); cursor:grab; touch-action:none; }
.tooth3d-stage.is-dragging canvas { cursor:grabbing; }
.tooth3d-view canvas:focus-visible { outline:2px solid var(--dp-link); outline-offset:-4px; }
.tooth3d-toolbar { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; padding:9px; background:var(--dp-panel); border-top:1px solid var(--dp-line); }
.tooth3d-toolbar button { padding:5px 10px; font:inherit; min-height:36px; color:var(--dp-text); background:var(--dp-surface); border:1px solid var(--dp-line); border-radius:8px; cursor:pointer; }
.tooth3d-details { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.tooth3d-details p,.tooth3d-details h3 { margin:0; }
.tooth3d-model-credit { font-size:.8125rem; color:var(--dp-link); text-underline-offset:2px; }
.tooth3d-details ul { display:grid; gap:6px; padding:0; margin:0; width:100%; list-style:none; }
.tooth3d-details li { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.tooth3d-details li small { color:var(--dp-muted); }
.tooth3d-symbols > li {
  display: block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--dp-line, #d1e0ec);
  line-height: 1.5;
}
.tooth3d-symbols small { display: block; }
.tooth3d-surface {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  padding: 7px 8px;
  border: 1px solid var(--dp-line, #d1e0ec);
  border-radius: 8px;
  background: var(--dp-panel, #f4f8fc);
  color: inherit;
  font: inherit;
  text-align: start;
}
.tooth3d-surface:hover { border-color: var(--dp-link, #235bac); }
.tooth3d-absent { padding:40px 16px; text-align:center; }
@media(max-width:680px){.tooth3d-body{grid-template-columns:1fr}.tooth3d-view canvas{height:clamp(230px,38vh,345px)}}
