:root {
  --bg: #f8f5ed;
  --ink: #211f1a;
  --muted: #746f63;
  --soft: rgba(33, 31, 26, 0.1);
  --line: rgba(33, 31, 26, 0.08);
  --paper: rgba(255, 252, 244, 0.72);
  --section-gap: clamp(30px, 4.4vw, 42px);
  --section-pad: 18px;
  --label-size: 0.72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --phase-sow: #9a6a43;
  --phase-plant: #347f50;
  --phase-harvest: #d18a2f;
  --water-color: #4a8fb8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body.is-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

button {
  font: inherit;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 22px 44px;
}

.suite-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(30px, 4.4vw, 42px);
  animation: rise-in 360ms var(--ease-out) both;
}

.suite-brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease;
}

.suite-brand:hover,
.suite-brand:focus-visible {
  color: var(--muted);
  outline: none;
}

.suite-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.suite-link {
  position: relative;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.suite-link:hover,
.suite-link:focus-visible,
.suite-link.active {
  color: var(--ink);
  outline: none;
}

.suite-link.active::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  animation: rise-in 420ms var(--ease-out) both;
}

.brand-block {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.is-hub .suite-link.active {
  color: var(--muted);
}

.is-hub .suite-link.active::after {
  display: none;
}

.app-hub {
  margin-top: var(--section-gap);
  padding-top: var(--section-pad);
  animation: rise-in 420ms 90ms var(--ease-out) both;
}

.app-hub h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  line-height: 1;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.app-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, transform 180ms var(--ease-out), border-color 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(33, 31, 26, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.app-card-kicker {
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 850;
  text-transform: uppercase;
}

.app-card-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1;
}

.app-card-copy {
  max-width: 340px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.tool-panel {
  animation: rise-in 360ms 80ms var(--ease-out) both;
}

.global-search {
  display: grid;
  gap: 8px;
  margin-top: var(--section-gap);
  padding: 0;
  animation: rise-in 420ms 80ms var(--ease-out) both;
}

.search-label {
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 850;
  text-transform: uppercase;
}

.search-input-wrap {
  position: relative;
  display: block;
}

.global-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: clamp(1.55rem, 4.2vw, 2.7rem);
  font-weight: 820;
  line-height: 1.05;
  outline: none;
}

.global-search input::-webkit-search-cancel-button {
  appearance: none;
}

.global-search input::placeholder {
  color: rgba(116, 111, 99, 0.42);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 0;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: color 160ms ease, opacity 160ms ease;
  transform: translateY(-50%);
}

.search-clear:hover,
.search-clear:focus-visible {
  color: var(--ink);
  outline: none;
}

.is-searching .search-clear {
  display: grid;
}

.is-searching .month-brief,
.is-searching .now-panel {
  display: none;
}

.is-searching .timeline-section {
  margin-top: 34px;
}

.is-searching .timeline-controls {
  display: none;
}

.garden-app.is-searching .month-brief,
.garden-app.is-searching .now-panel {
  display: none;
}

.garden-app.is-searching .timeline-section {
  margin-top: 34px;
}

.garden-app.is-searching .timeline-controls {
  display: none;
}

.search-suggestions {
  margin-top: 10px;
  animation: rise-in 320ms 130ms var(--ease-out) both;
}

.suggestion-note {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(33, 31, 26, 0.13);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}

.suggestion-chip:hover,
.suggestion-chip:focus-visible {
  border-color: rgba(33, 31, 26, 0.32);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.search-verdict {
  display: none;
}

.is-searching .search-verdict {
  display: block;
  margin-top: 18px;
  animation: rise-in 280ms var(--ease-out) both;
}

.verdict-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms var(--ease-out);
}

.verdict-card:hover,
.verdict-card:focus-visible {
  border-color: color-mix(in srgb, var(--product-color) 32%, var(--line));
  outline: none;
  transform: translateY(-1px);
}

.verdict-kicker {
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 850;
  text-transform: uppercase;
}

.verdict-title {
  color: var(--product-color);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  font-weight: 850;
  line-height: 1;
}

.verdict-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 7.8vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.month-brief {
  padding-bottom: 6px;
  animation: rise-in 420ms 140ms var(--ease-out) both;
}

.stage-copy {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.brief-grid {
  display: grid;
  gap: 9px;
  padding: 0;
  border-top: 0;
}

.brief-headline {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 820;
  line-height: 1.05;
}

.brief-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  font-weight: 650;
  line-height: 1.35;
}

.now-panel,
.timeline-section,
.month-brief {
  margin-top: var(--section-gap);
  padding-top: var(--section-pad);
}

.now-panel {
  animation: rise-in 420ms 200ms var(--ease-out) both;
}

.timeline-section {
  animation: rise-in 420ms 260ms var(--ease-out) both;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 22px;
  padding-top: 4px;
}

.now-grid article {
  min-width: 0;
}

.product-row-list {
  display: grid;
  gap: 2px;
}

.mini-product,
.timeline-row {
  display: grid;
  align-items: center;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, transform 180ms var(--ease-out);
}

.mini-product {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.mini-product:hover,
.mini-product:focus-visible,
.timeline-row:hover,
.timeline-row:focus-visible {
  color: var(--ink);
  outline: none;
  transform: translateX(2px);
}

.mini-product:first-child {
  border-top: 0;
}

.product-name {
  display: block;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.product-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.garden-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.garden-info-tag,
.garden-season-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, rgba(33, 31, 26, 0.16));
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.garden-info-tag.action {
  color: color-mix(in srgb, var(--verdict-color, var(--product-color)) 72%, var(--ink));
  border-color: color-mix(in srgb, var(--verdict-color, var(--product-color)) 42%, rgba(33, 31, 26, 0.16));
}

.garden-info-tag.time {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.garden-info-tag.muted {
  color: var(--muted);
}

.garden-season-chip {
  margin-top: 6px;
}

.verdict-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--product-color) 42%, rgba(33, 31, 26, 0.16));
  border-radius: 999px;
  color: color-mix(in srgb, var(--product-color) 74%, var(--ink));
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.spark {
  position: relative;
  width: 100%;
  height: 15px;
  border-radius: 999px;
  background: var(--gradient);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: filter 180ms ease, opacity 180ms ease;
}

.mini-product:hover .spark,
.mini-product:focus-visible .spark {
  filter: saturate(1.12) contrast(1.02);
}

.spark::after {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: calc(var(--current-month) * 8.333%);
  width: 2px;
  border-radius: 999px;
  background: rgba(33, 31, 26, 0.62);
  content: "";
  transform: translateX(-50%);
}

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  border-bottom: 0;
  padding: 0;
  background: transparent;
}

