.library-header {
  display: flex;
  align-items: center;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #817b6f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.language-picker select {
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  padding: 6px 28px 6px 10px;
  background: #fbf8f2;
  color: #4d4a42;
  cursor: pointer;
  font: inherit;
}

.story-meta .translation-badge {
  border-color: #c6a98e;
  background: #f0e6da;
  color: #72543d;
  text-transform: none;
}

.story-meta .original-language-badge {
  border-color: #c9c3b8;
  background: #eeeae2;
  color: #686258;
}

.translation-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -10px 0 30px;
  border: 1px solid #d8d0c4;
  border-radius: 16px;
  padding: 16px;
  background: #f2ede4;
  color: #514d45;
}

.translation-request-card strong {
  font-size: 14px;
}

.translation-request-card p {
  margin: 5px 0 0;
  color: #746d62;
  font-size: 13px;
}

.translation-request-button {
  min-height: 42px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.translation-request-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.translated-reader,
.wide-copy {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}

.translated-block,
.translated-block .scene-copy,
.translated-block .ending-summary,
.translated-block .objective-box,
.translated-block .lede {
  width: 100%;
  margin-inline: 0;
}

.translation-review-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  border-top: 1px solid #e4ddd2;
  padding-top: 14px;
}

.source-disclosure {
  min-width: 0;
  flex: 1;
}

.source-disclosure summary {
  width: fit-content;
  color: #746d62;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.source-disclosure summary::marker {
  color: #a19a8f;
}

.source-disclosure .hide-original,
.source-disclosure[open] .show-original {
  display: none;
}

.source-disclosure[open] .hide-original {
  display: inline;
}

.source-copy {
  margin-top: 14px;
  border-left: 2px solid #d8d0c4;
  padding: 4px 0 4px 16px;
  color: #6f695f;
}

.source-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #8a8377;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-copy .scene-copy {
  padding-top: 0;
  font-size: clamp(18px, 2.4vw, 22px);
}

.source-copy .objective-box,
.source-copy .ending-summary,
.source-copy .lede {
  width: 100%;
  margin-inline: 0;
}

.source-copy h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
}

.source-choices {
  margin-top: 18px;
  font-size: 14px;
}

.source-choices p {
  margin-bottom: 6px;
  font-weight: 600;
}

.source-choices ol {
  margin: 0;
  padding-left: 20px;
}

.translation-feedback-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.translated-reader .scene-feedback,
.translated-reader .choice-list,
.translated-reader .run-details,
.translated-reader .run-rating,
.translated-reader .run-more-feedback,
.translated-reader .ending-actions {
  width: 100%;
}

@media (max-width: 700px) {
  .translation-request-card {
    align-items: stretch;
    flex-direction: column;
  }

  .translation-request-button {
    width: 100%;
  }

  .translation-review-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .translation-feedback-link {
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  .library-header {
    gap: 8px;
  }

  .language-picker > span {
    display: none;
  }

  .translated-reader,
  .wide-copy {
    width: calc(100% - 40px);
  }
}
