.story-welcome {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  padding: 42px;
  background: #eaf0df;
  border: 1px solid #dce4d3;
  border-radius: 24px;
  overflow: hidden;
}
.story-welcome h2 {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.15;
  margin: 20px 0;
}
.story-welcome p {
  max-width: 470px;
  font-size: 15px;
  line-height: 1.75;
}
.story-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 30px;
  padding: 5px 10px;
  background: #f2f4ee;
  color: #46513d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
}
.story-welcome-actions,
.story-live-controls,
.story-next,
.story-turn-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.story-welcome-actions {
  margin-top: 25px;
}
.story-preview {
  background: #28392f;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 275px;
  padding: 25px;
  transform: rotate(2deg);
}
.story-preview p {
  font:
    italic 25px/1.4 Georgia,
    serif;
  color: #eef2e5;
  text-align: center;
  margin: 26px 0;
}
.story-preview > span {
  color: #c2d2b2;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.story-preview-wave {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.story-preview-wave i {
  display: block;
  height: var(--wave);
  width: 4px;
  background: #dffa98;
  border-radius: 5px;
}
.story-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 32px 0 40px;
}
.story-benefits article {
  border-top: 1px solid #d8dfd1;
  padding-top: 16px;
}
.story-benefits span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #627055;
}
.story-benefits h3 {
  margin: 10px 0 7px;
  font-size: 17px;
}
.story-benefits p {
  line-height: 1.7;
  font-size: 13px;
}
.story-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.story-section-heading > span {
  font-size: 12px;
  color: #5a674f;
}
.story-section-heading .story-pill {
  font-size: 10px;
}
.story-session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-session-card {
  text-align: left;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.story-session-card:hover {
  transform: translateY(-2px);
  border-color: #aabd98;
}
.story-session-card h3 {
  margin: 17px 0 8px;
  overflow-wrap: anywhere;
}
.story-session-card p {
  margin-bottom: 22px;
  font-size: 12px;
}
.story-session-card .text-link {
  font-size: 12px;
}
.story-empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed #c7d0bf;
  border-radius: 16px;
}
.story-empty p {
  margin-top: 8px;
}
.story-save-state {
  font-size: 11px;
  color: #5c6854;
  margin: -13px 0 23px;
}
.story-progress {
  display: flex;
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px;
  margin: 0 0 28px;
}
.story-progress button {
  flex: 1;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
}
.story-progress button[aria-current] {
  background: #eaf0df;
  color: #34452b;
  font-weight: 650;
}
.story-progress button span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #c4cdbb;
  font-size: 10px;
}
.story-progress button[aria-current] span {
  background: #31482c;
  border-color: #31482c;
  color: white;
}
.story-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}
.story-conversation,
.story-context,
.story-transcript {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-width: 0;
}
.story-question {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 15px 0 25px;
}
.story-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #d5e5c0, #a4bb91 60%, #7f9a71);
  box-shadow: 0 8px 32px #bdcfaa55;
  display: grid;
  place-items: center;
  margin: 6px 0 26px;
  color: #294622;
}
.story-orb .icon {
  width: 37px;
  height: 37px;
}
.story-orb.is-live {
  animation: story-breathe 2.5s ease-in-out infinite;
}
@keyframes story-breathe {
  50% {
    box-shadow:
      0 0 0 13px #dbe8ce66,
      0 8px 32px #bdcfaa55;
  }
}
.story-question h2 {
  font-size: 27px;
  max-width: 520px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.story-question p {
  font-size: 13px;
  max-width: 360px;
}
.story-live-controls {
  justify-content: center;
  margin-bottom: 28px;
}
.story-live-controls > .field-hint {
  text-align: center;
  width: 100%;
  font-size: 11px;
  line-height: 1.6;
}
.story-conversation form {
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.story-mode {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #586550;
}
.story-mode select {
  width: auto;
  min-height: 32px;
  background: #f8f9f5;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
#story-answer textarea {
  width: 100%;
  border: 1px solid #cbd3c3;
  border-radius: 10px;
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
}
.story-conversation .dialog-actions {
  margin-top: 14px;
}
.story-next {
  margin-top: 25px;
  justify-content: flex-end;
}
.story-context {
  background: #f0f3e9;
  padding: 24px;
}
.story-context section + section {
  border-top: 1px solid #d9e0d0;
  margin-top: 25px;
  padding-top: 24px;
}
.story-context h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 7px 0 10px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.story-context p {
  font-size: 12px;
  line-height: 1.7;
}
.story-context .story-section-heading {
  flex-wrap: wrap;
  gap: 5px;
}
.story-context .btn {
  font-size: 10px;
  min-height: 30px;
  padding: 5px 8px;
}
.story-memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.story-memory {
  padding: 0;
  text-align: left;
  min-width: 0;
}
.story-memory > span {
  display: block;
  width: 100%;
  height: 80px;
  border-radius: 8px;
  background: #e1e7d8;
  overflow: hidden;
}
.story-memory > span img,
.story-memory > span video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-memory > strong {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.story-memory .preview-missing {
  font-size: 9px;
  padding: 10px;
}
.story-memory .preview-missing .icon {
  width: 14px;
  height: 14px;
}
.story-transcript {
  margin-top: 28px;
}
.story-transcript > p {
  margin-top: 8px;
  font-size: 13px;
}
.story-turns {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.story-turn {
  padding: 18px;
  border-radius: 12px;
  max-width: 91%;
  background: #f2f5ec;
}
.story-turn.interviewer {
  background: #f6f6f3;
}
.story-turn.creator {
  margin-left: auto;
  width: 91%;
  background: #eff3e7;
}
.story-turn.is-excluded {
  background: #f0f0ee;
  border: 1px dashed #adb3a7;
}
.story-turn > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
}
.story-turn > div:first-child > span {
  font-size: 10px;
  color: #5b6553;
}
.story-turn p {
  color: #394433;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.story-turn-actions {
  margin-top: 14px;
  gap: 7px;
}
.story-turn-actions .btn {
  min-height: 32px;
  font-size: 10px;
  padding: 5px 9px;
  background: #fff;
}
.story-empty-copy {
  font-size: 13px;
  padding: 20px 0;
}
.story-review-intro {
  max-width: 680px;
  margin-bottom: 25px;
}
.story-review-intro h2 {
  margin: 10px 0;
  font-size: 30px;
}
.story-review-intro p {
  line-height: 1.8;
}
.story-review-intro .story-pill {
  margin-top: 12px;
}
.story-perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-perspective {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.story-perspective-number {
  font:
    italic 30px Georgia,
    serif;
  color: #76896a;
}
.story-perspective h3 {
  margin: 15px 0 10px;
  line-height: 1.4;
}
.story-perspective p {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.story-perspective details {
  margin: 20px 0;
  font-size: 11px;
  flex: 1;
}
.story-workspace details summary {
  cursor: pointer;
  color: #4b6340;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-workspace blockquote {
  font-size: 12px;
  border-left: 2px solid #a3b893;
  padding-left: 12px;
  margin: 12px 0;
  color: #58664d;
  white-space: pre-wrap;
  line-height: 1.8;
}
.story-reference-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  max-height: 230px;
  overflow: auto;
  margin: 18px 0;
}
.story-reference-picker legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 650;
}
.story-reference-picker p {
  font-size: 11px;
  margin-bottom: 10px;
}
.story-reference-picker > label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 12px;
}
.story-reference-picker input {
  width: 17px;
  height: 17px;
}
.story-reference-use {
  display: block;
  margin-top: 3px;
  color: #68735f;
  font-size: 10px;
}
.story-notice {
  padding: 18px;
  background: #f7f0df;
  border: 1px solid #e7dabc;
  border-radius: 10px;
  color: #675738;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.story-notice .btn {
  margin: 8px;
}
#story-source-playback audio {
  width: 100%;
  margin: 15px 0;
}
.story-production-link {
  border-top: 1px solid var(--line);
  margin: 30px 0 5px;
  padding-top: 20px;
  font-size: 12px;
}
.story-production-link p {
  margin-bottom: 8px;
}
.story-recording-note {
  font-size: 12px;
  line-height: 1.7;
  background: #f0f5e7;
  border-radius: 10px;
  padding: 16px;
}
@media (max-width: 1150px) {
  .story-perspective-grid,
  .story-session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-two-column {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  }
  .story-conversation,
  .story-context {
    padding: 22px;
  }
  .story-section-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 800px) {
  .story-welcome {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .story-preview {
    min-height: 215px;
    transform: none;
  }
  .story-benefits {
    gap: 18px;
  }
  .story-two-column {
    grid-template-columns: 1fr;
  }
  .story-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .story-context section + section {
    border-top: 0;
    margin: 0;
    padding: 0;
  }
  .story-context section:last-child {
    display: none;
  }
  .story-progress button {
    flex-direction: column;
    font-size: 10px;
    gap: 6px;
    padding: 8px 4px;
  }
}
@media (max-width: 520px) {
  .story-welcome {
    padding: 24px;
  }
  .story-benefits,
  .story-perspective-grid,
  .story-session-grid,
  .story-context {
    grid-template-columns: 1fr;
  }
  .story-benefits {
    gap: 20px;
  }
  .story-transcript,
  .story-conversation {
    padding: 20px;
  }
  .story-question h2 {
    font-size: 24px;
  }
  .story-turn,
  .story-turn.creator {
    max-width: 100%;
    width: 100%;
  }
  .story-mode {
    flex-wrap: wrap;
  }
  .story-progress {
    padding: 5px;
  }
  .story-next {
    justify-content: stretch;
  }
  .story-next .btn {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-orb.is-live {
    animation: none;
  }
  .story-session-card {
    transition: none;
  }
}