.segment {
  position: relative;
  min-height: 42px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: var(--label-size);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.segment.active {
  color: var(--ink);
  background: transparent;
}

.segment.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  animation: rise-in 180ms var(--ease-out) both;
}

.timeline-card {
  overflow: hidden;
}

.month-axis,
.timeline-row {
  grid-template-columns: minmax(118px, 170px) minmax(0, 1fr);
  gap: 0;
}

.month-axis {
  display: grid;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
}

.month-axis > span,
.axis-months span {
  text-align: center;
}

.axis-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.garden-phase-axis {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.timeline-list {
  display: grid;
}

.timeline-group {
  display: grid;
}

.timeline-group + .timeline-group {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.timeline-group-title {
  margin: 22px 0 2px;
  color: var(--muted);
}

.timeline-row {
  display: grid;
  min-height: 68px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  animation: rise-in 240ms var(--ease-out) both;
}

.timeline-label {
  min-width: 0;
  padding-right: 16px;
}

.timeline-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.month-cell {
  position: relative;
  height: 34px;
}

.month-cell::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 24px;
  background: color-mix(in srgb, var(--product-color) calc(var(--intensity) * 100%), rgba(33, 31, 26, 0.075));
  opacity: calc(0.2 + var(--intensity) * 0.8);
  transform: translateY(-50%);
  transition: height 180ms ease, opacity 180ms ease;
  content: "";
}

.timeline-row:hover .month-cell::before,
.timeline-row:focus-visible .month-cell::before {
  height: 28px;
  opacity: calc(0.32 + var(--intensity) * 0.68);
}

.month-cell:first-child::before {
  border-radius: 999px 0 0 999px;
}

.month-cell:last-child::before {
  border-radius: 0 999px 999px 0;
}

.month-cell.current::after {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: rgba(33, 31, 26, 0.7);
  content: "";
}

.garden-phase-chip.sow {
  color: color-mix(in srgb, var(--phase-sow) 76%, var(--ink));
  border-color: color-mix(in srgb, var(--phase-sow) 48%, rgba(33, 31, 26, 0.14));
}

.garden-phase-chip.plant {
  color: color-mix(in srgb, var(--phase-plant) 76%, var(--ink));
  border-color: color-mix(in srgb, var(--phase-plant) 48%, rgba(33, 31, 26, 0.14));
}

.garden-phase-chip.harvest {
  color: color-mix(in srgb, var(--product-color, var(--phase-harvest)) 76%, var(--ink));
  border-color: color-mix(in srgb, var(--product-color, var(--phase-harvest)) 48%, rgba(33, 31, 26, 0.14));
}

.garden-month-cell::before {
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 0;
  background: rgba(33, 31, 26, 0.06);
  opacity: 1;
}

.garden-bar {
  position: relative;
}

.garden-bar::before {
  position: absolute;
  right: 4px;
  left: 4px;
  top: 50%;
  height: 1px;
  background: rgba(33, 31, 26, 0.08);
  content: "";
  transform: translateY(-50%);
}

.timeline-row:hover .garden-month-cell::before,
.timeline-row:focus-visible .garden-month-cell::before {
  height: 28px;
  opacity: 1;
}

.garden-row {
  min-height: 112px;
  padding: 12px 0;
  align-items: start;
}

.garden-phase-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: center;
  padding-top: 3px;
}

