.review-studio {
  display: grid;
  margin-top: 22px;
  padding: 22px 0 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 22px 34px;
  border-bottom: 1px solid var(--line);
}
.review-intention-form { display: grid; align-content: start; gap: 9px; }
.review-intention-form label { display: grid; gap: 3px; }
.review-intention-form label span { color: var(--ink); font-size: .78rem; font-weight: 800; }
.review-intention-form label small { color: var(--muted); font-size: .66rem; }
.review-intention-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 104px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: .78rem;
  line-height: 1.55;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.review-intention-form textarea:focus {
  border-color: #3b7f6b;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(59 127 107 / 14%);
}
.review-intention-status { min-height: 16px; color: var(--muted); font-size: .62rem; }
.review-intention-status.is-saved { color: #167253; }
.review-intention-status.has-error { color: #ad4139; }
.review-generation-form { display: grid; align-content: start; gap: 12px; }
.review-format-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.review-format-controls button {
  display: grid;
  min-height: 92px;
  padding: 11px 8px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.review-format-controls button:hover:not(:disabled) {
  border-color: #4e8a77;
  background: #f4faf7;
  box-shadow: 0 8px 18px rgb(18 62 49 / 9%);
  transform: translateY(-2px);
}
.review-format-controls button:active:not(:disabled) { transform: translateY(0); }
.review-format-controls button:disabled { cursor: not-allowed; opacity: .45; }
.review-format-controls svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #1c6952;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-format-controls span { font-size: .67rem; font-weight: 800; }
.review-format-controls small { color: var(--muted); font-size: .55rem; }
.review-story-count { display: flex; margin: 0; padding: 0; align-items: center; justify-content: space-between; gap: 12px; border: 0; }
.review-story-count legend { float: left; color: var(--muted); font-size: .62rem; font-weight: 750; }
.review-story-count > div { display: flex; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; }
.review-story-count label { cursor: pointer; }
.review-story-count input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-story-count span { display: grid; width: 34px; height: 30px; place-items: center; border-right: 1px solid var(--line); font-size: .64rem; font-weight: 800; }
.review-story-count label:last-child span { border-right: 0; }
.review-story-count input:checked + span { color: #fff; background: #1c6952; }
.review-story-count input:focus-visible + span { outline: 2px solid #d89b32; outline-offset: -2px; }
.review-generation-status { min-height: 16px; margin: 0; color: var(--muted); font-size: .62rem; }
.review-generation-status.has-error { color: #ad4139; }
.review-generation-loading[hidden] { display: none !important; }
.review-generation-loading { display: grid; grid-column: 1 / -1; padding-top: 6px; gap: 18px; }
.review-loading-copy { display: flex; align-items: center; justify-content: center; gap: 12px; }
.review-loading-copy div { display: grid; gap: 2px; }
.review-loading-copy strong { font-size: .76rem; }
.review-loading-copy small { color: var(--muted); font-size: .62rem; }
.review-loading-orbit { width: 24px; height: 24px; border: 3px solid #c9dcd5; border-top-color: #1c6952; border-radius: 50%; animation: review-studio-spin .8s linear infinite; }
.review-loading-phones { display: grid; grid-template-columns: repeat(2, minmax(170px, 250px)); justify-content: center; gap: 24px; }
.review-loading-phones span {
  display: block;
  aspect-ratio: 9 / 16;
  border: 5px solid #23463b;
  border-radius: 22px;
  background: linear-gradient(100deg, #eef2ef 25%, #fff 42%, #eef2ef 60%);
  background-size: 220% 100%;
  animation: review-studio-shimmer 1.4s ease-in-out infinite;
}
.review-dislike-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 70px rgb(17 38 31 / 28%);
}
.review-dislike-dialog::backdrop { background: rgb(13 28 23 / 58%); backdrop-filter: blur(3px); }
.review-dislike-form { display: grid; padding: 20px; gap: 11px; }
.review-dislike-form header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.review-dislike-form header small { color: #ad4139; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.review-dislike-form h2 { margin: 3px 0 0; font-size: 1.18rem; }
.review-dislike-form p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.review-dislike-form label { font-size: .66rem; font-weight: 800; }
.review-dislike-form textarea { min-height: 112px; padding: 11px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; font-size: .72rem; }
.review-dislike-form textarea:focus { border-color: #b65349; outline: 0; box-shadow: 0 0 0 3px rgb(182 83 73 / 12%); }
.review-dislike-close { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 1.1rem; cursor: pointer; }
.review-dislike-status { min-height: 16px; color: #ad4139; font-size: .62rem; }
.review-dislike-form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.review-dislike-form footer button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; font-size: .65rem; font-weight: 800; cursor: pointer; }
.review-dislike-cancel { color: var(--ink); background: #fff; }
.review-dislike-confirm { color: #fff; border-color: #a73c35 !important; background: #a73c35; }
@keyframes review-studio-spin { to { transform: rotate(360deg); } }
@keyframes review-studio-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .review-format-controls button, .review-loading-orbit, .review-loading-phones span { animation: none; transition: none; }
}
@media (max-width: 820px) {
  .review-studio { grid-template-columns: 1fr; }
  .review-format-controls button { min-height: 82px; }
}
@media (max-width: 520px) {
  .review-studio { margin-top: 16px; padding: 18px 0 22px; gap: 20px; }
  .review-format-controls { grid-template-columns: 1fr; }
  .review-format-controls button { min-height: 58px; grid-template-columns: auto 1fr auto; justify-items: start; padding: 10px 12px; }
  .review-format-controls button small { justify-self: end; }
  .review-story-count { align-items: start; flex-direction: column; }
  .review-story-count > div { width: 100%; }
  .review-story-count label { flex: 1; }
  .review-story-count span { width: 100%; }
  .review-loading-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.review-compose, .review-inbox { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 64px; }
.review-runtime-state { display: flex; max-width: 620px; margin: 24px auto 0; padding: 16px; align-items: center; gap: 12px; border: 1px solid #e2c690; border-radius: 7px; color: #604b21; background: #fffaf0; }
.review-runtime-state > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #f5e8cc; }
.review-runtime-state svg { width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-runtime-state strong { font-size: .74rem; }
.review-runtime-state p { margin: 3px 0 0; color: #7d6840; font-size: .65rem; line-height: 1.45; }
.review-generator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.review-generator-card { display: flex; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex-direction: column; gap: 14px; }
.review-generator-card > header { display: flex; align-items: center; gap: 11px; }
.review-generator-card h2, .review-generator-card p { margin: 0; }
.review-generator-card h2 { font-size: .98rem; }
.review-generator-card p { color: var(--muted); font-size: .66rem; }
.generator-icon { display: grid; width: 36px; height: 36px; border-radius: 7px; color: #0d5c48; background: #e8f5ef; place-items: center; font-size: 1.2rem; }
.generator-icon svg { width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-generator-card > label { display: grid; color: var(--ink); font-size: .65rem; font-weight: 800; gap: 6px; }
.review-generator-card textarea { width: 100%; min-height: 112px; padding: 10px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: #fbfcfb; font: inherit; font-size: .72rem; line-height: 1.5; box-sizing: border-box; }
.review-generator-card textarea:focus, .review-reference-input input:focus { border-color: #2b8066; outline: 0; box-shadow: 0 0 0 3px rgb(43 128 102 / 11%); }
.review-reference-input input { min-width: 0; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 6px; background: #f7faf8; font: inherit; font-size: .64rem; }
.review-reference-input small { color: var(--muted); font-weight: 500; }
.review-generator-card > button { min-height: 40px; margin-top: auto; border: 0; border-radius: 6px; color: #fff; background: #116b50; font: inherit; font-size: .68rem; font-weight: 850; cursor: pointer; }
.review-generator-card > button:hover { background: #0b5741; }
.review-generator-card.is-submitting > button { color: transparent; background: #c6ddd5; position: relative; }
.review-generator-card.is-submitting > button::after { position: absolute; inset: 50% auto auto 50%; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: #116b50; border-radius: 50%; content: ""; animation: review-studio-spin .75s linear infinite; transform: translate(-50%, -50%); }
.review-job-board { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-job-board > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.review-job-board h2 { margin: 2px 0 0; font-size: .9rem; }
.review-job-board a { color: #116b50; font-size: .66rem; font-weight: 800; text-decoration: none; }
.review-job-list { display: grid; margin-top: 12px; gap: 8px; }
.review-job-list article { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.5fr) 44px 80px; align-items: center; padding: 10px 12px; border: 1px solid #e2e9e5; border-radius: 6px; gap: 12px; }
.review-job-list article div { display: grid; gap: 2px; }
.review-job-list article strong, .review-job-list article b { font-size: .68rem; }
.review-job-list article small, .review-job-list article span { color: var(--muted); font-size: .6rem; }
.review-job-list progress { width: 100%; height: 7px; accent-color: #1f9b72; }
.review-jobs-empty { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.review-batch { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-batch > header { display: flex; justify-content: space-between; gap: 20px; padding: 2px 2px 14px; border-bottom: 1px solid var(--line); }
.review-batch > header small, .review-batch > header p { color: var(--muted); font-size: .62rem; }
.review-batch > header h2, .review-batch > header p { margin: 2px 0 0; }
.review-batch > header h2 { font-size: .92rem; }
.review-batch > header > span { align-self: start; padding: 5px 8px; border-radius: 5px; color: #17634e; background: #e8f5ef; font-size: .6rem; font-weight: 800; white-space: nowrap; }
.review-phone-card.is-story-series > header span { color: #116b50; }
.review-phone-card.is-story-series .review-phone-screen { scroll-behavior: smooth; overscroll-behavior-x: contain; }
.review-series-navigation { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-top: 8px; }
.review-series-navigation button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: #fff; cursor: pointer; }
.review-series-navigation button:hover:not(:disabled) { border-color: #2b8066; color: #116b50; background: #f3faf7; }
.review-series-navigation button:disabled { opacity: .32; cursor: default; }
.review-series-navigation button:focus-visible { outline: 3px solid rgb(43 128 102 / 18%); outline-offset: 2px; }
.review-series-navigation svg { width: 17px; height: 17px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-series-navigation > span { color: var(--ink-soft); font-size: .66rem; font-weight: 700; text-align: center; }
.review-series-navigation > span strong { color: var(--ink); }
.review-series-rule { display: flex; margin-top: 9px; padding: 10px; align-items: center; gap: 9px; border: 1px solid #cde6dc; border-radius: 7px; color: #164f40; background: #f1f9f6; }
.review-series-rule > svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-series-rule > div { display: grid; min-width: 0; gap: 2px; }
.review-series-rule strong { font-size: .65rem; }
.review-series-rule span { color: #477266; font-size: .58rem; line-height: 1.4; }
.review-date-control { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; margin-top: 10px; }
.review-date-control label, .review-date-control aside { display: grid; padding: 9px; border: 1px solid var(--line); border-radius: 6px; gap: 5px; font-size: .6rem; }
.review-date-control input { width: 100%; min-width: 0; border: 0; color: var(--ink); background: transparent; font: inherit; }
.review-date-control aside { color: var(--muted); background: #f7faf8; }
.review-date-control aside strong { color: var(--ink); }
.review-date-control aside p, .review-date-control aside ul { margin: 0; padding: 0; font-size: .58rem; line-height: 1.45; }
.review-date-control aside ul { padding-left: 14px; }
.review-simple-actions .prompt-vote-controls {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  width: 100%; gap: 14px; padding: 12px 0; border: 0; background: transparent;
}
.review-simple-actions .prompt-vote-button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 52px; width: 52px; height: 52px; min-height: 52px; padding: 0;
  border: 1px solid #dfe7e4; border-radius: 16px; background: #fff;
  color: #536760; box-shadow: 0 2px 5px rgb(20 45 36 / 4%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.review-simple-actions .prompt-vote-button svg {
  display: block; width: 23px; height: 23px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.review-simple-actions .prompt-vote-like { color: #15775b; background: #eff8f4; border-color: #d4e9df; }
.review-simple-actions .prompt-vote-dislike { color: #9b5059; background: #fcf3f4; border-color: #efdee1; }
.review-simple-actions .prompt-vote-button:focus-visible { outline: 3px solid #85b7da; outline-offset: 3px; }
@media (hover: hover) {
  .review-simple-actions .prompt-vote-button:hover { transform: translateY(-2px); }
  .review-simple-actions .prompt-vote-like:hover { background: #dff1e9; border-color: #96cbb5; }
  .review-simple-actions .prompt-vote-dislike:hover { background: #f7e5e8; border-color: #dbadb5; }
}
.review-simple-actions .prompt-vote-button:active { transform: scale(.94); }
.review-simple-actions .prompt-vote-button:disabled { opacity: .55; cursor: wait; transform: none; }
.review-simple-actions .prompt-vote-status { flex-basis: 100%; text-align: center; min-height: 18px; font-size: 12px; }
.review-dislike-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #e1e6e3; border-radius: 8px; padding: 0; box-shadow: 0 24px 80px rgb(16 35 28 / 22%); }
.review-dislike-dialog[open] { animation: review-dialog-enter 180ms ease-out; }
.review-dislike-form { padding: 26px; gap: 16px; }
.review-dislike-form h2 { font-size: 21px; line-height: 1.3; }
.review-dislike-form p { font-size: 14px; }
.review-dislike-form label { font-size: 13px; }
.review-dislike-form textarea { min-height: 140px; font-size: 16px; line-height: 1.5; background: #fafcfb; }
.review-dislike-form footer button { min-height: 44px; font-size: 13px; }
.review-dislike-close { flex-shrink: 0; }
@keyframes review-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .review-dislike-dialog[open], .review-simple-actions .prompt-vote-button { animation: none; transition: none; }
}
@media (max-width: 900px) { .review-generator-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .review-compose, .review-inbox { width: min(100% - 24px, 1180px); padding-top: 22px; }
  .review-job-list article { grid-template-columns: 1fr 42px; }
  .review-job-list article progress { grid-column: 1 / -1; grid-row: 2; }
  .review-job-list article > span { justify-self: end; }
  .review-date-control { grid-template-columns: 1fr; }
}
