.llms-tool-page .site-wrap {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.llms-tool-page .panel {
  padding: 28px;
  border-radius: 24px;
}

.llms-hero {
  margin: 28px 0 48px;
}

.llms-hero h1 {
  margin: 6px 0 12px;
}

.llms-hero .hero-copy {
  max-width: 820px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 22px;
}

.llms-form {
  margin-top: 20px;
}

.llms-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.llms-input-row input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d7deea;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.llms-input-row input:focus {
  border-color: #7c9cff;
  box-shadow: 0 0 0 4px rgba(124, 156, 255, 0.14);
}

.llms-input-row button,
.result-actions .btn-primary,
.result-actions .btn-secondary {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.llms-input-row button:active,
.result-actions .btn-primary:active,
.result-actions .btn-secondary:active {
  transform: translateY(1px) scale(0.99);
}

.llms-input-row button {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14);
}

.llms-input-row button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.llms-note {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
}

.status-box {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.status-box.is-loading {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.status-box.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.status-box.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.result-box {
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.05);
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.result-top h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.result-summary {
  margin: 0;
  color: #6b7280;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.result-actions .btn-primary {
  background: #111827;
  color: #fff;
}

.result-actions .btn-secondary {
  background: #eef2ff;
  color: #1f2937;
}

.preview-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
}

.preview-head {
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
}

.preview-output {
  margin: 0;
  padding: 18px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .llms-tool-page .panel {
    padding: 20px;
  }

  .llms-input-row {
    grid-template-columns: 1fr;
  }

  .result-top {
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
  }

  .result-actions .btn-primary,
  .result-actions .btn-secondary,
  .llms-input-row button {
    width: 100%;
  }
}