.garden-row-tags {
  margin-top: 4px;
  padding-left: 0;
}

.garden-row-tags .garden-info-tag,
.garden-mini-tags .garden-info-tag,
.garden-detail-context .garden-info-tag,
.garden-detail-context .garden-season-chip,
.market-row-tags .garden-info-tag,
.market-mini-tags .garden-info-tag,
.allergy-row-tags .garden-info-tag,
.allergy-mini-tags .garden-info-tag,
.plant-row-tags .garden-info-tag,
.plant-mini-tags .garden-info-tag,
.plant-detail-tags .garden-info-tag {
  min-height: 18px;
  padding: 0 6px;
  font-size: 0.58rem;
  line-height: 1;
}

.garden-row-tags .garden-timeline-time,
.garden-mini-tags .garden-timeline-time,
.market-row-tags .market-timeline-tag,
.market-mini-tags .market-timeline-tag {
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  font-weight: 820;
}

.market-row-tags .market-timeline-tag.muted,
.market-mini-tags .market-timeline-tag.muted {
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
}

.garden-detail-context .garden-info-tag,
.garden-detail-context .garden-season-chip {
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-weight: 820;
}

.garden-mini-tags,
.market-mini-tags,
.market-row-tags,
.allergy-mini-tags,
.allergy-row-tags,
.plant-mini-tags,
.plant-row-tags {
  margin-top: 4px;
}

.plant-water-tag.high {
  color: color-mix(in srgb, var(--water-color) 80%, var(--ink));
  border-color: color-mix(in srgb, var(--water-color) 32%, transparent);
}

.plant-water-tag.very-high {
  color: color-mix(in srgb, var(--water-color) 92%, var(--ink));
  border-color: color-mix(in srgb, var(--water-color) 42%, transparent);
}

.plant-water-tag.medium {
  color: color-mix(in srgb, var(--water-color) 62%, var(--muted));
  border-color: color-mix(in srgb, var(--water-color) 22%, transparent);
}

.plant-water-tag.low,
.plant-water-tag.very-low {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
}

.plant-frequency-tag {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  text-transform: none;
}

.plant-detail-tags .garden-info-tag {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
}

