.canvas-layout {
  color: #777b85;
  font:
    500 8px "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
}
.canvas-layout i {
  margin-right: 5px;
  color: #d65f9f;
}
.video-wrap > #outputVideo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.camera-overlay {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 16px;
  width: 25%;
  min-width: 145px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 2px solid #f4f2ee;
  border-radius: 8px;
  background: #07080a;
  box-shadow: 0 12px 40px #000c;
}
.camera-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-overlay span,
.output-label {
  position: absolute;
  padding: 5px 7px;
  background: #090a0dcc;
  color: #fff;
  font:
    700 7px "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
  backdrop-filter: blur(7px);
}
.camera-overlay span {
  left: 5px;
  bottom: 5px;
}
.output-label {
  z-index: 4;
  left: 16px;
  bottom: 16px;
  display: none;
}
.video-wrap.ai-live .output-label {
  display: block;
}
.output-label i {
  color: #ee65aa;
}
.placeholder:not([hidden]) ~ .output-label {
  display: none;
}
.stream-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.stream-settings label {
  font-size: 7px;
  margin-bottom: 6px;
}
.stream-settings select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #17191f;
  color: #ccc;
  font-size: 10px;
  outline: none;
}
.stream-settings select:focus {
  border-color: #a84689;
}
.stream-settings select:disabled {
  opacity: 0.5;
}
.performance-tip {
  display: flex;
  gap: 7px;
  margin: 9px 0 0;
  color: #747985;
  font-size: 9px;
  line-height: 1.45;
}
.performance-tip i {
  color: #df6aa7;
}
.obs-size {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #343039;
  background: #0b0c10;
}
.obs-size > i {
  font-size: 20px;
  color: #d462a3;
}
.obs-size span {
  display: flex;
  flex-direction: column;
  color: #777b84;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.obs-size strong {
  margin-top: 2px;
  color: #fff;
  font:
    700 13px "JetBrains Mono",
    monospace;
  letter-spacing: 0;
}
.broadcast.obs-ready {
  border-color: #365546;
  box-shadow: inset 0 0 40px #36b76a08;
}
.broadcast.obs-ready .outline {
  border-color: #3d8e63;
  color: #8ff0b7;
}
.broadcast.obs-ready .number {
  color: #335342;
}
.quote-price {
  display: block;
  margin-top: 10px;
  color: #ffb4d7;
  font:
    700 14px "JetBrains Mono",
    monospace;
}
.quote-price i {
  margin: 0 6px;
  color: #7a737c;
  font-style: normal;
}
.quote-price small {
  display: block;
  margin-top: 5px;
  color: #8c858e;
  font-size: 8px;
  letter-spacing: 0.07em;
}
.quote-price.loading {
  color: #9d98a0;
  font-size: 10px;
}
.fal-debug {
  margin-top: 16px;
  border-color: #4c3a55;
}
.fal-debug .panel-head button {
  border: 1px solid #49424b;
  background: transparent;
  color: #c6bec8;
  padding: 5px 9px;
  font:
    700 9px "JetBrains Mono",
    monospace;
  cursor: pointer;
}
#falDebugLog {
  max-height: 340px;
  overflow: auto;
  margin: 0;
  padding: 16px 18px;
  color: #b9e9cf;
  background: #090b0e;
  font:
    11px/1.55 "JetBrains Mono",
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.stage-foot #networkStatus {
  font-weight: 700;
}
.stage-foot .network-fast {
  color: #75ffb3;
}
.stage-foot .network-good {
  color: #f5d76e;
}
.stage-foot .network-low {
  color: #ff7a9d;
}
.ai-processing {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 42%,
    #17191f 0%,
    #08090d 58%,
    #030405 100%
  );
}
.processing-dots {
  position: absolute;
  inset: -12%;
  background-image: radial-gradient(circle, #ffffff 1.35px, transparent 1.8px);
  background-size: 20px 20px;
  opacity: 0.82;
  mask-image: radial-gradient(
    ellipse at 50% 45%,
    #000 0%,
    #0009 45%,
    transparent 73%
  );
  animation:
    processing-drift 3.2s linear infinite,
    processing-glow 1.8s ease-in-out infinite;
}
.processing-copy {
  position: absolute;
  right: 7%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #bfc5cf;
  font:
    700 10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.11em;
}
.processing-copy strong {
  min-width: 76px;
  padding: 11px 14px;
  border: 1px solid #373c47;
  border-radius: 99px;
  background: #14161b;
  box-shadow: 0 10px 24px #0008;
  color: #fff;
  font:
    700 20px Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  text-align: center;
}
.processing-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
}
.processing-error i {
  color: #ff729c;
  font-size: 32px;
}
.processing-error strong {
  font:
    700 15px "JetBrains Mono",
    monospace;
  letter-spacing: 0.12em;
}
.processing-error small {
  color: #a4a8b0;
  font-size: 12px;
}
.processing-error div {
  display: flex;
  gap: 9px;
  margin-top: 6px;
}
.processing-error button,
.processing-error a {
  border: 1px solid #4b5260;
  background: #181b21;
  color: #fff;
  padding: 10px 13px;
  font:
    700 9px "JetBrains Mono",
    monospace;
  letter-spacing: 0.09em;
  text-decoration: none;
  cursor: pointer;
}
.processing-error a {
  border-color: #87506b;
  color: #ffc1d8;
}
.ai-fullscreen {
  position: absolute;
  z-index: 7;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ffffff38;
  border-radius: 7px;
  background: #080a0dbd;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.18s;
}
.ai-fullscreen:hover {
  border-color: #fff;
  background: #252934;
}
.video-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: grid;
  place-items: center;
  background: #000;
  cursor: none;
}
.video-wrap:fullscreen #outputVideo {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
}
.video-wrap:fullscreen > :not(#outputVideo):not(#aiFullscreen) {
  display: none !important;
}
.video-wrap:fullscreen .ai-fullscreen {
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00000080;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.video-wrap:fullscreen.fullscreen-ui-visible {
  cursor: default;
}
.video-wrap:fullscreen.fullscreen-ui-visible .ai-fullscreen {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@keyframes processing-drift {
  to {
    transform: translate(20px, 20px);
  }
}
@keyframes processing-glow {
  50% {
    opacity: 0.38;
    filter: brightness(1.25);
  }
}
@media (max-width: 600px) {
  .camera-overlay {
    right: 9px;
    bottom: 9px;
    width: 34%;
    min-width: 105px;
  }
  .output-label {
    left: 9px;
    bottom: 9px;
  }
  .stream-settings {
    grid-template-columns: 1fr;
  }
  .obs-size strong {
    font-size: 11px;
  }
}
