body:has(dialog.guided-camera[open]) { overflow: hidden; }
.platform dialog.guided-camera {
  box-sizing: border-box;
  width: min(35rem, calc(100% - 1rem));
  height: min(52rem, calc(100dvh - 1rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: .75rem;
  border: 1px solid #354554;
  border-radius: .85rem;
  background: #090d12;
  color: #f4f6f8;
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}
.platform .guided-camera[open] {
  display: grid;
  grid-template-rows: auto minmax(8rem,1fr) auto auto auto;
  align-items: stretch;
  gap: .45rem;
}
.guided-camera::backdrop { background: #090d12dd; }
.guided-camera [hidden] { display: none !important; }
.platform .guided-camera :is(h2,p) { margin: 0; }
.platform .guided-camera h2 { font-size: 1.05rem; line-height: 1.3; color: #f4f6f8; }
.platform .guided-camera header p { margin-top: .2rem; font-size: .82rem; line-height: 1.38; color: #c1ccd7; }
.platform .guided-camera [data-camera-status] { font-size: .8rem; line-height: 1.35; color: #c1ccd7; }
.guided-camera [data-camera-status]:empty { display: none; }
.guided-camera .camera-view {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  container-type: size;
  min-width: 0;
  border: 1px solid #354554;
  border-radius: .65rem;
  background: #06090e;
  overflow: hidden;
}
.guided-camera .camera-frame {
  --camera-ratio: .5625;
  position: relative;
  width: min(100cqw, calc(100cqh * var(--camera-ratio)));
  aspect-ratio: var(--camera-ratio);
}
.guided-camera .camera-frame :is(video,img) {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.guided-camera .camera-guide {
  position: absolute;
  inset: 3% 4%;
  width: 92%;
  height: 94%;
  stroke: #b4ff00;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px #000);
  pointer-events: none;
}
.guided-camera .camera-mark { opacity: .68; }
.guided-camera .camera-counter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f4f6f8;
  font: 800 clamp(3rem, 14vmin, 6rem)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px #000, 0 0 22px #000;
  pointer-events: none;
}
.guided-camera :is(.camera-actions,.camera-controls) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .45rem;
}
.platform .guided-camera .camera-controls label {
  display: grid;
  min-width: 0;
  gap: .2rem;
  margin: 0;
  font-size: .8rem;
  line-height: 1.2;
  font-weight: 650;
}
.guided-camera .camera-controls label > span {
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  color: #c1ccd7;
}
.guided-camera :is(button,label) svg { flex: none; width: 1em; height: 1em; }
.guided-camera label svg { color: #7ec8f5; }
.platform .guided-camera :is(.camera-actions button,.camera-controls select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: .45rem .55rem;
  border: 1px solid #354554;
  border-radius: .55rem;
  background: #141b24;
  color: #f4f6f8;
  font-family: inherit;
  font-size: clamp(.82rem,3.75vw,.94rem);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.platform .guided-camera .camera-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  text-align: center;
}
.platform .guided-camera .camera-actions .camera-primary { background: #b4ff00; border-color: #b4ff00; color: #090d12; }
.platform .guided-camera :is(button,select):focus-visible { outline: 2px solid #7ec8f5; outline-offset: 2px; }
@media (hover:hover) {
  .platform .guided-camera .camera-actions button:hover:not(:disabled) { border-color: #b4ff00; }
  .platform .guided-camera .camera-actions .camera-primary:hover:not(:disabled) { background: #c7ff4d; }
}
@media (max-width:600px) {
  .platform dialog.guided-camera {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border-width: 0;
    padding: max(.55rem,env(safe-area-inset-top)) max(.55rem,env(safe-area-inset-right))
      max(.55rem,env(safe-area-inset-bottom)) max(.55rem,env(safe-area-inset-left));
  }
}
