.demo-camera {
  container-type: inline-size;
  color: #f0effa;
  background: #161622;
  border: 1px solid #373545;
  border-radius: 16px;
  overflow: hidden;
}
.demo-camera-stage { isolation: isolate; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #24223a; }
.demo-camera-landscape { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-camera-stage::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(180deg, #11112545, transparent 24%, transparent 72%, #10101970);
}
.demo-camera-live {
  position: absolute; top: 5%; left: 4%; display: inline-flex; align-items: center; gap: .55em;
  padding: .32em .68em; font-size: clamp(10px, 1.6cqi, 13px); line-height: 1.4; font-weight: 680;
  color: #fff4ef; background: #201b2be6; border: 1px solid #ffffff4d; border-radius: 5px;
}
.demo-camera-live::before { content: ""; width: .53em; height: .53em; border-radius: 50%; background: #ff847e; }
.demo-camera-frame {
  display: block; position: absolute; left: 3.8%; bottom: 4%; width: 40%;
  overflow: visible; filter: drop-shadow(0 5px 9px #0b071e88);
}
.demo-camera-rim { fill: none; stroke-width: 4; }
.demo-camera-frame[data-shape="mask"] { filter: none; }
.demo-camera-frame[data-shape="mask"] .demo-camera-rim { display: none; }
.demo-camera-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.demo-camera-tools[hidden] { display: none; }
.demo-camera-shapes {
  display: inline-flex; flex-wrap: wrap; gap: 4px; min-inline-size: 0; max-width: 100%; padding: 3px; margin: 0;
  border: 1px solid #383747; border-radius: 11px; background: #10101a;
}
.demo-camera-choice { position: relative; min-width: 0; }
.demo-camera-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.demo-camera-chip, .demo-camera-mirror {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px;
  padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; color: #b9b8cb;
  font: inherit; font-size: 14px; font-weight: 540; line-height: 1.35; text-align: center; cursor: pointer;
}
.demo-camera-chip { height: 100%; }
.demo-camera-choice input:checked + .demo-camera-chip { color: #faf5ff; border-color: #8d6adb; background: #3c2c58; }
.demo-camera-choice input:not(:checked):hover + .demo-camera-chip, .demo-camera-mirror:hover { color: white; background: #242334; }
.demo-camera-choice input:focus-visible + .demo-camera-chip, .demo-camera-mirror:focus-visible { outline: 2px solid #9cdffc; outline-offset: 2px; }
.demo-camera-mirror { margin-left: auto; background: #1b1a28; border-color: #383747; }
.demo-camera-mirror[aria-pressed="true"] { background: #1b3b42; color: #b3f4f4; border-color: #59828e; }
.demo-camera-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.demo-camera-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 525px) {
  .demo-camera-tools { align-items: flex-start; padding: 10px; gap: 7px; }
  .demo-camera-shapes { gap: 1px; }
  .demo-camera-chip, .demo-camera-mirror { font-size: 13px; padding: 6px 8px; }
  .demo-camera-mirror { margin-left: 0; }
}
@container (max-width: 450px) {
  .demo-camera-frame { width: 44%; }
  .demo-camera-tools { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo-camera-shapes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.15fr); }
  .demo-camera-mirror { justify-self: start; }
}
@container (max-width: 360px) {
  .demo-camera-chip { flex-direction: column; gap: 3px; padding: 6px 4px; overflow-wrap: anywhere; }
}
