.planejamento-page {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.planejamento-login,
.planejamento-onboarding {
  max-width: 520px;
  margin: 2rem auto;
  text-align: center;
}

.planejamento-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.planejamento-topbar-copy {
  flex: 1 1 260px;
  min-width: 0;
}

.planejamento-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.planejamento-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.planejamento-stat-total {
  border-color: rgba(39, 174, 96, 0.35);
  background: rgba(39, 174, 96, 0.1);
}

.planejamento-stat-total strong {
  color: var(--color-accent-light);
}

.planejamento-form-card,
.planejamento-list-card,
.planejamento-notes-card {
  margin-bottom: 1.25rem;
}

.planejamento-form-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .planejamento-form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planejamento-form-row:last-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.planejamento-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.planejamento-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .planejamento-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.planejamento-item.is-purchased {
  opacity: 0.72;
}

.planejamento-item.is-purchased .planejamento-item-name {
  text-decoration: line-through;
}

.planejamento-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.planejamento-item-name {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.planejamento-item-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.planejamento-item-price {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent-light);
  white-space: nowrap;
}

.planejamento-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.planejamento-item-actions .botao-sm,
.planejamento-item-actions .cultivo-section-nav-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.planejamento-empty {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.perfil-lab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.perfil-lab-links .botao {
  margin-top: 0;
}

.planejamento-page [hidden] {
  display: none !important;
}
