.plant-page {
  background:
    radial-gradient(circle at 12% 15%, rgba(250, 204, 21, .16), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, .16), transparent 26%),
    var(--lab-bg);
}

.plant-hero {
  background:
    radial-gradient(circle at 16% 22%, rgba(250, 204, 21, .32), transparent 25%),
    radial-gradient(circle at 82% 12%, rgba(34, 197, 94, .22), transparent 29%),
    linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #eff6ff 100%);
  border-bottom: 1px solid var(--lab-border);
  padding: clamp(1.25rem, 3vw, 2.2rem) 0;
}

.plant-hero-grid {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.plant-back-link {
  color: var(--lab-primary);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: .7rem;
  text-decoration: none;
}

.plant-hero h1 {
  color: var(--lab-text);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.plant-hero p {
  color: var(--lab-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.9;
  margin: .65rem 0 0;
  max-width: 760px;
}

.plant-status-card,
.plant-workbench,
.plant-notes {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--lab-border);
  border-radius: 24px;
  box-shadow: var(--lab-shadow);
}

.plant-status-card {
  align-items: center;
  display: grid;
  gap: .35rem .75rem;
  grid-template-columns: auto 1fr;
  padding: .85rem;
}

.plant-status-dot {
  background: #facc15;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, .15);
  grid-row: span 2;
  height: 18px;
  width: 18px;
}

.plant-status-dot.is-growing {
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .16);
}

.plant-status-dot.is-warning {
  background: #f97316;
  box-shadow: 0 0 0 8px rgba(249, 115, 22, .16);
}

.plant-status-card strong {
  color: var(--lab-text);
  font-size: 1.1rem;
  font-weight: 900;
}

.plant-status-card small {
  color: var(--lab-muted);
  font-weight: 800;
  line-height: 1.6;
}

.plant-main {
  padding: clamp(.9rem, 2.4vw, 1.5rem) 0;
}

.plant-message-bar {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(34, 197, 94, .12));
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 18px;
  color: var(--lab-primary);
  font-weight: 900;
  line-height: 1.8;
  margin-bottom: .65rem;
  padding: .48rem .68rem;
  text-align: center;
}

.plant-message-bar.success {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
  color: #15803d;
}

.plant-message-bar.warning {
  background: rgba(249, 115, 22, .12);
  border-color: rgba(249, 115, 22, .28);
  color: #c2410c;
}

.plant-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .65rem;
}