.plant-row-tags .plant-frequency-tag,
.plant-detail-tags .plant-frequency-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-water-priority {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.mode-switch {
  margin: 0 0 18px;
}

.mode-switch .segmented {
  border-bottom: 1px solid var(--line);
}

.plant-priority-copy p {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 760;
  line-height: 1.25;
}

.plant-priority-copy span {
  display: block;
  margin-top: 8px;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.plant-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 0;
}

.plant-priority-item,
.plant-priority-item:first-child {
  border-top: 0;
}

.plant-row {
  min-height: 86px;
}

.plant-scale-axis {
  display: grid;
  grid-template-columns: minmax(118px, 170px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}

.plant-scale-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  text-transform: uppercase;
}

.plant-scale-axis-labels span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.plant-scale {
  position: relative;
  display: block;
  width: 100%;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(33, 31, 26, 0.075);
  overflow: hidden;
}

.plant-scale.compact {
  height: 15px;
}

.plant-scale-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--water-score) * 1%);
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--water-color) 44%, white),
    var(--water-color)
  );
}

.balcony-scale .plant-scale-fill {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #d6b65f 38%, white),
    #d6b65f
  );
}

.plant-detail-scale {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  animation: rise-in 260ms 100ms var(--ease-out) both;
}

.plant-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}

.plant-detail-tabs .segment {
  min-height: 36px;
  padding-bottom: 10px;
}

.plant-detail-panel[hidden] {
  display: none;
}

.plant-detail-panel.active {
  animation: rise-in 220ms var(--ease-out) both;
}

.decision-grid.plant-light-grid,
.decision-grid.plant-adjustment-grid {
  padding-top: 0;
  border-top: 0;
}

.market-row-tags .market-timeline-tag.buy-now,
.market-mini-tags .market-timeline-tag.buy-now {
  color: color-mix(in srgb, var(--product-color) 72%, var(--ink));
  border-color: color-mix(in srgb, var(--product-color) 28%, transparent);
}

.allergy-row-tags .allergy-timeline-tag.action,
.allergy-mini-tags .allergy-timeline-tag.action {
  color: color-mix(in srgb, var(--product-color) 72%, var(--ink));
  border-color: color-mix(in srgb, var(--product-color) 28%, transparent);
}

.allergy-row-tags .allergy-timeline-tag.muted,
.allergy-mini-tags .allergy-timeline-tag.muted {
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
}

.market-row-tags .market-timeline-tag.good-buy,
.market-mini-tags .market-timeline-tag.good-buy,
.market-row-tags .market-timeline-tag.only-if-worth-it,
.market-mini-tags .market-timeline-tag.only-if-worth-it {
  color: color-mix(in srgb, var(--product-color) 58%, var(--muted));
  border-color: color-mix(in srgb, var(--product-color) 20%, transparent);
}

.garden-phase-bars::before {
  content: none;
}

.garden-phase-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.garden-phase-row-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.garden-phase-row-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.garden-phase-cell {
  height: 16px;
}

.garden-phase-cell::before {
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 0;
  background: color-mix(in srgb, var(--phase-color) calc(var(--phase-intensity) * 100%), rgba(33, 31, 26, 0.07));
  opacity: calc(0.18 + var(--phase-intensity) * 0.72);
}

.garden-phase-cell:first-child::before {
  border-radius: 999px 0 0 999px;
}

.garden-phase-cell:last-child::before {
  border-radius: 0 999px 999px 0;
}

.garden-phase-cell.current::after {
  top: 0;
  bottom: 0;
}

.timeline-row:hover .garden-phase-cell::before,
.timeline-row:focus-visible .garden-phase-cell::before {
  height: 12px;
  opacity: calc(0.28 + var(--phase-intensity) * 0.72);
}

.product-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf1;
  animation: dialog-in 220ms var(--ease-out) both;
}

.product-dialog::backdrop {
  background: rgba(33, 31, 26, 0.34);
  animation: backdrop-in 180ms ease both;
}

.close-button {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, transform 160ms var(--ease-out);
}

.close-button:hover,
.close-button:focus,
.close-button:focus-visible {
  color: var(--ink);
  background: transparent;
  outline: 0;
  box-shadow: none;
  transform: scale(1.05);
}

