.face-highlight-chip {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  min-height: 38px;
  max-width: calc(100% - 96px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #b6dac8;
  border-radius: 999px;
  background: #f0faf4;
  color: #175d42;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgb(26 71 49 / 8%);
  cursor: pointer;
}
.face-highlight-chip[hidden], #stage[aria-busy="true"] .face-highlight-chip { display: none; }
.face-highlight-chip:hover { background: #e4f4ea; }
.face-highlight-chip:focus-visible { outline: 2px solid #178354; outline-offset: 3px; }
.face-highlight-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.face-highlight-dot {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: #168455;
}
@media (pointer: coarse) {
  .face-highlight-chip { min-height: 44px; }
}

.preview-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-expand-toggle {
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  white-space: nowrap;
}
.preview-expand-toggle[hidden] { display: none; }
.preview-expand-toggle:focus-visible {
  outline: 2px solid #178354;
  outline-offset: 2px;
}
.expanded-preview {
  position: fixed;
  inset: 0;
  width: min(1200px, calc(100vw - 48px));
  height: min(880px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  color: #1e2421;
  background: #fff;
  border: 1px solid #d5ded9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgb(16 26 21 / 24%);
}
.expanded-preview::backdrop { background: rgb(20 31 25 / 47%); }
.editor-page .expanded-preview > .model-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: auto;
}
.expanded-preview .card-heading {
  padding: 12px 14px;
  background: #f4f5f4;
  border-bottom: 1px solid #e7ebe8;
}
.editor-page:not(.model-preview-only) .expanded-preview .model-card #stage {
  flex: 1 1 auto;
  min-height: 130px;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.expanded-preview #stage canvas { position: absolute; inset: 0; }
.expanded-preview .opening-controls, .expanded-preview .materials { flex-shrink: 0; }
@media (max-width: 600px) {
  .expanded-preview { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
@media (pointer: coarse) {
  .preview-expand-toggle { min-height: 44px; }
}
