/* Fresh garden theme. Layout and interaction hooks stay in styles.css. */
:root {
  --green: #09594d;
  --ink: #202c29;
  --muted: #657570;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f5f8f5;
  --mint: #e3eee7;
  --lemon: #f3f59a;
  --pink: #f4b8de;
  --lilac: #d8ccf5;
  --red: #d44c44;
  --radius-card: 24px;
  --radius-control: 14px;
  --radius-small: 8px;
  --plan-add-height: 46px;
  --top-safe-space: max(24px, env(safe-area-inset-top));
}
html, body { background: #e3eae5; color: var(--ink); }
.app-shell { background: var(--paper); box-shadow: 0 0 70px #183e2810; }
.photo-layer, .green-layer { display: none; }
.view { padding-inline: 20px; padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-weight: 750; }
button, input { -webkit-font-smoothing: antialiased; }
button { transition: background-color .18s, box-shadow .18s, transform .18s; }
button:active:not(:disabled) { filter: brightness(.96); }
button:focus-visible, input:focus-visible { outline-color: #795ec2; }
.garden-header, .planner-header-card {
  width: min(calc(100% - 32px), 398px); border: 1px solid #ffffffb8;
  background: #f5f8f5ed; box-shadow: 0 8px 24px #153e3010;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.garden-header { padding: 14px 16px 18px; }
.garden-overview-hint { margin: 5px 0 0; color: #657970; font-size: 12px; line-height: 1.5; }
.garden-header .date-row { color: #53665e; font-size: 11px; margin-bottom: 6px; align-items: center; }
#season { background: var(--pink); color: #58374d; padding: 5px 10px; border-radius: 99px; font-weight: 650; }
.garden-title-row { display: flex; align-items: center; gap: 8px; }
.garden-title-row h1 { flex: 1; min-width: 0; font-size: 22px; }
.garden-flower { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: var(--green); background: var(--lemon); border-radius: 50%; transform: rotate(-12deg); }
.garden-flower svg { width: 26px; height: 26px; }
.garden-title-row .garden-flower { flex-basis: 28px; height: 28px; }
.garden-title-row .garden-flower svg { width: 20px; height: 20px; }
.garden-name { caret-color: var(--green); }
.garden-name:focus { box-shadow: 0 2px 0 var(--green); }
#garden-view { padding-top: calc(var(--top-safe-space) + var(--garden-header-height) + 18px); }
.garden-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 0 0 30px; padding: 14px 8px; border: 1px solid #dbe5dd;
  border-radius: 18px; background: #e8f0ea;
}
.garden-stat {
  min-width: 0; padding: 0 8px; border-left: 1px solid #cbd9ce;
  color: #5b6d64; font-size: 10px; line-height: 1.25; text-align: center;
}
.garden-stat:first-child { border-left: 0; }
.garden-stat strong { display: block; margin-bottom: 2px; color: var(--green); font-size: 23px; line-height: 1.1; font-weight: 750; }
#garden-summary { display: grid; gap: 36px; }
.field-group { min-width: 0; margin: 0; border: 1px solid #d2dfd4; border-radius: var(--radius-card); background: #edf3ee; overflow: hidden; }
.field-heading { align-items: center; margin: 0; padding: 18px 16px 12px; }
.field-title { min-width: 0; }
.field-number { margin: 0 0 4px; color: #657570; font-size: 11px; line-height: 1.3; font-weight: 600; }
.field-heading h2 { font-size: 22px; line-height: 1.2; }
.field-heading small { color: #4a645a; background: var(--mint); border-radius: 99px; padding: 6px 10px; font-size: 11px; }
.plant-strip {
  flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 0 16px;
  overflow: visible;
}
.field-group .plant-strip { padding: 0 16px 16px; }
.field-group .plant-strip:empty { display: none; }
.plant-chip { flex: 0 1 auto; max-width: 100%; min-height: 36px; padding: 0; font-size: 11px; font-weight: 600; }
.chip-face { max-width: 100%; border-radius: 99px; padding: 3px 9px 3px 3px; gap: 5px; background: white; border: 1px solid #e0e8e1; }
.chip-photo { width: 28px; height: 28px; flex-basis: 28px; border-radius: 50%; }
.chip-face .plant-initial { background: #e0eee4; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; color: var(--green); }
.chip-name { min-width: 0; overflow-wrap: anywhere; }
.chip-beds { color: #657970; font-size: 10px; font-weight: 500; }
.field-preview { background-color: #e2ece4; background-image: radial-gradient(#a9bdad80 .7px, transparent .7px); background-size: 16px 16px; padding: 12px; border: 1px solid #d2dfd4; border-radius: 20px; }
.field-group .field-preview { border: 0; border-top: 1px solid #d2dfd4; border-radius: 0; }
.field-group:nth-child(even) .field-preview { background-color: #eee9f7; }
.preview-bed { outline: 1px dashed #6e8a7e99; outline-offset: 3px; container-type: size; }
.preview-bed-number { position: absolute; z-index: 2; bottom: 5px; right: 6px; color: #53665e; font-size: 10px; line-height: 14px; font-weight: 650; }
.preview-plant-grid { position: absolute; inset: 5px 5px 21px; display: grid; grid-template-columns: repeat(var(--plant-count), minmax(0,1fr)); gap: 4px; }
.preview-plant-tile { position: relative; container-type: size; min-width: 0; min-height: 0; }
.preview-plant-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.preview-plant-content .plant-initial { width: auto; height: auto; padding: 0; background: transparent; font-size: 12px; line-height: 1; }
.preview-more { position: absolute; bottom: 5px; left: 6px; font-size: 10px; line-height: 14px; color: #53665e; }
@container (max-width: 64px) or (max-height: 48px) {
  .preview-plant-grid { grid-template-columns: minmax(0,1fr); inset: 3px 3px 16px; }
  .preview-plant-tile:not(:first-child) { display: none; }
}
@container (max-height: 30px) or (max-width: 28px) {
  .preview-plant-grid { inset: 2px; }
  .preview-bed-number, .preview-more { display: none; }
}
.preview-bed-fill { background: #ffffffeb; box-shadow: 0 3px 8px #2046370a; }
.preview-bed.unplanted .preview-bed-fill { background: #ffffff85; }
.preview-bed-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .78; }
.preview-bed.planted .preview-bed-fill::after { content: ''; position: absolute; inset: 0; background: #ffffff24; pointer-events: none; }
.preview-bed.planted .preview-plant-content > .plant-initial { display: inline-grid; min-width: 24px; min-height: 24px; padding: 4px 6px; border-radius: 6px; background: #fffffff0; box-shadow: 0 1px 4px #143b2220; }
.preview-bed.planted .preview-bed-number, .preview-bed.planted .preview-more { padding: 1px 4px; border-radius: 4px; background: #fffffff0; }
.preview-bed .bed-plants { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.plant-initial, .preview-bed .bed-plants .plant-initial { background: #e0eee4; color: var(--green); }
.preview-bed .bed-plants .plant-initial:nth-child(2n) { background: #f1efb8; }
.empty-field { color: var(--green); border-color: #8da99b; }
.bottom-nav { bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 32px),398px); height: 76px; padding: 8px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); place-items: center; gap: 0; border-radius: 28px; background: #084e43f5; box-shadow: 0 12px 32px #063d432b; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.bottom-nav button { width: calc(100% - 16px); min-width: 0; height: 60px; justify-self: center; align-self: center; justify-content: center; border-radius: 20px; padding: 0; gap: 4px; background: transparent; color: #d0e5dc; font-size: 10px; font-weight: 600; line-height: 1; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .25s, box-shadow .25s; }
.bottom-nav button.active { height: 60px; color: #154638; background: var(--lemon); box-shadow: 0 4px 12px #002d2833; transform: none; }
.bottom-nav svg { display: block; width: 23px; height: 23px; flex: 0 0 23px; stroke-width: 1.8; }
.bottom-nav button span { display: block; width: 100%; line-height: 1.2; text-align: center; }
.bottom-nav button:focus-visible { outline-color: var(--pink); }
.planner-header-card { padding: 8px 12px 12px; }
.editor-header .text-button { font-size: 13px; min-height: 44px; }
#save-edit { font-weight: 750; }
.planner-header-card .segmented { background: #e1eae2; padding: 4px; border-radius: 16px; gap: 4px; }
.planner-header-card .segmented button { background: transparent; color: #53665c; border: 0; border-radius: 12px; min-height: 44px; font-size: 14px; }
.planner-header-card .segmented button[aria-selected="true"] { background: var(--green); color: white; box-shadow: 0 2px 5px #16453818; }
.editor-view > #editor-title { color: var(--ink); font-size: 25px; margin-bottom: 16px; }
.editor-view > #editor-title .garden-name { caret-color: var(--green); }
.editor-view > #editor-title:has(+ .garden-area-hint) { margin-bottom: 6px; }
.garden-area-hint { margin: 0 0 18px; color: #657970; font-size: 13px; line-height: 1.5; }
.field-switcher-card { padding: 0 0 18px; margin-bottom: 18px; border: 0; border-bottom: 1px solid #dce5dd; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.field-switcher-card .field-tab { background: #e6ede7; border: 1px solid transparent; color: #52665a; border-radius: 99px; max-width: 100%; }
.field-switcher-card .field-tab[aria-selected="true"] { background: var(--lilac); color: #453a62; border-color: transparent; }
.field-name, .field-name-measure { font-size: 13px; max-width: 100%; }
.field-name-measure { overflow: hidden; }
.field-switcher-card #delete-field { color: #6b7c71; }
.bed-card { display: grid; grid-template-columns: minmax(86px, .9fr) minmax(128px, 1fr); column-gap: 16px; padding: 12px 18px 18px; background: white; border: 1px solid #dde6df; box-shadow: 0 4px 14px #194d3010; }
.bed-card h3 { font-size: 20px; }
.bed-card header { grid-column: 1 / -1; margin-bottom: 10px; }
.bed-shape-preview { grid-column: 1; grid-row: 2 / 4; height: auto; min-height: 126px; border-radius: 14px; background: #edf3ee; margin: 0; }
.bed-shape-preview + .dimension-row { grid-column: 2; grid-row: 2; }
.bed-shape-preview + .dimension-row + .dimension-row { grid-column: 2; grid-row: 3; }
.bed-shape { background: #c7dfce; border: 1px dashed #638674; }
.bed-shape-preview > span { background: #ffffffd9; color: #395c4e; font-size: 12px; }
.dimension-row { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: end; gap: 2px; min-height: 63px; border: 0; color: var(--muted); font-size: 11px; }
.dimension-row > span { justify-self: start; padding-left: 4px; font-weight: 650; }
.touch-stepper { grid-template-columns: 44px 36px 44px; }
.touch-stepper button { width: 44px; height: 44px; background: #e7eee8; border-radius: 50%; }
.touch-stepper output { font-size: 18px; }
.card-planting { grid-column: 1 / -1; border-color: #e4ebe5; margin-top: 16px; }
.card-planting h4 { font-weight: 650; }
.card-plant .plant-initial { background: var(--lilac); color: #534471; }
.card-plant-name { overflow-wrap: anywhere; }
.remove-card-plant { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #657970; }
.remove-card-plant svg { width: 15px; height: 15px; }
.remove-card-plant:hover { background: #e6eee8; color: var(--green); }
.remove-card-plant:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.choose-plants { border-color: #d7e3db; background: #f2f6f3; font-weight: 650; }
.add-bed-card { background: #e1eee5; border-color: #99b8a6; color: var(--green); font-weight: 650; margin: 0 0 16px; }
.plan-add-actions { position: sticky; top: calc(var(--top-safe-space) + var(--planner-header-height) + var(--plan-add-height) + 16px); z-index: 11; margin-bottom: 16px; }
.plan-add-actions .add-bed-card { min-height: var(--plan-add-height); margin: 0; padding: 8px 12px; gap: 10px; font-size: 15px; line-height: 1.3; box-shadow: 0 5px 14px #16453818; }
.editor-view > #add-field { position: sticky; top: calc(var(--top-safe-space) + var(--planner-header-height) + 8px); z-index: 12; height: var(--plan-add-height); min-height: var(--plan-add-height); padding: 8px 12px; background: #fff; border: 1px solid #d2dfd4; border-radius: var(--radius-control); color: var(--green); margin: 0 0 16px; box-shadow: 0 5px 14px #16453818; }
.plan-add-actions .add-bed-card svg { width: 18px; height: 18px; flex: 0 0 18px; }
.plan-add-actions .add-bed-card span { min-width: 0; overflow-wrap: anywhere; }
#generate-field { background: var(--green); color: white; }
.setup-empty { color: var(--muted); }
.history-toolbar, .map-toolbar, .bed-inspector { color: var(--green); }
.bed-inspector strong small { color: var(--muted); }
.workspace { background: #e4ece5; border-color: #cddbd0; }
.field-canvas { background-image: linear-gradient(#537b5922 1px, transparent 1px), linear-gradient(90deg,#537b5922 1px, transparent 1px); border-color: #739b80; background-color: #dce8dd; }
.bed { background: white; }
.bed[aria-pressed="true"] { border-color: #8064c5; box-shadow: 0 0 0 2px #c9b8ed; }
.profile-header { border-color: #dae5de; padding-top: 16px; }
.profile-avatar { background: var(--lilac); border: 0; color: #50436a; width: 64px; height: 64px; flex-basis: 64px; border-radius: 22px; }
.profile-header h1 { font-size: 25px; }
.profile-eyebrow, #profile-garden { color: #65756c; }
.profile-collection h2 { font-size: 20px; }
#profile-plants { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding: 0 20px 10px 0; gap: 12px; scroll-padding-inline: 0 20px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#profile-plants::-webkit-scrollbar { display: none; }
.profile-plant { flex: 0 0 136px; min-height: 154px; flex-direction: column; justify-content: flex-start; padding: 8px 8px 13px; background: white; color: var(--ink); border: 1px solid #e1e9e3; border-radius: 18px; font-size: 13px; line-height: 1.25; font-weight: 650; text-align: left; scroll-snap-align: start; }
.profile-plant > span:not(.alert-dot):not(.plant-photo-placeholder) { width: 100%; padding-inline: 3px; }
.profile-plant > .alert-dot { width: 6px; height: 6px; padding: 0; top: 6px; right: 6px; }
.profile-photo { width: 118px; height: 104px; flex: 0 0 104px; border-radius: 13px; object-fit: cover; }
.garden-journal { background: #e6eee8; margin: 4px -20px calc(-118px - env(safe-area-inset-bottom)); padding: 28px 20px calc(134px + env(safe-area-inset-bottom)); }
.journal-header { border-bottom: 0; padding: 0; }
.journal-header h1 { font: italic 38px/1.1 Georgia, serif; color: var(--green); margin: 9px 0 12px; }
#journal-view { background: #e6eee8; }
#journal-view .garden-journal { margin: 0; padding: 0; background: transparent; }
.garden-glossary { margin-top: 28px; }
.garden-glossary h2 { font-size: 22px; margin-bottom: 16px; }
.glossary-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid #d2dfd4; border-radius: 16px; background: white; }
.glossary-search svg { width: 20px; height: 20px; flex: 0 0 20px; color: #657970; }
.glossary-search input { width: 100%; min-width: 0; min-height: 46px; border: 0; background: transparent; color: var(--ink); font: 16px var(--body); }
.glossary-search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.glossary-search input:focus { outline: 0; }
#glossary-list { margin: 14px 0 0; }
.glossary-entry { padding: 18px 0; border-bottom: 1px solid #dce6df; }
.glossary-entry dt { font-size: 16px; font-weight: 700; color: var(--green); }
.glossary-entry dd { margin: 7px 0 0; color: #53665e; font-size: 14px; line-height: 1.6; }
.journal-header .article-kicker { display: inline-block; background: var(--lemon); color: #40472c; padding: 5px 10px; border-radius: 99px; }
.journal-story { border: 0; background: white; border-radius: 22px; }
.journal-story:nth-child(3n+1) { background: #0c574b; color: white; }
.journal-story:nth-child(3n+2) { background: #ede5fa; }
.journal-story:nth-child(3n+1) .article-kicker, .journal-story:nth-child(3n+1) p, .journal-story:nth-child(3n+1) .story-link { color: #e1ece5; }
.journal-story:nth-child(3n+1) .read-label { color: var(--lemon); }
.journal-photo { height: 185px; }
.story-copy { padding: 20px; }
.story-open h3 { font-size: 23px; line-height: 1.2; }
.story-open p { font-size: 13px; line-height: 1.6; }
.story-link { font-weight: 650; justify-content: space-between; padding-top: 14px; border-top: 1px solid #90ac9a45; }
.story-link svg { width: 22px; height: 22px; }
.read-label { background: #f3f59a; color: #485028; border-radius: 99px; padding: 3px 6px; font-size: 10px; }
.journal-unread-dot { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.journal-story:nth-child(3n+1) .read-label { color: #485028; }
.logout-action { background: transparent; border-color: #b6c9bd; color: var(--green); }
.bottom-sheet { background: var(--paper); border-radius: 28px 28px 0 0; padding-inline: 20px; }
.sheet-header h2 { font-size: 26px; }
#detail-sheet .sheet-header > div { flex: 1; min-width: 0; }
#edit-detail-bed { min-height: 44px; flex: 0 0 auto; font-size: 12px; padding: 0 6px; }
#edit-detail-bed[hidden] { display: none; }
.bed-card { scroll-margin-top: calc(var(--top-safe-space) + var(--planner-header-height) + var(--plan-add-height) * 2 + 32px); }
.sheet-handle { background: #b6c9bf; }
.search-field { background: #e4ede7; border-radius: 99px; }
.search-field input { height: 48px; }
.plant-column button { border: 1px solid #e0e8e1; background: white; font-weight: 600; }
.plant-column button.chosen { background: var(--green); border-color: var(--green); }
.plant-column .good { background: #e3efdf; color: #315c3e; }
.plant-column .good.chosen { color: white; }
.selected-plant { background: var(--lilac); color: #443860; border-radius: 99px; }
.month-feature { background: #edf0cf; border: 0; }
.month-feature > .article-kicker { color: #365944; }
.tip-article h3 { font-size: 23px; }
.detail-stat { border-color: #d7e2da; }
.source-link { color: var(--green); }
.plant-photo-placeholder { display: inline-grid; place-items: center; background: var(--mint); color: var(--green); font-weight: 700; }
.plant-photo-placeholder.hero-photo, .plant-photo-placeholder.journal-photo, .plant-photo-placeholder.journal-detail-photo { display: grid; width: 100%; font-size: 36px; }
.plant-tip-archive { margin-top: 20px; }
.plant-tip-archive summary { cursor: pointer; padding: 14px 0; font-weight: 650; }
.plant-tip-archive .tip-article { padding-block: 16px; border-top: 1px solid #d7e2da; }
.login-view.active { display: block; padding: max(80px,calc(env(safe-area-inset-top) + 48px)) 24px 36px; }
.login-panel { padding: 0; border-radius: 0; background: none; text-align: left; }
.login-panel h1 { font: 800 60px/1 var(--display); margin: 0 0 36px; }
.login-title-line { display: flex; align-items: center; gap: 10px; }
.login-title-line .garden-flower { flex-basis: 44px; height: 44px; }
.login-title-line svg { width: 25px; height: 25px; flex: 0 0 25px; color: var(--green); stroke-width: 1.8; }
.login-panel h1 em { font: italic 68px/.95 Georgia,serif; color: var(--green); }
.login-photo { position: relative; height: 280px; margin-bottom: 36px; }
.login-photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 90px 24px 24px 24px; }
.photo-stamp { position: absolute; right: -8px; bottom: 18px; transform: rotate(-8deg); background: var(--pink); color: #443245; border-radius: 50%; width: 126px; height: 110px; display: grid; align-content: center; text-align: center; font: 600 17px/1.3 var(--body); }
.photo-stamp em { font: italic 23px Georgia,serif; }
.login-panel .primary-action { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: 650 16px var(--body); color: var(--lemon); background: var(--green); border-radius: 18px; }
.login-panel #register-button { justify-content: center; min-height: 48px; margin-top: 20px; background: transparent; color: #58685f; font-size: 13px; }
@media (max-width:360px) {
  .view { padding-inline: 16px; }
  .garden-stats { margin-bottom: 26px; padding-inline: 5px; }
  .garden-stat { padding-inline: 5px; }
  #garden-summary { gap: 32px; }
  .plant-strip { margin: 0; }
  .garden-title-row h1 { font-size: 19px; }
  .garden-flower { flex-basis: 30px; height: 30px; }
  .garden-journal { margin-inline: -16px; padding-inline: 16px; }
  .plant-option-name { gap: 5px; }
  .option-photo { width: 28px; height: 32px; flex-basis: 28px; }
  .plant-column button { font-size: 12px; padding: 6px; }
  .bed-card { grid-template-columns: minmax(74px, .75fr) minmax(124px, 1fr); column-gap: 10px; padding-inline: 14px; }
  .bed-shape-preview { min-height: 122px; }
  .login-panel h1 { font-size: 54px; }
  .login-panel h1 em { font-size: 60px; }
}
@media (prefers-reduced-transparency:reduce) {
  .garden-header,.planner-header-card { background: var(--paper); }
  .bottom-nav { background: #084e43; }
}
