.face-booth {
  --face-panel: var(--panel, #1b1d23);
  --face-border: var(--line, #363943);
  --face-lime: var(--lime, #d9ff64);
  --face-pink: var(--magenta, #ff8cda);
  color: var(--text, #f3f2eb);
  font-size: 1rem;
  line-height: 1.55;
}

.face-booth [hidden] {
  display: none !important;
}

.face-booth p,
.face-booth figure {
  margin: 0;
}

.face-booth .face-booth-intro {
  margin-bottom: 1rem;
  color: var(--muted, #bbbcc4);
}

.face-booth .face-booth-intro p + p {
  margin-top: .4rem;
}

.face-booth .face-booth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.face-booth .face-booth-camera,
.face-booth .face-booth-summary {
  display: grid;
  gap: .65rem;
  align-content: start;
  min-width: 0;
}

.face-booth .face-booth-preview {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #555766;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 38%, #30333c, #16171c 72%);
}

.face-booth .face-booth-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-booth .face-booth-guide {
  position: absolute;
  inset: 14% 29%;
  z-index: 1;
  border: 2px dashed var(--face-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 9rem #0c0c1488;
  opacity: .82;
  pointer-events: none;
}

.face-booth .face-booth-guide[data-aligned="true"] {
  border-style: solid;
  border-color: #a9dbef;
  box-shadow: 0 0 0 9rem #0c0c1466, inset 0 0 1rem #a9dbef59;
}

.face-booth .face-booth-tracking {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--face-pink);
  border-radius: .4rem;
  box-shadow: 0 0 0 1px #181119;
  pointer-events: none;
}

.face-booth .face-booth-preview-message {
  position: absolute;
  z-index: 3;
  inset: auto .55rem .55rem;
  padding: .4rem .55rem;
  border: 1px solid #ffffff36;
  border-radius: .38rem;
  background: #111118ed;
  color: var(--text, #f3f2eb);
  text-align: center;
  font-size: .875rem;
}

.face-booth .face-booth-status {
  min-height: 1.36rem;
  color: var(--muted, #bbbcc4);
  font-size: .875rem;
}

.face-booth .face-booth-empty,
.face-booth .face-booth-save-status {
  color: var(--muted, #bbbcc4);
  font-size: .9rem;
}

.face-booth .face-booth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.face-booth .face-booth-button {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid var(--face-lime);
  border-radius: .4rem;
  background: var(--face-lime);
  color: #171b12;
  font-size: .9rem;
  font-weight: 740;
}

.face-booth .face-booth-button:enabled:hover {
  background: #eaffad;
}

.face-booth .face-booth-button.secondary {
  border-color: #626574;
  background: var(--face-panel);
  color: var(--text, #f3f2eb);
}

.face-booth .face-booth-button.secondary:enabled:hover {
  border-color: var(--face-lime);
  background: #292f22;
  color: var(--face-lime);
}

.face-booth .face-booth-button:disabled {
  opacity: .55;
}

.face-booth .face-booth-card {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 18 / 25;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #555766;
  border-radius: 11px;
  background: var(--face-panel);
  box-shadow: 0 8px 19px #08090d80;
}

.face-booth .face-booth-card canvas {
  display: block;
  width: 100%;
  height: auto;
}

.face-booth .face-booth-summary > .face-booth-button {
  width: min(100%, 16rem);
  justify-self: center;
}

@media (max-width: 530px) {
  .face-booth .face-booth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .face-booth .face-booth-card {
    width: min(62vw, 12.5rem);
  }
}
