.site-plant {
  --pet-safe-left: env(safe-area-inset-left, 0px);
  --pet-safe-top: env(safe-area-inset-top, 0px);
  --pet-safe-right: env(safe-area-inset-right, 0px);
  --pet-safe-bottom: env(safe-area-inset-bottom, 0px);
  --pet-ink: #233645;
  --pet-muted: #526a78;
  --pet-line: #d6e1e6;
  --pet-accent: #194f84;
  position: fixed;
  z-index: 21;
  color: var(--pet-ink);
  font: 14px/1.5 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  text-align: left;
}
.site-plant *, .site-plant *::before, .site-plant *::after {box-sizing:border-box}
.site-plant [hidden] {display:none}
.site-plant .pet-shell {margin:0; padding:0; border:0}
.site-plant .pet-handle {
  width: 88px;
  min-height: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  margin:0;
  padding:0 2px;
  background:transparent;
  color:var(--pet-ink);
  cursor:grab;
  list-style:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent;
  touch-action:none;
  border-radius:12px;
}
.site-plant .pet-handle::-webkit-details-marker {display:none}
.site-plant .pet-handle::marker {content:""}
.site-plant .pet-handle:focus-visible, .site-plant button:focus-visible {outline:2px solid var(--pet-accent); outline-offset:3px}
.site-plant.pet-dragging .pet-handle {cursor:grabbing}
.site-plant .plant-art {
  width:78px;
  height:70px;
  position:relative;
  display:grid;
  place-items:end center;
  isolation:isolate;
}
.site-plant .plant-art::before {
  content:"";
  position:absolute;
  z-index:-1;
  bottom:2px;
  width:44%;
  height:7px;
  border-radius:50%;
  background:#203c4633;
  filter:blur(3px);
}
.site-plant .plant-art img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  pointer-events:none;
  filter:drop-shadow(0 2px 1px #18364318);
  transform-origin:50% 93%;
}
.site-plant .pet-fallback {display:none}
.site-plant .no-image img {visibility:hidden}
.site-plant .no-image .pet-fallback {
  display:block;position:absolute;inset:12% 22% 3%;border:1px solid #bfd0d7;
  border-radius:50% 50% 46% 46% / 61% 61% 39% 39%;
  background:radial-gradient(ellipse at 34% 40%,#a5bdcb 0 8%,transparent 9%),
    radial-gradient(ellipse at 66% 70%,#a5bdcb 0 10%,transparent 11%),#edf3f6;
}
.site-plant .plant-note {
  position:fixed;
  width:224px;
  max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:13px 14px 5px;
  margin:0;
  border:1px solid var(--pet-line);
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 38px #172e431f,0 1px 5px #172e430e;
  color:var(--pet-ink);
}
.site-plant button {font:inherit;cursor:pointer}
.site-plant .pet-recall {
  min-height:36px;padding:5px 12px;white-space:nowrap;
  border:1px solid var(--pet-line);border-radius:99px;background:#fffffff5;
  color:var(--pet-muted);box-shadow:0 2px 8px #18364312;font-size:12px;
}
.site-plant .pet-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0 0 10px;border-bottom:1px solid var(--pet-line)}
.site-plant .pet-totals dt {color:var(--pet-muted);font-size:13px}
.site-plant .pet-totals dd {margin:1px 0 0;color:var(--pet-ink);font:650 22px/1.3 Georgia,serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.site-plant .pet-actions {display:flex;justify-content:flex-end;align-items:center;gap:2px;margin-top:2px}
.site-plant .pet-icon {
  display:grid;place-items:center;width:36px;height:36px;padding:0;
  color:var(--pet-muted);background:transparent;border:0;border-radius:6px;
}
.site-plant .pet-icon:hover,.site-plant .pet-icon:focus-visible {color:var(--pet-accent);background:#eef3f5}
.site-plant .pet-icon svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.site-plant [data-plant-status] {margin:7px 0 0;font-size:12px;color:var(--pet-muted)}
.site-plant [data-plant-status]:empty {display:none}
@keyframes pet-breathe {0%,70%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-1.5px) scale(1.015)}}
@keyframes pet-egg-hops {
  0%,62%,78%,100% {transform:none}
  64% {transform:scale(1.06,.93)}
  67% {transform:translate(-2px,-7px) rotate(-5deg)}
  70% {transform:translateX(-1px) scale(1.04,.95)}
  73% {transform:translate(1px,-4px) rotate(3deg)}
  76% {transform:scale(1.02,.98)}
}
@media (prefers-reduced-motion:no-preference) {
  .site-plant:not(.pet-dragging):not([data-page-hidden]) .pet-shell:not([open]) .pet-handle:not(:active) .plant-art img {
    animation:var(--pet-idle,pet-breathe) var(--pet-idle-period,5.5s) ease-in-out infinite;
  }
  .site-plant .pet-handle[data-egg] {--pet-idle:pet-egg-hops;--pet-idle-period:9s}
}
@media (max-width:640px) {
  .site-plant .pet-handle {width:64px}
  .site-plant .plant-art {width:58px;height:51px}
  .site-plant .pet-recall,.site-plant .pet-icon {min-height:44px}
  .site-plant .pet-icon {width:44px}
}