.close-button:active {
  color: var(--ink);
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.dialog-title {
  box-sizing: border-box;
  margin: 28px 0 14px;
  padding-right: 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 2.1rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dialog-verdict {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  animation: rise-in 260ms 60ms var(--ease-out) both;
}

.dialog-verdict strong {
  color: var(--verdict-color, var(--product-color));
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-verdict span:last-child {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--product-color);
  font-size: 0.84rem;
  font-weight: 850;
}

.detail-gradient {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  animation: rise-in 260ms 100ms var(--ease-out) both;
}

.detail-month {
  position: relative;
  display: grid;
  grid-template-rows: auto 18px;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.detail-month::before {
  order: 2;
  height: 18px;
  background: color-mix(in srgb, var(--product-color) calc(var(--intensity) * 100%), rgba(33, 31, 26, 0.08));
  opacity: calc(0.28 + var(--intensity) * 0.72);
  content: "";
}

.detail-month:first-child::before {
  border-radius: 4px 0 0 4px;
}

.detail-month:last-child::before {
  border-radius: 0 4px 4px 0;
}

.detail-month.current::after {
  position: absolute;
  top: calc(0.62rem + 7px);
  left: 50%;
  width: 2px;
  height: 24px;
  border-radius: 999px;
  background: rgba(33, 31, 26, 0.68);
  content: "";
  transform: translateX(-50%);
}

.garden-detail-phases {
  display: grid;
  gap: 7px;
  margin: 16px 0 4px;
}

.garden-detail-axis,
.garden-detail-phases .garden-phase-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.garden-detail-axis {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 820;
}

.garden-detail-axis > span:last-child {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  text-align: center;
}

.garden-detail-phases .garden-phase-row-label {
  text-align: left;
}

.garden-context-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.garden-context-line .garden-season-chip {
  margin-top: 0;
}

.garden-context-line .garden-info-tags {
  margin-top: 0;
}

.garden-detail-phases .garden-phase-cell {
  position: relative;
  display: block;
  height: 20px;
}

.garden-detail-phases .garden-phase-cell::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 12px;
  border-radius: 0;
  background: color-mix(in srgb, var(--phase-color) calc(var(--phase-intensity) * 100%), rgba(33, 31, 26, 0.07));
  opacity: calc(0.18 + var(--phase-intensity) * 0.72);
  content: "";
  transform: translateY(-50%);
}

.garden-detail-phases .garden-phase-cell.current::after {
  top: 50%;
  bottom: auto;
  height: 18px;
  transform: translate(-50%, -50%);
}

.decision-grid {
  display: grid;
  gap: 0;
  margin: 20px 0 20px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  animation: rise-in 260ms 140ms var(--ease-out) both;
}

.decision-block {
  position: relative;
  display: grid;
  align-items: baseline;
  grid-template-columns: minmax(86px, 102px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.decision-block:first-child {
  border-top: 0;
}

.decision-block h3 {
  margin-bottom: 0;
  line-height: 1.45;
}

.decision-block p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.decision-block p strong {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 0.9em;
  font-weight: 850;
}

.selection-points {
  display: grid;
  gap: 8px;
}

.selection-points p {
  display: block;
}

.selection-points strong {
  display: inline;
  margin-right: 3px;
  color: var(--product-color);
  font-size: inherit;
  font-weight: 820;
  line-height: inherit;
}

@media (max-width: 560px) {
  .decision-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 15px 0;
  }
}

.empty-state {
  padding: 18px 0;
  color: var(--muted);
}

.garden-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px;
  margin-top: 26px;
}

.garden-preview article {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.garden-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 20px 13px 32px;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .suite-nav {
    display: grid;
  }

  .suite-links {
    justify-content: flex-start;
  }

  .timeline-card {
    overflow: visible;
  }

  .timeline-controls {
    display: block;
    border-bottom: 0;
  }

  .segmented {
    border-bottom: 1px solid var(--line);
  }

  .month-axis,
  .timeline-row {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .month-axis {
    display: none;
  }

  .timeline-label {
    grid-column: 1;
    grid-row: 1;
    padding-right: 12px;
  }

  .timeline-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 10px;
  }

  .plant-row {
    min-height: 0;
    padding: 10px 0 12px;
  }

  .plant-row .timeline-label {
    padding-right: 0;
  }

  .plant-row .plant-scale {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }

  .segmented {
    gap: 22px;
  }

  .segment {
    flex: 0 0 auto;
  }

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

}

@media (max-width: 480px) {
  .plant-priority-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
