.arvore-ai-wrap {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 14px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.arvore-ai-card {
  background: #ffffff;
  border: 1px solid #dde7df;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(23, 57, 34, 0.05);
  padding: 24px 24px 26px;
}

.arvore-ai-badge {
  width: fit-content;
  margin: 0 auto 12px;
  background: #eef7f0;
  color: #2d6d3f;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

.arvore-ai-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #174b27;
}

.arvore-ai-card > p {
  text-align: center;
  color: #55685d;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
  margin: 14px auto 20px;
}

.arvore-ai-progress {
  width: 100%;
  height: 8px;
  background: #edf2ee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.arvore-ai-progress span,
#arvore-ai-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2f7c45, #44b55f);
  border-radius: inherit;
  transition: width .25s ease;
}

.arvore-ai-feedback {
  min-height: 22px;
  margin-bottom: 14px;
}

.arvore-ai-step,
.arvore-ai-success,
.arvore-ai-error,
.arvore-ai-loading {
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.arvore-ai-step {
  color: #57695f;
}

.arvore-ai-success {
  color: #2c7a43;
  font-weight: 600;
}

.arvore-ai-error {
  color: #bf3d3d;
  font-weight: 500;
}

.arvore-ai-loading {
  color: #355243;
}

.arvore-ai-label {
  display: block;
}

.arvore-ai-label > span {
  display: block;
  text-align: center;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.35;
  color: #153f24;
  margin: 0 0 16px;
  font-weight: 600;
}

.arvore-ai-input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid #ced8d0;
  font-size: 15px;
  line-height: 1.45;
  color: #234233;
  box-sizing: border-box;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.arvore-ai-input:focus {
  border-color: #37a957;
  box-shadow: 0 0 0 3px rgba(55, 169, 87, 0.10);
}

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

.arvore-ai-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #d7e0d9;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  background: #fff;
}

.arvore-ai-option:hover {
  transform: translateY(-1px);
  border-color: #9ad4a8;
  box-shadow: 0 8px 18px rgba(26, 73, 40, 0.05);
}

.arvore-ai-option input {
  width: 17px;
  height: 17px;
  accent-color: #31b04f;
  flex: 0 0 auto;
}

.arvore-ai-option span {
  color: #274635;
  font-size: 14px;
  line-height: 1.45;
}

.arvore-ai-option:has(input:checked) {
  border-color: #31b04f;
  background: #f5fff7;
  box-shadow: 0 8px 18px rgba(49, 176, 79, 0.10);
}

#arvore-ai-actions,
.arvore-ai-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.arvore-ai-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
  min-width: 130px;
}

.arvore-ai-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.arvore-ai-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.arvore-ai-btn-primary {
  background: #2faa49;
  color: #fff;
}

.arvore-ai-btn-secondary {
  background: #edf1ee;
  color: #2d4937;
}

#arvore-ai-result,
.arvore-ai-result {
  margin-top: 24px;
}

.arvore-ai-result-card {
  border-top: 1px solid #e5ece6;
  padding-top: 20px;
}

.arvore-ai-title-wrap {
  margin-bottom: 14px;
}

.arvore-ai-chip {
  display: inline-block;
  background: #eef7f0;
  color: #2d6d3f;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.arvore-ai-title-wrap h2 {
  font-size: 26px;
  line-height: 1.15;
  color: #113f23;
  margin: 0;
}

.arvore-ai-scientific {
  margin: 5px 0 0;
  color: #65796b;
  font-style: italic;
  font-size: 14px;
}

.arvore-ai-media {
  margin-bottom: 18px;
}

.arvore-ai-media img {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #dce7df;
  display: block;
}

.arvore-ai-media small {
  display: block;
  margin-top: 8px;
  color: #6b7d72;
  font-size: 12px;
}

.arvore-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.arvore-ai-section {
  border: 1px solid #dde7df;
  background: #fbfdfb;
  border-radius: 14px;
  padding: 13px 14px;
}

.arvore-ai-section h3 {
  display: block;
  color: #174b27;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

.arvore-ai-section p,
.arvore-ai-section li,
.arvore-ai-store span,
.arvore-ai-store small {
  color: #355243;
  line-height: 1.55;
  margin: 0;
  font-size: 14px;
}

.arvore-ai-section ul {
  margin: 0;
  padding-left: 18px;
}

.arvore-ai-store-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.arvore-ai-store {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #dde7df;
  background: #fbfdfb;
  border-radius: 14px;
  padding: 13px 14px;
  text-decoration: none;
}

.arvore-ai-store strong {
  color: #174b27;
  font-size: 14px;
  line-height: 1.4;
}

.arvore-ai-store:hover {
  border-color: #9ad4a8;
  box-shadow: 0 8px 18px rgba(26, 73, 40, 0.05);
}

@media (max-width: 980px) {
  .arvore-ai-card {
    padding: 20px 16px 22px;
    border-radius: 18px;
  }

  .arvore-ai-options,
  .arvore-ai-grid,
  .arvore-ai-store-list {
    grid-template-columns: 1fr;
  }

  #arvore-ai-actions,
  .arvore-ai-actions {
    flex-wrap: wrap;
  }

  .arvore-ai-btn {
    width: 100%;
  }

  .arvore-ai-media img {
    max-width: 100%;
    height: 220px;
  }
}