.live-effects-trigger { margin: .75rem 0 0; }
#dialog:has(.live-effects-panel) {
  padding: 0;
  overflow: hidden;
  width: min(34rem, 92vw);
  box-sizing: border-box;
}
.live-effects-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 78vh;
  max-height: 78dvh;
}
.live-effects-heading {
  padding: 12px 16px;
  border-bottom: 1px solid #dec2c7;
}
#dialog .live-effects-heading h2 {
  margin: 0 0 8px;
  font-size: 23px;
}
.live-effects-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.live-effects-actions button {
  min-height: 40px;
  padding: 6px 9px;
}
.live-effects-actions .primary {
  margin-inline-start: auto;
}
.live-effects-controls {
  display: grid;
  gap: .75rem;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-effects-controls label[hidden] { display: none; }
.live-effects-controls label { margin: 0; }
.live-effects-controls input[type="checkbox"] { width: auto; }
.live-effects-controls canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 39vh;
  max-height: 39dvh;
  margin-inline: auto;
  object-fit: contain;
  background: #171116;
  border-radius: .65rem;
}
