.reel-open {
  display: block;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.compare pre,
.panel pre {
  max-height: 420px;
  margin: 8px 0;
  padding: 12px;
  overflow: auto;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  white-space: pre-wrap;
}

.candidate-tools {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  align-items: start;
}

.candidate-tools h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.discovery-search {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.discovery-search-form {
  align-items: end;
}

.discovery-search-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.field-grow {
  flex: 1;
  min-width: 260px;
}

.field-grow input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font-size: 16px;
}

.search-submit {
  min-height: 42px;
}

.ai-query-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.outreach-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-editor {
  margin-bottom: 18px;
}

.prompt-editor h2,
.prompt-editor p {
  margin: 0;
}

.prompt-editor textarea {
  min-height: 190px;
  line-height: 1.5;
}

.prompt-version {
  margin-top: 10px;
}

.prompt-version h3 {
  margin: 12px 0 6px;
}

.prompt-version pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}

.automation-editor {
  margin-bottom: 18px;
}

.automation-editor h2,
.automation-editor p {
  margin: 0;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .automation-grid {
    grid-template-columns: 1fr;
  }
}

.outreach-section h3,
.outreach-section p {
  margin: 0;
}

.outreach-reason {
  padding: 13px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  white-space: pre-wrap;
}

.outreach-message {
  min-height: 220px;
  line-height: 1.5;
}

.outreach-message-static {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.outreach-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.outreach-actions form {
  flex: 1;
}

.outreach-actions .button {
  width: 100%;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-superseded {
  background: var(--surface-2);
  color: var(--muted);
}

@media (max-width: 800px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .candidate-tools {
    grid-template-columns: 1fr;
  }

  .discovery-search {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
