.score {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f1f3ef;
  color: #52625a;
  font-size: 12px;
  font-weight: 700;
}

.score.recommended {
  background: var(--green);
  color: #fff;
}

.script-actions {
  justify-content: space-between;
}

.inline-status {
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}

.inline-status.error {
  color: #a6382a;
}

.topic-save-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  background: #edf5ef;
  border: 1px solid #cfe0d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topic-save-panel b,
.topic-save-panel small {
  display: block;
}

.topic-save-panel small {
  margin-top: 3px;
  color: var(--muted);
}

.topic-save-panel .primary {
  flex: 0 0 auto;
}

.creative-mode small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.reference-mode {
  margin-top: 14px;
}

.reference-summary {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #cfe0d4;
  border-radius: 10px;
  background: #f5faf5;
}

.reference-summary b {
  display: block;
  font-size: 13px;
  color: #2c5646;
}

.reference-summary p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.reference-summary ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
}

.shot-phase {
  grid-column: 2 / 4;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: -6px;
}

.shot:has(.shot-phase) {
  background: linear-gradient(90deg, #f0f7f1 0%, #fff 72%);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

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

  .topic-save-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
