:root { --green: #426b43; --ink: #244429; --muted: #68766a; --light: #c3d2be; --red: #d76460; --display: "American Typewriter", Rockwell, Georgia, serif; --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --nav-height: 90px; --top-safe-space: max(38px, env(safe-area-inset-top)); --garden-header-height: 116px; --planner-header-height: 236px; --radius-card: 18px; --radius-control: 10px; --radius-small: 8px; --glass-light: #f8fff094; --glass-soft: #d5e3cd8f; --glass-border: #ffffffb3; }
* { box-sizing: border-box; letter-spacing: 0; }
html, body { margin: 0; min-height: 100%; background: #27382d; color: white; font-family: var(--body); }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible, input:focus-visible { outline: 3px solid #edc96b; outline-offset: 3px; }
[hidden], .hidden { display: none !important; }
svg { width: 20px; height: 20px; stroke-width: 1.7; flex: 0 0 auto; }
.app-shell { width: min(100%, 430px); min-height: 100dvh; margin: auto; isolation: isolate; position: relative; overflow-x: clip; overflow-y: visible; }
.photo-layer, .green-layer { position: fixed; inset: 0 auto 0 50%; width: min(100%, 430px); transform: translateX(-50%); z-index: -2; }
.photo-layer { background: url('./assets/garten.jpg') center/cover; }
.green-layer { background: #365f38e8; z-index: -1; }
.view { display: none; min-height: 100dvh; padding: max(26px, env(safe-area-inset-top)) 28px calc(126px + env(safe-area-inset-bottom)); }
.view.active { display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: 23px; line-height: 1.25; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 16px; }
#garden-view { padding-top: calc(var(--top-safe-space) + var(--garden-header-height) + 24px); }
.garden-header { position: fixed; z-index: 12; top: var(--top-safe-space); left: 50%; width: min(calc(100% - 44px), 386px); transform: translateX(-50%); margin: 0; padding: 22px 20px 20px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-light); color: var(--ink); box-shadow: 0 10px 28px #18351f24, inset 0 1px 0 #ffffffd9; -webkit-backdrop-filter: blur(14px) saturate(135%); backdrop-filter: blur(14px) saturate(135%); }
.date-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #e0e9dc; margin: 0 0 21px; line-height: 1.5; }
.garden-header .date-row { color: #536c57; margin-bottom: 10px; }
.garden-header h1, #editor-title { border-bottom: 1px solid #ffffff70; padding-bottom: 13px; }
.garden-header h1 { border: 0; padding-bottom: 0; }
.garden-name { display: block; width: 100%; min-width: 0; border: 0; border-radius: 0; padding: 0; text-align: left; color: inherit; background: transparent; font: inherit; min-height: 48px; text-overflow: ellipsis; caret-color: white; }
.garden-header .garden-name { min-height: 46px; caret-color: var(--green); }
.garden-name:focus { outline: none; box-shadow: 0 1px 0 #ffffff80; text-overflow: clip; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; padding: 0; border-radius: 5px; background: transparent; color: inherit; flex-shrink: 0; }
.icon-button:hover { background: #ffffff18; }
.text-button { min-height: 40px; border: 0; padding: 6px 0; background: transparent; color: white; font-size: 14px; }
.dark { color: var(--green); }
.primary-action { border: 0; border-radius: 6px; min-height: 46px; padding: 10px 18px; background: var(--green); color: white; font-size: 15px; font-weight: 600; }
.login-view.active { display: grid; place-items: center; padding-top: 80px; padding-bottom: 100px; }
body[data-view="login"] .green-layer { background: #214b2314; }
.login-panel { width: 100%; padding: 45px 30px; border-radius: 22px; background: #426b43e3; text-align: center; }
.login-panel > p:first-child { font: 700 54px/1 var(--display); margin: 0; }
.login-panel h1 { font-size: 48px; margin-bottom: 45px; }
.login-panel .primary-action { width: 100%; min-height: 60px; font: 700 23px var(--display); background: white; color: var(--green); }
.register-copy { margin: 52px 0 16px; line-height: 1.5; font: 15px/1.5 var(--display); }
.field-group { margin-bottom: 29px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-heading h2 { font-size: 19px; overflow-wrap: anywhere; }
.field-heading small { white-space: nowrap; color: #d6e2d2; font-size: 11px; }
.plant-strip { display: flex; flex-wrap: wrap; gap: 4px 7px; padding: 9px 0 11px; }
.plant-chip { position: relative; padding: 6px 0; border: 0; color: var(--green); background: none; font: 700 13px var(--display); min-height: 40px; }
.chip-face { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 8px 3px 4px; border-radius: 4px; background: #fcfdfb; }
.plant-photo { display: block; object-fit: cover; background: #dce8d7; }
.chip-photo { width: 28px; height: 28px; border-radius: 6px; flex: 0 0 28px; }
.plant-initial { display: inline-grid; place-items: center; width: 21px; height: 21px; background: #e3ebdf; border-radius: 3px; font: 600 11px var(--body); flex: 0 0 auto; }
.alert-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; position: absolute; top: 4px; right: -2px; }
.field-preview { position: relative; width: 100%; display: flex; justify-content: center; container-type: inline-size; background: #dce8d22b; border-radius: 16px; padding: 8px; }
.preview-map { position: relative; width: 100%; aspect-ratio: var(--preview-ratio); }
.preview-bed { position: absolute; border: 0; border-radius: 8px; outline: 1px dashed #dce8d8b8; outline-offset: 3px; background: transparent; color: var(--green); padding: 0; display: flex; align-items: center; justify-content: center; gap: 3px; overflow: visible; box-shadow: none; }
.preview-bed-fill { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; background: #ffffffd9; }
.preview-bed.unplanted .preview-bed-fill { background: #ffffffa8; }
.preview-bed .bed-plants { position: relative; z-index: 1; width: auto; max-width: calc(100% - 8px); min-height: 32px; max-height: calc(100% - 8px); gap: 2px; padding: 2px 3px; border-radius: var(--radius-small); background: #f8fff0d9; box-shadow: 0 2px 7px #18351f29; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.preview-bed.unplanted .bed-plants { display: none; }
.preview-bed .bed-plants .plant-initial { width: 24px; height: 30px; font-size: 12px; border-radius: 5px; }
.plant-overflow { min-width: 24px; height: 30px; display: inline-grid; place-items: center; color: #426b43; font-size: 11px; font-weight: 700; }
.preview-bed .alert-dot { top: -3px; right: -3px; }
.empty-field { position: absolute; inset: 20% 20%; border: 1px dashed #ffffff70; color: white; background: transparent; border-radius: 5px; font-size: 13px; }
.editor-view { padding: calc(var(--top-safe-space) + var(--planner-header-height) + 18px) 20px calc(119px + env(safe-area-inset-bottom)); }
.planner-header-card { position: fixed; z-index: 12; top: var(--top-safe-space); left: 50%; width: min(calc(100% - 40px), 390px); transform: translateX(-50%); margin: 0; padding: 10px 14px 14px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-light); color: var(--ink); box-shadow: 0 10px 28px #18351f24, inset 0 1px 0 #ffffffd9; -webkit-backdrop-filter: blur(14px) saturate(135%); backdrop-filter: blur(14px) saturate(135%); }
.editor-header { display: flex; justify-content: space-between; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 5px 0 20px; }
.segmented button { border: 0; border-radius: 4px; min-height: 36px; background: #c3d2be80; color: #365b36; font: 700 17px var(--display); }
.segmented button[aria-selected="true"] { background: white; }
#editor-title { font-size: 21px; padding-bottom: 5px; }
.field-switcher { display: flex; align-items: center; gap: 2px; margin: 13px 0 4px; }
#field-tabs { display: flex; gap: 5px; overflow-x: auto; flex: 1; scrollbar-width: thin; min-width: 0; }
.field-tab { border: 0; border-radius: 4px; min-height: 38px; padding: 7px 12px; background: #ffffff12; color: #e0eadd; font: 700 16px var(--display); white-space: nowrap; }
.field-tab[aria-selected="true"] { background: #d6e3ce55; color: white; }
.command { min-height: 40px; border: 0; background: #f6f9f2; color: var(--green); border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; font-size: 13px; font-weight: 600; }
.command svg { width: 17px; height: 17px; }
.workspace { height: max(285px, calc(100dvh - 425px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); position: relative; overflow: hidden; touch-action: none; border: 1px solid #ffffff25; border-radius: 6px; background: #28492b25; }
.field-canvas { position: absolute; background-image: linear-gradient(#ffffff16 1px, transparent 1px), linear-gradient(90deg, #ffffff16 1px, transparent 1px); background-size: 40px 40px; border: 1px dashed #ffffff70; background-color: #92b78215; touch-action: none; }
.bed { position: absolute; border: 2px solid transparent; border-radius: 4px; background: #f8fbf6; color: var(--green); padding: 5px; display: grid; place-items: center; touch-action: none; user-select: none; box-shadow: 0 2px 3px #20352215; }
.bed[aria-pressed="true"] { border-color: #e9c76a; box-shadow: 0 0 0 2px #e9c76a70; }
.bed.dragging { z-index: 3; box-shadow: 0 5px 15px #172d2540; cursor: grabbing; }
.bed.invalid { border-color: var(--red); background: #f7ded8; }
.bed-size { position: absolute; top: 5px; left: 6px; font: 11px var(--body); color: var(--muted); white-space: nowrap; }
.bed.compact .bed-size { display: none; }
.bed svg { width: 22px; height: 22px; stroke-width: 1.5; }
.bed-plants { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; width: 100%; max-height: 100%; overflow: hidden; }
.bed-plants .plant-initial { width: 24px; height: 28px; font-size: 12px; }
.bed-inspector { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 9px 0; font-size: 12px; }
.bed-inspector strong { margin-right: auto; font-size: 12px; }
.bed-inspector .icon-button { width: 36px; height: 36px; }
/* Each glass surface ends at the viewport edge; no translated extension layers. */
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); height: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; pointer-events: none; }
.bottom-nav button { position: relative; min-width: 0; height: calc(var(--nav-height) + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; padding: 18px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--glass-soft); color: #2b5033; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10px; pointer-events: auto; transition: height .26s cubic-bezier(.22, 1, .36, 1), background-color .26s ease, box-shadow .26s ease; }
.bottom-nav button.active { z-index: 1; height: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom)); background: #f8fff3ad; box-shadow: 0 -10px 26px #17352035, 0 3px 16px #17352026, inset 0 1px 0 #ffffffdc; }
.bottom-nav button:focus-visible { outline: 2px solid #426b43; outline-offset: -6px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bottom-nav button { background: #d5e3cd; } .bottom-nav button.active { background: #f8fff3; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .garden-header, .planner-header-card, .field-switcher-card { background: #f3f8ef; } }
@media (prefers-reduced-transparency: reduce) { .bottom-nav button { background: #d5e3cd; backdrop-filter: none; -webkit-backdrop-filter: none; } .bottom-nav button.active { background: #f8fff3; } }
@media (prefers-reduced-transparency: reduce) { .garden-header, .planner-header-card, .field-switcher-card { background: #f3f8ef; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.bottom-nav svg { width: 27px; height: 27px; stroke-width: 1.7; }
.nav-alert { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--red); top: 16px; left: calc(50% + 15px); }
.sheet-backdrop { position: fixed; inset: 0; z-index: 29; background: #10281650; opacity: 0; visibility: hidden; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; visibility: visible; touch-action: none; }
.bottom-sheet { position: fixed; z-index: 30; left: 50%; bottom: 0; width: min(100%, 430px); max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; background: #fcfdfb; color: var(--ink); border-radius: 18px 18px 0 0; padding: 10px 25px calc(25px + env(safe-area-inset-bottom)); transform: translate(-50%, 102%); visibility: hidden; transition: transform .24s ease, visibility .24s; }
.bottom-sheet.open { transform: translate(-50%, 0); visibility: visible; }
.sheet-open { overscroll-behavior: none; }
.sheet-handle { width: 34px; height: 4px; border-radius: 4px; background: #cbd4c8; margin: 0 auto 15px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-header h2 { overflow-wrap: anywhere; }
.eyebrow { font-size: 11px; color: var(--muted); margin: 0 0 5px; }
#plant-sheet { height: 76dvh; max-height: calc(100dvh - max(24px, env(safe-area-inset-top))); min-height: 440px; display: flex; flex-direction: column; }
.picker-toolbar { display: flex; gap: 15px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 8px; background: #edf0ea; border-radius: 5px; padding: 0 10px; min-width: 0; flex: 1; }
.search-field svg { width: 16px; }
.search-field input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 16px; }
#selection-context { font-size: 11px; color: var(--muted); margin: 12px 0 16px; }
.plant-list { overflow-y: auto; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: start; }
.plant-column { display: grid; gap: 5px; min-width: 0; }
.plant-column h3 { font: 700 14px var(--display); margin: 0 0 7px; }
.plant-column button { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 48px; padding: 8px; border: 0; border-radius: 4px; background: #eef0eb; color: var(--green); font: 700 13px var(--display); text-align: left; overflow-wrap: anywhere; }
.plant-column button.chosen { background: var(--green); color: white; }
.plant-column .good { background: #e1ecd9; color: #437638; }
.plant-option-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.plant-option-name > span { overflow-wrap: anywhere; }
.option-photo { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 34px; }
.plant-column svg { width: 14px; height: 14px; flex-shrink: 0; }
.plant-column .bad-heading { color: #a44437; margin-top: 20px; }
.bad-neighbors { list-style: none; margin: 0; padding: 0; color: #a44437; font-size: 13px; line-height: 1.5; }
.bad-neighbors li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #ecd3cd; overflow-wrap: anywhere; }
.companion-note, .site-note { margin: 0 0 8px; padding: 10px; border-radius: var(--radius-small); font-size: 12px; line-height: 1.45; }
.companion-note { background: #edf3e9; color: var(--green); font-weight: 700; }
.neighbor-empty { margin: 0 0 8px; padding: 11px; border: 1px solid #dce6dd; border-radius: var(--radius-small); background: #f5f8f4; color: #53665e; font-size: 12px; line-height: 1.45; }
.site-note { background: #ffffff99; color: #526853; }
.bad-photo { width: 30px; height: 30px; border-radius: 6px; flex: 0 0 30px; filter: saturate(.65); }
#selected-plants { display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0; padding-bottom: 12px; margin-bottom: 8px; }
.selected-plant { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 48px; border: 0; background: #edf0ea; color: var(--green); border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.selected-plant svg { width: 14px; height: 14px; }
.selected-plant .plant-initial { width: 22px; height: 26px; font-size: 11px; }
.plant-hero { margin: 14px 0 20px; }
.hero-photo { width: 100%; height: 190px; border-radius: 14px; }
.plant-hero figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; text-align: right; }
.plant-hero a { color: inherit; text-underline-offset: 2px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.detail-stat { border-bottom: 1px solid #dce4d8; padding: 9px 0; font-size: 13px; }
.detail-stat span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.detail-block { padding: 14px 0; border-top: 1px solid #dce4d8; }
.detail-block p, .empty-copy { font-size: 13px; line-height: 1.6; color: #5d6b5d; margin: 7px 0 0; }
.evidence { font-size: 11px; line-height: 1.6; color: var(--muted); }
.bed-plant-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid #dce4d8; background: transparent; color: var(--ink); text-align: left; }
.bed-plant-row > span:nth-child(2) { flex: 1; }
.bed-plant-row strong { display: block; font: 700 16px var(--display); }
.bed-plant-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.bed-plant-row .plant-initial { width: 32px; height: 38px; font-size: 13px; }
.row-photo { width: 46px; height: 46px; border-radius: 10px; flex: 0 0 46px; }
.tip-card { display: flex; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid #ffffff35; padding: 17px 0; color: white; background: transparent; text-align: left; }
.tip-card p { font-size: 13px; line-height: 1.5; margin: 6px 0 0; color: #e1e9df; }
.tip-card .plant-initial { color: var(--green); width: 30px; height: 34px; }
#settings-form label { display: grid; gap: 8px; font-size: 13px; margin: 16px 0; }
#settings-form input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #bbcbb5; border-radius: 4px; padding: 9px 11px; color: var(--ink); background: white; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#settings-form .primary-action { width: 100%; margin-top: 10px; }
#form-error { font-size: 13px; color: #b1493c; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(125px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 382px); padding: 12px 15px; border-radius: 6px; background: #192d20f5; color: white; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 360px) { .view { padding-inline: 22px; } .editor-view { padding-inline: 14px; } h1 { font-size: 20px; } #editor-title { font-size: 20px; } .date-row { font-size: 11px; } .bottom-sheet { padding-inline: 20px; } .login-panel { padding-inline: 20px; } .login-panel h1 { font-size: 41px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Touch-first setup: editable bed cards precede the spatial field view. */
.editor-view .icon-button { width: 48px; height: 48px; }
.editor-header .text-button { min-height: 48px; padding-inline: 4px; }
.editor-view .segmented button, .editor-view .garden-name { min-height: 48px; }
.field-switcher { gap: 8px; margin: 18px 0 20px; }
#field-tabs { gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x; }
#field-tabs::-webkit-scrollbar { display: none; }
.field-tab { flex: 0 0 auto; min-width: 84px; min-height: 48px; padding: 10px 16px; scroll-snap-align: start; font-size: 16px; }
#add-field { background: #ffffff16; border: 1px solid #ffffff35; border-radius: 6px; }
.field-tab:has(.field-name) { position: relative; padding: 0; display: grid; }
.field-name, .field-name-measure { grid-area: 1 / 1; height: 48px; padding: 10px 16px; font: 700 16px var(--display); }
.field-name-measure { visibility: hidden; white-space: pre; padding-right: 20px; }
.field-name { position: absolute; inset: 0; width: 100%; min-width: 0; border: 0; background: transparent; color: inherit; }
.field-name:focus { outline: none; box-shadow: inset 0 -2px 0 currentColor; text-overflow: clip; }
.field-name::placeholder, .field-tab.unnamed { color: #dce7d8; font-style: italic; font-weight: 500; opacity: .82; }
#delete-field { opacity: .85; }
#bed-cards { display: grid; gap: 16px; overflow-anchor: none; }
.bed-card { padding: 10px 18px 16px; background: #f6f9f1; color: var(--ink); border-radius: 8px; border: 1px solid #ffffff60; }
.bed-card header { display: flex; align-items: center; justify-content: space-between; }
.bed-card h3 { font-size: 18px; }
.bed-card .icon-button { color: #72846e; }
.bed-card .icon-button:hover { background: #dae5d1; }
.bed-shape-preview { position: relative; height: 82px; display: grid; place-items: center; margin-bottom: 10px; }
.bed-shape { background: #b7cfa4; border: 1px solid #89a77a; border-radius: 3px; max-width: 100%; }
.bed-shape-preview > span { position: absolute; padding: 3px 8px; background: #f6f9f1ec; border-radius: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dimension-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-top: 1px solid #dfe6d8; font-size: 14px; }
.touch-stepper { display: grid; grid-template-columns: 48px 48px 48px; align-items: center; }
.touch-stepper button { width: 48px; height: 48px; border: 0; display: grid; place-items: center; color: var(--green); background: #e2eadb; border-radius: 6px; touch-action: manipulation; }
.touch-stepper button:active:not(:disabled) { background: #c5d7b8; }
.touch-stepper output { text-align: center; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-bed-card { width: 100%; min-height: 58px; border: 1px dashed #d7e3ceaa; border-radius: 8px; color: white; background: #ffffff0d; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 15px; }
.generate-actions { display: grid; gap: 7px; margin-top: 24px; }
#generate-field { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; background: #f6f9f1; color: var(--green); font-weight: 700; }
.setup-empty { padding: 24px 0; color: #dde7d6; font-size: 15px; text-align: center; }
.history-toolbar { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.map-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.map-toolbar .command, .bed-inspector .command { min-height: 48px; padding-inline: 14px; font-size: 14px; }
.workspace { height: max(320px, calc(100dvh - 440px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
.bed-inspector { gap: 12px; min-height: 68px; }
.bed-inspector strong { font-size: 15px; }
.bed-inspector strong small { display: block; font: 12px var(--body); color: #dbe7d5; margin-top: 4px; }
#confirm-title { overflow-wrap: anywhere; }
#confirm-copy { color: #61715c; font-size: 14px; line-height: 1.6; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; }
.secondary-action, .danger-action { min-height: 52px; padding: 10px; border: 0; border-radius: 6px; font-size: 15px; font-weight: 600; }
.secondary-action { background: #e8eee1; color: var(--green); }
.danger-action { background: #ab4b3c; color: white; }
#settings-form input, #settings-form .primary-action { min-height: 52px; }

/* The planner uses the same light glass language as the garden overview. */
.planner-header-card .editor-header .text-button { color: var(--green); }
.planner-header-card .segmented { gap: 7px; margin: 2px 0 12px; }
.planner-header-card .segmented button { border: 1px solid transparent; border-radius: 9px; background: #dbe7d4b8; color: #47664c; font-size: 15px; }
.planner-header-card .segmented button[aria-selected="true"] { border-color: #ffffffd6; background: #ffffffde; box-shadow: 0 3px 10px #24442912; color: var(--ink); }
.planner-header-card .segmented { margin-bottom: 0; }
.editor-view > #editor-title { border: 0; padding: 0; margin: 0 0 12px; color: white; }
.editor-view > #editor-title .garden-name { min-height: 44px; caret-color: white; }
.editor-view > #editor-title .garden-name:focus { box-shadow: 0 1px 0 #ffffff80; }
.field-switcher-card { margin-bottom: 18px; padding: 12px; border: 1px solid var(--glass-border); border-radius: var(--radius-card); background: #f8fff082; color: var(--ink); box-shadow: 0 8px 22px #18351f1c, inset 0 1px 0 #ffffffb8; -webkit-backdrop-filter: blur(13px) saturate(135%); backdrop-filter: blur(13px) saturate(135%); }
.field-switcher-card .field-switcher { align-items: center; flex-wrap: wrap; margin: 0; }
.field-switcher-card #field-tabs { display: contents; }
.field-switcher-card .field-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.field-switcher-card .field-tab { border: 1px solid #b9cbb2; border-radius: 12px; background: #dfe9d9; color: #47664c; font-size: 14px; }
.field-switcher-card .field-tab[aria-selected="true"] { border-color: #ffffffdc; background: #ffffffd6; color: var(--ink); }
.field-switcher-card .field-name::placeholder, .field-switcher-card .field-tab.unnamed { color: #69806c; }
.field-switcher-card #add-field { border-color: #b9cbb2; border-radius: 9px; background: #dfe9d9; color: var(--green); }
.field-switcher-card #delete-field { color: #6b7f6d; }

@media (max-width: 360px) {
  .garden-header { width: calc(100% - 36px); }
  .planner-header-card { width: calc(100% - 28px); }
  .planner-header-card { padding-inline: 12px; }
}
.card-planting { border-top: 1px solid #dfe6d8; padding-top: 16px; }
.card-planting h4 { font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.card-plant-list { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.card-plant { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.card-plant > span:last-child { overflow-wrap: anywhere; }
.card-plant .plant-initial { flex: 0 0 28px; width: 28px; height: 30px; background: #dce9d2; font-size: 12px; }
.choose-plants { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid #c4d4ba; border-radius: 6px; background: transparent; color: var(--green); font: 500 14px var(--body); }
.card-plant-list:empty + .choose-plants { margin-top: 0; }
.choose-plants svg { width: 18px; height: 18px; }
.plant-conflict { font-size: 12px; line-height: 1.5; color: #9a4436; margin-bottom: 0; }
.bed:not(.compact) .bed-plants { padding-top: 14px; }
.empty-bed-label { color: var(--muted); font-size: 14px; }
.profile-header { display: flex; align-items: center; gap: 16px; padding: 24px 0 28px; border-bottom: 1px solid #ffffff40; }
.profile-avatar { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border: 1px solid #ffffff60; border-radius: 50%; }
.profile-avatar svg { width: 24px; height: 24px; }
.profile-header h1 { font-size: 23px; margin: 4px 0; }
.profile-header > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.profile-eyebrow, #profile-garden { font-size: 12px; margin: 0; color: #e0eadd; line-height: 1.5; }
.profile-collection { padding: 24px 0; }
.profile-collection h2 { font-size: 17px; margin-bottom: 16px; }
#profile-plants { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-plant { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 6px 6px; color: white; border: 1px solid #ffffff45; border-radius: 5px; background: #ffffff12; font-size: 13px; }
.profile-plant .plant-initial { width: 26px; height: 30px; color: var(--green); font-size: 12px; }
.profile-photo { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 34px; }
.garden-journal { background: #dfe9dc; color: var(--ink); margin: 8px -28px calc(-126px - env(safe-area-inset-bottom)); padding: 28px 28px calc(142px + env(safe-area-inset-bottom)); }
.journal-header { border-bottom: 2px solid #355b42; padding-bottom: 18px; }
.journal-header h2 { font-size: 27px; margin: 7px 0 9px; }
.article-kicker { font-size: 11px; line-height: 1.5; font-weight: 600; color: #476653; margin: 0 0 9px; }
#journal-count { font-size: 12px; color: #617168; margin: 0; }
.journal-note { color: #617168; font-size: 12px; line-height: 1.6; margin: 16px 0 0; }
.garden-journal #tip-list { display: grid; gap: 16px; margin-top: 22px; }
.journal-story { overflow: hidden; padding: 0; border: 1px solid #dce6d7; border-radius: 16px; background: #f0f5ed; }
.story-open { width: 100%; border: 0; padding: 0; text-align: left; background: none; color: inherit; }
.journal-photo { display: block; width: 100%; height: 148px; object-fit: cover; background: #dce8d7; }
.story-copy { display: block; padding: 18px 20px 20px; }
.story-open > .article-kicker { display: block; }
.story-copy > .article-kicker { display: block; }
.read-label { color: #8a453c; margin-left: 7px; font-weight: 400; }
.story-open h3 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.story-open p { font-size: 14px; line-height: 1.7; margin: 0; color: #516158; }
.story-link { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #355b42; font-size: 12px; }
.story-link svg { width: 16px; height: 16px; }
.journal-detail-photo { display: block; width: 100%; height: 190px; margin: 8px 0 18px; object-fit: cover; border-radius: var(--radius-card); background: #dce8d7; }
.month-feature { background: #eaf2e4; color: #304b35; border: 1px solid #dae6d2; border-radius: 16px; padding: 20px 18px; margin: 0 0 22px; }
.month-feature .article-kicker { color: #5b7754; }
.tip-article + .tip-article { margin-top: 22px; padding-top: 18px; border-top: 1px solid #c7d8be; }
.tip-article h3 { font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
.tip-article p:not(.article-kicker), .tip-article li { font-size: 14px; line-height: 1.7; }
.tip-article ul { padding-left: 18px; margin: 16px 0; }
.tip-article li + li { margin-top: 8px; }
.source-link { display: inline-block; color: #496844; font-size: 11px; line-height: 1.6; padding: 10px 0; text-underline-offset: 3px; }
.no-month-tip { font-size: 13px; line-height: 1.6; color: #617168; }
.profile-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid #dce6d7; }
.logout-action { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #bfd0b8; border-radius: 14px; background: #eaf2e4; color: #355b42; font-size: 15px; font-weight: 600; }
.logout-action svg { width: 18px; height: 18px; }
@media (max-width: 360px) { .garden-journal { margin-inline: -22px; padding-inline: 22px; } }
@media (max-width: 360px) { .bed-card { padding-inline: 14px; } .dimension-row { gap: 8px; } }

/* One radius language: surfaces, controls and compact content. */
.garden-header,
.planner-header-card,
.login-panel,
.field-preview,
.workspace,
.bed-card,
.hero-photo,
.journal-story,
.month-feature { border-radius: var(--radius-card); }

.bottom-nav button { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.bottom-sheet { border-radius: var(--radius-card) var(--radius-card) 0 0; }

.icon-button,
.primary-action,
.segmented button,
.field-tab,
.command,
.empty-field,
.search-field,
.plant-column button,
.selected-plant,
#settings-form input,
.toast,
#add-field,
.touch-stepper button,
.add-bed-card,
.secondary-action,
.danger-action,
.choose-plants,
.profile-plant,
.logout-action { border-radius: var(--radius-control); }

.chip-face,
.chip-photo,
.plant-initial,
.preview-bed,
.bed,
.option-photo,
.bad-photo,
.row-photo,
.profile-photo,
.bed-shape,
.bed-shape-preview > span { border-radius: var(--radius-small); }
