:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #07110d;
  color: #f2f7f2;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #07110d 0%, #123224 100%);
  min-height: 100vh;
}

.topbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #f2f7f2;
  font-size: 1.15rem;
  font-weight: 600;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
}

.nav {
  display: flex;
  gap: 0.4rem;
}

.nav a {
  color: #b9e2bf;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: #2d5a3b;
  background: rgba(60, 143, 87, 0.18);
  color: #f2f7f2;
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.panel.hidden {
  display: none;
}

.hidden {
  display: none;
}

.progress-area {
  margin-bottom: 1.2rem;
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3c8f57, #73c97f);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-percent {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #b9e2bf;
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.progress-steps li {
  padding: 0.3rem 0;
  color: rgba(242, 247, 242, 0.45);
  font-size: 0.95rem;
}

.progress-steps li::before {
  content: '\25CB  ';
}

.progress-steps li.active {
  color: #f2f7f2;
}

.progress-steps li.active::before {
  content: '\25CF  ';
  color: #73c97f;
}

.progress-steps li.done {
  color: #b9e2bf;
}

.progress-steps li.done::before {
  content: '\2713  ';
  color: #73c97f;
}

.progress-steps li.failed {
  color: #ff9b9b;
}

.progress-steps li.failed::before {
  content: '\2717  ';
}

.nav a.active {
  border-color: #2d5a3b;
  background: rgba(60, 143, 87, 0.28);
  color: #f2f7f2;
}

.panel {
  background: rgba(8, 22, 14, 0.82);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  border-radius: 12px;
  border: 1px solid #2d5a3b;
  padding: 0.75rem;
  font: inherit;
  background: #0f2216;
  color: #f2f7f2;
}

textarea {
  min-height: 240px;
  resize: vertical;
}

.upload-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.upload-title {
  display: block;
  margin-bottom: 0.35rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.file-row button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.file-name {
  color: #b9e2bf;
  font-size: 0.9rem;
}

.image-container figure {
  margin: 0 0 1.4rem;
}

.image-container figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #b9e2bf;
}

.helper-text {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #b9e2bf;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c8f57, #73c97f);
  color: white;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
}

button.secondary {
  background: linear-gradient(90deg, #4f5b66, #6a7682);
}

.status {
  margin-top: 0.9rem;
  color: #b9e2bf;
  min-height: 1.2rem;
}

.image-container img {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(255,255,255,0.12);
}

.download-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: #b9e2bf;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #2d5a3b;
}

.download-link:hover {
  background: rgba(60, 143, 87, 0.18);
  color: #f2f7f2;
}

.plant-list {
  white-space: pre-wrap;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 1rem;
  min-height: 150px;
  overflow: auto;
}
