/* Neighborhood greenhouse. Presentation only; interaction and state stay in game.js. */
.codex-plant-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.codex-plant-heading > strong { min-width: 0; overflow-wrap: anywhere; }
.codex-art { position: relative; flex: 0 0 74px; width: 74px; height: 96px; overflow: hidden; display: grid; place-items: end center; background: #edf3ee; border-radius: 5px; }
.codex-art .plant-form { width: 74px; height: 86px; margin-bottom: 15px; z-index: 1; }
.codex-art .plant-stem { height: 62px; }
.codex-art .plant-leaf { width: 30px; height: 16px; }
.codex-art .flower-head { animation: none !important; transition: none; }
.codex-art .plant-form { animation: none !important; transition: none; }
.codex-pot { position: absolute; bottom: 3px; left: 21px; width: 32px; height: 22px; background: #c68968; border-top: 5px solid #aa6f52; border-radius: 2px 2px 10px 10px; }
.codex-art.plant-moonflower { background: #edf0f8; }
.codex-art.plant-calendula { background: #f7f0dc; }
.codex-art.plant-hydrangea { background: #f0eaf5; }
.codex-art-unknown { place-items: center; color: #87988d; font-size: 26px; background: #edf0ed; }
.codex-visitor-art { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; background: #edf2e8; border-radius: 5px; }
.codex-visitor-art .showcase-visitor { position: relative; inset: auto; animation: none; transform: scale(1.5); }
.codex-visitor-art .visitor-sparrow::before { content: ""; position: absolute; right: -3px; top: 3px; width: 8px; height: 7px; background: #806a53; border-radius: 50%; box-shadow: 3px 2px 0 -1px #cdab57; }
.codex-visitor-art .visitor-aphid { border: 1px solid #536930; box-shadow: 3px 2px 0 -2px #536930, -3px 2px 0 -2px #536930; }
.codex-entry .visitor-card-title { min-width: 0; }
.codex-entry p { line-height: 1.6; }
:root {
  --paper: #f2f5f3;
  --panel: #fff;
  --ink: #243b34;
  --muted: #61726b;
  --line: #d6dfda;
  --leaf: #488467;
  --leaf-dark: #285b47;
  --sun: #c18a26;
  --water: #3e7da7;
  --petal: #bd667d;
  --shadow: 0 12px 32px #243b3410;
}
body[data-ui-mode], body { background: var(--paper); color: var(--ink); }
body[data-ui-mode] .app-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-shell::before { display: none; }
body[data-ui-mode] .topbar {
  min-height: 88px;
  margin: 0;
  padding: 18px 0;
  border: 0;
  gap: 18px;
}
body[data-ui-mode] .topbar h1 {
  font-family: "Songti SC", "STSong", ui-serif, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.topbar .eyebrow { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.topbar-actions { flex-wrap: wrap; }
.topbar-actions > button, .topbar .music-control, .utility-menu > summary {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  border-radius: 6px;
}
.visual-mode-button span { background: none; font-size: 0; }
.visual-mode-button span::before { content: ""; display: block; width: 20px; height: 20px; background: url("assets/icons/notebook-pen.svg") center/contain no-repeat; }
body[data-ui-mode="ledger"] .visual-mode-button span::before { background-image: url("assets/icons/house.svg"); }
.visual-mode-button strong { font-size: 13px; font-weight: 600; }
body[data-ui-mode="scene"] .greenhouse-scene-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 214px;
  padding: 28px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  background: #eff8f0 url("assets/greenhouse-bench-v2.png") right center / auto 100% no-repeat;
}
.scene-sky, .scene-greenhouse-lines { display: none; }
body[data-ui-mode="scene"] .scene-status {
  max-width: 55%;
  padding: 0;
  border: 0;
  background: none;
}
.scene-status > span { font-size: 11px; color: #435f50; font-weight: 600; }
.scene-status > span i { display: none; }
body[data-ui-mode="scene"] .scene-status h2 { font-family: "Songti SC", ui-serif, serif; font-size: 25px; line-height: 1.4; margin: 6px 0; }
body[data-ui-mode="scene"] .scene-status p { color: #324d40; font-size: 13px; line-height: 1.65; }
.scene-activity-progress { background: #cedacf; height: 3px; margin-top: 12px; }
.scene-activity-progress b { background: #488467; }
body[data-ui-mode="scene"] .scene-counters { display: none; }
body[data-ui-mode] .speed-control { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 6px 0 12px; margin: 0 0 10px; }
.speed-label { font-size: 12px; font-weight: 500; }
.speed-segments { border: 1px solid var(--line); background: #fff; border-radius: 5px; }
.speed-segments button { background: #fff; font-size: 12px; }
.speed-segments button.active { background: #dcebe2; color: #254e3b; box-shadow: none; }
#speedDescription { font-size: 12px; color: var(--muted); }
body[data-ui-mode] .resource-strip { gap: 0; margin-bottom: 14px; border-block: 1px solid var(--line); }
body[data-ui-mode] .resource-strip article, body[data-ui-mode] .resource-strip .utility-resource {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-ui-mode] .resource-strip article + article { border-left: 1px solid var(--line); }
.resource-strip article::after { display: none; }
.resource-strip article::before { border: 0; box-shadow: none; background: none; content: ""; border-radius: 0; background-position: center; background-repeat: no-repeat; background-size: 23px; }
#coinResource::before { content: ""; background-image: url("assets/icons/coins.svg"); }
#noteResource::before { content: ""; background-image: url("assets/icons/notebook-pen.svg"); }
#compostResource::before { content: ""; background-image: url("assets/icons/sprout.svg"); }
#visitorResource::before { content: ""; background-image: url("assets/icons/bird.svg"); }
body[data-ui-mode] .resource-strip article strong { font-variant-numeric: tabular-nums; font-weight: 650; }
/* Reserve an actual gutter; reset old grid self-alignment on the absolute button. */
#resourceStrip { padding-right: 56px; }
#resourceStrip > article { border-top: 0; }
#resourceStrip #resourceStripToggle {
  position: absolute;
  inset: 50% 4px auto auto;
  transform: translateY(-50%);
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  align-self: auto;
  border: 1px solid #d6dfda;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
#resourceStrip #resourceStripToggle:active { transform: translateY(-50%); }
#resourceStrip > article::before {
  /* Outrank legacy resource-ID background shorthands, which reset repeat/size. */
  content: "";
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  align-self: center;
}
.focus-stack { margin-bottom: 16px; }
.reward-strip, .goal-strip { border: 0; box-shadow: none; background: #e5eee8; }
.reward-strip > button, .goal-strip button { border: 0; border-radius: 0; box-shadow: none; }
.reward-strip > button { grid-template-columns: minmax(0, 1fr) auto; background: #e5eee8; }
.reward-strip > button > strong, .reward-strip > button > small, .reward-strip > button > i { grid-column: 1; }
.reward-strip > button > strong { grid-row: 1; color: #2d523e; font-size: 14px; }
.reward-strip > button > small { grid-row: 2; font-weight: 400; font-size: 12px; color: #5a7061; }
.reward-strip > button > i { grid-row: 3; }
.reward-strip > button > em { grid-column: 2; grid-row: 1 / 4; }
.reward-strip[data-ready="true"] > button { min-height: 76px; border: 0; border-left: 3px solid #c39934; background: #f6edce; box-shadow: none; }
.reward-strip[data-ready="true"] > button::after { display: none; animation: none; }
.reward-strip[data-ready="true"] em { border: 0; border-radius: 4px; box-shadow: none; background: #725d2f; color: #fff; }
.reward-strip button em, .goal-strip-action { font-style: normal; font-weight: 650; color: #285b47; }
.reward-strip.ready, .reward-strip.claimable { background: #f5e8b5; }
#rewardStripIcon { display: none; }
.focus-stack-toggle { background: none; border: 0; color: var(--muted); font-weight: 400; }
body[data-ui-mode] .panel, body[data-ui-mode] .garden,
body[data-ui-mode] .workshop-panel, body[data-ui-mode] .stall-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-ui-mode] .garden { padding: 0; overflow: visible; }
body[data-ui-mode] .seed-panel, body[data-ui-mode] .codex-panel { opacity: 1; box-shadow: none; padding: 0 14px 0 0; }
body[data-ui-mode] .codex-panel { padding: 0 0 0 14px; }
body[data-ui-mode] .seed-panel:hover, body[data-ui-mode] .codex-panel:hover { box-shadow: none; }
.panel-heading, .garden-heading { border: 0; }
.panel-heading h2, body[data-ui-mode] .garden-heading h2 { font-size: 18px; font-weight: 650; }
.panel-heading p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.feedback-button { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; font-size: 12px; }
.feedback-button:hover { border-color: var(--line); background: #fff; }
.selected-seed { border: 0; background: transparent; font-size: 12px; font-weight: 500; }
.seed-card { border: 1px solid transparent; border-bottom-color: var(--line); background: transparent; border-radius: 0; box-shadow: none; padding: 14px 8px; }
.seed-card:hover { background: #e9efeb; transform: none; }
.seed-card.active { background: #fff; border-color: #8aad97; box-shadow: none; border-radius: 4px; }
.seed-name { font-size: 15px; }
.seed-count { background: #e8efe9; border-radius: 4px; font-size: 12px; font-weight: 600; }
.seed-card .seed-meta { font-size: 12px; line-height: 1.5; }
.seed-card-action { color: #285b47; font-size: 12px; }
.seed-buy { border: 0; background: transparent; color: #3a6f58; font-size: 12px; text-align: left; }
.seed-panel > details > summary { border: 0; box-shadow: none; background: transparent; }
.away-actions { gap: 10px; margin: 8px 0 14px; }
.garden .away-actions > button { background: #e0eae4; color: #2d5542; border: 0; border-radius: 5px; box-shadow: none; }
.garden .away-actions > .caretaker-entry { background: #eee9dc; color: #695538; }
.away-actions > button > span { border: 0; border-radius: 0; background: none; font-size: 0; box-shadow: none; }
.away-actions > button > span::before { content: ""; display: block; width: 24px; height: 24px; background: url("assets/icons/armchair.svg") center/contain no-repeat; }
.away-actions > .caretaker-entry > span::before { background-image: url("assets/icons/users-round.svg"); }
.away-actions > button strong { font-size: 14px; }
.away-actions > button small { font-size: 12px; font-weight: 400; opacity: 1; }
.mobile-garden-tools > button { border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: none; }
.mobile-garden-tools i { font-size: 0; background: none; }
.mobile-garden-tools i::before { content: ""; display: block; width: 18px; height: 18px; background: url("assets/icons/sprout.svg") center/contain no-repeat; }
#mobileToolsButton i::before { background-image: url("assets/icons/store.svg"); }
body[data-ui-mode] .plot-card {
  border: 1px solid #cfdbd3;
  border-bottom: 3px solid var(--soil-accent, #739b81);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
body[data-ui-mode] .plot-card::before { display: none; }
body[data-ui-mode] .plot-card:hover { transform: none; box-shadow: 0 0 0 1px #8ea997; }
body[data-ui-mode] .plot-card.selected { outline: 2px solid #4f8265; outline-offset: 2px; box-shadow: none; }
body[data-ui-mode] .plot-card.empty { background: transparent; border: 1px dashed #b5c7bc; }
body[data-ui-mode] .plant-header { padding: 10px 10px 6px; }
.plant-title strong { font-size: 17px; font-weight: 650; }
.plant-title span { font-size: 12px; font-weight: 400; color: #63746b; }
body[data-ui-mode="scene"] .plant-visual {
  background: #f4f7f3;
  border: 0;
  margin: 4px 0 8px;
  min-height: 176px;
  border-radius: 0;
}
body[data-ui-mode="scene"] .plant-moonflower .plant-visual { background: #eef0f8; }
body[data-ui-mode="scene"] .plant-calendula .plant-visual { background: #f7f4e7; }
body[data-ui-mode="scene"] .plant-hydrangea .plant-visual { background: #eef3f9; }
.plant-visual::before, .plant-visual::after { display: none; }
.plant-form { filter: none; }
.plant-leaf { box-shadow: none; }
.soil-state-chip { border: 1px solid var(--soil-accent); color: #3c5b4b; background: #fff; font-weight: 600; }
.nurture-rhythm { border: 0; background: #ffffffd9; padding: 5px 7px; box-shadow: none; }
.nurture-rhythm b { font-size: 11px; font-weight: 600; }
.nurture-rhythm small { font-size: 10px; }
.plot-vitals em { background: transparent; font-weight: 700; font-variant-numeric: tabular-nums; }
.plot-vitals i { font-size: 11px; font-weight: 400; }
.plot-vitals > span > b { height: 3px; }
.visitor-chip { border: 0; border-radius: 4px; box-shadow: none; }
.visitor-chip.negative, .visitor-chip.harmful { background: #fae9e4; color: #a34735; }
.garden-care-summary { border: 0; background: transparent; box-shadow: none; padding-inline: 0; }
.quick-water, .batch-water { background: #e4f0f7; color: #235d7c; border-color: #a2c3d6; }
.plot-card > .context-bar { background: #f9fcfa; border: 1px solid #afc9b9; border-radius: 4px; box-shadow: none; }
.context-heading > div > strong { font-size: 16px; }
.context-heading > div > span { font-size: 12px; line-height: 1.5; }
.context-actions button { border-radius: 4px; font-size: 14px; box-shadow: none; }
.context-actions button.primary { background: #316d50; color: #fff; }
.context-actions button.secondary { background: #fff; border: 1px solid #c3d3c9; color: #355743; }
.context-actions button.replace { color: #846251; background: #f6f2ee; }
.context-close { background: #fff; color: #854b4b; border: 1px solid #d9b8b8; box-shadow: none; }
.tool-card { border: 1px solid #d4ded7; background: #fff; box-shadow: none; border-radius: 6px; }
.tool-product-art { background-color: #edf2ec; border-radius: 0; }
.tool-card:nth-child(2n) .tool-product-art { background-color: #f5e9e4; }
.tool-card:nth-child(3n) .tool-product-art { background-color: #e9eff6; }
.tool-card button { border: 1px solid #a8c1b2; background: #e6efe9; color: #2c5a42; border-radius: 4px; box-shadow: none; }
.tool-card[data-catalog-state="locked"] { opacity: 1; background: #f5f6f5; }
.tool-status { font-size: 12px; }
.order-card { border: 1px solid #d7dfd9; border-radius: 6px; box-shadow: none; background: #fff; }
.order-card > p { color: #5d7165; font-size: 13px; line-height: 1.65; }
.order-card button { border-radius: 4px; }
.material-strip > * { background: transparent; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; border-radius: 0; }
.lin-story { border-color: #c4d3ca; }
.tabs { background: transparent; gap: 0; border-bottom: 1px solid var(--line); }
.tabs .tab { background: transparent; border: 0; border-radius: 0; font-weight: 500; }
.tabs .tab.active { background: transparent; color: #2c6046; box-shadow: inset 0 -3px #4a8264; font-weight: 700; }
.harvest-receipt { background: #eaf2eb; border: 0; border-left: 3px solid #769b7e; box-shadow: none; }
.production-target { background: #eaf1ed; border-left-color: #769b7e; }
.mobile-workspace-nav button { border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.mobile-workspace-nav button.active { background: #e1ede4; color: #24533c; box-shadow: inset 0 -3px #4f8265; }
.mobile-workspace-nav button > span { font-size: 0; background: none; }
.mobile-workspace-nav button > span::before { content: ""; display: block; width: 21px; height: 21px; background: var(--nav-icon) center/contain no-repeat; }
.mobile-workspace-nav [data-workspace-target="garden"] { --nav-icon: url("assets/icons/house.svg"); }
.mobile-workspace-nav [data-workspace-target="orders"] { --nav-icon: url("assets/icons/flower-2.svg"); }
.mobile-workspace-nav [data-workspace-target="codex"] { --nav-icon: url("assets/icons/book-open.svg"); }
.mobile-workspace-nav [data-workspace-target="event"] { --nav-icon: url("assets/icons/trophy.svg"); }
.mobile-workspace-nav [data-workspace-target="stall"] { --nav-icon: url("assets/icons/store.svg"); }
.mobile-workspace-nav #mobilePauseButton > span { font-size: 20px; }
.mobile-workspace-nav #mobilePauseButton > span::before { display: none; }
#productWorkbench { background: #fff; border: 1px solid #b9cdc0; box-shadow: 0 20px 70px #102c2533; }
#productWorkbench header { background: #fff; padding-block: 17px; }
#productWorkbench header h2 { font-family: "Songti SC", ui-serif, serif; font-size: 23px; }
#productWorkbench .pw-preview { background: #edf3ef; border-radius: 0; }
#productWorkbench .pw-primary { background: #356f51; border: 0; border-radius: 4px; box-shadow: 0 2px 0 #204c35; }
#productWorkbench .pw-primary:disabled { background: #e3e9e5; color: #6b7a70; box-shadow: none; }
.pw-market-stage { background: #edf2ee; border-bottom: 2px solid #9cb6a3; }
.pw-counter { border-color: #688b70; }
.pw-speech { border: 1px solid #d7dfd9; box-shadow: none; }
#productWorkbench .pw-row { padding-block: 8px; }
body .product-entry { background: #f1e6e9; border: 0; border-radius: 4px; box-shadow: none; padding: 20px; gap: 20px; }
body .product-entry:hover { background: #ebdde2; }
.product-entry-copy strong { font-family: "Songti SC", ui-serif, serif; font-size: 23px; font-weight: 700; color: #593f4a; }
.product-entry-copy > span { color: #6b5660; }
.product-entry-action { background: #755064; color: #fff; padding: 12px 16px; border-radius: 4px; font-size: 14px; }
.product-entry img { width: 64px; height: 80px; flex-basis: 64px; }
#productRepeatBadge { background: #fff; color: #704d5c; }
@media (max-width: 900px) {
  body[data-ui-mode] .app-shell { width: calc(100% - 28px); padding-bottom: 100px; }
  body[data-ui-mode] .layout-grid { display: block; }
  body[data-ui-mode] .seed-panel, body[data-ui-mode] .codex-panel { padding: 14px; }
  body[data-ui-mode].mobile-panel-open .seed-panel { background: #fff; border: 1px solid var(--line); }
  .mobile-workspace-nav { background: #fffffff5; border-top: 1px solid var(--line); box-shadow: none; }
  .mobile-workspace-nav button { min-width: 0; }
  body[data-ui-mode="scene"] .scene-status { max-width: 55%; }
}
@media (max-width: 680px) {
  body[data-ui-mode] .app-shell { width: calc(100% - 24px); }
  body[data-ui-mode] .topbar { min-height: 0; padding: 12px 0; gap: 10px; }
  body[data-ui-mode] .topbar h1 { font-size: 25px; }
  body[data-ui-mode] .topbar-actions { gap: 5px; }
  body[data-ui-mode="scene"] .greenhouse-scene-header { min-height: 148px; padding: 16px 12px; margin-bottom: 10px; background-position: right center; background-size: 100% auto; }
  body[data-ui-mode="scene"] .scene-status { max-width: 53%; }
  body[data-ui-mode="scene"] .scene-status h2 { font-size: 19px; line-height: 1.35; }
  body[data-ui-mode="scene"] .scene-status p { font-size: 11px; line-height: 1.5; }
  body[data-ui-mode="scene"] .scene-status > span { font-size: 10px; }
  body[data-ui-mode="scene"] .plant-visual { min-height: 116px; }
  body[data-ui-mode] .plant-header { padding: 6px 4px; }
  .plant-title strong { font-size: 14px; }
  .plant-title span { font-size: 11px; }
  body[data-ui-mode] .plot-card { padding: 6px; }
  .soil-state-chip { font-size: 10px; }
  .plot-vitals { gap: 5px; }
  .plot-vitals em { font-size: 12px; }
  .plot-card > .context-bar { width: auto; max-width: 100%; }
  .away-actions > button strong { font-size: 13px; }
  .garden .away-actions > button small { font-size: 11px; }
  body .product-entry { padding: 14px; gap: 12px; }
  .product-entry-copy strong { font-size: 19px; }
  .product-entry img { width: 44px; height: 58px; flex-basis: 44px; }
  .product-entry-action { padding: 10px 14px; }
  #productWorkbench header h2 { font-size: 20px; }
  .reward-strip > button { grid-template-columns: minmax(0, 1fr); }
  .reward-strip > button > em { grid-column: 1; grid-row: 4; justify-self: start; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .plot-card, .scene-activity-progress b { transition: none; }
}