.plant-tool-button {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  color: var(--lab-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: .45rem;
  min-height: 24px;
  padding: .48rem .68rem;
}

.plant-tool-button:hover,
.plant-tool-button:focus {
  border-color: rgba(34, 197, 94, .4);
  outline: none;
  transform: translateY(-1px);
}

.plant-tool-button .tool-icon {
  align-items: center;
  background: rgba(34, 197, 94, .11);
  border-radius: 12px;
  display: inline-flex;
  font-size: 1.05rem;
  height: 22px;
  justify-content: center;
  width: 28px;
}

.plant-tool-button.help-tool {
  color: var(--lab-primary);
}

.plant-tool-button.danger {
  color: #dc2626;
}

.plant-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.plant-workbench {
  min-height: 430px;
  overflow: hidden;
  padding: .85rem;
  position: relative;
}

.sky-scene {
  background: linear-gradient(180deg, #bfdbfe 0%, #dbeafe 48%, #ecfdf5 100%);
  border-radius: 22px 22px 18px 18px;
  height: 112px;
  overflow: hidden;
  position: relative;
}

.sun-visual {
  align-items: center;
  background: rgba(250, 204, 21, .72);
  border-radius: 999px;
  box-shadow: 0 0 36px rgba(250, 204, 21, .5);
  display: flex;
  font-size: 1.9rem;
  height: 62px;
  justify-content: center;
  position: absolute;
  right: 11%;
  top: 28px;
  transform: scale(.76);
  transition: transform .28s ease, opacity .28s ease;
  width: 62px;
}

.sun-visual.is-active {
  opacity: 1;
  transform: scale(1);
}

.cloud {
  background: rgba(255, 255, 255, .84);
  border-radius: 999px;
  height: 24px;
  position: absolute;
  width: 82px;
}

.cloud::before,
.cloud::after {
  background: inherit;
  border-radius: 999px;
  content: "";
  position: absolute;
}

.cloud::before {
  height: 24px;
  right: 20px;
  top: -20px;
  width: 34px;
}

.cloud::after {
  height: 24px;
  left: 18px;
  top: -15px;
  width: 34px;
}

.cloud-a {
  left: 12%;
  top: 42px;
}

.cloud-b {
  left: 38%;
  opacity: .72;
  top: 72px;
  transform: scale(.8);
}

.rain-layer {
  display: none;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.rain-layer.is-active {
  display: block;
}

.rain-layer span {
  animation: plantRain .72s linear infinite;
  background: #38bdf8;
  border-radius: 999px;
  height: 22px;
  opacity: .8;
  position: absolute;
  top: 30px;
  width: 5px;
}

.rain-layer span:nth-child(1) { left: 25%; animation-delay: 0s; }
.rain-layer span:nth-child(2) { left: 42%; animation-delay: .15s; }
.rain-layer span:nth-child(3) { left: 57%; animation-delay: .28s; }
.rain-layer span:nth-child(4) { left: 72%; animation-delay: .4s; }

@keyframes plantRain {
  to {
    opacity: .1;
    transform: translateY(105px);
  }
}

.plant-stage {
  align-items: center;
  background:
    linear-gradient(180deg, transparent 0%, transparent 68%, rgba(134, 239, 172, .55) 69%, rgba(34, 197, 94, .28) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: .75rem .75rem 0;
  position: relative;
}

.growth-label {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 999px;
  color: #166534;
  font-weight: 900;
  padding: .35rem .65rem;
  position: absolute;
  right: 1rem;
  top: .9rem;
}

.plant-visual {
  height: 140px;
  position: relative;
  width: 130px;
}

.seed-visual {
  background: #92400e;
  border-radius: 48% 52% 45% 55%;
  bottom: 8px;
  display: none;
  height: 18px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(-14deg);
  width: 28px;
}

.plant-visual.has-seed .seed-visual {
  display: block;
}

.stem {
  background: linear-gradient(180deg, #22c55e, #15803d);
  border-radius: 999px;
  bottom: 0;
  height: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: height .35s ease;
  width: 12px;
}

.leaf {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-radius: 80% 12% 80% 12%;
  height: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .25s ease, transform .35s ease, width .35s ease, height .35s ease;
  width: 0;
}

.leaf-left {
  bottom: 54px;
  left: 36px;
  transform: rotate(-30deg);
}

.leaf-right {
  bottom: 92px;
  right: 34px;
  transform: rotate(145deg);
}

.flower {
  align-items: center;
  background: #facc15;
  border: 5px solid #f97316;
  border-radius: 999px;
  bottom: 114px;
  display: none;
  height: 24px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 34px;
}

.plant-visual.stage-1 .stem { height: 24px; }
.plant-visual.stage-2 .stem { height: 68px; }
.plant-visual.stage-3 .stem { height: 98px; }
.plant-visual.stage-2 .leaf-left,
.plant-visual.stage-3 .leaf-left,
.plant-visual.stage-3 .leaf-right {
  height: 30px;
  opacity: 1;
  width: 46px;
}
.plant-visual.stage-3 .flower {
  display: block;
}

.pot {
  background: linear-gradient(180deg, #fb923c, #c2410c);
  border-radius: 10px 10px 34px 34px;
  box-shadow: inset 0 -12px 0 rgba(124, 45, 18, .22);
  color: #fff7ed;
  font-weight: 900;
  min-height: 68px;
  overflow: hidden;
  padding-top: 16px;
  position: relative;
  text-align: center;
  width: min(220px, 82%);
}

.soil-layer {
  background: #7c2d12;
  border-radius: 0 0 16px 16px;
  height: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: height .25s ease;
}

.soil-layer.is-filled {
  height: 22px;
}

.pot-label {
  position: relative;
  z-index: 1;
}

.plant-meters {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.plant-meter {
  background: rgba(248, 250, 252, .92);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: .55rem;
}

.plant-meter span {
  color: var(--lab-muted);
  display: block;
  font-size: .9rem;
  font-weight: 900;
  margin-bottom: .3rem;
}

.meter-track {
  background: rgba(148, 163, 184, .18);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.meter-track i {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .3s ease;
  width: 0;
}

.plant-notes {
  max-height: 430px;
  overflow: auto;
  padding: .85rem;
}

.plant-notes h2 {
  color: var(--lab-text);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 .75rem;
}

.plant-notes ul {
  display: grid;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plant-notes li {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 14px;
  color: var(--lab-text);
  font-weight: 800;
  line-height: 1.7;
  padding: .55rem;
}

.lab-theme-dark .plant-hero {
  background:
    radial-gradient(circle at 16% 22%, rgba(250, 204, 21, .14), transparent 25%),
    radial-gradient(circle at 82% 12%, rgba(34, 197, 94, .14), transparent 29%),
    linear-gradient(135deg, #08111f 0%, #0f172a 52%, #052e2b 100%);
}

.lab-theme-dark .plant-status-card,
.lab-theme-dark .plant-workbench,
.lab-theme-dark .plant-notes,
.lab-theme-dark .plant-tool-button {
  background: rgba(17, 24, 39, .94);
  border-color: rgba(148, 163, 184, .18);
  color: #f8fafc;
}

.lab-theme-dark .sky-scene {
  background: linear-gradient(180deg, #0f2547 0%, #123454 48%, #12382d 100%);
}

.lab-theme-dark .cloud {
  background: rgba(148, 163, 184, .32);
}

.lab-theme-dark .plant-stage {
  background:
    linear-gradient(180deg, transparent 0%, transparent 68%, rgba(20, 83, 45, .75) 69%, rgba(22, 101, 52, .6) 100%);
}

.lab-theme-dark .growth-label,
.lab-theme-dark .plant-meter {
  background: rgba(15, 23, 42, .82);
  border-color: rgba(148, 163, 184, .18);
}

@media (max-width: 980px) {
  .plant-hero-grid,
  .plant-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .plant-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plant-tool-button {
    font-size: .9rem;
    justify-content: center;
    min-height: 46px;
    padding-inline: .4rem;
  }

  .plant-meters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plant-workbench {
    min-height: 390px;
    padding: .55rem;
  }

  .sky-scene {
    height: 92px;
  }

  .plant-stage {
    min-height: 200px;
  }

  .plant-notes {
    max-height: 190px;
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  .plant-hero {
    padding: 1rem 0;
  }

  .plant-hero p {
    max-width: 620px;
  }

  .plant-workbench {
    min-height: 390px;
  }

  .sky-scene {
    height: 92px;
  }

  .plant-stage {
    min-height: 200px;
  }

  .plant-notes {
    max-height: 390px;
  }
}
