#nursery-hud {
  width: min(100%, 280px);
  pointer-events: none;
}
.nursery-log {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #a8b998;
  border-radius: 8px;
  color: #edf1d8;
  background: #22453e;
  box-shadow: 0 2px 0 #142e2a88;
  text-align: start;
}
.nursery-log:hover { background: #2b5046; }
.nursery-log:focus-visible { outline: 3px solid #ffdb8d; outline-offset: 2px; }
.nursery-log-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 4px;
  color: #f4e6bf;
  background: #314e40;
  border-bottom: 1px solid #91a6857a;
  line-height: 1.3;
}
.nursery-log-head b { font-size: 12px; letter-spacing: .08em; }
.nursery-log-head .glyph { width: 14px; height: 14px; }
.nursery-carry { margin-inline-start: auto; color: #e1eed9; font-size: 11px; font-weight: 700; }
.nursery-log-trays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nursery-slip {
  --seed-tone: #f8bdbe;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 5px;
}
.nursery-slip + .nursery-slip { --seed-tone: #e7c27c; border-inline-start: 1px solid #7591857d; }
.nursery-slip .nursery-specimen { flex: none; width: 27px; height: 29px; }
.nursery-slip > span { display: grid; gap: 1px; min-width: 0; }
.nursery-slip b { color: #fff3d9; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.nursery-slip small { margin-inline-start: 2px; color: #c8dbce; font-size: 10px; font-weight: 700; }
.nursery-stage { color: #d6e6d8; font-size: 11px; font-weight: 650; line-height: 1.25; }
.nursery-slip[data-ready] .nursery-stage { color: var(--seed-tone); }
.nursery-slip > i { position: absolute; inset: auto 0 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--seed-tone); }
.nursery-water-fit:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #7591857d;
  background: #1b3b36;
}
.nursery-water-fit > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; padding: 4px 7px; }
.nursery-water-fit > span + span { border-inline-start: 1px solid #7591857d; }
.nursery-water-fit b { color: #e1eed9; font-size: 10px; }
.nursery-water-fit > span > span { color: #f4dfb2; font-size: 11px; font-weight: 720; line-height: 1.25; }
.nursery-water-fit [data-state="suitable"] > span { color: #a8efca; }
.nursery-water-fit [data-state="occupied"] > span { color: #d0c1cd; }
.nursery-water-fit [data-state="moving"] > span { color: #b7e2f3; }
.nursery-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) {
  width: min(92vw, 540px);
  color: #263e32;
  border: 2px solid #354e41;
  border-radius: 12px;
  background: #f8f3e3;
  box-shadow: 0 5px 0 #354e41, 0 13px 60px #132e3b59;
}
#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) .dialog-content { padding: 0; }
#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) .dialog-close {
  z-index: 1;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff4d4;
}
#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) .dialog-close:hover { background: #ffffff1c; }
#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) button:focus-visible { outline: 3px solid #bf573c; outline-offset: -3px; }
#dialog:is([data-kind="nursery-brief"], [data-kind="nursery-result"]) :is(.nursery-main,.dialog-close):focus-visible { outline-color: #ffdc91; }
.nursery-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 94px;
  overflow: hidden;
  padding: 13px 50px 13px 21px;
  color: #fff4dc;
  background: #294e47;
  border-bottom: 3px solid #ad9a68;
}
.nursery-shore { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 60%; height: 100%; }
.nursery-cover::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #294e47 27%, #294e47ed 38%, #294e4700 67%);
}
.nursery-cover > div > span { color: #ecdda9; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
#dialog .nursery-cover h2 { margin: 4px 0 0; color: inherit; font-size: clamp(24px, 4.3vw, 32px); line-height: 1.2; letter-spacing: .025em; }
.nursery-sheet { padding: 14px clamp(12px, 3vw, 21px) 15px; }
#dialog .nursery-sheet p { color: #354c3d; font-size: 13px; line-height: 1.55; }
#dialog .nursery-opening { margin: 0 0 11px; }
.nursery-recipes, .nursery-collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nursery-recipe {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #a6b6a2;
  border-radius: 6px;
  background: #e9eedb;
}
.nursery-recipe[data-plant="reed"] { background: #f0ead5; border-color: #c0b48d; }
.nursery-sample {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(32px, 5.6vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(#d4dfc7 54%, #a4c9bc 55%, #b9d0b9 80%, #8caf91 81%);
}
[data-plant="reed"] .nursery-sample { background: linear-gradient(#e1ddc2 64%, #cbb992 65%, #b7a480 80%, #af9e7b 81%); }
.nursery-sample .nursery-specimen { width: 87%; height: 87%; }
.nursery-recipe h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.3; color: #2d4e3e; }
.nursery-recipe b { display: block; font-size: 12px; line-height: 1.4; color: #486548; }
#dialog .nursery-recipe p { margin: 3px 0 0; color: #4f5c46; font-size: 11px; line-height: 1.45; }
#dialog .nursery-steps { margin: 10px 0 11px; }
.nursery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #a6a98b;
}
.nursery-foot > small { max-width: 17em; color: #5a644d; font-size: 11px; line-height: 1.5; font-weight: 650; }
.nursery-main, .nursery-secondary {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #325946;
  border-radius: 6px;
  background: #37634e;
  color: #fff8df;
  font-size: 13px;
  font-weight: 800;
}
.nursery-main .glyph { width: 17px; height: 17px; }
.nursery-main:hover { background: #29503f; }
.nursery-secondary { background: #f3eedb; color: #375443; border-color: #97a38b; }
.nursery-secondary:hover { background: #e6e7ce; }
.nursery-result-cover { min-height: 113px; }
.nursery-result-cover .nursery-shore { width: 67%; }
.nursery-collection { gap: 0; border-block: 1px solid #a9b294; }
.nursery-collection > span { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 9px; }
.nursery-collection > span + span { border-inline-start: 1px solid #b9bca1; }
.nursery-collection .nursery-specimen { width: 34px; height: 35px; }
.nursery-collection b { font-size: 14px; }
.nursery-collection small { display: block; color: #667251; font-size: 10px; font-weight: 700; }
.nursery-collection .glyph { margin-left: auto; width: 16px; height: 16px; color: #487655; }
#dialog .nursery-result-copy { margin: 12px 0 9px; }
.nursery-award { display: flex; align-items: center; gap: 7px; color: #75582f; font-size: 12px; }
.nursery-award .glyph { width: 17px; height: 17px; }
.nursery-result-foot { justify-content: flex-end; margin-top: 12px; }

@media (max-width: 435px) and (orientation: portrait) {
  .nursery-cover { min-height: 83px; padding-inline-start: 14px; }
  .nursery-cover::after { background: linear-gradient(90deg, #294e47 27%, #294e47e8 42%, #294e4700 73%); }
  .nursery-recipe { position: relative; display: block; padding: 8px; }
  .nursery-recipe h3 { padding-inline-end: 28px; font-size: 14px; }
  .nursery-sample { float: right; width: 27px; margin-bottom: 3px; }
  .nursery-result-cover { min-height: 99px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #nursery-hud {
    position: fixed;
    top: calc(var(--top) + 51px);
    right: max(var(--phone-right, 10px), env(safe-area-inset-right));
    width: min(32vw, 247px);
  }
  .festival-overlay:has(#voyage-hud:not([hidden])) #nursery-hud { top: calc(var(--top) + 126px); }
  .nursery-cover, .nursery-result-cover { min-height: 67px; padding-block: 7px; }
  #dialog .nursery-cover h2 { font-size: 24px; }
  .nursery-sheet { padding-block: 8px 9px; }
  #dialog .nursery-opening { margin-bottom: 6px; }
  .nursery-recipe { padding: 5px 8px; }
  .nursery-sample { width: 36px; }
  #dialog .nursery-steps, #dialog .nursery-result-copy { margin-block: 6px; }
  .nursery-foot { padding-top: 6px; }
  .nursery-result-foot { margin-top: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nursery-result-cover .nursery-shore { animation: nursery-arrival .45s ease-out both; }
  @keyframes nursery-arrival { from { opacity: .35; transform: translateY(5px); } }
}
