/* The free tools' form, on top of compare/style.css. */
.tool {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0 32px;
  background: #fff;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.tool-grid .wide {
  grid-column: 1 / -1;
}
.tool label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.tool .hint {
  font-weight: 400;
  color: #666;
}
.tool input,
.tool textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #fff;
  color: #171717;
}
.tool textarea {
  min-height: 140px;
  resize: vertical;
}
.tool input:focus-visible,
.tool textarea:focus-visible {
  outline: 2px solid #0070f3;
  outline-offset: 1px;
}
.tool button {
  font: inherit;
  font-weight: 600;
  margin-top: 16px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #0070f3;
  color: #fff;
  cursor: pointer;
}
.tool button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.tool button.secondary {
  background: #fff;
  color: #171717;
  border: 1px solid #d4d4d4;
  margin-top: 0;
}
.tool-status {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  min-height: 1.4em;
}
.letter {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
/* The CV score on /ai-cv-checker: the total, then one row per category. */
.score-total {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.score-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}
.score-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.score-strong { color: var(--green); }
.score-fair { color: #9a6700; }
.score-weak { color: #b42318; }
/* The Lebenslauf tool on /de/lebenslauf-vorlage: layout cards with a
   preview, repeatable entries, and the Word downloads above the form. */
.word-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}
.secondary-cta {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}
.secondary-cta:hover {
  background: var(--tint);
  box-shadow: none;
}
.tool-heading {
  margin-top: 0;
}
.tool h3 {
  font-size: 15px;
  margin: 22px 0 10px;
}
.template-pick {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.template-pick legend {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.template-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-weight: 400 !important;
}
.template-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--tint);
}
.template-option input {
  width: auto;
  align-self: flex-start;
}
.template-option img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.template-option span {
  font-size: 13px;
  color: var(--muted);
}
.entries {
  display: grid;
  gap: 12px;
}
.entry {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 0;
}
.entry .remove-entry,
.tool .add-entry {
  height: 34px;
  font-size: 13px;
  font-weight: 500;
}
.tool .add-entry {
  margin-top: 10px;
}
.entry .remove-entry {
  margin-top: 10px;
}
.tool textarea.short {
  min-height: 84px;
}
.tool select,
.tool input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #fff;
  color: #171717;
}
@media (max-width: 600px) {
  .template-pick {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
