.modal.production-review {
  width: min(630px, calc(100% - 26px));
  max-height: calc(100dvh - 26px);
  padding: 0;
  border: 1px solid #e5d7c6;
  border-radius: 24px;
  background: #fcf7ed;
  color: #29213a;
  color-scheme: light;
  box-shadow: 0 18px 60px #281c3b40;
}
.modal.production-review[open] { display: flex; flex-direction: column; overflow: hidden; }
.modal.production-review::backdrop { background: #201633a6; }
.production-review .modal-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  flex: none;
  align-items: center;
  padding: 11px 19px;
  border-bottom: 1px solid #eadecd;
  background: #fcf7ed;
}
.production-review .modal-header h2 { grid-column: 2; text-align: center; font: 800 17px/1.3 var(--display, var(--sans)); }
.production-review .modal-header .icon-button { grid-area: 1 / 1; min-width: 44px; min-height: 44px; border-color: transparent; background: transparent; color: #4a346c; }
.production-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.review-scroll { flex: 1 1 auto; overflow: auto; padding: 19px 19px 16px; }
.review-story > p { color: #593978; font-size: 13px; font-weight: 720; }
.review-story > h3 {
  margin-block: 4px 8px;
  color: #29213a;
  font: 800 clamp(27px, 6.3vw, 36px)/1.18 var(--display, var(--sans));
  letter-spacing: -.023em;
  overflow-wrap: anywhere;
}
.review-story > span { color: #62546c; font-size: 13px; font-weight: 610; font-variant-numeric: tabular-nums; }
.review-friends {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 8px;
  border: 1px solid #ebdae9;
  border-radius: 12px;
  background: #f5e9f5;
  color: #49315e;
  font-size: 13px;
}
.review-friends > span { display: flex; flex: none; }
.review-friends img { width: 31px; height: 32px; padding: 2px; border: 1px solid #fffaf4; border-radius: 50%; background: #eaddef; object-fit: contain; }
.review-friends img + img { margin-left: -4px; }
.review-styles {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.review-styles legend { margin: 0 0 6px; padding: 0; color: #49315e; font-size: 13px; font-weight: 750; }
.review-styles label { position: relative; min-width: 0; cursor: pointer; }
.review-styles input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-styles label > span {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #d7c6da;
  border-radius: 11px;
  background: #fffdf8;
  color: #452f5b;
}
.review-styles label > span > span { display: grid; gap: 2px; min-width: 0; }
.review-styles label .icon { width: 18px; height: 18px; }
.review-styles strong { font-size: 14px; }
.review-styles small { color: #62546c; font-size: 11px; line-height: 1.18; }
.review-styles input:checked + span { border-color: #7951a0; background: #f0e4f7; box-shadow: inset 0 0 0 1px #7951a0; }
.review-styles input:focus-visible + span { outline: 3px solid #8960b7; outline-offset: 2px; }
.review-caption { margin-top: 13px; color: #695c74; font-size: 12px; }
.review-scenes { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.review-scene-button {
  display: grid;
  width: 100%;
  min-height: 105px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid #e9dccc;
  border-radius: 15px;
  background: #fffdf8;
  text-align: left;
}
.review-scene-button:hover { border-color: #b99ac9; }
.review-frame {
  --frame-sky: #8f77b6;
  --frame-ground: #302353;
  position: relative;
  display: block;
  width: 100%;
  min-height: 90px;
  aspect-ratio: 1.5;
  overflow: hidden;
  isolation: isolate;
  border-radius: 9px;
  background: radial-gradient(ellipse at 74% 17%, #ffffff60, transparent 23%), linear-gradient(145deg, var(--frame-sky), var(--frame-ground));
}
.review-frame[data-theme="amber"] { --frame-sky: #d4a27a; --frame-ground: #69405d; }
.review-frame[data-theme="moss"] { --frame-sky: #92ac8d; --frame-ground: #424166; }
.review-frame[data-theme="azure"] { --frame-sky: #7faec8; --frame-ground: #333c71; }
.review-frame[data-theme="peach"] { --frame-sky: #df9c9b; --frame-ground: #643d70; }
.review-frame[data-theme="indigo"] { --frame-sky: #777ec0; --frame-ground: #28224c; }
.review-frame[data-theme="teal"] { --frame-sky: #82b7a5; --frame-ground: #2c5267; }
.review-frame-rendered { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-frame-cast { display: flex; height: 100%; align-items: center; justify-content: center; gap: 3px; padding: 7px 12px; }
.review-frame-child {
  display: grid;
  width: min(51%, 85px);
  max-height: 77%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #fff0d599;
  border-radius: 50%;
  background: #e2cef6;
  color: #503970;
  object-fit: cover;
  object-position: center 40%;
}
.review-frame[data-style="portrait"] .review-frame-child { border-radius: 12px; }
.review-frame-friend { align-self: end; width: 19%; height: 48%; object-fit: contain; }
.review-expand { position: absolute; right: 5px; bottom: 5px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: #251934d6; color: #f9ebff; }
.review-expand .icon { width: 15px; height: 15px; }
.review-scene-copy { display: grid; gap: 4px; min-width: 0; padding-right: 3px; }
.review-scene-copy small { color: #704a8a; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.review-scene-copy strong { color: #29213a; font: 800 15px/1.27 var(--display, var(--sans)); overflow-wrap: anywhere; }
.review-scene-copy > span { color: #61546b; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.review-scene-expanded .review-scene-button { grid-template-columns: 1fr; }
.review-scene-expanded .review-frame { aspect-ratio: 16 / 9; }
.review-scene-expanded .review-frame-child { width: min(47%, 160px); }
.review-scene-expanded .review-scene-copy { padding: 3px 5px; }
.review-excerpt > img { display: block; width: 100%; margin: 12px 0; border-radius: 13px; }
.review-excerpt > p { color: #62546c; font-size: 15px; }
.review-portrait { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 9px; border-radius: 12px; background: #f5e9f5; color: #49315e; }
.review-portrait img { flex: none; border-radius: 50%; object-fit: cover; }
.review-portrait p { color: #62546c; font-size: 12px; }
.review-footer { flex: none; padding: 10px 19px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #eadecd; background: #fffbf2; }
.review-footer p { margin: 0 0 5px; color: #62546c; font-size: 13px; }
.review-footer p.review-error { color: #8a3455; }
.review-footer .button.primary { width: 100%; min-height: 48px; border-color: #4a346c; background: #4a346c; color: #fff9ea; }
.review-footer .button.primary:hover:not(:disabled) { border-color: #5e457c; background: #5e457c; }
@media (max-width: 580px) {
  .modal.production-review { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .production-review .modal-header { padding-top: max(5px, env(safe-area-inset-top)); }
  .review-scroll { padding: 14px 14px 12px; }
  .review-footer { padding-inline: 14px; }
}
