/* 植物详情：连续转场与卡片布局 */
.plant-flight {
  position: fixed;
  z-index: 72;
  pointer-events: none;
  border-radius: 18px;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 18px rgba(92, 74, 45, 0.18));
}

.overlay-root .sheet.detail-sheet {
  --detail-art-size: 166px;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  max-height: 85dvh;
  background: linear-gradient(180deg, #FFFCF4, #FBF6E9);
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
}

.detail-sheet .detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: #A79372;
}

.detail-close {
  appearance: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #E4D9C2;
  border-radius: 14px;
  background: #FFFDF6;
  color: #8C826C;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.detail-close:active { background: #F2EAD8; }

.detail-art-slot {
  width: var(--detail-art-size);
  height: var(--detail-art-size);
  margin: 4px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 20%, #FBF4E3, #F3E9D3);
  border: 1px dashed #E3D5B7;
  border-radius: 26px;
  overflow: hidden;
}

.detail-art {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  transition: opacity .16s ease;
}
.detail-art.is-awaiting { opacity: 0; }

.detail-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.detail-name-row .sheet-title { margin: 0; font-size: 21px; color: #667A59; }
.detail-progress {
  flex: 0 0 auto;
  font-size: 12px;
  color: #7C8B6C;
  background: #F0F3E6;
  border-radius: 999px;
  padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

.detail-sheet .sheet-sub { margin: 4px 0 8px; }
.detail-sheet .tag-row { margin: 6px 0 8px; }
.detail-today { margin: 0 0 6px; color: #68745F; }
.detail-score {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #93866F;
}
.detail-extra {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8A8F76;
  background: #F4F2E6;
  border-radius: 10px;
  padding: 7px 10px;
}
.detail-actions {
  position: sticky;
  bottom: -2px;
  margin-top: 8px;
  padding-top: 8px;
  background: linear-gradient(180deg, #FBF6E9CC, #FBF6E9 42%);
}
.detail-actions .btn { min-height: 46px; }

.detail-sheet.is-confirming .detail-art-slot { filter: saturate(.85); }

/* 伙伴列表 */
.overlay-root .sheet.plant-list-sheet { max-width: 460px; }
.plant-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.plant-list-item {
  appearance: none;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #E5DCC8;
  border-radius: 16px;
  background: #FFFDF7;
  color: #4D5747;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.plant-list-item:active { background: #F3EDDD; }
.plant-list-art {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: #F6EEDD;
  border-radius: 12px;
}
.plant-list-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.plant-list-copy b { font-size: 14px; color: #5E6E52; }
.plant-list-copy small { font-size: 11px; color: #8F9782; }
.plant-list-arrow { margin-left: auto; color: #A7AE96; font-size: 16px; }

.care-foot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.care-foot .link { margin: 0; font-size: 11px; }
.care-foot .care-footnote { margin: 0; }

@media (max-width: 620px) {
  .overlay-root .sheet.detail-sheet {
    --detail-art-size: 128px;
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .detail-art-slot { margin-bottom: 6px; }
  .detail-name-row .sheet-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-art { transition: none; }
}
body.reduce-motion .detail-art { transition: none; }
