/* =========================================================
   Plant detail · Watering interval edit (REL-134 Item 3)
   Canopy v2 component — uses --v2-* tokens only.
   Mockup: .tmp/plant-detail-watering-edit-mockup.html
   Diff:   docs/design/plant-detail-watering-edit-feature-diff.md
   ========================================================= */

/* ---------- Light cell (extracted from former 2-up grid) ---------- */
.size-light-cell {
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius-lg);
  padding: var(--v2-space-md);
  display: flex;
  align-items: center;
  gap: var(--v2-space-md);
}
.size-light-cell svg {
  width: 22px;
  height: 22px;
  stroke: var(--v2-accent-botanical);
  flex-shrink: 0;
}
.size-light-cell .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v2-text-tertiary);
  margin-bottom: 2px;
}
.size-light-cell .value {
  font-family: var(--v2-font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--v2-text-primary);
}

/* ---------- Watering interval card ---------- */
.water-card {
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius-lg);
  padding: var(--v2-space-md);
  margin-top: var(--v2-space-sm);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.water-card.is-editing {
  border-color: var(--v2-accent-botanical-light);
  box-shadow: 0 0 0 3px oklch(85% 0.04 150 / 0.5);
}

.water-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--v2-space-md);
}
.water-label-group { min-width: 0; flex: 1; }
.water-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v2-text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.water-label svg {
  width: 14px;
  height: 14px;
  stroke: var(--v2-accent-botanical);
  flex-shrink: 0;
}
.water-frequency-caption {
  font-size: 12px;
  color: var(--v2-text-tertiary);
  margin-top: 4px;
  font-style: italic;
}

.water-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-text-tertiary);
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.water-status.is-saving { color: var(--v2-text-secondary); }
.water-status.is-saved  { color: var(--v2-accent-botanical); }
.water-status.is-error  { color: var(--v2-accent-terracotta); }
.water-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* Stepper (PRESENT / EDITING) */
.water-stepper {
  margin-top: var(--v2-space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--v2-space-sm);
}
.water-value-block {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.water-value-number {
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--v2-text-primary);
  font-variant-numeric: tabular-nums;
}
.water-value-unit {
  font-family: var(--v2-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-tertiary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.water-step-btn {
  width: var(--v2-space-touch);
  height: var(--v2-space-touch);
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--v2-border-strong);
  background: var(--v2-bg-card);
  color: var(--v2-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--v2-font-body);
  transition: transform 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out, opacity 120ms ease-out;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.water-step-btn:hover  { background: var(--v2-bg-secondary); }
.water-step-btn:active { transform: scale(0.94); }
.water-step-btn:focus-visible {
  outline: 2px solid var(--v2-accent-botanical);
  outline-offset: 2px;
}
.water-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.water-step-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* NULL state */
.water-empty {
  margin-top: var(--v2-space-md);
  display: flex;
  align-items: center;
  gap: var(--v2-space-md);
  padding: 12px;
  border-radius: var(--v2-radius-md);
  background: var(--v2-bg-secondary);
  border: 1px dashed var(--v2-border-strong);
  cursor: pointer;
  min-height: var(--v2-space-touch);
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: background-color 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.water-empty:hover { background: oklch(92% 0.012 85); }
.water-empty:focus-visible {
  outline: 2px solid var(--v2-accent-botanical);
  outline-offset: 2px;
}
.water-empty-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-soft);
}
.water-empty-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--v2-accent-botanical);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.water-empty-copy { flex: 1; min-width: 0; }
.water-empty-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-text-primary);
}
.water-empty-sub {
  font-size: 12px;
  color: var(--v2-text-tertiary);
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .water-card,
  .water-step-btn,
  .water-empty { transition: none; }
  .water-step-btn:active { transform: none; }
}
