.farming-checklist-page {
  background: #f8fafc;
}

/* styles.css adds 9rem vertical padding to all <section> on desktop — that caused the giant gap */
.farming-checklist-page section {
  padding: 0;
}

.fc-page {
  padding: 8.5rem 1rem 4rem;
  min-height: 75vh;
}

.fc-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.fc-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.fc-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.fc-subtitle {
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.fc-progress {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.fc-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 600;
}

.fc-progress-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.fc-progress-fill {
  height: 100%;
  width: 0;
  background: #4aa3df;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.fc-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.fc-alert code {
  font-size: 0.88em;
}

.fc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.fc-controls {
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fc-add-form {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.fc-add-field {
  position: relative;
  flex: 1;
}

.fc-add-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

.fc-add-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.72rem 0.85rem 0.72rem 2.45rem;
  background: #fff;
  color: #111827;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-add-input:focus {
  outline: none;
  border-color: #4aa3df;
  box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.2);
}

.fc-add-input[readonly] {
  cursor: pointer;
  background: #f9fafb;
}

.fc-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  max-height: 260px;
  overflow-y: auto;
}

.fc-suggestion-btn {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0.55rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #111827;
}

.fc-suggestion-btn:hover,
.fc-suggestion-btn:focus-visible {
  background: #f1f5f9;
}

.fc-suggestion-kind {
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.fc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fc-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fc-btn-primary {
  background: #4aa3df;
  color: #fff;
  white-space: nowrap;
}

.fc-btn-primary:hover:not(:disabled) {
  background: #3b8fc7;
}

.fc-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.fc-btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

.fc-login-banner {
  padding: 0.85rem 1.15rem;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  color: #1e3a8a;
  font-size: 0.95rem;
}

.fc-login-banner a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.fc-login-banner a:hover {
  text-decoration: underline;
}

.fc-list {
  padding: 0.35rem 0;
}

.fc-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #6b7280;
}

.fc-empty p {
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.5;
}

.fc-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease, opacity 0.2s ease;
}

.fc-row:last-child {
  border-bottom: 0;
}

.fc-row:hover {
  background: #f8fafc;
}

.fc-row.is-completed {
  opacity: 0.5;
}

.fc-row.is-completed .fc-item-name {
  text-decoration: line-through;
}

.fc-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.fc-check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.fc-check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fc-check-box::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-bottom: 2px;
}

.fc-check-input:checked + .fc-check-box {
  background: #4aa3df;
  border-color: #4aa3df;
}

.fc-check-input:checked + .fc-check-box::after {
  transform: rotate(45deg) scale(1);
}

.fc-check-input:focus-visible + .fc-check-box {
  box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.28);
}

.fc-item-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}

.fc-item-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.fc-item-icon--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.fc-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fc-item-name {
  font-weight: 700;
  color: #111827;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
}

a.fc-item-name--link {
  text-decoration: none;
  color: #111827;
}

a.fc-item-name--link:hover,
a.fc-item-name--link:focus-visible {
  color: #2563eb;
  text-decoration: underline;
  outline: none;
}

.fc-item-kind {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fc-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.fc-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-source-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  text-decoration: none;
}

.fc-remove-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fc-remove-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.fc-related {
  margin-top: 1.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.92rem;
}

.fc-related a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.fc-related a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .fc-page {
    padding-top: 7.5rem;
  }

  .fc-add-form {
    flex-direction: column;
  }

  .fc-btn-primary {
    width: 100%;
  }

  .fc-actions {
    width: 100%;
  }

  .fc-actions .fc-btn {
    flex: 1;
  }

  .fc-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fc-row-actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 2rem;
  }
}
