:root {
  color-scheme: dark;
  --bg: #131b16;
  --rail: #111813;
  --panel: #1d2820;
  --panel-raised: #263229;
  --line: #364439;
  --ink: #f4f1e4;
  --muted: #b0bcae;
  --accent: #d3df9e;
  --accent-ink: #283419;
  --warm: #ecd6ad;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rail-width: 15.25rem;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box }
[hidden], .symbol-library { display: none !important }
body { margin: 0; min-width: 280px; min-height: 100vh }
h1, h2, h3, p { margin: 0 }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit }
button { color: inherit; cursor: pointer }
button:disabled { opacity: .6; cursor: default }
a, button, input, select, textarea { outline-offset: 4px }
:focus-visible { outline: 2px solid var(--accent) }
button, a { touch-action: manipulation }
img { display: block; width: 100%; object-fit: cover }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0 }
.skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-160%); padding: .8rem 1rem; background: var(--accent); color: var(--accent-ink); border-radius: .65rem }
.skip:focus { transform: none }

.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); display: flex; flex-direction: column; padding: 2.35rem 1.25rem 1.6rem; background: var(--rail); border-right: 1px solid #2a362d; z-index: 2 }
.brand, .mobile-brand { display: flex; align-items: center; gap: .75rem; font: 1.42rem/1.1 var(--serif); letter-spacing: -.05em; white-space: nowrap }
.brand { align-self: flex-start; margin-inline: .5rem; border-radius: .5rem }
.brand-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid #526248; border-radius: 50%; color: var(--accent); background: #243224; flex: none }
.brand-mark svg { height: 1.62rem; width: 1.62rem; stroke-width: 1.25 }
.tabs { display: grid; gap: .35rem; margin-top: 3.4rem }
.tabs a { position: relative; display: flex; gap: .85rem; align-items: center; min-height: 3rem; padding: .65rem .8rem; color: var(--muted); font-size: .925rem; font-weight: 550; border: 1px solid transparent; border-radius: .75rem }
.tabs a[aria-current] { background: #263327; color: var(--accent); border-color: #3a4b38 }
.tabs a[aria-current]::after { content: ""; margin-left: auto; width: .32rem; height: .32rem; background: var(--accent); border-radius: 50% }
.rail-footer { margin-top: auto; padding: 1rem .7rem 0; border-top: 1px solid #29342b; display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--muted) }
.rail-footer svg { width: 1rem; height: 1rem }
.mobile-brand { display: none }

.main { margin-left: var(--rail-width); padding: 2.9rem clamp(1.7rem, 3.55vw, 4.5rem) 4rem; outline: none }
.page { max-width: 73rem; margin-inline: auto }
.page-head { margin: 0 0 1.65rem; display: flex; align-items: end; justify-content: space-between; gap: .8rem }
.eyebrow { color: var(--accent); font-size: .77rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; line-height: 1.4; margin-bottom: .48rem }
h1 { font: 400 clamp(2.6rem, 4.5vw, 4.65rem)/.99 var(--serif); letter-spacing: -.069em }
h1 span { color: var(--accent); margin-left: .025em }
.button { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem .95rem; border: 1px solid transparent; border-radius: .7rem; font-size: .875rem; line-height: 1.28; font-weight: 650; text-align: center; transition: background .16s, color .16s, border-color .16s, transform .16s }
.button:active { transform: scale(.97) }
.button svg { width: 1.12rem; height: 1.12rem }
.primary { background: var(--accent); color: var(--accent-ink) }
.quiet { background: var(--panel-raised); color: var(--ink); border-color: #425443 }
.add-main { margin-bottom: .12rem }
.icon-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1px solid transparent; border-radius: .7rem; flex: none }
.icon-button svg { width: 1.12rem; height: 1.12rem }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 17.1rem; border: 1px solid #4a5940; border-radius: 1.25rem; display: flex; align-items: center; background: #263628 }
.hero-photograph { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #263628 3%, #263628 25%, #263628ee 39%, #26362866 61%, #17211600 89%), url("./assets/canopy.jpg") right 42% / 66% auto no-repeat }
.hero-content { padding: 1.8rem clamp(1.65rem, 3.3vw, 3.55rem) 2rem }
.hero-kicker { display: flex; align-items: center; gap: .55rem; color: #e2e8bf; font-size: .74rem; font-weight: 650; letter-spacing: .15em; line-height: 1.2 }
.hero-kicker span { background: #d2de9f; width: .9rem; height: 1px }
.hero h2 { font: 400 clamp(2.25rem, 4.4vw, 4.35rem)/.99 var(--serif); letter-spacing: -.068em; margin: .85rem 0 .85rem }
.hero h2 em { font-weight: 400; color: #dce5b5 }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem }
.hero p { color: #e3ead7; font-size: .9rem; line-height: 1.45; max-width: 28ch }
.ritual-launch { background: #e0e9b5; border-color: #e7edcc; box-shadow: 0 .35rem 1rem #111b1550 }
.ritual-launch svg { width: 1.15rem; height: 1.15rem }

.collection { margin-top: 2rem }
.collection-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem }
.collection-label { display: flex; align-items: center; gap: .65rem }
.collection h2, .setting-panel h2 { font: 400 clamp(1.7rem, 2.65vw, 2.65rem)/1.07 var(--serif); letter-spacing: -.06em }
.count { display: grid; place-items: center; flex: none; min-width: 1.8rem; height: 1.8rem; padding-inline: .35rem; border-radius: 999px; background: #29372a; border: 1px solid #405140; color: var(--accent); font-size: .83rem; font-weight: 650; font-variant-numeric: tabular-nums }
.filters { padding: .2rem; display: flex; align-items: center; gap: .2rem; border-radius: .75rem; background: #18221b; border: 1px solid #344135 }
.filters button { border: 0; min-height: 2.3rem; background: transparent; border-radius: .5rem; font-size: .875rem; font-weight: 600; padding: .35rem .65rem; color: #bcc7b8; white-space: nowrap }
.filters button[aria-pressed=true] { color: var(--accent); background: #30402e }
#due-count:not(:empty) { margin-left: .17rem; font-size: .8rem }

.plant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.plant { display: flex; flex-direction: column; min-width: 0; border-radius: 1rem; background: var(--panel); border: 1px solid #3b483c; box-shadow: 0 .4rem 1.2rem #0a110c30; overflow: hidden }
.plant-link { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; color: inherit; background: transparent; border: none; flex: 1 }
.plant-link:focus-visible { outline-offset: -3px }
.plant-photo { position: relative; overflow: hidden; width: 100%; background: #293b29; aspect-ratio: 1.7 }
.plant-photo img { height: 100%; object-position: center 52%; transition: transform .42s ease }
.plant[data-look=bonsai] img { object-position: center 54% }
.plant-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#111b13a0,transparent 42%); pointer-events: none }
.is-watered-now .plant-photo::before { content: ""; position: absolute; z-index: 1; width: clamp(4rem, 17vw, 9rem); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border: 2px solid #e8f3cb; border-radius: 50%; pointer-events: none; animation: ripple .85s ease-out both }
.plant-state { position: absolute; z-index: 1; bottom: .66rem; left: .72rem; color: #e6ecdc; background: #19241bee; border: 1px solid #60715a; border-radius: .43rem; padding: .27rem .43rem; display: flex; align-items: center; gap: .25rem; font-size: .745rem; font-weight: 650; letter-spacing: .01em }
.plant-state svg { width: .88rem; height: .88rem; margin: 0 }
.plant-state[data-kind=due] { background: #3b2d1f; border-color: #806349; color: var(--warm) }
.plant-state[data-kind=done] { color: var(--accent) }
.plant-meta { display: block; padding: .85rem .85rem .6rem; width: 100%; min-width: 0 }
.plant-name { display: block; font: 400 clamp(1.25rem, 2.08vw, 1.92rem)/1.06 var(--serif); letter-spacing: -.047em; overflow-wrap: anywhere }
.plant-species { display: block; font-size: .875rem; color: var(--muted); margin-top: .31rem; min-height: 1.1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.plant-actions { margin: .25rem .83rem .83rem; padding-top: .55rem; border-top: 1px solid #3a473b; display: flex; flex-direction: column; gap: .5rem }
.last-water { display: flex; align-items: center; gap: .3rem; color: #d2dccb; font-size: .85rem; min-height: 1.38rem; line-height: 1.3 }
.last-water svg { width: .9rem; height: .9rem; color: #bbc999 }
.water-btn { justify-content: center; width: 100%; color: var(--accent); background: #2b3a2b; border-color: #4a5b41 }
.water-btn.is-done { color: #c9d6c6; background: #27332a; border-color: #435044 }
.notice { padding: 2rem 1.25rem; border: 1px dashed #465847; border-radius: 1rem; text-align: center; color: var(--muted); background: #1c271e; grid-column: 1 / -1 }
.notice svg { color: var(--accent); width: 1.8rem; height: 1.8rem }
.notice h2, .notice h3 { font: 400 1.65rem/1.12 var(--serif); color: var(--ink); margin: .5rem 0 }
.notice p { line-height: 1.55; max-width: 44ch; margin-inline: auto }
.notice .button { margin-top: 1rem }

.journal-layout { display: grid; grid-template-columns: minmax(16rem, .84fr) minmax(0, 1.16fr); gap: clamp(1rem, 2.6vw, 2.2rem); align-items: start; max-width: 64rem }
.timeline { min-width: 0; display: grid; gap: 1.05rem }
.timeline-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem }
.timeline-heading h2, .calendar-month { font: 400 clamp(1.48rem, 2.5vw, 2.05rem)/1.08 var(--serif); letter-spacing: -.05em }
.calendar { border: 1px solid #465745; border-radius: 1.15rem; padding: clamp(.85rem, 1.7vw, 1.3rem); background: linear-gradient(147deg,#26362a,var(--panel) 64%); box-shadow: 0 .4rem 1.5rem #070d0930 }
.calendar-month { text-transform: capitalize; color: var(--ink); margin-bottom: .65rem }
.calendar-controls { display: flex; gap: .45rem; margin-bottom: .6rem }
.calendar-controls .button { min-height: 2.75rem; padding-inline: .65rem }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .16rem }
.calendar-weekdays { color: var(--accent); margin: .55rem 0 .2rem; text-align: center; font-size: .8rem; font-weight: 650 }
.calendar-day { position: relative; display: grid; place-items: center; min-height: 2.75rem; min-width: 0; padding: 0 0 .18rem; border: 1px solid transparent; border-radius: .6rem; color: var(--ink); background: transparent; font-size: .88rem; font-variant-numeric: tabular-nums }
.calendar-day[aria-current] { border-color: #748564 }
.calendar-day[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700 }
.calendar-day span { position: absolute; bottom: .28rem; width: .32rem; height: .32rem; background: var(--accent); border-radius: 50% }
.calendar-day[aria-pressed=true] span { background: var(--accent-ink) }
.calendar-total { display: flex; align-items: center; gap: .4rem; border-top: 1px solid #435346; color: var(--accent); font-size: .88rem; line-height: 1.45; padding-top: .75rem; margin-top: .55rem }
.calendar-total svg { width: 1rem; height: 1rem }
.day-group h2 { color: var(--accent); font-size: .85rem; font-weight: 650; margin: 0 0 .55rem .1rem; text-transform: capitalize }
.day-group ul, .archive-list, .entry-list { list-style: none; margin: 0; padding: 0 }
.day-group ul { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden }
.history-row { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; min-height: 3.5rem }
.history-row + .history-row { border-top: 1px solid var(--line) }
.history-row img { width: 2.65rem; height: 2.65rem; border-radius: .55rem }
.history-row .icon-button { margin-left: auto; color: var(--muted) }
.history-text { min-width: 0; overflow-wrap: anywhere }
.history-text strong { font-weight: 600 }
.history-text p { color: var(--muted); font-size: .875rem; line-height: 1.5 }
.history-row .history-drop { color: var(--accent); margin-inline: .35rem }

.settings-grid { max-width: 62rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem }
.setting-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.15rem }
.setting-panel h2 { margin: .7rem 0 .6rem; font-size: 1.75rem }
.setting-panel p { margin-top: .55rem; color: var(--muted); line-height: 1.5 }
.setting-panel strong { color: var(--ink) }
.setting-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: #2b3d2c; border-radius: .7rem; color: var(--accent) }
.setting-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem }
.archive-panel { grid-column: 1 / -1 }
.archive-list .history-row { padding-inline: 0 }
.archive-list .button { margin-left: auto }
.storage-alert { max-width: 73rem; margin: 0 auto 1rem; padding: .85rem; border-radius: .65rem; background: #433123; color: #ffe4bb; line-height: 1.5 }

.sheet { width: min(94vw, 33rem); max-height: calc(100dvh - 2rem); background: #202c23; border: 1px solid #51634c; border-radius: 1.25rem; color: var(--ink); margin: auto; padding: 0; box-shadow: 0 1rem 5rem #070a07b0; overflow: auto; overscroll-behavior: contain }
.sheet::backdrop { background: #090f0bc2; backdrop-filter: blur(4px) }
body:has(.sheet[open]) { overflow: hidden }
.sheet-scroll { position: relative; padding: 1.35rem }
.close-sheet { position: absolute; z-index: 1; top: .65rem; right: .65rem; background: #131c15ee; color: var(--ink); border-color: #4b5b4b }
.sheet h2 { font: 400 2.15rem/1.1 var(--serif); letter-spacing: -.06em; padding-right: 2.5rem; overflow-wrap: anywhere }
.sheet p { color: var(--muted); line-height: 1.52 }
.sheet h2 + p { margin-top: .45rem }
.sheet h3 { font: 400 1.45rem/1.2 var(--serif); margin: 1.05rem 0 .45rem }
.sheet form { margin-top: 1rem; display: grid; gap: .85rem }
.sheet label { display: grid; gap: .3rem; color: var(--ink); font-size: .9rem; font-weight: 600 }
.sheet label small { color: var(--muted); font-weight: 400; font-size: .84rem; line-height: 1.35 }
.sheet input, .sheet select, .sheet textarea { appearance: none; display: block; min-width: 0; min-height: 2.8rem; width: 100%; padding: .6rem .65rem; font-size: 1rem; font-weight: 400; border-radius: .55rem; background: #152017; border: 1px solid #52654e; color: var(--ink) }
.sheet input[type=date] { text-align: left }
.sheet input::-webkit-date-and-time-value { text-align: left }
.sheet select { padding-right: 1.7rem; background-image: linear-gradient(45deg, transparent 50%, #b8c5a5 50%), linear-gradient(135deg, #b8c5a5 50%, transparent 50%); background-position: calc(100% - 1rem) 52%, calc(100% - .7rem) 52%; background-size: .3rem .3rem; background-repeat: no-repeat }
.sheet textarea { min-height: 4.4rem; resize: vertical }
.image-choice { display: flex; align-items: center; gap: .7rem; border: 1px solid #495c47; background: #28382a; border-radius: .7rem; padding: .5rem }
.image-choice-preview { width: 4.3rem; height: 4.3rem; border-radius: .45rem; flex: none }
.sheet .photo-pick { position: relative; display: flex; gap: .42rem; align-items: center; color: var(--accent); min-height: 2.75rem; padding: .3rem .28rem; cursor: pointer }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer }
.photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .35rem }
.photo-remove { background: transparent; color: var(--muted); justify-content: start; padding-inline: .3rem }
.sheet-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem }
.sheet form .sheet-buttons { margin-top: 0 }
.form-error { background: #423123; color: #ffe6bf !important; padding: .65rem; border-radius: .55rem }
.detail-photo { height: 12.5rem; border-radius: .8rem; margin-bottom: 1rem; object-position: center 48% }
.detail-summary { display: grid; gap: .35rem; margin-top: .8rem; padding: .8rem; background: #28382a; border-radius: .65rem }
.detail-summary div { display: flex; align-items: center; gap: .45rem; color: #e0e8d8 }
.detail-summary svg { color: var(--accent) }
.detail-note { margin-top: .8rem; white-space: pre-wrap; overflow-wrap: anywhere }
.entry-list .history-row { padding-inline: .2rem }
.danger { color: #ffdaae; background: #483526; border-color: #795845 }
.ritual-progress { display: flex; align-items: center; gap: .65rem; margin: .75rem 0 1rem; color: var(--accent); font-size: .82rem; font-variant-numeric: tabular-nums }
.ritual-progress progress { display: block; flex: 1; width: 100%; height: .24rem; border: none; border-radius: 1rem; color: var(--accent); background: #425546; appearance: none }
.ritual-progress progress::-webkit-progress-bar { background: #425546; border-radius: 1rem }
.ritual-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem }
.ritual-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 1rem }
.sheet .ritual-last { display: flex; align-items: center; gap: .4rem; color: var(--ink); margin-bottom: .32rem }
.ritual-last svg { color: var(--accent); width: 1rem; height: 1rem }
.ritual-skip { color: var(--muted); background: transparent }
.ritual-finish-mark { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; margin: 1.1rem .4rem; border-radius: 50%; border: 1px solid #758f68; color: var(--accent); background: radial-gradient(circle at 30% 20%, #475e3d, #2b3d2e 75%) }
.ritual-finish-mark svg { width: 2rem; height: 2rem }
.ritual-finish-mark::after { content: ""; position: absolute; inset: -.32rem; border: 1px solid #789468; border-radius: 50%; animation: ripple 1.4s ease-out both }
@keyframes ripple { from { opacity: .8; scale: .8 } to { opacity: 0; scale: 1.6 } }

.toast { position: fixed; z-index: 5; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 2.2rem); display: flex; align-items: center; gap: .55rem; padding: .38rem .45rem .38rem .7rem; color: var(--ink); background: #2a3c2c; border: 1px solid #687c5b; border-radius: .85rem; box-shadow: 0 .5rem 2rem #0007; font-size: .9rem }
.toast-icon { display: grid; color: var(--accent) }
.toast-action { min-height: 2.75rem; padding: .3rem .4rem; background: transparent; border: 0; border-radius: .5rem; color: var(--accent); font-weight: 700 }
.toast .icon-button { width: 2.35rem }

@media (hover: hover) {
  .tabs a:hover, .filters button:hover { color: var(--ink) }
  .primary:hover { background: #e4ebb8 }
  .quiet:hover, .water-btn:hover, .icon-button:hover { background: #374b36 }
  .calendar-day:enabled:hover:not([aria-pressed=true]) { background: #344735 }
  .plant-link:hover img { transform: scale(1.04) }
}
@media (max-width: 1050px) {
  :root { --rail-width: 12rem }
  .rail { padding-inline: .85rem }
  .main { padding-inline: 1.65rem }
  .hero-photograph { background-size: auto, 76% auto }
}
@media (max-width: 800px) {
  .rail { width: auto; inset: auto 0 0; padding: .26rem max(1rem, env(safe-area-inset-right)) max(.28rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: #141d17f5; border-right: none; border-top: 1px solid #405041; backdrop-filter: blur(18px) }
  .brand, .rail-footer { display: none }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; width: min(100%, 29rem); margin: 0 auto }
  .tabs a { flex-direction: column; justify-content: center; gap: .19rem; min-height: 3.12rem; padding: .26rem .15rem; font-size: .75rem }
  .tabs a[aria-current]::after { display: none }
  .tabs svg { width: 1.13rem; height: 1.13rem }
  .main { margin-left: 0; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(5.45rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)) }
  .mobile-brand { display: flex; margin: .1rem 0 1.22rem; gap: .5rem; font-size: 1.14rem }
  .mobile-brand .brand-mark { width: 1.95rem; height: 1.95rem }
  .mobile-brand .brand-mark svg { width: 1.22rem; height: 1.22rem }
  .page-head { margin-bottom: 1.12rem }
  .toast { bottom: calc(4.05rem + env(safe-area-inset-bottom)) }
}
@media (max-width: 620px) {
  .journal-layout { grid-template-columns: 1fr }
}
@media (max-width: 590px) {
  .hero { border-radius: 1rem; min-height: 13.2rem }
  .hero-content { padding: 1.15rem 1rem 1.3rem }
  .hero-photograph { background: linear-gradient(90deg, #263628 1%, #263628ec 30%, #26362891 58%, #26362810 100%), url("./assets/canopy.jpg") right center / auto 120% no-repeat }
  .hero h2 { font-size: clamp(2rem, 8.5vw, 3.1rem); margin-block: .62rem }
  .hero-row { gap: .38rem .55rem }
  .hero p { font-size: .86rem; max-width: none }
  .hero-kicker { font-size: .67rem }
  .collection { margin-top: 1.35rem }
  .collection-head { margin-bottom: .72rem; gap: .4rem }
  .collection-label { gap: .35rem }
  .collection h2 { font-size: clamp(1.4rem, 6vw, 1.9rem) }
  .count { min-width: 1.45rem; height: 1.45rem; font-size: .75rem }
  .filters { padding: .13rem; gap: .08rem }
  .filters button { min-height: 2.4rem; padding-inline: .38rem; font-size: .81rem }
  .plant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem }
  .plant { border-radius: .8rem }
  .plant-photo { aspect-ratio: 1.23 }
  .plant-meta { padding: .55rem .53rem .35rem }
  .plant-name { font-size: clamp(1.12rem, 5.3vw, 1.48rem) }
  .plant-species { font-size: .82rem; margin-top: .05rem }
  .plant-state { font-size: .73rem; bottom: .4rem; left: .45rem }
  .plant-actions { margin: .22rem .5rem .5rem; padding-top: .4rem; gap: .35rem }
  .last-water { font-size: .81rem }
  .water-btn { padding-inline: .2rem; font-size: .81rem }
  .settings-grid { grid-template-columns: 1fr }
  .sheet { width: 100%; max-width: none; max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top))); margin: auto 0 0; border-radius: 1.15rem 1.15rem 0 0; padding-bottom: env(safe-area-inset-bottom) }
  .sheet-scroll { padding: 1rem }
  .detail-photo { height: 10.2rem }
}
@media (max-width: 374px) {
  .add-word { display: none }
  .add-main { padding-inline: .55rem }
  .main { padding-inline: .75rem }
}
@media (max-width: 315px) {
  .plant-grid { grid-template-columns: 1fr }
  .collection-head { flex-wrap: wrap }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important }
  .is-watered-now .plant-photo::before { content: none }
}
