/* ===== Design reveal + generating ===== */

.generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 40px 60px;
  max-width: 520px;
  margin: 0 auto;
}
.generating__bloom {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,230,138,0.7) 0%, rgba(253,230,138,0) 70%);
  display: flex; align-items: center; justify-content: center;
  animation: breathe 2.4s ease-in-out infinite;
  margin-bottom: 24px;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.generating__bar {
  width: 100%;
  height: 6px;
  background: var(--stone-200);
  border-radius: 9999px;
  margin-top: 36px;
  overflow: hidden;
}
.generating__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--foliage-500), var(--clay-500), var(--sun-400));
  border-radius: 9999px;
  transition: width 700ms var(--ease-standard);
}
.generating__facts {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.generating__fact {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--foliage-50);
  color: var(--foliage-700);
  font-size: 12px;
  font-weight: 500;
}

/* Design layout */
.design {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100vh - 60px - 50px);
  min-height: 600px;
}
.app--density-compact .design { grid-template-columns: 1fr 360px; }

.design__canvas {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--stone-100);
  overflow: hidden;
}
.design__canvas-inner {
  flex: 1;
  background: #FAF5EC;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--stone-200), var(--shadow-sm);
}
.design__canvas-inner[data-mode="render"] { background: #2D331A; }
.design__canvas-inner[data-mode="cad"] { background: #FFFFFF; }
.design__canvas-inner svg { max-width: 100%; max-height: 100%; }

.design__canvas-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px;
  background: var(--bg-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* ===== Side panel ===== */
.design__side {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.design__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  margin-top: 16px;
}
.design__tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.design__tab[data-active="true"] {
  color: var(--foliage-700);
  border-bottom-color: var(--foliage-700);
}

.design__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.plant-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background var(--dur-quick) var(--ease-standard);
}
.plant-row:hover { background: var(--stone-100); }

.plant-row__swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(28,25,23,0.1);
}
.plant-row__code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.plant-row__body { flex: 1; min-width: 0; }
.plant-row__name { font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.plant-row__latin { font-size: 12px; font-style: italic; color: var(--fg-muted); font-family: var(--font-display); margin-top: 1px; }
.plant-row__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.plant-row__tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--stone-100);
  color: var(--fg-secondary);
  font-weight: 500;
}
.plant-row__qty {
  text-align: right;
  min-width: 56px;
}
.plant-row__qty-num { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--fg-primary); line-height: 1; }
.plant-row__qty-unit { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

.design__footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px;
  background: var(--stone-100);
}
.design__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

/* ===== Guided tour ===== */
.tour-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.tour-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.tour-pin__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--clay-500);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.tour-pin__ring {
  position: absolute;
  top: -8px; left: -8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--clay-500);
  animation: tourPing 1.8s ease-out infinite;
}
@keyframes tourPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tour-card {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 320px;
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: bubbleIn 360ms var(--ease-standard) both;
}
.tour-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stone-300);
}
.tour-dot[data-active="true"] { background: var(--clay-500); width: 18px; border-radius: 3px; }
