.seo-tool {
  padding-bottom: 12px;
}

.seo-tool__form {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  background: #fafafa;
}

.seo-tool__label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.seo-tool__row {
  display: flex;
  gap: 8px;
}

.seo-tool__row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #b9b9b9;
  border-radius: 6px;
}

.seo-tool__form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  resize: vertical;
  margin-bottom: 10px;
}

.seo-tool__row button {
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  background: #537b7b;
  color: #fff;
  cursor: pointer;
}

.seo-tool__row button.seo-tool__secondary {
  background: #6b6b6b;
}

.seo-tool__row button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.seo-tool__hint {
  margin: 8px 0 0;
  color: #5f5f5f;
  font-size: 0.92em;
}

.seo-tool__state {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 8px;
}

.seo-state--error {
  background: #fff0f0;
  border: 1px solid #f0c2c2;
  color: #8f2a2a;
}

.seo-state--loading {
  background: #eef6ff;
  border: 1px solid #c8dfff;
  color: #1b508b;
}

.seo-card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  background: #fff;
}

.seo-report__header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.seo-score {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f4040;
}

.seo-badge {
  display: inline-block;
  margin-right: 6px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8em;
}

.seo-badge--ok { background: #e8f8ea; color: #1a6e2f; }
.seo-badge--warning { background: #fff7e5; color: #9a6100; }
.seo-badge--error { background: #ffecec; color: #9c1f1f; }

.seo-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
}
