:root {
  --bg: #f3f0e8;
  --paper: #fbfaf6;
  --ink: #202219;
  --muted: #79796e;
  --olive: #3e4630;
  --olive-soft: #657052;
  --terra: #aa623e;
  --line: rgba(32, 34, 25, 0.12);
  --shadow: 0 18px 55px rgba(38, 40, 30, 0.13);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1d2119;
  color: var(--ink);
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; justify-content: center; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible { outline: 3px solid rgba(170, 98, 62, 0.45); outline-offset: 3px; }
button:disabled { cursor: default; }

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(92px + var(--safe-bottom));
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.28);
}

.hero,
.plant-img {
  background-image: linear-gradient(180deg, rgba(3, 8, 4, 0.04), rgba(3, 8, 4, 0.7)), url('./assets/agave-hero.png');
  background-position: center 44%;
  background-size: cover;
}

.hero-monstera { background-position: 30% 50%; filter: saturate(0.72) hue-rotate(18deg); }
.hero-pachy { background-position: 76% 48%; filter: sepia(0.16) saturate(0.68); }

.hero {
  position: relative;
  height: 47vh;
  min-height: 410px;
  max-height: 575px;
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 11, 7, 0.08) 15%, rgba(6, 11, 7, 0.12) 47%, rgba(6, 11, 7, 0.78) 100%);
}
.hero-media { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.top-actions {
  position: absolute;
  z-index: 2;
  top: max(18px, calc(var(--safe-top) + 8px));
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
}

.icon-btn {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(28, 34, 24, 0.62);
  color: #fff;
  backdrop-filter: blur(14px);
}

.icon-btn svg,
.together svg,
.nav-btn svg,
.care-actions svg,
.quick svg,
.round-add svg,
.secondary-btn svg,
.not-found-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-btn svg { width: 22px; height: 22px; }
.hero-copy { position: absolute; z-index: 2; right: 26px; bottom: 38px; left: 26px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }
.kicker { margin-bottom: 8px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.92; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 13vw, 66px); font-weight: 400; letter-spacing: 0.01em; line-height: 0.94; }
.cultivar { margin-top: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-style: italic; }
.together { display: flex; align-items: center; gap: 9px; margin-top: 19px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.together svg { width: 17px; height: 17px; }

.content { position: relative; z-index: 3; margin-top: -18px; padding: 0 16px 24px; }
.water-card { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 17px; align-items: center; padding: 23px 22px 19px; border: 1px solid rgba(38, 40, 30, 0.04); border-radius: 28px; background: rgba(251, 250, 246, 0.985); box-shadow: var(--shadow); }
.water-main { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; }
.drop { width: 35px; height: 35px; color: var(--olive); }
.drop svg, .water-btn > svg { width: 100%; height: 100%; fill: currentColor; }
.daysline { display: flex; align-items: baseline; gap: 7px; }
.daysnum { font-family: Georgia, serif; font-size: 58px; line-height: 0.88; }
.daysunit { font-family: Georgia, serif; font-size: 19px; letter-spacing: 0.05em; }
.small-label { margin-top: 8px; color: var(--muted); font-size: 11px; }
.water-date { padding-left: 15px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.water-date strong { display: block; margin-top: 7px; color: var(--ink); font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.care-now { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 1px; padding-top: 15px; border-top: 1px solid var(--line); }
.care-now .care-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--olive-soft); box-shadow: 0 0 0 5px rgba(101, 112, 82, 0.12); }
.water-card.due .care-dot, .water-card.soon .care-dot { background: var(--terra); box-shadow: 0 0 0 5px rgba(170, 98, 62, 0.13); }
.care-now div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.care-now strong { font-size: 13px; }
.care-now span:last-child { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.primary-wrap { display: flex; justify-content: center; margin: -3px 0 5px; }
.water-btn { display: flex; width: 166px; height: 166px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 50%; background: var(--olive); color: #fff; box-shadow: 0 17px 30px rgba(50, 56, 38, 0.26); transition: transform 0.18s ease, background 0.18s ease; }
.water-btn:active:not(:disabled) { transform: scale(0.97); }
.water-btn:disabled { background: #727966; box-shadow: 0 12px 24px rgba(50, 56, 38, 0.17); }
.water-btn > svg { width: 35px; height: 35px; }
.water-btn:disabled > svg { fill: none; stroke: currentColor; stroke-width: 2; }
.water-btn span { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0 10px; }
.quick { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 4px 7px; border: 0; background: transparent; text-align: center; }
.quick + .quick { border-left: 1px solid var(--line); }
.quick svg { width: 25px; height: 25px; margin-bottom: 6px; color: var(--olive); }
.quick.sun svg { color: var(--terra); }
.quick-title { color: var(--muted); font-size: 10px; }
.quick-value { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.accent { color: var(--terra); }

.care-actions { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.care-actions button { display: flex; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: var(--olive); }
.care-actions button + button { border-left: 1px solid var(--line); }
.care-actions svg { width: 23px; height: 23px; }
.care-actions span { color: var(--ink); font-size: 11px; }

.section { margin-top: 29px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 4px 12px; }
.section-head h2 { margin: 3px 0 0; font-size: 21px; }
.eyebrow, .brand-line { color: var(--muted); font-size: 9px; letter-spacing: 0.22em; }
.link-btn, .text-button { padding: 8px 0; border: 0; background: none; font-size: 12px; font-weight: 700; }
.record-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.record-strip::-webkit-scrollbar { display: none; }
.record-card { min-width: 128px; }
.thumb { position: relative; display: grid; height: 142px; overflow: hidden; place-items: center; border-radius: 20px; background: linear-gradient(145deg, #d7d3c9, #9aa58f); }
.thumb.fertilizer { background: linear-gradient(145deg, #ded1bc, #967e5e); }
.thumb.repot { background: linear-gradient(145deg, #c7b59d, #727e68); }
.thumb.note { background: linear-gradient(145deg, #f0ecdf, #d3cab7); }
.thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(61, 67, 46, 0.9); color: #fff; }
.badge svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.badge > svg path:first-child:last-child { fill: currentColor; }
.record-name { margin-top: 8px; font-size: 12px; font-weight: 700; }
.record-date { margin-top: 3px; color: var(--muted); font-size: 10px; }
.empty-copy { color: var(--muted); font-size: 12px; }

.bottom-nav { position: fixed; z-index: 20; bottom: 0; display: grid; width: min(100%, 480px); grid-template-columns: repeat(5, 1fr); padding: 9px 8px calc(9px + var(--safe-bottom)); border-top: 1px solid rgba(35, 38, 29, 0.07); background: rgba(251, 250, 246, 0.94); box-shadow: 0 -10px 40px rgba(40, 43, 33, 0.08); backdrop-filter: blur(20px); }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; color: #77796f; font-size: 9px; }
.nav-btn svg { width: 23px; height: 23px; }
.nav-btn.active { color: var(--olive); }
.nav-btn.scan { position: relative; margin-top: -27px; }
.nav-btn.scan .scan-circle { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--olive); color: #fff; box-shadow: 0 10px 28px rgba(53, 60, 40, 0.28); }
.nav-btn.scan svg { width: 27px; height: 27px; }

.page { min-height: calc(100vh - 92px); padding: calc(27px + var(--safe-top)) 18px 32px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-title h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 37px; font-weight: 400; line-height: 1; }
.page-title p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.subtle { color: var(--muted); font-size: 12px; }

.garden-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plant-card { position: relative; overflow: hidden; border: 1px solid rgba(40, 43, 33, 0.05); border-radius: 23px; background: var(--paper); box-shadow: 0 9px 30px rgba(48, 51, 40, 0.09); }
.plant-card button.open { width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.plant-img { position: relative; height: 196px; }
.plant-img::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 55%, rgba(16, 20, 14, 0.45)); }
.plant-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plant-count { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(28, 34, 24, 0.6); color: #fff; font-family: Georgia, serif; font-size: 9px; letter-spacing: 0.1em; backdrop-filter: blur(8px); }
.plant-meta { display: flex; flex-direction: column; padding: 14px 13px 15px; }
.plant-group { margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: 0.14em; }
.plant-meta strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.latin { margin-top: 3px; color: var(--muted); font-family: Georgia, serif; font-size: 11px; font-style: italic; }
.next-task { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 11px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-task i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--olive-soft); }
.next-task.due i, .next-task.soon i { background: var(--terra); }
.select-plant { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; background: rgba(25, 31, 23, 0.45); color: #fff; backdrop-filter: blur(8px); }
.select-plant.selected { border-color: var(--terra); background: var(--terra); }
.select-plant svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.bulkbar { position: sticky; z-index: 4; top: calc(10px + var(--safe-top)); display: flex; align-items: center; justify-content: space-between; margin: -8px 0 15px; padding: 12px 13px; border-radius: 17px; background: var(--olive); color: #fff; box-shadow: var(--shadow); font-size: 11px; }
.bulkbar strong { margin-right: 3px; font-family: Georgia, serif; font-size: 17px; }
.bulkbar button { padding: 9px 11px; border: 0; border-radius: 999px; background: #fff; color: var(--olive); font-size: 10px; font-weight: 700; }

.round-add { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: var(--olive); color: #fff; }
.round-add svg { width: 21px; height: 21px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 15px; }
.timeline::before { position: absolute; top: 22px; bottom: 22px; left: 43px; width: 1px; content: ""; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 15px; align-items: center; min-height: 96px; padding: 9px; border: 1px solid rgba(40, 43, 33, 0.04); border-radius: 22px; background: var(--paper); box-shadow: 0 7px 25px rgba(48, 51, 40, 0.06); }
.timeline-thumb { position: relative; z-index: 1; display: grid; width: 86px; height: 86px; overflow: hidden; place-items: center; border-radius: 17px; }
.timeline-thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-thumb.event { background: #dedfd3; color: var(--olive); }
.timeline-thumb.event.fertilizer { background: #ded1bc; color: #72583c; }
.timeline-thumb.event.repot { background: #d0c2ad; color: #5d604b; }
.timeline-thumb.event.note { background: #eae5d9; color: var(--olive); }
.timeline-thumb.event svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.timeline-thumb.event.water svg { fill: currentColor; stroke: none; }
.timeline-copy { min-width: 0; padding-right: 6px; }
.timeline-date { color: var(--muted); font-size: 9px; letter-spacing: 0.06em; }
.timeline-title { margin-top: 5px; font-size: 14px; font-weight: 700; }
.timeline-note { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.empty-state { padding: 60px 24px; border: 1px solid var(--line); border-radius: 26px; text-align: center; }
.empty-state span { color: var(--muted); font-size: 9px; letter-spacing: 0.2em; }
.empty-state h2 { margin: 10px 0 6px; font-family: Georgia, serif; font-weight: 400; }
.empty-state p { color: var(--muted); font-size: 11px; line-height: 1.7; }

.settings-section { margin-top: 25px; }
.settings-section h2 { margin: 0 4px 9px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; }
.settings-card { overflow: hidden; padding: 3px 16px; border: 1px solid rgba(40, 43, 33, 0.04); border-radius: 22px; background: var(--paper); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 12px; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-row strong { font-size: 11px; }
.setting-url { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; }
.setting-url code { margin: 8px 0 12px; overflow-wrap: anywhere; color: var(--muted); font-family: inherit; font-size: 10px; line-height: 1.5; }
.secondary-btn { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); font-size: 11px; font-weight: 700; }
.secondary-btn svg { width: 17px; height: 17px; }
.danger { color: #a33c35; }
.settings-help { margin: 10px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.app-shell.onboarding-host { padding-bottom: 0; }
.onboarding { min-height: 100vh; padding: calc(18px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); background: var(--bg); }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.onboarding-brand { display: flex; align-items: center; gap: 8px; color: var(--olive); font-size: 11px; font-weight: 800; letter-spacing: 0.19em; }
.onboarding-brand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.step-count { color: var(--muted); font-family: Georgia, serif; font-size: 12px; letter-spacing: 0.08em; }
.onboarding-intro { padding: 37px 4px 22px; }
.onboarding-eyebrow { color: var(--terra); font-size: 9px; font-weight: 700; letter-spacing: 0.22em; }
.onboarding-intro h1, .registration-title h1 { margin: 10px 0 12px; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(34px, 10vw, 45px); font-weight: 400; line-height: 1.16; letter-spacing: 0.01em; }
.onboarding-intro p { max-width: 340px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.tag-detected { display: inline-flex; align-items: center; gap: 8px; margin: -9px 0 20px; padding: 9px 12px; border: 1px solid rgba(62, 70, 48, 0.14); border-radius: 999px; background: rgba(251, 250, 246, 0.8); color: var(--olive); font-size: 9px; letter-spacing: 0.1em; }
.tag-detected svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.tag-detected strong { margin-left: 4px; font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.04em; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.preset-card { overflow: hidden; padding: 0; border: 1px solid rgba(32, 34, 25, 0.08); border-radius: 22px; background: var(--paper); text-align: left; box-shadow: 0 7px 24px rgba(48, 51, 40, 0.06); transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.preset-card:active { transform: scale(0.985); }
.preset-card.selected { border-color: var(--terra); box-shadow: 0 0 0 2px rgba(170, 98, 62, 0.13), 0 10px 30px rgba(48, 51, 40, 0.09); }
.preset-image, .registration-photo { position: relative; display: block; background-image: linear-gradient(180deg, rgba(3, 8, 4, 0.03), rgba(3, 8, 4, 0.48)), url('./assets/agave-hero.png'); background-position: center; background-size: cover; }
.preset-image { height: 128px; }
.preset-image.hero-monstera, .registration-photo.hero-monstera { background-position: 28% 50%; filter: saturate(0.72) hue-rotate(18deg); }
.preset-image.hero-pachy, .registration-photo.hero-pachy { background-position: 76% 48%; filter: sepia(0.16) saturate(0.68); }
.preset-image.hero-other, .registration-photo.hero-other { background-position: 88% 40%; filter: grayscale(0.5) sepia(0.18); }
.preset-image i { position: absolute; top: 10px; right: 10px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; background: rgba(27, 33, 23, 0.35); color: #fff; backdrop-filter: blur(7px); }
.preset-card.selected .preset-image i { border-color: var(--terra); background: var(--terra); }
.preset-image i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.preset-copy { display: flex; min-height: 65px; flex-direction: column; justify-content: center; padding: 10px 12px 11px; }
.preset-copy small { overflow: hidden; color: var(--muted); font-size: 7px; letter-spacing: 0.13em; text-overflow: ellipsis; white-space: nowrap; }
.preset-copy strong { margin-top: 4px; font-family: Georgia, "Yu Mincho", serif; font-size: 15px; font-weight: 400; }
.onboarding-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px -18px calc(-24px - var(--safe-bottom)); padding: 13px 18px calc(13px + var(--safe-bottom)); border-top: 1px solid rgba(32, 34, 25, 0.08); background: rgba(243, 240, 232, 0.94); backdrop-filter: blur(18px); }
.storage-note { color: var(--muted); font-size: 9px; }
.onboarding-next { display: flex; min-width: 125px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 0; border-radius: 14px; background: var(--olive); color: #fff; font-size: 11px; font-weight: 700; }
.onboarding-next:disabled { background: #b7b8ad; color: #efefe9; }
.onboarding-next span { font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.onboarding-back.text { padding: 10px 0; border: 0; background: none; color: var(--muted); font-size: 11px; }

.registration-screen { padding-bottom: calc(32px + var(--safe-bottom)); }
.registration-back { display: inline-flex; align-items: center; gap: 7px; margin: 23px 0 0; padding: 8px 2px; border: 0; background: none; color: var(--muted); font-size: 10px; }
.registration-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.registration-title { padding: 20px 4px 12px; }
.register-form { display: flex; flex-direction: column; gap: 13px; }
.registration-preview { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; margin-bottom: 2px; padding: 10px; border: 1px solid rgba(32, 34, 25, 0.06); border-radius: 20px; background: var(--paper); }
.registration-photo { width: 82px; height: 82px; border-radius: 15px; }
.registration-photo { overflow: hidden; }
.registration-photo img { width: 100%; height: 100%; object-fit: cover; }
.registration-preview div { display: flex; flex-direction: column; }
.registration-preview small { color: var(--muted); font-size: 8px; letter-spacing: 0.15em; }
.registration-preview strong { margin-top: 5px; font-family: Georgia, "Yu Mincho", serif; font-size: 20px; font-weight: 400; }
.photo-select-button, .photo-remove-button { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 9px; font-weight: 700; }
.photo-select-button { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--terra); }
.photo-select-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.photo-remove-button { margin-top: 6px; color: var(--muted); font-weight: 500; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field > span:first-child { margin-left: 3px; color: var(--muted); font-size: 9px; letter-spacing: 0.05em; }
.field > span i { margin-left: 5px; font-style: normal; opacity: 0.7; }
.field input, .field select { width: 100%; height: 48px; min-width: 0; padding: 0 13px; border: 1px solid rgba(32, 34, 25, 0.1); border-radius: 13px; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.field input:focus, .field select:focus { border-color: var(--olive-soft); box-shadow: 0 0 0 3px rgba(101, 112, 82, 0.12); }
.field input[readonly] { color: var(--olive); font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.number-field { position: relative; }
.number-field input { padding-right: 48px; }
.number-field b { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); font-size: 9px; font-weight: 500; pointer-events: none; }
.tag-id-field small { margin-left: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.register-submit { display: flex; height: 58px; align-items: center; justify-content: space-between; margin-top: 7px; padding: 0 19px; border: 0; border-radius: 17px; background: var(--olive); color: #fff; box-shadow: 0 14px 28px rgba(50, 56, 38, 0.2); font-size: 12px; font-weight: 700; }
.register-submit svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.page-title-actions { display: flex; align-items: center; gap: 12px; }
.page-title-actions .add-plant { color: var(--terra); }
.profile-setting { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; }
.profile-setting-photo { display: block; width: 58px; height: 58px; overflow: hidden; border-radius: 15px; background-image: linear-gradient(180deg, rgba(3, 8, 4, 0.03), rgba(3, 8, 4, 0.4)), url('./assets/agave-hero.png'); background-position: center; background-size: cover; }
.profile-setting-image { width: 100%; height: 100%; object-fit: cover; }
.profile-setting div { display: flex; min-width: 0; flex-direction: column; }
.profile-setting div strong { overflow: hidden; font-family: Georgia, serif; font-size: 16px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.profile-setting div span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.edit-close { padding: 8px 0; border: 0; background: none; color: var(--olive); font-size: 11px; font-weight: 700; }
.delete-plant-button { margin-top: 4px; padding: 13px; border: 1px solid rgba(163, 60, 53, 0.2); border-radius: 14px; background: transparent; color: #a33c35; font-size: 10px; font-weight: 700; }

.not-found { display: flex; min-height: calc(100vh - 92px); flex-direction: column; align-items: center; justify-content: center; padding: calc(30px + var(--safe-top)) 34px 40px; text-align: center; }
.not-found-mark { display: grid; width: 76px; height: 76px; margin-bottom: 22px; place-items: center; border-radius: 50%; background: var(--olive); color: #fff; }
.not-found-mark svg { width: 35px; height: 35px; }
.not-found > span { color: var(--muted); font-size: 9px; letter-spacing: 0.2em; }
.not-found h1 { margin: 12px 0 8px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.not-found p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.primary-rect { padding: 13px 20px; border: 0; border-radius: 15px; background: var(--olive); color: #fff; font-size: 12px; font-weight: 700; }

.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(18, 21, 16, 0.5); }
.sheet { width: min(100%, 480px); padding: 12px 20px calc(28px + var(--safe-bottom)); border-radius: 30px 30px 0 0; background: var(--paper); box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.2); }
.handle { width: 46px; height: 5px; margin: 0 auto 18px; border-radius: 99px; background: #d6d2c8; }
.sheet h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.sheet p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.sheet textarea { width: 100%; margin-top: 15px; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: #f4f1e9; color: var(--ink); line-height: 1.6; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions button { flex: 1; padding: 14px; border: 0; border-radius: 15px; font-weight: 700; }
.sheet-actions .confirm { background: var(--olive); color: #fff; }
.sheet-actions .confirm-danger { background: #963f36; }
.sheet-actions .cancel { background: #ebe8df; color: var(--ink); }
.toast { position: fixed; z-index: 60; bottom: calc(104px + var(--safe-bottom)); left: 50%; max-width: min(88vw, 420px); padding: 11px 16px; transform: translateX(-50%); border-radius: 999px; background: #22261c; color: #fff; box-shadow: var(--shadow); font-size: 12px; text-align: center; animation: toast-in 0.2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 359px) {
  .hero { min-height: 385px; }
  .hero h1 { font-size: 41px; }
  .water-card { padding-right: 17px; padding-left: 17px; }
  .daysnum { font-size: 51px; }
  .water-btn { width: 154px; height: 154px; }
  .garden-grid { gap: 10px; }
  .plant-img { height: 174px; }
}

@media (min-width: 481px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100vh - 36px); border-radius: 28px; }
  .bottom-nav { bottom: 18px; border-radius: 0 0 28px 28px; }
  .modal-backdrop { align-items: center; }
  .sheet { border-radius: 30px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
