@import url("./theme.css");
@import url("./season.css");
* {
  box-sizing: border-box;
}
:root {
  --rail-width: 218px;
  --rightbar-width: 300px;
  --topbar-height: 78px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + env(safe-area-inset-top, 0px) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.44;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
h1 {
  font-size: clamp(30px, 3.1vw, 47px);
  margin: 10px 0 13px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
}
p {
  color: var(--muted);
}
small {
  font-size: 11px;
  color: var(--muted);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:not(:disabled) {
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
.rail {
  position: fixed;
  width: var(--rail-width);
  inset: 0 auto auto 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-padding-block: 12px;
  border-right: 1px solid var(--line);
  padding: 35px 22px 24px;
  z-index: 10;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.rail > * {
  flex-shrink: 0;
}
.rail .brand {
  min-height: 44px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 0.94;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -1px;
}
.brand b {
  font-weight: 500;
}
.brand-mark {
  font: 47px Georgia;
  color: var(--accent);
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
.brand-symbol {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-inline: auto;
}
.dialog-brand {
  width: 190px;
  max-width: calc(100% - 42px);
  margin-bottom: 22px;
}
.theme-orb .brand-symbol {
  width: 72px;
  height: 72px;
  margin-block: 12px;
}
.mobile-brand {
  display: none;
}
.rail-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  margin: 44px 10px 18px;
  color: var(--muted);
}
.rail nav {
  display: grid;
  gap: 6px;
}
.rail nav button {
  min-height: 44px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 500;
  color: var(--muted);
}
.rail nav button > span:first-child {
  flex: 0 0 22px;
  font-size: 21px;
  line-height: 1;
  width: 22px;
  text-align: center;
}
.rail nav button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rail nav button.active {
  background: var(--soft);
  color: var(--accent);
}
.rail nav button:hover {
  background: var(--soft);
}
.rail-bottom {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
}
.mini-world {
  font: 40px Georgia;
  color: var(--accent);
  margin-bottom: 12px;
}
.rail-bottom p {
  font-size: 13px;
  margin: 0 0 23px;
}
.rail-bottom .secondary {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 10px;
}
.rail-bottom #save-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
.rail-bottom small {
  font-size: 9px;
}
.workspace {
  margin-left: var(--rail-width);
  margin-right: var(--rightbar-width);
  padding-top: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  min-height: 100vh;
}
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-width);
  right: var(--rightbar-width);
  z-index: 20;
  height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: env(safe-area-inset-top, 0px) 34px 0;
}
.breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-right: auto;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.breadcrumb span {
  padding: 0 8px;
  color: var(--line);
}
.header-stats {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
}
.currency {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.currency strong {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.currency small {
  font-size: 10px;
}
.coin-icon {
  color: var(--gold);
  font-size: 17px;
}
.golden-seed-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: middle;
}
.currency > .golden-seed-icon { width: 26px; height: 26px; }
.seed-amount { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seed-emblem .golden-seed-icon { width: 64px; height: 64px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon-button {
  font: 18px Georgia;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
#content {
  padding: 35px 34px 24px;
  outline: none;
  max-width: 1280px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: var(--muted);
}
.weather {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
  text-align: right;
}
.weather > span:not(.live-dot) {
  font-size: 26px;
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}
.weather small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.world-hero {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: var(--soft);
}
.garden-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 560;
}
.scene-label {
  position: absolute;
  top: 21px;
  left: 22px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.scene-label small {
  width: 100%;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  padding-left: 13px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--soft);
}
.scene-badge {
  position: relative;
  display: table;
  margin: 0 18px 16px auto;
  padding: 7px 12px;
  border-radius: 20px;
  background: #f8f7e8dc;
  color: #42654d;
  font-size: 10px;
  backdrop-filter: blur(8px);
}
.scene-workshops {
  min-height: 24px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scene-badge span {
  padding: 0 6px;
  opacity: 0.5;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 21px 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.summary-strip > div {
  min-width: 0;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  padding-left: 12px;
}
.summary-strip > div:first-child {
  padding-left: 0;
}
.summary-strip > div:last-child {
  border-right: 0;
}
.summary-strip span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.summary-strip strong {
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.summary-strip strong small {
  font-size: 9px;
  margin-left: 5px;
  font-weight: 400;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
.section-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.section-heading h2 {
  font-size: 26px;
}
.count {
  font:
    10px "Segoe UI",
    sans-serif;
  color: var(--muted);
  letter-spacing: 0;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px 7px;
  margin-left: 8px;
}
.primary,
.secondary,
.danger-button {
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  min-height: 50px;
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
}
.primary:not(:disabled):hover {
  filter: brightness(1.08);
  box-shadow: 0 3px 12px #0001;
}
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.secondary:not(:disabled):hover {
  background: var(--soft);
  border-color: var(--accent);
}
.text-button {
  padding: 12px 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 48px;
}
.text-button:hover {
  color: var(--accent);
}
.full {
  width: 100%;
}
.seed-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.seed {
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
}
.seed > span {
  font-size: 22px;
}
.seed strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.seed small {
  display: block;
  font-size: 11px;
}
.seed.selected {
  border-color: var(--accent);
  background: var(--soft);
}
.seed-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.seed-heading h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.seed-info {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
}
.seed-info > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 600 13px Georgia, serif;
}
.seed-info:hover { color: var(--accent); background: var(--soft); }
.seed .seed-status {
  margin-top: 4px;
  line-height: 1.4;
}
.seed-locked:disabled {
  opacity: 1;
  color: var(--muted);
  background: var(--bg);
}
.seed-locked:disabled > span {
  opacity: .65;
}
.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.plot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
}
.plot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  border-radius: 4px;
  background: var(--soft);
  padding: 3px 7px;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.ripe .tag {
  color: var(--accent);
}
.crop-display {
  width: 100%;
  height: 100px;
  position: relative;
  display: grid;
  place-items: center;
}
.crop-display:disabled {
  opacity: 1;
}
.crop-emoji {
  font-size: 54px;
  position: relative;
  filter: drop-shadow(0 8px 6px #73472418);
  transition: transform 1s;
}
.crop-shadow {
  position: absolute;
  width: 68px;
  height: 21px;
  border-radius: 50%;
  background: var(--soft);
  bottom: 13px;
}
.sparkle {
  position: absolute;
  right: 21px;
  top: 20px;
  color: var(--gold);
  animation: glow 2s infinite alternate;
}
.plot-card h3 {
  font-size: 14px;
  margin: 5px 0 11px;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  margin: 8px 0;
}
.progress-caption strong {
  font-weight: 500;
  color: var(--accent);
}
.progress {
  height: 4px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  transition: width 0.35s;
}
.plot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.plot-actions .primary {
  padding: 12px 14px;
  font-size: 13px;
  min-height: 50px;
}
.plot-actions .text-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}
.expand-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  text-align: center;
  background: var(--soft-faint);
  padding: 18px;
}
.expand-card > span {
  font-size: 33px;
  color: var(--accent);
  font-weight: 200;
}
.expand-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  margin: 7px;
}
.expand-card p {
  font-size: 11px;
  margin-bottom: 17px;
}
.expand-card .secondary {
  font-size: 13px;
  padding: 12px 14px;
  white-space: normal;
}
.footnote {
  font-size: 10px;
  margin: 15px 0;
  color: var(--muted);
}
.rightbar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 300px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  padding: 32px 25px;
  overflow: auto;
}
.side-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 18px;
}
.rightbar h2 {
  font-size: 25px;
  line-height: 1.18;
  max-width: 200px;
}
.side-quest {
  margin: 28px 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
}
.round-icon {
  font-size: 26px;
  margin-bottom: 20px;
}
.side-quest > small {
  letter-spacing: 1.4px;
  font-size: 8px;
}
.side-quest h3 {
  font-size: 14px;
  margin: 7px 0;
}
.side-quest p {
  font-size: 11px;
  margin: 0 0 20px;
}
.side-quest .secondary {
  font-size: 13px;
  min-height: 52px;
  margin-top: 11px;
}
.daily-card {
  padding: 4px 0 25px;
  border-bottom: 1px solid var(--line);
}
.daily-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  margin: 10px 0 18px;
  line-height: 1.25;
}
.daily-card p {
  font-size: 10px;
  margin: 14px 0 17px;
}
.daily-card .primary {
  font-size: 13px;
  min-height: 52px;
}
.side-note {
  padding: 24px 3px;
}
.side-note > span {
  font-size: 28px;
  color: var(--gold);
}
.side-note h3 {
  font-size: 12px;
  margin: 7px 0;
}
.side-note p {
  font-size: 10px;
}
.side-bottom {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}
.page-symbol {
  font: 64px Georgia;
  color: var(--accent);
  opacity: 0.6;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.upgrade-card,
.recipe-card,
.theme-card,
.artifact-card,
.expedition-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.upgrade-card {
  padding: 23px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tile-icon {
  font-size: 25px;
  color: var(--accent);
}
.upgrade-card h3 {
  margin: 20px 0 8px;
}
.upgrade-card p {
  font-size: 12px;
  min-height: 40px;
}
.upgrade-card .progress {
  margin: 20px 0;
}
.recipe-art {
  height: 145px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 62px;
}
.card-padding {
  padding: 22px;
}
.card-padding h3 {
  margin: 13px 0 9px;
}
.card-padding p {
  font-size: 11px;
  margin: 10px 0;
}
.card-padding .full {
  margin-top: 16px;
}
.ingredients {
  min-height: 35px;
}
.recipe-chain {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.recipe-chain h2 { margin: 8px 0 12px; }
.recipe-chain ol {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-left: 20px;
  margin: 18px 0;
}
.recipe-chain li { padding-left: 4px; }
.recipe-chain li span { display: block; color: var(--muted); font-size: 12px; }
.recipe-note { margin-top: 8px; font-size: 12px; }
.recipe-option { display: inline-block; padding: 5px 8px; border-radius: 6px; background: var(--soft); color: var(--accent); font-size: 11px; }
.recipe-uses { padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.6; overflow-wrap: anywhere; }
.recipe-branches p { max-width: 760px; line-height: 1.6; }
.recipe-card h3 { overflow-wrap: anywhere; }
.machine-status {
  min-height: 19px;
}
.market-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 11px;
  margin-bottom: 24px;
}
.market-banner > span {
  font-size: 32px;
  color: var(--accent);
}
.market-banner p {
  font-size: 11px;
  margin-top: 5px;
}
.market-heading {
  display: flex;
  align-items: center;
  gap: 4px;
}
.market-row .market-reserve {
  color: var(--accent);
  margin-top: 4px;
}
.market-banner > strong {
  font-size: 24px;
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
  color: var(--accent);
}
.market-banner strong small {
  display: block;
  font-size: 9px;
  font-weight: 400;
}
.market-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.market-row {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 18px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.market-row:last-child {
  border-bottom: 0;
}
.market-icon {
  font-size: 30px;
  width: 40px;
  text-align: center;
  color: var(--accent);
}
.market-row h3 {
  font-size: 14px;
}
.market-row p {
  font-size: 10px;
}
.market-row > strong {
  margin-left: auto;
  text-align: right;
  font-weight: 500;
  font-size: 18px;
}
.market-row > strong small {
  display: block;
  font-size: 9px;
}
.market-row .secondary {
  margin-left: auto;
  font-size: 13px;
  min-height: 52px;
}
.prestige-card {
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.prestige-card > div {
  flex: 1;
}
.prestige-card h2 {
  font-size: 35px;
  margin: 12px 0;
}
.prestige-card p {
  font-size: 12px;
}
.prestige-stats {
  display: flex;
  gap: 25px;
  margin: 27px 0;
}
.prestige-stats strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
}
.prestige-stats small {
  font-size: 9px;
  display: block;
}
.prestige-card .muted {
  margin: 10px 0 20px;
  font-size: 10px;
}
.prestige-emblem {
  font: 130px Georgia;
  color: var(--accent);
  opacity: 0.5;
}
.quest-grid {
  display: grid;
  gap: 10px;
}
.quest-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 19px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.quest-card > div {
  flex: 1;
}
.quest-card h3 {
  font-size: 13px;
}
.quest-card p {
  font-size: 10px;
  margin: 5px 0 10px;
}
.quest-card small {
  font-size: 9px;
}
.quest-card .secondary {
  font-size: 13px;
  min-height: 50px;
}
.completed {
  opacity: 0.65;
}
.themes {
  grid-template-columns: repeat(3, 1fr);
}
.theme-preview {
  height: 170px;
  background: color-mix(in srgb, var(--swatch) 18%, var(--panel));
  color: var(--swatch);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.theme-orb {
  font: 80px Georgia;
}
.theme-preview > span {
  font-size: 8px;
  letter-spacing: 2px;
}
.themes .card-padding {
  padding: 17px;
}
.themes h3 {
  font-size: 14px;
}
.themes .secondary {
  font-size: 13px;
  padding: 12px;
}
.time-card {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  background: var(--panel);
}
.time-icon {
  font: 55px Georgia;
  color: var(--accent);
}
.time-card h2 {
  font-size: 26px;
}
.time-card p {
  font-size: 11px;
  margin-top: 8px;
}
.time-card .primary {
  margin-left: auto;
  font-size: 13px;
}
.offline-upgrade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.offline-upgrade-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; }
.offline-upgrade-icon { font: 34px/1 Georgia; color: var(--accent); }
.offline-upgrade-card h2 { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.offline-upgrade-card p { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.offline-upgrade-card .primary {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.offline-upgrade-complete { padding: 12px; border-radius: 8px; background: var(--soft); font-size: 13px; text-align: center; }
.honest-note {
  padding: 25px 0;
}
.honest-note h3 {
  font-size: 13px;
}
.honest-note p {
  font-size: 11px;
  margin-top: 9px;
  max-width: 600px;
}
.muted {
  color: var(--muted);
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 25px 34px;
  color: var(--muted);
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 510px;
  width: calc(100% - 32px);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 140px #0005;
}
dialog::backdrop {
  background: #111c23a8;
  backdrop-filter: blur(5px);
}
#modal-content {
  padding: 36px;
  position: relative;
}
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-heading .dialog-brand {
  flex: 0 1 190px;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.dialog-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 120px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.dialog-coins > div { min-width: 0; }
.dialog-coins strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.dialog-coins small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.dialog-heading .dialog-close {
  position: static;
  align-self: flex-start;
  margin-left: auto;
}
dialog .eyebrow {
  margin: 5px 25px 20px 0;
}
dialog h2 {
  font-size: 35px;
  margin: 0 0 20px;
}
dialog p {
  font-size: 13px;
  margin: 12px 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.welcome-steps {
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
}
.welcome-steps li {
  padding: 7px 0 7px 7px;
}
.welcome-steps li::marker {
  color: var(--accent);
  font-weight: 600;
}
.offline-number {
  font: 45px var(--display);
  color: var(--accent);
  margin: 20px 0;
}
.reward-line {
  font-size: 25px;
  color: var(--accent);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.settings-grid .secondary {
  font-size: 11px;
  white-space: normal;
}
.danger {
  color: #cb615c;
}
.danger-button {
  background: #a43d39;
  color: white;
}
.mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 30px);
  width: max-content;
  background: var(--text);
  color: var(--panel);
  border-radius: 10px;
  padding: 14px 23px;
  box-shadow: 0 8px 35px #0002;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.install-ready {
  border-color: var(--accent) !important;
}
.still *,
.still *:before,
.still *:after {
  animation: none !important;
  transition: none !important;
}
@keyframes glow {
  from {
    opacity: 0.4;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}
@media (min-width: 1650px) {
  :root {
    --rail-width: 240px;
    --rightbar-width: 320px;
  }
  .rail {
    padding: 40px 28px;
  }
  .rightbar {
    width: 320px;
    padding: 40px 30px;
  }
  #content {
    padding: 42px 45px;
  }
  .garden-scene {
    height: auto;
  }
}
@media (max-width: 1250px) {
  :root {
    --rail-width: 185px;
    --rightbar-width: 250px;
  }
  .rightbar {
    width: 250px;
    padding: 28px 20px;
  }
  .rail {
    padding: 28px 16px;
  }
  .topbar {
    padding-inline: 24px;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 8px;
  }
  .currency small {
    display: none;
  }
  #content {
    padding: 28px 24px;
  }
  .plot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-strip strong small {
    display: block;
    margin: 0;
  }
  .weather {
    display: none;
  }
  .garden-scene {
    height: auto;
  }
  .scene-label {
    top: 16px;
    left: 17px;
  }
  .themes {
    grid-template-columns: repeat(2, 1fr);
  }
  .prestige-emblem {
    display: none;
  }
  .seed {
    padding: 9px;
    gap: 6px;
  }
  .seed > span {
    font-size: 20px;
  }
  .seed small {
    font-size: 8px;
  }
}
@media (max-width: 1000px) {
  :root {
    --rightbar-width: 0px;
    --topbar-height: 68px;
  }
  .rightbar {
    position: static;
    margin-left: 185px;
    width: auto;
    border-left: 0;
    padding: 20px 24px;
  }
  .rightbar #sidebar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .rightbar h2,
  .side-heading,
  .side-note,
  .side-bottom {
    display: none;
  }
  .side-quest {
    margin: 0;
  }
  .daily-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .rightbar .round-icon {
    display: none;
  }
  .side-quest h3 {
    margin: 15px 0;
  }
  .daily-card h3 {
    margin: 10px 0 17px;
  }
  .plot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .themes {
    grid-template-columns: repeat(3, 1fr);
  }
  .garden-scene {
    height: auto;
  }
  .brand {
    font-size: 23px;
  }
  .header-stats {
    gap: 15px;
  }
  .summary-strip strong small {
    display: inline-block;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .currency small {
    display: block;
  }
}
/* Compact the fixed navigation by available height, including tablet landscape. */
@media (max-height: 850px) {
  .rail {
    padding-block: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  }
  .rail-label {
    margin: 20px 8px 10px;
  }
  .rail nav {
    gap: 3px;
  }
  .rail nav button {
    padding: 8px 10px;
    gap: 10px;
  }
  .rail-bottom {
    padding-top: 14px;
  }
  .rail-bottom .mini-world {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .rail-bottom .brand-symbol {
    width: 32px;
    height: 32px;
  }
  .rail-bottom p {
    margin-bottom: 12px;
  }
  .rail-bottom #save-status {
    margin-top: 12px;
  }
}
@media (max-height: 700px) {
  .rail-bottom .mini-world,
  .rail-bottom p {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --rail-width: 0px;
    --topbar-height: 64px;
  }
  body {
    font-size: 13px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .rail {
    display: none;
  }
  .topbar {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    gap: 10px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    width: 110px;
    min-width: 65px;
    min-height: 44px;
    margin-right: auto;
  }
  .mobile-brand + .breadcrumb {
    display: none;
  }
  .breadcrumb {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .breadcrumb strong,
  .breadcrumb span {
    display: none;
  }
  .currency small {
    display: none;
  }
  .currency strong {
    font-size: 13px;
  }
  .header-stats {
    gap: 13px;
  }
  .currency {
    gap: 5px;
  }
  .icon-button {
    width: 31px;
    height: 31px;
  }
  .topbar .icon-button[data-action="help"] {
    display: none;
  }
  #content {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 34px;
    margin-top: 9px;
    max-width: 390px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 330px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .page-heading > .primary {
    padding: 12px 14px;
    font-size: 13px;
  }
  .page-symbol {
    display: none;
  }
  .garden-scene {
    height: auto;
    width: 100%;
    transform: none;
  }
  .world-hero {
    border-radius: 11px;
  }
  .scene-label {
    top: 15px;
    left: 15px;
    font-size: 8px;
  }
  .scene-label small {
    font-size: 8px;
  }
  .scene-badge {
    font-size: 9px;
    margin: 0 11px 12px auto;
    padding: 6px 10px;
  }
  .summary-strip {
    padding: 20px 0;
    gap: 8px;
  }
  .summary-strip > div {
    padding-left: 7px;
  }
  .summary-strip span {
    font-size: 8px;
    max-width: 110px;
    min-height: 25px;
  }
  .summary-strip strong {
    font-size: 20px;
  }
  .summary-strip strong small {
    display: block;
    font-size: 8px;
    margin: 0;
  }
  .section-heading {
    margin: 26px 0 18px;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading .secondary {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 50px;
  }
  .plot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .plot-card {
    padding: 13px;
  }
  .seed-picker {
    gap: 7px;
  }
  .seed {
    padding: 9px 7px;
    gap: 5px;
  }
  .seed > span {
    font-size: 20px;
  }
  .seed strong {
    font-size: 10px;
  }
  .seed small {
    font-size: 8px;
  }
  .crop-display {
    height: 90px;
  }
  .plot-top {
    font-size: 7px;
  }
  .tag {
    font-size: 8px;
    padding: 3px 5px;
  }
  .crop-emoji {
    font-size: 48px;
  }
  .plot-card h3 {
    font-size: 13px;
  }
  .progress-caption {
    font-size: 8px;
    gap: 4px;
  }
  .plot-actions > button {
    width: 100%;
    padding: 12px 8px;
  }
  .expand-card {
    min-height: 240px;
    padding: 15px;
  }
  .footnote {
    font-size: 9px;
  }
  .rightbar {
    margin: 0;
    padding: 0 18px 30px;
  }
  .rightbar #sidebar-content {
    gap: 12px;
  }
  .side-quest {
    padding: 15px;
  }
  .daily-card {
    padding: 15px;
  }
  .rightbar h3 {
    font-size: 15px;
  }
  .daily-card h3 {
    font-size: 19px;
  }
  .side-quest p,
  .daily-card p {
    font-size: 10px;
  }
  .daily-card .primary,
  .side-quest .secondary {
    font-size: 13px;
    padding: 13px 12px;
  }
  .side-quest h3 {
    margin: 10px 0;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--panel);
    border-top: 1px solid var(--line);
    z-index: 30;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-padding-inline: 10px;
  }
  .mobile-nav button {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 72px;
    min-height: 64px;
    flex: 1 0 72px;
    padding: 7px 8px;
    border-radius: 9px;
    white-space: nowrap;
  }
  .mobile-nav button span {
    font-size: 25px;
    line-height: 1.2;
  }
  .mobile-nav .active {
    color: var(--accent);
    background: var(--soft);
  }
  footer {
    padding: 20px 18px;
    font-size: 8px;
  }
  footer span {
    display: none;
  }
  .card-grid {
    gap: 12px;
  }
  .upgrade-card {
    padding: 18px;
  }
  .upgrade-card h3 {
    font-size: 14px;
  }
  .upgrade-card p {
    font-size: 11px;
    min-height: 50px;
  }
  .upgrade-card .primary {
    font-size: 13px;
    padding: 13px 12px;
  }
  .card-padding {
    padding: 15px;
  }
  .recipe-art {
    height: 120px;
  }
  .card-padding h3 {
    font-size: 14px;
  }
  .card-padding .primary {
    font-size: 13px;
    padding: 13px 12px;
    white-space: normal;
  }
  .recipe-card .card-top strong {
    font-size: 11px;
  }
  .market-banner {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 18px;
    gap: 13px;
  }
  .market-banner > span {
    font-size: 28px;
  }
  .market-banner > strong {
    grid-column: 2;
    margin-left: 0;
    font-size: 20px;
  }
  .market-banner h3 {
    font-size: 14px;
  }
  .market-banner p {
    font-size: 10px;
  }
  .market-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 16px;
    gap: 12px;
  }
  .market-icon {
    width: 29px;
    font-size: 26px;
  }
  .market-row h3 {
    font-size: 12px;
  }
  .market-row p {
    font-size: 9px;
  }
  .market-row > .secondary {
    grid-column: 1 / -1;
    width: 100%;
    padding: 13px 16px;
    font-size: 13px;
  }
  .market-row > strong {
    font-size: 15px;
  }
  .market-row strong small {
    font-size: 8px;
  }
  .prestige-card {
    padding: 23px;
  }
  .prestige-card h2 {
    font-size: 31px;
  }
  .prestige-stats {
    gap: 15px;
  }
  .prestige-stats strong {
    font-size: 23px;
  }
  .prestige-stats small {
    font-size: 8px;
  }
  .quest-card {
    gap: 12px;
    padding: 15px;
  }
  .quest-card > .tile-icon {
    font-size: 20px;
  }
  .quest-card .secondary {
    padding: 9px 10px;
  }
  .themes {
    grid-template-columns: 1fr;
  }
  .theme-card {
    display: flex;
  }
  .theme-preview {
    min-width: 115px;
    height: auto;
  }
  .theme-orb {
    font-size: 60px;
  }
  .theme-preview > span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .themes .card-padding {
    flex: 1;
    padding: 15px;
  }
  .themes .card-padding h3 {
    margin-top: 0;
  }
  .themes .card-padding .full {
    margin-top: 5px;
  }
  .time-card {
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .time-icon {
    font-size: 40px;
  }
  .time-card > div:nth-child(2) {
    flex: 1;
  }
  .time-card h2 {
    font-size: 24px;
  }
  .time-card .primary {
    margin: 0;
    width: 100%;
  }
  .honest-note {
    padding: 22px 0 0;
  }
  #modal-content {
    padding: 28px 23px;
  }
  .dialog-heading { gap: 8px; }
  dialog h2 {
    font-size: 30px;
  }
  dialog p,
  .welcome-steps {
    font-size: 12px;
  }
  .dialog-actions .primary,
  .dialog-actions .secondary,
  .dialog-actions .danger-button {
    font-size: 11px;
    padding: 11px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .settings-grid {
    gap: 8px;
  }
  .settings-grid .secondary {
    font-size: 10px;
  }
  #toast {
    bottom: calc(102px + env(safe-area-inset-bottom));
    font-size: 11px;
    padding: 12px 17px;
  }
  .install-ready {
    box-shadow: 0 0 0 1px var(--accent);
  }
}

/* Grid tracks must shrink with font and emoji metrics on Android/Linux. */
.seed-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plot-card, .seed, .seed > div, .side-quest, .daily-card { min-width: 0; }
.full { white-space: normal; }
@media (max-width: 700px) {
  .seed-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rightbar #sidebar-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plot-actions { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .seed-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rightbar #sidebar-content { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .plot-top { flex-wrap: wrap; }
  .expand-card .secondary { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .summary-strip span {
    font-size: 9px;
  }
  .summary-strip strong small {
    font-size: 9px;
  }
  .seed small {
    font-size: 11px;
  }
  .seed strong {
    font-size: 13px;
  }
  .plot-top {
    font-size: 8px;
  }
  .progress-caption {
    font-size: 9px;
  }
  .footnote {
    font-size: 10px;
  }
  .market-row p {
    font-size: 10px;
  }
  .planet-info p {
    font-size: 9px;
  }
}

/* Keep frequently used lower-page actions generous at every viewport size. */
/* Keep the helper beside the crop without adding height to the card. */
.plot-visual { position: relative; display: flex; align-items: center; gap: 6px; }
.plot-visual .crop-display { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; }
.plot-visual .crop-plant, .plot-visual .crop-shadow { max-width: 100%; }
.helper-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.helper-switch.helper-active { background: rgba(65, 151, 224, .18); border-color: #4788bd; }
.helper-switch.helper-paused { background: #fff; }
.plot-helper-badge {
  flex: 0 0 44px;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.helper-overview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.helper-overview-icon { font-size: 32px; }
.helper-overview > div { flex: 1 1 240px; min-width: 0; }
.helper-overview h2 { font-size: 23px; }
.helper-overview p { margin: 8px 0 0; font-size: 13px; }
.helper-overview .helper-plot-list {
  flex-basis: 100%;
  display: grid;
  gap: 12px;
}
.helper-plot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.helper-plot-row h3 { margin: 0; font-size: 15px; }
.helper-plot-row button { min-height: 48px; }
.helper-plot-row > * { max-width: 100%; overflow-wrap: anywhere; }
.helper-plot-row button, .helper-active { white-space: normal; }
.helper-option { margin-top: 20px; }
.helper-active { justify-self: start; }
.upgrade-card .primary,
.recipe-card .primary,
.prestige-card .primary,
.time-card .primary {
  min-height: 52px;
  font-size: 14px;
}
@media (max-width: 480px) {
  .card-grid,
  .rightbar #sidebar-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading,
  .section-heading {
    flex-wrap: wrap;
  }
  .page-heading > .primary {
    width: 100%;
  }
  .quest-card {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .quest-card .secondary {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.cloud-panel { padding: 18px; margin: 20px 0; border: 1px solid var(--line, #ddd9c9); border-radius: 16px; background: #f6f7ef; }
.cloud-panel h3 { margin-top: 0; }
.cloud-panel p { overflow-wrap: anywhere; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cloud-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.cloud-choices > div { padding: 12px; background: #fffdf6; border-radius: 12px; }
.cloud-choices button, .cloud-actions button { white-space: normal; }
.cloud-notice { color: #854d27; }
.topbar [data-cloud] { position: relative; }
.topbar [data-cloud]:not([data-cloud="local"])::after { content: ""; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #bd8629; border: 1px solid white; }
.topbar [data-cloud="saved"]::after { background: #477653; }
@media (max-width: 480px) { .cloud-choices { grid-template-columns: 1fr; } .cloud-actions > * { width: 100%; } }

.cloud-actions button[aria-pressed="true"] { opacity: 1; background: #e3ecd8; border-color: #81966c; color: #33482a; cursor: default; }

.language-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr);
  align-items: center;
  gap: 10px 16px;
  margin: 4px 0 24px;
}
.language-picker label { font-weight: 700; }
.language-picker select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d8dfd0);
  border-radius: 12px;
  background: var(--paper, #fffdf8);
  color: inherit;
  font: inherit;
}
.language-picker small { grid-column: 1 / -1; color: var(--muted, #626f61); }
@media (max-width: 400px) {
  .language-picker { grid-template-columns: minmax(0, 1fr); }
}

/* Six independent places below the working garden, accessible without dragging. */
.garden-decorations,.market-orders{margin:28px 0 36px;padding:24px;background:var(--surface,#fffdf6);border:1px solid #d9dfce;border-radius:22px}
.decoration-preview{border-radius:18px;overflow:hidden;max-width:800px;margin:0 auto 24px;background:#c0d0aa}
.decoration-preview .garden-scene{display:block;width:100%;height:auto}
.decoration-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.decoration-slot{display:grid;gap:8px;padding:12px;border:1px solid #d9dfce;border-radius:12px;min-width:0}
.decoration-slot label{font-weight:700}.decoration-slot select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #bfcab5;border-radius:8px;background:#fffdf6;color:#354a38;font:inherit}
.decoration-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.decoration-card,.order-card{padding:16px;text-align:center;border:1px solid #d9dfce;border-radius:14px;min-width:0}
.decoration-card .secondary,.decoration-slot .secondary{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.decoration-art{display:block;width:90px;height:90px;margin:0 auto 8px}.decoration-card h3,.order-card h3{margin:8px 0 12px}
.order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.order-ingredients{display:grid;gap:8px}.order-ingredients>span{display:block}.order-ingredients .product-art{width:28px;height:28px;vertical-align:middle}
@media(max-width:650px){.garden-decorations,.market-orders{padding:16px}.decoration-catalog,.decoration-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.order-grid{grid-template-columns:1fr}.decoration-card{padding:10px}.decoration-slot .secondary,.decoration-card .secondary{padding:10px 8px;font-size:12px}}

.connection-notice { margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid #c5a767; border-radius: 16px; background: #fff6df; color: #3e493a; }
.connection-notice[hidden] { display: none; }
.connection-notice p { margin: 0 0 .75rem; }

.awaiting-garden #header-stats, .awaiting-garden #content, .awaiting-garden #sidebar-content { visibility: hidden; }
.production-stage-heading {
  grid-column: 1 / -1;
  padding: 30px 0 8px;
  border-top: 1px solid #d9dfce;
}
.production-stage-heading h2 { margin: 10px 0; }
.production-stage-heading p { max-width: 680px; line-height: 1.6; }

.admin-panel { padding: 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.admin-panel h2 { margin-top: 0; }
.admin-panel p { line-height: 1.6; max-width: 760px; }
.admin-panel [role="switch"][aria-checked="true"] { background: var(--accent); color: white; }
.admin-panel summary { cursor: pointer; font-weight: 700; }
.admin-credit-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.admin-credit-row input { min-width: 0; width: 100%; max-width: 260px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; }
.admin-price-table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.admin-price-table th, .admin-price-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.admin-price-table th:first-child { text-align: left; }

.admin-panel button, .admin-panel a.secondary { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.admin-panel a.secondary { display: inline-flex; align-items: center; text-decoration: none; }
.admin-panel p { margin: 12px 0 20px; }
.admin-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--accent); border-radius: 10px; background: var(--soft); font-size: 13px; }

@media (max-width: 600px) {
  .admin-price-table, .admin-price-table tbody { display: block; width: 100%; }
  .admin-price-table thead { display: none; }
  .admin-price-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .admin-price-table th, .admin-price-table td { border: 0; padding: 6px 0; white-space: normal; overflow-wrap: anywhere; }
  .admin-price-table th { display: block; }
  .admin-price-table td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
  .admin-price-table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}

/* One fixed seven-day calendar, also on the smallest mobile screens. */
.daily-card { align-self: start; container-type: inline-size; }
.daily-card h3 { margin: 0 0 12px; }
.daily-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; list-style: none; padding: 0; margin: 0 0 12px; }
.daily-calendar li { min-width: 0; }
.daily-day { display: grid; align-content: center; gap: 4px; width: 100%; min-height: 48px; padding: 5px 1px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); text-align: center; line-height: 1.25; cursor: pointer; }
.daily-day.collected { background: var(--soft); }
.daily-day.next { border-color: var(--accent); border-width: 2px; padding: 4px 0; }
.daily-day[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.daily-day-number { font-size: 13px; font-weight: 700; position: relative; }
.daily-check { font-size: 8px; margin-left: 1px; color: var(--accent); }
.daily-day-seeds { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.daily-day-seeds { display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--accent); }
.daily-day-seeds .golden-seed-icon { flex: none; width: 14px; height: 14px; }
.daily-detail { margin-bottom: 10px; }
.daily-detail > strong { display: block; font-size: 12px; }
.daily-detail > small { display: block; color: var(--muted); font-size: 11px; }
.daily-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin-top: 5px; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.daily-amount { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; }
.daily-amount-text { overflow-wrap: anywhere; }
.daily-reward-icon { display: block; flex: 0 0 14px; width: 14px; height: 14px; }
.daily-amount > .golden-seed-icon { width: 18px; height: 18px; }
.daily-card .primary { min-height: 42px; padding: 9px 8px; white-space: normal; overflow-wrap: anywhere; }
.daily-rules { margin-top: 10px; color: var(--muted); }
.daily-rules summary { cursor: pointer; font-size: 11px; }
.daily-rules p { margin: 8px 0; }

/* Respond to the card width, including narrow desktop/tablet sidebars. */
@container (max-width: 280px) {
  .daily-day-seeds { flex-direction: column; }
}

.admin-email-list { list-style: none; padding: 0; margin: 16px 0 24px; }
.admin-email-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-email-list li > span { min-width: 0; overflow-wrap: anywhere; }
.admin-email-list .tag { white-space: normal; }

/* The parallel experiment keeps controls at their point of use. */
.upgrade-preview-banner{border:1px solid #d4bd7a;background:#fff8dd;padding:16px 20px;border-radius:16px;margin-bottom:24px;color:#514829}
.upgrade-preview-banner p{margin:5px 0;font-size:.86rem;line-height:1.5}
.upgrade-preview-banner summary{cursor:pointer;font-weight:650;margin-top:8px}
.preview-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0}
.preview-actions>*{max-width:100%;white-space:normal}
.targeted-badge{margin-top:10px;min-height:40px;font-size:.82rem;padding:9px 13px;white-space:normal;max-width:100%}
.targeted-options{display:grid;gap:14px;margin:20px 0}
.targeted-option{border:1px solid var(--line,#e0e5db);border-radius:14px;padding:16px;display:grid;gap:10px}
.targeted-option h3{margin:0 0 6px}.targeted-option p{margin:10px 0 0}.targeted-option button{white-space:normal}
.targeted-overview{padding:20px;background:var(--surface,#fff);border-radius:16px;border:1px solid var(--line,#e0e5db);margin-bottom:20px}
.market-item-actions{display:grid;gap:6px;justify-items:stretch;min-width:0}.market-item-actions .targeted-badge{margin-top:0}
@media(max-width:600px){.upgrade-preview-banner{padding:14px}.preview-actions{align-items:stretch}.preview-actions button{flex:1 1 140px}.market-item-actions{grid-column:1/-1}.market-item-actions button{width:100%}}

/* Each bed owns its planting choice; the catalogue lives in this dialog. */
dialog:has(#planting-picker) { max-width: 600px; max-height: calc(100dvh - 24px); }
dialog:has(#planting-picker) #modal-content { padding: 24px; }
dialog:has(#planting-picker) .dialog-brand { flex-basis: 130px; width: 130px; margin: 0; }
dialog:has(#planting-picker) .dialog-heading { margin-bottom: 14px; }
dialog:has(#planting-picker) h2 { font-size: 28px; margin-bottom: 12px; }
#planting-picker .seed-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
#planting-picker .seed {
  min-height: 108px;
  padding: 10px 6px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
#planting-picker .seed > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; }
#planting-picker .seed .product-art { width: 28px; height: 28px; }
#planting-picker .seed > div { width: 100%; }
#planting-picker .seed strong { font-size: 12px; line-height: 1.3; margin-bottom: 4px; }
#planting-picker .seed small { font-size: 11px; line-height: 1.35; }
#planting-picker .seed .seed-status { margin-top: 3px; }
#planting-picker .seed:hover:not(:disabled) { border-color: var(--accent); background: var(--soft); }
.seed-unlocks { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.seed-unlocks h3 { margin: 0; font-size: 18px; }
.seed-rules { color: var(--muted); font-size: 12px; }
.seed-rules summary { cursor: pointer; padding: 10px 0; }
@media (max-width: 480px) {
  dialog:has(#planting-picker) { width: calc(100% - 16px); }
  dialog:has(#planting-picker) #modal-content { padding: 20px 12px; }
  #planting-picker .seed-picker { gap: 6px; }
}

.fixed-crop-label { font-size: .8rem; color: var(--muted); padding: .5rem; }
.fixed-bed-intro { max-width: 68ch; color: var(--muted); }
.expand-card > span .product-art { width: 72px; height: 72px; }

.market-auto-sell { white-space: normal; overflow-wrap: anywhere; }
.market-auto-sell[aria-checked="true"] { background: var(--green-soft, #e6eedf); border-color: var(--green, #42654d); }

/* Mandatory updates stay usable above every ordinary application dialog. */
#required-update { max-height: calc(100dvh - 24px); overflow: auto; }
.required-update-content { padding: clamp(20px, 5vw, 36px); overflow-wrap: anywhere; }
#required-update h2 { font-size: clamp(25px, 5vw, 35px); }
#required-update .dialog-actions { flex-wrap: wrap; }
#required-update button, #required-update a { min-height: 44px; white-space: normal; }
#required-update a[hidden] { display: none; }
#required-update button[aria-disabled="true"] { opacity: .65; cursor: wait; }
#required-update-status:empty { display: none; }
