:root {
  --paper: #f4f6fb;
  --paper-strong: #ffffff;
  --ink: #202635;
  --muted: #626b7c;
  --line: #968a9d;
  --leaf: #137a4f;
  --leaf-dark: #3154c8;
  --leaf-soft: #e8edff;
  --rose: #c9316b;
  --rose-soft: #ffe2ec;
  --gold: #f2b72e;
  --danger: #b32645;
  --focus: #1d6fe8;
  --photo-scrim: rgba(32, 38, 53, 0.68);
  --shadow: none;
  --small-shadow: none;
  --radius-ui: 14px;
  --font-sans:
    "Avenir Next", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Noto Sans SC", "Helvetica Neue", sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--paper);
}
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  overscroll-behavior-y: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
button,
.file-button {
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#app {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
.auth-gate {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 18px
    calc(28px + env(safe-area-inset-bottom));
  background: #e9e3d7;
}
.auth-card {
  width: min(100%, 430px);
  padding: 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-ui);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: none;
  backdrop-filter: blur(24px);
}
.auth-card h1 {
  margin: 0 0 7px;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.auth-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 23px 0 4px;
  padding: 4px;
  border-radius: var(--radius-ui);
  background: #eeeee7;
}
.auth-tab {
  border: 0;
  border-radius: var(--radius-ui);
  padding: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.auth-tab.active {
  background: white;
  color: var(--leaf-dark);
  box-shadow: none;
}
.auth-tabs.single {
  grid-template-columns: 1fr;
}
.auth-form label {
  margin: 12px 0;
}
.auth-form input {
  margin-top: 6px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.86);
}
.auth-submit {
  margin-top: 9px;
  padding: 15px;
}
.auth-error {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
}
.auth-note {
  display: flex;
  gap: 8px;
  margin: 15px 2px 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-note span {
  color: var(--leaf);
  font-size: 14px;
}
.field-help {
  margin: -5px 2px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.google-button-host {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  transition: opacity 0.18s;
}
.google-button-host.disabled {
  opacity: 0.42;
  pointer-events: none;
}
.auth-status {
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.returning-member {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 12px 13px;
  border: 1px solid rgba(49, 54, 70, 0.16);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.returning-member > span {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf);
  color: white;
  font-weight: 800;
}
.returning-member p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: 12px;
}
.returning-member small {
  color: var(--muted);
  font-size: 12px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 22px 14px;
}
.app-header h1 {
  margin: 2px 0 0;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.eyebrow {
  margin: 0;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(49, 54, 70, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  place-items: center;
  box-shadow: none;
  cursor: pointer;
}
.icon-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.install-card {
  margin: 0 16px 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto 24px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(49, 54, 70, 0.16);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.install-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 23px;
}
.install-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.install-copy strong {
  font-size: 14px;
}
.install-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.small-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--leaf-dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.close-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  padding: 0;
}
.hidden {
  display: none !important;
}
#app.hidden {
  overflow: visible;
}
#mainContent {
  position: relative;
  touch-action: pan-y;
}
.growth-carousel {
  touch-action: pan-y;
  cursor: grab;
}
.growth-carousel.dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}
.growth-carousel-slide img,
.growth-carousel-gradient,
.growth-carousel-caption {
  pointer-events: none;
}
.view-page {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 148px);
  padding: 2px 16px 24px;
  background: var(--paper);
  transform: translate3d(0, 0, 0);
}
.gesture-preview {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
#mainContent.page-gesture-active > .view-page {
  transition: none;
  will-change: transform, opacity;
}
#mainContent.page-gesture-active > .view-page:not(.gesture-preview),
#mainContent.page-gesture-settling > .view-page:not(.gesture-preview) {
  box-shadow: none;
}
#mainContent.page-gesture-settling {
  pointer-events: none;
}
#mainContent.page-gesture-settling > .view-page {
  will-change: transform, opacity;
  transition:
    transform 240ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 190ms ease;
}
.home-top {
  padding: 2px 2px 0;
}
.home-weather {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  padding: 2px 5px 15px;
  border: 0;
  background: transparent;
  text-align: left;
}
.home-weather-symbol {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: #dfe8dc;
  color: var(--leaf-dark);
  font-size: 22px;
}
.home-weather > span:nth-child(2) {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
}
.home-weather small {
  grid-column: 1/-1;
  margin-bottom: 2px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.home-weather strong {
  font:
    500 19px var(--font-sans);
}
.home-weather em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-weather b {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.home-search {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 52px;
  padding: 0 10px 0 15px;
  border: 1px solid rgba(49, 54, 70, 0.15);
  border-radius: var(--radius-ui);
  background: #fff;
  box-shadow: none;
}
.home-search > svg {
  width: 21px;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.home-search > input {
  height: 50px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  background: transparent;
  font-size: 14px;
  appearance: none;
}
.home-search > input:focus {
  outline: 0;
}
.home-search > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3ed;
  color: var(--muted);
  font-size: 20px;
}
.home-search-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  overflow: hidden;
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.home-search-results:empty {
  display: none;
}
.home-search-list {
  display: grid;
  padding: 5px;
}
.home-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  text-align: left;
}
.home-search-result:active {
  background: var(--leaf-soft);
}
.home-search-result img,
.home-search-placeholder {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-ui);
  object-fit: cover;
}
.home-search-placeholder {
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--leaf);
}
.home-search-result span:nth-child(2) {
  min-width: 0;
}
.home-search-result strong,
.home-search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-search-result strong {
  font-size: 13px;
}
.home-search-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.home-search-result b {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.home-search-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 12px;
}
.home-search-empty button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
}
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 13px;
}
.home-shortcuts > button {
  min-width: 0;
  padding: 14px 7px 12px;
  border: 1px solid rgba(49, 54, 70, 0.1);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}
.shortcut-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 9px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  font:
    22px var(--font-sans);
}
.shortcut-icon.plants {
  background: #e1ebe0;
  color: #426b58;
}
.shortcut-icon.reminders {
  background: #f8e7e7;
  color: #b95f6c;
}
.shortcut-icon.care {
  background: #f4ead2;
  color: #9a7433;
}
.home-shortcuts strong,
.home-shortcuts small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-shortcuts strong {
  font-size: 12px;
}
.home-shortcuts small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.home-section {
  margin-top: 29px;
}
.home-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 3px 12px;
}
.home-section-title h2 {
  margin: 4px 0 0;
  font:
    500 25px var(--font-sans);
}
.home-section-title > button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
}
.home-section-title > span {
  color: var(--muted);
  font-size: 12px;
}
.home-photo-wall {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  scroll-padding: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
}
.home-photo-wall::-webkit-scrollbar,
.home-tip-track::-webkit-scrollbar {
  display: none;
}
.home-photo-card {
  position: relative;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  box-shadow: none;
  scroll-snap-align: none;
  transform: none;
  text-align: left;
}
.home-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-photo-empty {
  width: 100%;
  min-height: 180px;
  padding: 26px;
  border: 1px dashed #bfcabd;
  border-radius: var(--radius-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e1e8de;
  text-align: center;
}
.home-photo-empty > span {
  font:
    40px var(--font-sans);
  color: var(--leaf);
}
.home-photo-empty strong {
  margin-top: 8px;
  font:
    500 18px var(--font-sans);
}
.home-photo-empty small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.home-tip-track {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 1px 36px 10px 18px;
  scroll-padding-left: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.home-tip-card {
  flex: 0 0 min(76vw, 320px);
  min-height: 190px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius-ui);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
  text-align: left;
}
.home-tip-card.seasonal {
  background: #dce8d8;
}
.home-tip-card.weather {
  background: #d9e6e8;
}
.home-tip-card.reminder {
  background: #f0ddd5;
}
.home-tip-card > span {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.65);
  color: var(--leaf-dark);
  font-size: 20px;
}
.home-tip-card small {
  margin-top: 17px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.home-tip-card strong {
  margin-top: 7px;
  font:
    500 17px/1.45 var(--font-sans);
}
.home-tip-card em {
  margin-top: auto;
  padding-top: 13px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.seasonal-care-top {
  margin-bottom: 8px;
}
.seasonal-care-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius-ui);
  background: #dce8d8;
  box-shadow: none;
}
.seasonal-care-hero > span {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  color: var(--leaf-dark);
  font:
    28px var(--font-sans);
}
.seasonal-care-hero h2 {
  margin: 5px 0 6px;
  font:
    500 27px var(--font-sans);
}
.seasonal-care-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.seasonal-plant-picker {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.76);
}
.seasonal-plant-picker label {
  margin: 0;
}
.seasonal-plant-picker select {
  margin-top: 7px;
}
.seasonal-plant-picker > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.seasonal-fertilizer-card > .section-heading,
.seasonal-products-card > .section-heading {
  align-items: center;
  margin-top: 0;
}
.seasonal-fertilizer-card > .section-heading .eyebrow,
.seasonal-products-card > .section-heading .eyebrow {
  margin-bottom: 4px;
}
.fertilizer-season-card.current {
  border: 1px solid rgba(49, 84, 200, 0.22);
  background: #e5e3cb;
  box-shadow: none;
}
.seasonal-product-manager {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.seasonal-product-manager > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px 4px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.seasonal-product-manager > summary span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--leaf-soft);
  font-size: 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-ui);
  background: #3154c8;
  color: white;
  box-shadow: none;
  min-height: 168px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -66px;
  bottom: -102px;
  border: 38px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.hero:before {
  content: none;
  position: absolute;
  right: 28px;
  top: 18px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 98px;
  transform: rotate(15deg);
}
.hero h2 {
  position: relative;
  z-index: 1;
  max-width: 75%;
  margin: 10px 0 7px;
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}
.hero p {
  position: relative;
  z-index: 1;
  max-width: 78%;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}
.weather-pill {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 25px 3px 12px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
}
.section-heading h2 {
  font-size: 25px;
}
.section-heading h3 {
  font-size: 21px;
}
.section-heading span,
.section-heading button {
  color: var(--muted);
  font-size: 12px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--leaf) !important;
  font-weight: 700;
  padding: 4px 0;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.summary-card {
  padding: 14px 12px;
  border: 1px solid rgba(49, 54, 70, 0.11);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
.summary-card strong {
  display: block;
  font:
    600 25px/1 var(--font-sans);
}
.summary-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.reminder-list,
.plant-list {
  display: grid;
  gap: 10px;
}
.reminder-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}
.reminder-card.overdue {
  border-color: rgba(190, 82, 86, 0.26);
  background: #fffafa;
}
.reminder-card.done {
  opacity: 0.58;
}
.care-check {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 22px;
  cursor: pointer;
}
.care-check.checked {
  background: var(--leaf);
  color: white;
}
.reminder-copy {
  min-width: 0;
}
.reminder-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.reminder-copy p {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.date-label {
  margin-top: 6px !important;
  color: var(--leaf) !important;
  font-weight: 700;
}
.date-label.late {
  color: var(--danger) !important;
}
.action-menu {
  display: flex;
  gap: 5px;
}
.mini-action {
  border: 0;
  border-radius: var(--radius-ui);
  padding: 7px 8px;
  background: #f1f1eb;
  color: var(--muted);
  font-size: 12px;
}
.mini-action.danger {
  color: var(--danger);
  background: #fbebeb;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 1px 10px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
}
.filter-chip.active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
}
.plant-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  cursor: pointer;
}
.plant-photo {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-ui);
  object-fit: cover;
  object-position: center 24%;
  background: #dfe7dc;
}
.plant-placeholder {
  display: grid;
  place-items: center;
  color: rgba(49, 84, 200, 0.72);
  font:
    36px var(--font-sans);
}
.plant-card-info {
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 10px 16px;
  border-radius: var(--radius-ui);
  background: #e2ebe2;
}
.plant-card-copy {
  min-width: 0;
}
.plant-card h3 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
}
.plant-card-english {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #4f6258;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.25;
}
.plant-card-category {
  display: block;
  margin-top: 7px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.chevron {
  color: var(--muted);
  font-size: 25px;
}
.empty-state {
  padding: 45px 25px;
  border: 1px dashed #cbd1c7;
  border-radius: var(--radius-ui);
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
}
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  font:
    32px var(--font-sans);
  color: var(--leaf);
}
.empty-state h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
}
.empty-state p {
  margin: 9px auto 17px;
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.back-button {
  border: 0;
  background: none;
  padding: 7px 3px;
  color: var(--leaf-dark);
  font-weight: 700;
}
.detail-cover {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-ui);
  background: #e1e7d8;
  box-shadow: none;
}
.detail-cover img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}
.detail-cover.no-image {
  display: grid;
  place-items: center;
  font:
    94px var(--font-sans);
  color: rgba(49, 84, 200, 0.48);
}
.detail-cover-view {
  display: block;
  width: 100%;
  height: 300px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}
.detail-cover-view img {
  pointer-events: none;
}
.photo-preview-hint {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: var(--photo-scrim);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.cover-photo-picker-trigger {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.detail-title {
  position: relative;
  margin: -70px 12px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-ui);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.detail-title h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
}
.detail-title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 2px 0;
}
.detail-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.76);
}
.detail-actions.three {
  grid-template-columns: 1fr 1fr;
}
.detail-actions.three .primary-button {
  grid-column: 1/-1;
}
.detail-card h3 {
  margin: 0 0 9px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
}
.detail-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.trait {
  padding: 10px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.trait strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 12px;
}
.trait span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.profile-detail-card {
  padding-top: 16px;
}
.profile-detail-card > .section-heading {
  margin-bottom: 10px;
}
.profile-visual-card {
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  font-family: var(--font-sans);
}
.profile-visual-stage {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  background: #252d42;
}
.profile-visual-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-visual-shade {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 18, 0.5);
}
.profile-visual-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
}
.profile-visual-heading,
.profile-visual-heading strong,
.profile-visual-heading small {
  display: block;
}
.profile-visual-heading small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.profile-visual-heading strong {
  max-width: 88%;
  color: #fff;
  font:
    500 24px/1.15 var(--font-sans);
  text-shadow: none;
}
.profile-visual-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-visual-trait {
  display: block;
  min-width: 0;
  min-height: 91px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-ui);
  background: var(--photo-scrim);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.profile-visual-trait strong,
.profile-visual-trait span {
  display: block;
  color: #fff;
}
.profile-visual-trait strong {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.profile-visual-trait span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.48;
}
.profile-reference-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}
.profile-reference-credit > a,
.profile-reference-credit > span:not(.profile-reference-separator) {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.profile-reference-credit > a {
  color: var(--leaf-dark);
  font-weight: 600;
}
.profile-reference-credit .ui-icon {
  width: 12px;
  height: 12px;
}
.profile-reference-separator {
  width: 1px;
  height: 12px;
  background: var(--line);
}
.profile-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 88px 20px 145px;
  background: #f3effc;
  color: var(--ink);
  text-align: left;
}
.profile-visual-placeholder-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--primary);
}
.profile-visual-placeholder-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.profile-visual-placeholder small,
.profile-visual-placeholder strong,
.profile-visual-placeholder em {
  display: block;
}
.profile-visual-placeholder small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.profile-visual-placeholder strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.profile-visual-placeholder em {
  max-width: 220px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}
.profile-visual-card.is-reference-pending .profile-visual-heading small {
  color: var(--primary);
}
.profile-visual-card.is-reference-pending .profile-visual-heading strong {
  color: var(--ink);
}
.profile-visual-card.is-reference-pending .profile-visual-trait {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.profile-visual-card.is-reference-pending .profile-visual-trait strong {
  color: var(--primary);
}
.profile-visual-card.is-reference-pending .profile-visual-trait span {
  color: var(--ink);
}
.profile-media-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 2px;
}
.profile-media-tools > div {
  min-width: 0;
}
.profile-media-tools small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-cover-picker {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(49, 84, 200, 0.18);
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
}
.profile-detail-actions {
  margin-top: 4px;
}
.growth-carousel-block {
  margin-top: 17px;
}
.growth-carousel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 2px 9px;
}
.growth-carousel-heading strong {
  display: block;
  color: var(--ink);
  font:
    500 16px var(--font-sans);
}
.growth-carousel-heading small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.growth-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px 7px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 18px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.growth-carousel::-webkit-scrollbar {
  display: none;
}
.growth-carousel-slide,
.growth-carousel-add {
  position: relative;
  overflow: hidden;
  flex: 0 0 min(76%, 260px);
  height: 178px;
  border-radius: var(--radius-ui);
  scroll-snap-align: start;
}
.growth-carousel-slide {
  padding: 0;
  border: 0;
  background: #252d42;
  color: #fff;
  text-align: left;
  cursor: zoom-in;
  box-shadow: none;
}
.growth-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.growth-carousel-gradient {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 25, 0.5);
}
.growth-carousel-caption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
}
.growth-carousel-caption small,
.growth-carousel-caption strong,
.growth-carousel-caption em {
  display: block;
  color: #fff;
}
.growth-carousel-caption small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.growth-carousel-caption strong {
  margin-top: 3px;
  font-size: 13px;
}
.growth-carousel-caption em {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}
.growth-carousel-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed #aebdaf;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  text-align: center;
  cursor: pointer;
}
.growth-carousel-add span {
  font-size: 28px;
  font-weight: 300;
}
.growth-carousel-add strong {
  margin-top: 6px;
  font-size: 12px;
}
.growth-carousel-add small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.growth-carousel-add input {
  display: none;
}
.profile-extra-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.profile-extra-label:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.profile-summary {
  margin: 14px 2px 0;
}
.profile-reidentify-label {
  margin-top: 17px;
}
.profile-unidentified {
  padding: 14px 2px 2px;
}
.profile-unidentified h2 {
  margin: 8px 0 0;
  font:
    500 27px/1.15 var(--font-sans);
}
.profile-unidentified p {
  margin: 7px 0 0;
}
.profile-confidence {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecefe7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.profile-confidence.high {
  background: var(--leaf-soft);
  color: var(--leaf-dark);
}
.profile-confidence.medium {
  background: #f6eedc;
  color: #785f34;
}
.verification-note {
  margin: 11px 0 0 !important;
  padding: 9px 11px;
  border-radius: var(--radius-ui);
  background: #f6eedc;
  color: #785f34 !important;
  font-size: 12px !important;
}
.profile-sources {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.profile-sources > strong {
  color: var(--muted);
  font-size: 12px;
}
.profile-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.profile-source-link span {
  flex: 0 0 auto;
}
.profile-preview-source {
  margin-top: 8px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
}
.fertilizer-seasons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.fertilizer-season-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 12px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.fertilizer-season-card > span {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: white;
  color: var(--leaf-dark);
  font:
    500 17px var(--font-sans);
  box-shadow: none;
}
.fertilizer-season-card strong,
.fertilizer-season-card small {
  display: block;
}
.fertilizer-season-card strong {
  font-size: 12px;
}
.fertilizer-season-card small {
  margin-top: 3px;
  color: var(--leaf);
  font-size: 12px;
}
.fertilizer-season-card p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.photo-timeline {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}
.photo-timeline::-webkit-scrollbar {
  display: none;
}
.timeline-photo {
  flex: 0 0 126px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.timeline-photo-image {
  position: relative;
  display: block;
}
.timeline-photo img {
  width: 126px;
  height: 126px;
  border-radius: var(--radius-ui);
  object-fit: cover;
}
.timeline-photo-open {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--photo-scrim);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.timeline-photo small {
  display: block;
  margin: 5px 2px 0;
  color: var(--muted);
  font-size: 12px;
}
.add-photo-tile {
  flex: 0 0 126px;
  height: 126px;
  border: 1px dashed #aebdaf;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--leaf);
  background: var(--leaf-soft);
  cursor: pointer;
  font-size: 12px;
}
.add-photo-tile input {
  display: none;
}
.cover-photo-help {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.cover-photo-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.cover-photo-option {
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(49, 54, 70, 0.14);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.cover-photo-option.selected {
  border-color: var(--leaf);
  background: var(--leaf-soft);
  box-shadow: none;
}
.cover-photo-option-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-ui);
  aspect-ratio: 1;
}
.cover-photo-option img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cover-photo-option strong {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--photo-scrim);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.cover-photo-option.selected strong {
  background: var(--leaf-dark);
}
.cover-photo-option small {
  display: block;
  overflow: hidden;
  margin: 7px 4px 3px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4ead3;
  color: #8a6830;
  font-size: 12px;
  font-weight: 700;
}
.season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.season-item {
  padding: 11px;
  border-radius: var(--radius-ui);
  background: #f4f4ed;
}
.season-item strong {
  display: block;
  font-size: 12px;
}
.season-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.care-history,
.product-list,
.action-plan-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.care-history-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: var(--radius-ui);
  background: #f4f4ed;
}
.care-history-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: white;
  color: var(--leaf-dark);
  font-size: 18px;
  box-shadow: none;
}
.care-history-item strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.care-history-item strong span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.care-history-item p {
  margin: 4px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.45;
}
.product-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(49, 54, 70, 0.1);
  border-radius: var(--radius-ui);
  background: #fff;
}
.product-placeholder {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-ui);
  object-fit: cover;
}
.product-placeholder {
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 22px;
}
.product-photo-preview-button {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  overflow: hidden;
  background: var(--leaf-soft);
  cursor: zoom-in;
}
.product-photo-preview-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-photo-preview-button span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--photo-scrim);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.product-card strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.product-card p {
  margin: 3px 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.4;
}
.product-card small {
  color: var(--leaf);
  font-size: 12px;
}
.product-kind {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
}
.garden-product-library {
  overflow: hidden;
}
.garden-product-library > .section-heading {
  align-items: flex-end;
}
.garden-product-library > .section-heading > div {
  min-width: 0;
}
.garden-product-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--leaf);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.garden-product-intro {
  margin: 0;
}
.garden-product-intro strong {
  color: var(--leaf-dark);
}
.garden-issue-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 13px -18px 0;
  padding: 0 18px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.garden-issue-strip::-webkit-scrollbar {
  display: none;
}
.garden-issue-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 11px;
  border: 1px solid rgba(49, 84, 200, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.garden-issue-chip.active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
  box-shadow: none;
}
.garden-product-match {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: baseline;
  margin: 7px 0 10px;
  padding: 11px 12px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.garden-product-match span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}
.garden-product-match strong {
  font:
    500 16px var(--font-sans);
}
.garden-product-match small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.garden-product-grid {
  display: grid;
  gap: 9px;
}
.garden-product-card {
  padding: 13px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}
.garden-product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.garden-product-kind {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
}
.garden-product-brand {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.garden-product-card h4 {
  margin: 8px 0 2px;
  color: var(--ink);
  font:
    500 16px var(--font-sans);
}
.garden-product-card > strong {
  display: block;
  font-size: 12px;
}
.garden-product-card > p {
  margin: 6px 0 9px;
  font-size: 12px;
  line-height: 1.55;
}
.garden-product-card > a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.garden-product-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  padding: 8px 9px;
  border-radius: var(--radius-ui);
  background: #f6eedc;
  color: #785f34;
}
.garden-product-warning span {
  font-size: 12px;
  font-weight: 800;
}
.garden-product-warning small {
  font-size: 12px;
  line-height: 1.5;
}
.garden-product-group {
  margin-top: 9px;
  border: 1px solid rgba(49, 54, 70, 0.12);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.5);
}
.garden-product-group > summary {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.garden-product-group > summary::-webkit-details-marker {
  display: none;
}
.garden-product-group > summary > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  color: var(--leaf);
}
.garden-product-group > summary > strong {
  font-size: 12px;
}
.garden-product-group > summary > small {
  color: var(--muted);
  font-size: 12px;
}
.garden-product-group > .garden-product-grid {
  padding: 0 9px 9px;
}
.garden-product-safety {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-ui);
  background: #eef3ed;
}
.garden-product-safety strong {
  color: var(--leaf-dark);
  font-size: 12px;
}
.garden-product-safety span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.action-plan-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 11px;
  padding: 13px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.action-plan-date {
  align-self: start;
  padding: 7px 6px;
  border-radius: var(--radius-ui);
  background: white;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.action-plan-item strong {
  font-size: 13px;
}
.action-plan-item p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.48;
}
.action-plan-item small {
  color: #738078;
  font-size: 12px;
  line-height: 1.4;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 760px);
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 9px 7px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(49, 54, 70, 0.12);
  background: rgba(252, 250, 244, 0.92);
  backdrop-filter: blur(22px);
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #87918c;
  font-size: 12px;
  cursor: pointer;
}
.nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active {
  color: var(--leaf-dark);
  font-weight: 700;
}
.fab {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: calc(42px + env(safe-area-inset-bottom));
  transform: translate(-50%, 50%);
  width: 62px;
  height: 62px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose);
  color: white;
  box-shadow: none;
  cursor: pointer;
}
.fab svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fab > span {
  position: absolute;
  top: 61px;
  color: #7e8883;
  font-size: 12px;
  font-weight: 700;
}
.nav-camera-space {
  display: block;
}
dialog {
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(32, 38, 53, 0.42);
  backdrop-filter: blur(5px);
}
.photo-viewer-dialog {
  inset: 0;
  width: min(calc(100vw - 28px), 760px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: #fff;
  overflow: visible;
}
.photo-viewer-dialog::backdrop {
  background: rgba(20, 24, 34, 0.9);
  backdrop-filter: blur(12px);
}
.photo-viewer-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  border-radius: var(--radius-ui);
  background: #202635;
  box-shadow: none;
}
.photo-viewer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 14px;
}
.photo-viewer-kicker {
  margin: 0 0 3px;
  color: #c9d3fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.photo-viewer-header h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.photo-viewer-header p:not(.photo-viewer-kicker) {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}
.photo-viewer-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
}
.photo-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  background: #151a27;
}
.photo-viewer-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(32, 38, 53, 0.76);
  box-shadow: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(10px);
}
.photo-nav.previous {
  left: 12px;
}
.photo-nav.next {
  right: 12px;
}
.photo-nav[hidden],
.photo-viewer-counter[hidden] {
  display: none;
}
.photo-viewer-counter {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  padding: 5px 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(32, 38, 53, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}
.photo-viewer-actions {
  display: grid;
  gap: 8px;
  padding: 14px 20px 20px;
}
.photo-viewer-actions small {
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 12px;
}
.sheet {
  width: min(100%, 760px);
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-ui) var(--radius-ui) 0 0;
  background: var(--paper-strong);
  box-shadow: none;
}
.sheet[open] {
  animation: sheetIn 0.25s ease-out;
}
@keyframes sheetIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
.dialog-swipe-tracking {
  animation: none !important;
  transition: none !important;
  will-change: transform, opacity;
}
.dialog-swipe-settling {
  animation: none !important;
  will-change: transform, opacity;
  transition:
    transform 220ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 180ms ease !important;
}
.sheet form {
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  max-height: calc(92dvh - 16px);
}
.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 11px;
  border-radius: var(--radius-ui);
  background: #d6d5ce;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.sheet-header h2 {
  margin: 3px 0 0;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
}
.sheet-close {
  font-size: 27px;
  line-height: 1;
}
label {
  display: block;
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354655b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) 50%;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
.custom-category-fields {
  padding: 2px 13px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.quick-photo-new-fields {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(49, 54, 70, 0.14);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.quick-photo-new-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}
.quick-photo-new-heading strong {
  color: var(--leaf-dark);
  font:
    500 18px var(--font-sans);
}
.quick-photo-new-heading small {
  color: var(--muted);
  font-size: 12px;
}
.quick-photo-new-fields label {
  margin: 11px 0;
}
.quick-photo-new-fields .plant-profile-preview {
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.68);
}
.photo-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px dashed #9daf9f;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  cursor: pointer;
}
.photo-picker input {
  display: none;
}
.photo-picker-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: white;
  color: var(--leaf);
  font-size: 22px;
}
.photo-picker span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
}
.photo-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.photo-preview {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.photo-preview img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-ui);
  object-fit: cover;
}
.plan-context {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.plan-context strong {
  font:
    500 19px var(--font-sans);
}
.plan-context span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.topic-fieldset {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
}
.topic-fieldset legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.topic-option {
  margin: 0;
}
.topic-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.topic-option span {
  display: block;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: white;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.topic-option input:checked + span {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
  box-shadow: none;
}
.safety-callout {
  display: flex;
  gap: 9px;
  margin: 13px 0;
  padding: 12px;
  border-radius: var(--radius-ui);
  background: #f6eedc;
  color: #785f34;
  font-size: 12px;
  line-height: 1.5;
}
.safety-callout strong {
  flex: 0 0 auto;
}
.safety-callout span {
  font-weight: 400;
}
.product-lookup {
  display: grid;
  gap: 7px;
  margin: 2px 0 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}
.product-lookup-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.product-lookup-heading strong {
  font-size: 13px;
}
.product-lookup-heading small,
.product-lookup-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.product-lookup-heading small {
  text-align: right;
}
.product-lookup-help {
  min-height: 16px;
  margin: 0 2px;
}
.product-lookup-results:empty {
  display: none;
}
.product-lookup-result-heading {
  margin: 3px 2px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.product-lookup-result-list {
  display: grid;
  gap: 8px;
}
.product-lookup-result-row {
  display: grid;
  gap: 4px;
}
.product-lookup-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: white;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.product-lookup-result.has-image {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}
.product-lookup-result.has-image .care-product-image {
  width: 54px;
  height: 54px;
}
.product-lookup-result.is-selected {
  border-color: var(--leaf-dark);
  background: var(--leaf-soft);
}
.product-lookup-result strong,
.product-lookup-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-lookup-result strong {
  font-size: 13px;
}
.product-lookup-result small {
  color: var(--muted);
  font-size: 11px;
}
.product-lookup-use {
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.product-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.product-photo-preview img {
  width: 86px;
  height: 86px;
  border-radius: var(--radius-ui);
  object-fit: cover;
}
.product-photo-preview span {
  color: var(--leaf);
  font-size: 12px;
}
.recognition-status {
  min-height: 17px;
  margin: 7px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.product-help {
  margin-top: -7px;
}
.care-product-search {
  position: relative;
  display: block;
  margin-top: 7px;
}
.care-product-search input {
  margin-top: 0;
  padding-right: 54px;
}
.care-product-search-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff1bd;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  transform: translateY(-50%);
}
.care-product-search-button .ui-icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}
.care-product-search-button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.care-product-suggestions {
  display: grid;
  gap: 8px;
  margin: -2px 0 12px;
}
.care-product-suggestions:empty {
  display: none;
}
.care-product-suggestion-heading,
.care-product-suggestion-more {
  margin: 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.care-product-suggestion-list {
  display: grid;
  gap: 7px;
}
.care-product-suggestion-row {
  display: grid;
  gap: 5px;
}
.care-product-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.care-product-suggestion.has-image {
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  min-height: 82px;
  padding: 8px;
}
.care-product-image {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #f7f7f5;
}
.care-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.care-product-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.care-product-suggestion strong,
.care-product-suggestion small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.care-product-suggestion strong {
  font-size: 14px;
  font-weight: 700;
}
.care-product-suggestion small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.care-product-suggestion .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.care-product-suggestion.is-selected {
  border-color: var(--rose);
  background: #fff3f6;
}
.care-product-suggestion.is-selected .ui-icon {
  color: var(--rose);
}
.care-product-source {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  margin: 0 4px 3px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.care-product-source .ui-icon {
  width: 14px;
  height: 14px;
}
.care-product-search-status {
  margin: 1px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.plant-profile-preview {
  margin: 8px 0 13px;
  padding: 13px;
  border: 1px solid rgba(49, 54, 70, 0.15);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.profile-preview-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-preview-head span {
  padding: 4px 7px;
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
}
.profile-preview-head strong {
  font:
    500 17px var(--font-sans);
}
.plant-profile-preview > p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.plant-profile-preview > small {
  display: block;
  margin-top: 8px;
  color: #8a6830;
  font-size: 12px;
  line-height: 1.4;
}
.profile-preview-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.profile-preview-trait {
  padding: 8px;
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.72);
}
.profile-preview-trait strong,
.profile-preview-trait span {
  display: block;
}
.profile-preview-trait strong {
  color: var(--leaf-dark);
  font-size: 12px;
}
.profile-preview-trait span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.primary-button,
.secondary-button {
  border-radius: var(--radius-ui);
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button {
  width: 100%;
  border: 0;
  background: var(--leaf-dark);
  color: white;
  box-shadow: none;
}
.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--leaf-dark);
}
.secondary-button.full {
  width: 100%;
}
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.file-button {
  display: grid;
  place-items: center;
  margin: 0;
  text-align: center;
  font-size: 14px;
}
.file-button input {
  display: none;
}
.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.inline-field input {
  margin: 0;
}
.settings-section {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.settings-section:first-of-type {
  border-top: 0;
}
.settings-section h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
}
.settings-section p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.settings-section small {
  color: var(--leaf);
}
.category-manager-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.category-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.category-manager-item > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-manager-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}
.category-manager-item small {
  font-size: 12px;
}
.category-built-in {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
}
.category-delete-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(176, 76, 76, 0.22);
  border-radius: var(--radius-ui);
  background: #fff;
  color: #a64646;
  font-size: 12px;
  font-weight: 700;
}
.category-delete-button:disabled {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}
.version {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.account-section {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
  padding-top: 3px;
}
.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-ui);
  display: grid;
  place-items: center;
  background: var(--leaf-dark);
  color: white;
  font:
    22px var(--font-sans);
}
.account-copy {
  min-width: 0;
}
.account-copy h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 4px 0 0;
}
.account-logout {
  padding: 9px 12px;
  border-radius: var(--radius-ui);
  font-size: 12px;
}
.account-avatar.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.profile-search {
  margin: 15px 0 18px;
  padding: 15px;
  border: 1px solid rgba(49, 54, 70, 0.18);
  border-radius: var(--radius-ui);
  background: #eef2eb;
}
.profile-search > label {
  margin: 0 0 8px;
  color: var(--leaf-dark);
  font-size: 12px;
}
.profile-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.profile-search-row input {
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  border-color: rgba(49, 54, 70, 0.24);
  background: #fff;
}
.profile-search-button {
  min-width: 70px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-ui);
  background: var(--leaf-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.profile-search-button:disabled {
  opacity: 0.58;
}
.profile-search > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.profile-search-status {
  margin: 10px 0 0 !important;
  padding: 9px 11px;
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.8);
  color: var(--leaf-dark) !important;
  font-size: 12px !important;
}
.profile-search-status.loading {
  color: var(--muted) !important;
}
.profile-suggestion-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(49, 54, 70, 0.18);
  border-radius: var(--radius-ui);
  background: #fff;
  box-shadow: none;
}
.profile-suggestion-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.profile-suggestion-heading > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.profile-suggestion-heading h4 {
  margin: 0;
  font:
    500 20px var(--font-sans);
}
.profile-suggestion-card > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.profile-suggestion-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.profile-suggestion-trait {
  padding: 9px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.profile-suggestion-trait strong,
.profile-suggestion-trait span {
  display: block;
}
.profile-suggestion-trait strong {
  color: var(--leaf-dark);
  font-size: 12px;
}
.profile-suggestion-trait span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.profile-apply-button {
  margin-top: 12px;
  padding: 11px;
}
.profile-current-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.profile-current-label:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(95px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #252d42;
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  #mainContent.page-gesture-settling > .view-page,
  .dialog-swipe-settling {
    transition: none !important;
  }
  .home-photo-wall {
    scroll-behavior: auto;
  }
  .sheet[open] {
    animation: none;
  }
}
@media (max-width: 640px) {
  .photo-viewer-dialog {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .photo-viewer-shell {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .photo-viewer-stage {
    flex: 1;
  }
  .photo-viewer-stage img {
    max-height: calc(100dvh - 210px);
  }
}
@media (max-width: 430px) {
  .care-history-item,
  .product-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .care-history-item > .action-menu,
  .product-card > .action-menu {
    grid-column: 1/-1;
    justify-content: flex-end;
    padding-top: 3px;
  }
  .product-photo-preview-button,
  .product-placeholder {
    width: 42px;
    height: 42px;
  }
  .reminder-card {
    grid-template-columns: 45px 1fr;
  }
  .reminder-card > .action-menu {
    grid-column: 2;
    justify-content: flex-end;
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 760px) {
  body {
    padding: 20px 0;
  }
  #app {
    min-height: calc(100dvh - 40px);
    border: 1px solid rgba(49, 54, 70, 0.12);
    border-radius: var(--radius-ui);
    overflow: hidden;
    background: rgba(247, 244, 236, 0.78);
    box-shadow: none;
  }
  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 var(--radius-ui) var(--radius-ui);
  }
  .fab {
    bottom: 59px;
  }
  .sheet {
    margin: auto;
    border-radius: var(--radius-ui);
    max-width: 620px;
  }
}

/* Retired visual experiments are kept only for migration reference and are never applied. */
@supports not (display: block) {
/* Garden journal: warm, restrained and quietly editorial. */
body {
  background: var(--paper);
}
#app {
  background: var(--paper);
}
.app-header {
  margin: 0 10px 8px;
  padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
  border-bottom: 1px solid rgba(49, 84, 200, 0.18);
  border-radius: 0 0 var(--radius-ui) var(--radius-ui);
  background: var(--leaf-dark);
}
.app-header h1 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 39px;
  font-weight: 680;
  letter-spacing: 0.06em;
}
.app-header .eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.24em;
}
.app-header .icon-button {
  width: 43px;
  height: 43px;
  border-color: rgba(49, 84, 200, 0.18);
  border-radius: var(--radius-ui);
  background: rgba(250, 247, 240, 0.74);
  color: var(--leaf-dark);
}
.view-page {
  padding: 4px 20px 30px;
  background: transparent;
}
.section-heading {
  margin: 24px 2px 15px;
}
.section-heading h2,
.home-section-title h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.035em;
}
.section-heading > span {
  padding-bottom: 3px;
  color: #6d756e;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.filter-row {
  gap: 2px;
  margin: 0 -4px 14px;
  padding: 4px;
  border: 1px solid rgba(49, 84, 200, 0.1);
  border-radius: var(--radius-ui);
  background: rgba(250, 247, 240, 0.7);
}
.filter-chip {
  border: 0;
  border-radius: var(--radius-ui);
  padding: 9px 14px;
  background: transparent;
  color: #69726b;
  font-size: 12px;
}
.filter-chip.active {
  border: 0;
  background: var(--leaf-dark);
  color: #fffdf8;
  box-shadow: none;
}
.plant-list {
  gap: 14px;
}
.plant-card {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 0;
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 84, 200, 0.12);
  border-radius: var(--radius-ui);
  background: #f8f4eb;
  box-shadow: none;
}
.plant-card:active {
  transform: scale(0.992);
}
.plant-photo {
  width: 116px;
  height: 100%;
  min-height: 132px;
  border-radius: 0;
}
.plant-card-info {
  position: relative;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  padding: 19px 13px 17px 19px;
  border-radius: 0;
  background: #dfe7dc;
}
.plant-card-info:before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  background: rgba(166, 107, 85, 0.34);
}
.plant-card h3 {
  color: #202635;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.025em;
}
.plant-card-english {
  margin-top: 6px;
  color: #53625a;
  font-size: 12px;
  line-height: 1.35;
}
.plant-card-category {
  margin-top: 10px;
  color: #5a6d60;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.plant-card .chevron {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(49, 84, 200, 0.12);
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.5);
  color: #53645b;
}
.plant-card .chevron .ui-icon {
  width: 14px;
  height: 14px;
}
.home-search,
.home-shortcuts > button,
.summary-card,
.reminder-card,
.detail-card,
.seasonal-plant-picker,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.product-card {
  border-color: rgba(49, 84, 200, 0.11);
  background: rgba(250, 247, 240, 0.88);
}
.home-search {
  min-height: 55px;
  border-radius: var(--radius-ui);
  box-shadow: none;
}
.home-shortcuts {
  gap: 8px;
}
.home-shortcuts > button {
  border-radius: var(--radius-ui);
}
.shortcut-icon,
.home-weather-symbol {
  border-radius: var(--radius-ui);
}
.home-photo-card {
  border-color: var(--paper);
  border-radius: var(--radius-ui);
  box-shadow: none;
}
.home-tip-card,
.seasonal-care-hero {
  border-radius: var(--radius-ui);
}
.hero {
  background: #3154c8;
}
.primary-button,
.small-button,
.profile-search-button {
  background: var(--leaf-dark);
}
.bottom-nav {
  height: calc(74px + env(safe-area-inset-bottom));
  border-top-color: rgba(49, 84, 200, 0.13);
  background: rgba(248, 244, 235, 0.96);
  box-shadow: none;
}
.nav-item {
  gap: 5px;
  color: #7b827d;
}
.nav-item.active {
  color: var(--leaf-dark);
}
.nav-item.active svg {
  stroke-width: 2.15;
}
.fab {
  bottom: calc(41px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border: 4px solid #f8f4eb;
  border-radius: var(--radius-ui);
  background: #a66b55;
  box-shadow: none;
}
.fab > span {
  top: 61px;
  color: #746f68;
}
.auth-gate {
  background: #e9e3d7;
}
.auth-card {
  border-radius: var(--radius-ui);
  background: rgba(250, 247, 240, 0.92);
}
.toast {
  background: #252d42;
}
@media (max-width: 390px) {
  .view-page {
    padding-inline: 16px;
  }
  .plant-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }
  .plant-photo {
    width: 108px;
  }
  .plant-card-info {
    padding-left: 16px;
  }
}
@media (min-width: 760px) {
  #app {
    background: var(--paper);
  }
}

/* Impeccable polish: quiet, warm and practical for a home garden. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.ui-icon {
  width: 1.2em;
  height: 1.2em;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}
.auth-gate,
.view-page {
  background: var(--paper);
}
.auth-gate:before,
.auth-gate:after,
.auth-orb,
.hero:before,
.hero:after {
  display: none;
  content: none;
}
.auth-card {
  padding: 28px 24px 24px;
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
  backdrop-filter: none;
}
.auth-brand {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-ui);
  background: var(--leaf-dark);
  box-shadow: none;
}
.auth-brand .ui-icon {
  width: 27px;
  height: 27px;
}
.auth-card h1,
.app-header h1,
.home-section-title h2,
.section-heading h2,
.section-heading h3,
.detail-title h2,
.detail-card h3,
.sheet-header h2 {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.app-header h1 {
  font-size: 35px;
  letter-spacing: 0.04em;
}
.eyebrow {
  color: var(--muted);
  letter-spacing: 0.16em;
}
.icon-button {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}
.install-card {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
  backdrop-filter: none;
}
.install-icon,
.photo-picker-icon,
.care-history-icon,
.product-placeholder {
  box-shadow: none;
}
.small-button,
.primary-button,
.secondary-button,
.profile-search-button {
  border-radius: var(--radius-ui);
  box-shadow: none;
}
.home-weather-symbol {
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.home-weather-symbol .ui-icon,
.shortcut-icon .ui-icon,
.seasonal-care-hero > span .ui-icon {
  width: 22px;
  height: 22px;
}
.home-weather b,
.home-search-result b,
.chevron {
  display: grid;
  place-items: center;
}
.home-weather b .ui-icon,
.home-search-result b .ui-icon,
.chevron .ui-icon {
  width: 18px;
  height: 18px;
}
.home-search {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}
.home-search-results {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
  backdrop-filter: none;
}
.home-shortcuts > button {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}
.shortcut-icon {
  width: 43px;
  height: 43px;
  border-radius: var(--radius-ui);
}
.shortcut-icon.plants,
.shortcut-icon.care {
  background: var(--leaf-soft);
  color: var(--leaf-dark);
}
.shortcut-icon.reminders {
  background: var(--rose-soft);
  color: var(--rose);
}
.home-photo-card {
  border: 0;
  border-radius: var(--radius-ui);
  box-shadow: none;
}
.photo-preview-hint,
.cover-photo-picker-trigger,
.timeline-photo-open,
.cover-photo-option strong {
  backdrop-filter: none;
}
.home-photo-empty {
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.home-photo-empty > span {
  color: var(--leaf-dark);
}
.home-photo-empty > span .ui-icon {
  width: 34px;
  height: 34px;
}
.home-tip-card {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong) !important;
}
.home-tip-card > span {
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.home-tip-card.reminder > span {
  background: var(--rose-soft);
  color: var(--rose);
}
.home-tip-card em,
.weather-pill,
.back-button,
.profile-cover-picker,
.profile-preview-source,
.profile-detail-actions button,
.topic-option span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-tip-card em .ui-icon,
.back-button .ui-icon,
.profile-preview-source .ui-icon,
.profile-source-link .ui-icon {
  width: 15px;
  height: 15px;
}
.seasonal-care-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  box-shadow: none;
}
.seasonal-care-hero > span {
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}
.seasonal-plant-picker,
.hero,
.summary-card,
.reminder-card,
.plant-card,
.empty-state,
.detail-cover,
.detail-title,
.detail-card,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.care-history-item,
.product-card,
.action-plan-item,
.fertilizer-season-card,
.quick-photo-new-fields,
.plant-profile-preview {
  border-radius: var(--radius-ui);
}
.seasonal-plant-picker,
.summary-card,
.reminder-card,
.plant-card,
.detail-card,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.product-card {
  border-color: var(--line);
  background-color: var(--paper-strong);
  box-shadow: none;
}
.hero {
  min-height: 154px;
  background: var(--leaf-dark);
  box-shadow: none;
}
.summary-card {
  border-radius: var(--radius-ui);
}
.reminder-card,
.plant-card {
  box-shadow: none;
}
.care-check {
  border-radius: var(--radius-ui);
}
.plant-photo {
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.plant-card-info {
  border-radius: var(--radius-ui);
  background: #dfe7dc;
}
.empty-state {
  background: rgba(251, 250, 246, 0.58);
}
.empty-state .empty-icon {
  border-radius: var(--radius-ui);
}
.empty-state .empty-icon .ui-icon {
  width: 30px;
  height: 30px;
}
.detail-cover {
  background: var(--leaf-soft);
  box-shadow: none;
}
.detail-title {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: rgba(251, 250, 246, 0.96);
  box-shadow: none;
  backdrop-filter: none;
}
.profile-visual-card {
  border-radius: var(--radius-ui);
  box-shadow: none;
}
.profile-visual-heading strong {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.profile-visual-trait {
  border-radius: var(--radius-ui);
  background: rgba(20, 38, 30, 0.72);
  box-shadow: none;
  backdrop-filter: none;
}
.profile-cover-picker {
  border-radius: var(--radius-ui);
}
.growth-carousel-slide,
.growth-carousel-add {
  border-radius: var(--radius-ui);
}
.growth-carousel-slide {
  box-shadow: none;
}
.growth-carousel-add,
.fertilizer-season-card,
.garden-product-match,
.action-plan-item,
.quick-photo-new-fields,
.plant-profile-preview {
  background: var(--leaf-soft);
}
.trait,
.profile-preview-trait,
.profile-suggestion-trait,
.care-history-item,
.season-item {
  background: #edf1eb;
}
.profile-source-link {
  border: 1px solid var(--line);
  background: transparent;
}
.garden-issue-chip.active,
.topic-option input:checked + span {
  box-shadow: none;
}
.bottom-nav {
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(10px);
}
.fab {
  width: 60px;
  height: 60px;
  border-width: 4px;
  background: var(--rose);
  box-shadow: none;
}
dialog::backdrop {
  backdrop-filter: none;
}
.sheet {
  border-radius: var(--radius-ui) var(--radius-ui) 0 0;
  box-shadow: none;
}
.photo-picker {
  border-radius: var(--radius-ui);
}
.topic-option span {
  justify-content: center;
}
.topic-option span .ui-icon,
.profile-detail-actions .ui-icon,
.care-check .ui-icon,
.care-history-icon .ui-icon,
.photo-picker-icon .ui-icon,
.install-icon .ui-icon,
.product-placeholder .ui-icon {
  width: 18px;
  height: 18px;
}
.account-avatar {
  border-radius: var(--radius-ui);
  background: var(--leaf-dark);
}
.profile-search {
  background: var(--leaf-soft);
}
.toast {
  border-radius: var(--radius-ui);
  background: #252d42;
  box-shadow: none;
}
@media (min-width: 760px) {
  #app {
    border-color: var(--line);
    border-radius: var(--radius-ui);
    background: var(--paper);
    box-shadow: none;
  }
  .bottom-nav {
    border-radius: 0 0 var(--radius-ui) var(--radius-ui);
  }
  .sheet {
    border-radius: var(--radius-ui);
  }
}

/* Shared layout system: solid colour, clean geometry, no gradients. */
:root {
  --paper: #f4f6fb;
  --paper-strong: #ffffff;
  --ink: #202635;
  --muted: #626b7c;
  --line: #968a9d;
  --leaf: #137a4f;
  --leaf-dark: #3154c8;
  --leaf-soft: #e8edff;
  --rose: #c9316b;
  --rose-soft: #ffe2ec;
  --gold: #f2b72e;
  --focus: #1d6fe8;
  --photo-scrim: rgba(32, 38, 53, 0.68);
}
body,
#app,
.view-page {
  background: var(--paper);
}
.app-header {
  margin: 0 0 14px;
  padding: calc(20px + env(safe-area-inset-top)) 22px 20px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--leaf-dark);
  box-shadow: none;
}
.app-header h1 {
  margin-top: 4px;
  color: #fffaf0;
  font-size: 39px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.app-header .eyebrow {
  color: #cad9ce;
  font-size: 12px;
  letter-spacing: 0.26em;
}
.app-header .icon-button {
  width: 46px;
  height: 46px;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--leaf-dark);
  box-shadow: none;
}
.app-header .icon-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.65;
}
.home-weather,
.home-search,
.home-shortcuts > button,
.summary-card,
.reminder-card,
.detail-card,
.seasonal-plant-picker,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.product-card {
  border-color: var(--line);
  background: var(--paper-strong);
  box-shadow: none;
}
.home-weather {
  border-left: 1px solid var(--line);
}
.home-shortcuts > button:nth-child(1) {
  border-top: 4px solid var(--leaf);
}
.home-shortcuts > button:nth-child(2) {
  border-top: 4px solid var(--rose);
}
.home-shortcuts > button:nth-child(3) {
  border-top: 4px solid var(--gold);
}
.filter-row {
  border-color: var(--line);
  background: var(--paper-strong);
}
.filter-chip.active,
.primary-button,
.small-button,
.profile-search-button {
  background: var(--leaf-dark);
  color: #fffaf0;
  box-shadow: none;
}
.plant-card {
  overflow: hidden;
  border: 1px solid #8f9a91;
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}
.plant-photo {
  border-radius: 0;
}
.plant-card-info {
  border-radius: 0;
  background: var(--leaf-soft);
}
.plant-card-info:before {
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--rose);
}
.plant-card .chevron {
  border: 0;
  background: var(--leaf-dark);
  color: #fffaf0;
}
.home-photo-carousel {
  min-width: 0;
}
.home-photo-wall {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 18px 3px 0;
  scroll-padding: 0;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.home-photo-wall::-webkit-scrollbar {
  display: none;
}
.home-photo-cluster {
  display: grid;
  flex: 0 0 min(88vw, 440px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 92px);
  gap: 4px;
  min-width: 0;
  scroll-snap-align: none;
}
.home-photo-layout-a {
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e e e e";
}
.home-photo-layout-b {
  grid-template-areas:
    "a a a b"
    "c d d b"
    "e e e b";
}
.home-photo-layout-c {
  grid-template-areas:
    "a b b b"
    "a c d d"
    "a e e e";
}
.home-photo-layout-d {
  grid-template-areas:
    "a a b c"
    "d d b c"
    "e e e e";
}
.home-photo-card-1 {
  grid-area: a;
}
.home-photo-card-2 {
  grid-area: b;
}
.home-photo-card-3 {
  grid-area: c;
}
.home-photo-card-4 {
  grid-area: d;
}
.home-photo-card-5 {
  grid-area: e;
}
.home-photo-card {
  position: relative;
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 92px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius-ui);
  overflow: hidden;
  background: #dfe4ee;
  box-shadow: none;
  transform: none;
  scroll-snap-align: none;
}
.home-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.home-photo-cluster-count-1 {
  grid-template-areas:
    "a a a a"
    "a a a a"
    "a a a a";
}
.home-photo-cluster-count-2 {
  grid-template-areas:
    "a a b b"
    "a a b b"
    "a a b b";
}
.home-photo-cluster-count-3 {
  grid-template-areas:
    "a a b b"
    "a a c c"
    "a a c c";
}
.home-photo-cluster-count-4 {
  grid-template-areas:
    "a a b b"
    "a a b b"
    "c c d d";
}
.home-photo-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.home-photo-empty {
  border: 1px solid var(--leaf-dark);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}
.home-tip-card.seasonal {
  background: #d9e5d7 !important;
}
.home-tip-card.weather {
  background: #d8e5e8 !important;
}
.home-tip-card.reminder {
  background: #f0d8cf !important;
}
.hero,
.seasonal-care-hero {
  background: var(--leaf-dark);
  color: #fffaf0;
}
.bottom-nav {
  height: calc(74px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--leaf-dark);
  background: #fffdf7;
  box-shadow: none;
}
.nav-item {
  color: #5f6c64;
}
.nav-item.active {
  color: var(--leaf-dark);
}
.fab {
  width: 60px;
  height: 60px;
  border: 4px solid #fffdf7;
  border-radius: var(--radius-ui);
  background: var(--rose);
  box-shadow: none;
}
.auth-gate {
  background: var(--paper);
}
.auth-card {
  border: 1px solid var(--leaf-dark);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}
@media (min-width: 760px) {
  .app-header {
    border-radius: var(--radius-ui) var(--radius-ui) 0 0;
  }
}
}

/* Huashi 2026: one active visual system. */
:root {
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --ink: #211713;
  --muted: #6c5f5b;
  --line: #a89790;
  --leaf: #347a3a;
  --primary: #6a44cc;
  --leaf-dark: var(--primary);
  --leaf-soft: #eee7ff;
  --rose: #d73564;
  --rose-soft: #ffe1ea;
  --gold: #f2a51a;
  --gold-soft: #fff0b8;
  --coral: #e85b4a;
  --coral-soft: #ffe0d6;
  --sky: #2b78c5;
  --sky-soft: #dcecff;
  --danger: #b32645;
  --focus: #145ccd;
  --photo-scrim: rgba(33, 23, 19, 0.76);
  --radius-ui: 20px;
  --shadow: none;
  --small-shadow: none;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
}

*,
*::before,
*::after {
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

html,
body,
#app,
.view-page {
  background: var(--paper);
  color: var(--ink);
}

body {
  font-weight: 400;
}

button,
input,
select,
textarea {
  border-radius: var(--radius-ui);
}

button {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
strong {
  font-weight: 700;
}

p,
small,
em,
label,
input,
select,
textarea {
  font-weight: 400;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}

.app-header {
  margin: 0 0 16px;
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  justify-content: flex-start;
}

.app-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 37px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.app-header .eyebrow {
  display: none;
}

.icon-button,
.app-header .icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: var(--ink);
}

.icon-button .ui-icon,
.app-header .icon-button .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.15;
}

#mainContent {
  touch-action: pan-y;
}

.view-page {
  min-height: calc(100dvh - 150px);
  padding: 0 16px 28px;
}

.home-top {
  padding: 0;
}

.home-weather {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 72px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  cursor: default;
}

.home-weather-symbol {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
  color: #785100;
}

.home-weather small {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-weather strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}

.home-weather em,
.home-weather b {
  color: var(--muted);
}

.home-search {
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.home-search > .ui-icon {
  color: var(--leaf-dark);
}

.home-search > input {
  color: var(--ink);
  font-size: 15px;
}

.home-search > button {
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  color: var(--leaf-dark);
}

.home-search-results {
  top: calc(100% + 8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.home-search-result {
  border-radius: var(--radius-ui);
}

.home-search-result:active {
  background: var(--leaf-soft);
}

.home-search-result img,
.home-search-placeholder {
  border-radius: var(--radius-ui);
}

.home-search-empty button,
.small-button,
.primary-button,
.secondary-button,
.text-button,
.profile-search-button,
.profile-apply-button,
.profile-cover-picker,
.filter-chip,
.mini-action,
.photo-preview-hint,
.cover-photo-picker-trigger,
.photo-viewer-counter {
  border-radius: var(--radius-ui);
}

.primary-button,
.small-button,
.profile-search-button,
.profile-apply-button,
.filter-chip.active {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: #fff;
}

.secondary-button,
.text-button,
.profile-cover-picker {
  border-color: var(--leaf-dark);
  background: var(--paper-strong);
  color: var(--leaf-dark);
}

.home-shortcuts {
  gap: 8px;
  margin-top: 12px;
}

.home-shortcuts > button {
  min-height: 132px;
  padding: 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  color: var(--ink);
}

.home-shortcuts > button:nth-child(1) {
  background: #dff4e4;
}

.home-shortcuts > button:nth-child(2) {
  background: var(--rose-soft);
}

.home-shortcuts > button:nth-child(3) {
  background: var(--gold-soft);
}

.shortcut-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: var(--radius-ui);
}

.shortcut-icon.plants {
  background: #bfe9ca;
  color: #17632a;
}

.shortcut-icon.reminders {
  background: #ffc6d5;
  color: #a51f4a;
}

.shortcut-icon.care {
  background: #ffdb60;
  color: #705000;
}

.shortcut-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.home-shortcuts strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.home-shortcuts small {
  color: var(--muted);
  font-size: 12px;
}

.home-section {
  margin-top: 30px;
}

.home-section-title {
  margin: 0 2px 12px;
}

.home-section-title h2 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.home-section-title > button {
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 600;
}

.home-section-title > span {
  color: var(--muted);
  font-weight: 500;
}

.home-photo-carousel {
  min-width: 0;
}

.home-photo-wall {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -16px;
  padding: 0 22px 3px 16px;
  scroll-padding: 0;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.home-photo-wall::-webkit-scrollbar {
  display: none;
}

.home-photo-cluster {
  display: grid;
  flex: 0 0 min(88vw, 440px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, clamp(40px, 11.5vw, 50px));
  gap: 4px;
  min-width: 0;
  scroll-snap-align: none;
}

.home-photo-layout-a {
  grid-template-areas:
    "a a a b b b"
    "a a a b b b"
    "a a a c c c"
    "d d d c c c"
    "d d d e e e"
    "d d d e e e";
}

.home-photo-layout-b {
  grid-template-areas:
    "a a a a b b"
    "a a a a b b"
    "c c c d d d"
    "c c c d d d"
    "e e e d d d"
    "e e e d d d";
}

.home-photo-layout-c {
  grid-template-areas:
    "a a b b b b"
    "a a b b b b"
    "c c c d d d"
    "c c c d d d"
    "c c c e e e"
    "c c c e e e";
}

.home-photo-layout-d {
  grid-template-areas:
    "a a b b c c"
    "a a b b c c"
    "a a b b c c"
    "d d d e e e"
    "d d d e e e"
    "d d d e e e";
}

.home-photo-card-1 {
  grid-area: a;
}

.home-photo-card-2 {
  grid-area: b;
}

.home-photo-card-3 {
  grid-area: c;
}

.home-photo-card-4 {
  grid-area: d;
}

.home-photo-card-5 {
  grid-area: e;
}

.home-photo-card {
  position: relative;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 0;
  min-height: 82px;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: var(--radius-ui);
  background: #ece8e5;
  transform: none;
  scroll-snap-align: none;
  line-height: 0;
}

.home-photo-card img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  max-width: none;
  height: calc(100% + 2px);
  display: block;
  border: 0;
  border-radius: var(--radius-ui);
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
}

.home-photo-copy,
.home-photo-shade,
.home-photo-count,
.home-photo-card::before,
.home-photo-card::after {
  display: none !important;
  content: none !important;
}

.home-photo-cluster-count-1 {
  grid-template-areas:
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a";
}

.home-photo-cluster-count-1.home-photo-layout-single-wide {
  grid-template-rows: repeat(4, clamp(40px, 11.5vw, 50px));
  grid-template-areas:
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a";
}

.home-photo-cluster-count-1.home-photo-layout-single-tall {
  grid-template-rows: repeat(8, clamp(40px, 11.5vw, 50px));
  grid-template-areas:
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "a a a a a a";
}

.home-photo-cluster-count-2 {
  grid-template-areas:
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "b b b b b b"
    "b b b b b b"
    "b b b b b b";
}

.home-photo-cluster-count-3 {
  grid-template-areas:
    "a a a a b b"
    "a a a a b b"
    "a a a a b b"
    "a a a a c c"
    "a a a a c c"
    "a a a a c c";
}

.home-photo-cluster-count-4 {
  grid-template-areas:
    "a a a b b b"
    "a a a b b b"
    "a a a b b b"
    "c c c d d d"
    "c c c d d d"
    "c c c d d d";
}

.home-photo-cluster-count-2.home-photo-layout-columns {
  grid-template-areas:
    "a a a b b b"
    "a a a b b b"
    "a a a b b b"
    "a a a b b b"
    "a a a b b b"
    "a a a b b b";
}

.home-photo-cluster-count-2.home-photo-layout-paired {
  grid-template-rows: repeat(4, clamp(40px, 11.5vw, 50px));
  grid-template-areas:
    "a a a b b b"
    "a a a b b b"
    "a a a b b b"
    "a a a b b b";
}

.home-photo-cluster-count-3.home-photo-layout-landscape {
  grid-template-areas:
    "a a a a a a"
    "a a a a a a"
    "a a a a a a"
    "b b b c c c"
    "b b b c c c"
    "b b b c c c";
}

.home-photo-hint {
  display: flex;
  justify-content: space-between;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.home-photo-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}

.home-photo-empty > span {
  color: var(--leaf-dark);
}

.home-tip-track {
  gap: 10px;
  margin: 0 -16px;
  padding: 0 28px 8px 16px;
}

.home-tip-card {
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  color: var(--ink);
}

.home-tip-card.seasonal {
  background: var(--coral-soft);
}

.home-tip-card.weather {
  background: var(--sky-soft);
}

.home-tip-card.reminder {
  background: var(--gold-soft);
}

.home-tip-card > span {
  border: 1px solid rgba(33, 23, 19, 0.35);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--ink);
}

.home-tip-card small {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.home-tip-card strong {
  color: var(--ink);
  font-weight: 700;
}

.home-tip-card em {
  color: var(--leaf-dark);
  font-weight: 600;
}

.filter-row {
  border-color: var(--line);
  background: transparent;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--muted);
  font-weight: 500;
}

.plant-list,
.reminder-list {
  gap: 11px;
}

.plant-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.plant-photo,
.plant-placeholder {
  width: 104px;
  height: 112px;
  border: 0;
  border-radius: 0;
}

.plant-card-info {
  align-self: stretch;
  padding: 13px 10px 12px 16px;
  border-radius: 0;
  background: var(--leaf-soft);
}

.plant-card-info::before {
  display: none;
}

.plant-card h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
}

.plant-card-english {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

.plant-card-category {
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.plant-card .chevron {
  border: 0;
  background: transparent;
  color: var(--leaf-dark);
}

.hero,
.seasonal-care-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--coral);
  color: #fff;
}

.hero::before,
.hero::after {
  display: none;
  content: none;
}

.quick-photo-existing-picker {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.quick-photo-existing-picker.hidden {
  display: none;
}

.quick-photo-existing-heading {
  display: grid;
  gap: 3px;
}

.quick-photo-existing-heading strong {
  color: var(--ink);
  font-size: 16px;
}

.quick-photo-existing-heading small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quick-photo-plant-search {
  position: relative;
  display: block;
  margin: 0;
}

.quick-photo-plant-search > .ui-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--primary);
  transform: translateY(-50%);
  pointer-events: none;
}

.quick-photo-plant-search input {
  margin: 0;
  padding-left: 44px;
  border-color: var(--ink);
  background: var(--paper-strong);
}

.quick-photo-plant-matches {
  display: grid;
  gap: 7px;
  max-height: 270px;
  overflow-y: auto;
}

.quick-photo-plant-match {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--ink);
  text-align: left;
}

.quick-photo-plant-match.is-selected {
  border-color: var(--primary);
  background: var(--leaf-soft);
}

.quick-photo-plant-match > img,
.quick-photo-plant-placeholder {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
  object-fit: cover;
}

.quick-photo-plant-match > span:nth-child(2) {
  min-width: 0;
}

.quick-photo-plant-match strong,
.quick-photo-plant-match small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-photo-plant-match strong {
  font-size: 14px;
}

.quick-photo-plant-match small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.quick-photo-plant-match b {
  color: var(--primary);
  text-align: center;
}

.quick-photo-no-match,
.quick-photo-match-count {
  margin: 0;
  padding: 8px 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.seasonal-care-hero > span {
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
  color: #705000;
}

.summary-card,
.reminder-card,
.detail-card,
.seasonal-plant-picker,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.product-card,
.care-history-item,
.action-plan-item,
.quick-photo-new-fields,
.plant-profile-preview,
.trait,
.profile-preview-trait,
.profile-suggestion-trait,
.season-item,
.fertilizer-season-card {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.fertilizer-season-card.current,
.trait,
.profile-preview-trait,
.profile-suggestion-trait,
.action-plan-item,
.quick-photo-new-fields,
.plant-profile-preview {
  background: var(--leaf-soft);
}

.detail-cover,
.profile-visual-card,
.growth-carousel-slide,
.growth-carousel-add {
  border-radius: var(--radius-ui);
}

.detail-personal-photo {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--rose-soft);
}

.detail-personal-photo-preview,
.detail-personal-photo-placeholder {
  display: grid;
  width: 112px;
  min-height: 132px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--gold-soft);
  color: var(--ink);
}

.detail-personal-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.detail-personal-photo-placeholder .ui-icon {
  width: 30px;
  height: 30px;
}

.detail-personal-photo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.detail-personal-photo-copy small,
.detail-personal-photo-copy strong,
.detail-personal-photo-copy span {
  display: block;
}

.detail-personal-photo-copy small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.detail-personal-photo-copy strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.detail-personal-photo-copy > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.detail-personal-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-cover-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.profile-cover-picker .ui-icon {
  width: 16px;
  height: 16px;
}

.photo-preview {
  display: block;
  margin-top: 10px;
}

.pending-photo-instruction {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.pending-photo-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
}

.pending-photo-list::-webkit-scrollbar {
  display: none;
}

.pending-photo-choice {
  position: relative;
  display: block;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: var(--ink);
}

.pending-photo-choice.is-cover {
  border-color: var(--primary);
}

.pending-photo-choice img,
.photo-preview .pending-photo-choice img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-ui);
  object-fit: cover;
}

.pending-photo-choice span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: none;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: var(--radius-ui);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pending-photo-choice.is-cover span {
  display: inline-flex;
}

.pending-photo-choice span .ui-icon {
  width: 12px;
  height: 12px;
}

.care-log-plant-field {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.care-log-plant-field legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.care-log-plant-search-label {
  margin: 0 0 6px;
}

.care-log-plant-search {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.care-log-plant-search .ui-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.care-log-plant-search input {
  margin: 0;
  padding-left: 44px;
  background: var(--paper-strong);
}

.care-log-plant-options {
  display: grid;
  gap: 8px;
}

.care-log-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.care-log-category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.care-log-category-select {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 12px;
  color: var(--ink);
  cursor: pointer;
}

.care-log-category-select:has(input:disabled) {
  cursor: default;
}

.care-log-category-select input,
.care-log-plant-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.care-log-category-check,
.care-log-plant-check {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  color: transparent;
}

.care-log-category-select.is-selected .care-log-category-check,
.care-log-category-select.is-partial .care-log-category-check,
.care-log-plant-option.is-selected .care-log-plant-check {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.care-log-category-select.is-partial .care-log-category-check .ui-icon {
  display: none;
}

.care-log-category-select.is-partial .care-log-category-check::after {
  width: 12px;
  height: 2px;
  border-radius: var(--radius-ui);
  background: currentColor;
  content: "";
}

.care-log-category-check .ui-icon,
.care-log-plant-check .ui-icon {
  width: 16px;
  height: 16px;
}

.care-log-category-copy,
.care-log-plant-copy {
  display: block;
  min-width: 0;
}

.care-log-category-copy strong,
.care-log-category-copy small,
.care-log-plant-copy strong,
.care-log-plant-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-log-category-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.care-log-category-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.care-log-category-toggle {
  display: flex;
  min-width: 98px;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: 700 12px var(--font-sans);
}

.care-log-category-toggle:disabled {
  color: var(--muted);
}

.care-log-category-toggle .ui-icon {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.care-log-category.is-expanded .care-log-category-toggle .ui-icon {
  transform: rotate(90deg);
}

.care-log-category-plants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #faf9ff;
}

.care-log-category-plants[hidden] {
  display: none;
}

.care-log-plant-option {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  cursor: pointer;
}

.care-log-plant-option.is-selected {
  border: 2px solid var(--primary);
  padding: 9px;
  background: var(--leaf-soft);
}

.care-log-plant-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.care-log-plant-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.care-log-plant-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 390px) {
  .care-log-category-plants {
    grid-template-columns: 1fr;
  }
}

.detail-title {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.photo-preview-hint,
.profile-visual-trait,
.growth-carousel-caption,
.photo-nav,
.photo-viewer-counter {
  background: var(--photo-scrim);
  color: #fff;
}

.cover-photo-picker-trigger {
  border-color: var(--ink);
  background: var(--paper-strong);
  color: var(--leaf-dark);
}

.profile-visual-shade,
.growth-carousel-gradient {
  background: rgba(33, 23, 19, 0.42);
}

.profile-visual-heading small,
.photo-viewer-kicker {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  letter-spacing: 0;
}

.profile-visual-heading strong {
  font-family: var(--font-sans);
  font-weight: 700;
}

.profile-visual-trait {
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-ui);
}

.profile-visual-trait strong,
.growth-carousel-caption strong {
  font-weight: 700;
  letter-spacing: 0;
}

.cover-photo-options {
  gap: 10px;
}

.cover-photo-option {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: transparent;
}

.cover-photo-option.selected {
  border: 2px solid var(--leaf-dark);
}

.cover-photo-option-image,
.cover-photo-option img {
  border-radius: 0;
}

.cover-photo-option small {
  padding: 8px 9px;
  background: var(--paper-strong);
}

.seasonal-product-manager > summary,
.garden-product-group > summary {
  list-style: none;
  color: var(--leaf-dark);
  font-weight: 600;
}

.seasonal-product-manager > summary::-webkit-details-marker,
.garden-product-group > summary::-webkit-details-marker {
  display: none;
}

.seasonal-product-manager > summary::marker,
.garden-product-group > summary::marker {
  content: "";
}

.seasonal-product-manager > summary span,
.summary-meta {
  border-radius: var(--radius-ui);
}

.summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
}

.summary-chevron {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

details[open] .summary-chevron {
  transform: rotate(90deg);
}

.auth-gate {
  background: var(--coral-soft);
}

.auth-card,
.install-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.returning-member {
  border-color: var(--line);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}

.returning-member > span,
.settings-avatar {
  background: var(--leaf-dark);
}

.settings-avatar .ui-icon {
  width: 30px;
  height: 30px;
}

dialog::backdrop,
.photo-viewer-dialog::backdrop {
  background: rgba(33, 23, 19, 0.78);
}

.sheet,
.photo-viewer-dialog,
.photo-viewer-shell {
  border-radius: var(--radius-ui);
}

.photo-viewer-shell {
  background: var(--ink);
}

.photo-viewer-stage {
  background: #120d0b;
}

.photo-viewer-close,
.photo-nav {
  border-radius: 50%;
}

.close-button,
.icon-button.sheet-close,
.photo-viewer-close,
.home-search > button[data-action="clear-home-search"] {
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: var(--ink);
}

.close-button {
  width: 34px;
  height: 34px;
}

.photo-viewer-close .ui-icon,
.sheet-close .ui-icon,
.close-button .ui-icon,
.home-search > button[data-action="clear-home-search"] .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.toast {
  border-radius: var(--radius-ui);
  background: var(--ink);
  color: #fff;
}

.bottom-nav {
  height: calc(76px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.nav-item {
  color: #746964;
  font-weight: 500;
}

.nav-item .ui-icon {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--leaf-dark);
  font-weight: 700;
}

.fab {
  width: 42px;
  height: 42px;
  bottom: calc(32px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: var(--radius-ui);
  background: var(--rose);
  color: #fff;
  transform: translateX(-50%);
}

.fab .ui-icon {
  width: 24px;
  height: 24px;
}

.fab > span {
  top: 37px;
  color: var(--muted);
  font-weight: 600;
}

.side-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
  color: var(--ink);
}

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

@media (max-width: 430px) {
  .home-photo-cluster {
    flex-basis: calc(100vw - 48px);
  }

  .plant-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (min-width: 760px) {
  body {
    padding: 20px 0;
  }

  #app {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-ui);
    background: var(--paper);
  }

  .app-header {
    border-radius: var(--radius-ui) var(--radius-ui) 0 0;
  }

  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 var(--radius-ui) var(--radius-ui);
  }

  .home-photo-cluster {
    grid-template-rows: repeat(6, 55px);
  }

  .fab {
    bottom: calc(52px + env(safe-area-inset-bottom));
  }
}

.seasonal-care-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.seasonal-care-tab {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.seasonal-care-tab.active {
  background: var(--primary);
  color: #fff;
}

.seasonal-self-care {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.seasonal-self-care-heading h3,
.seasonal-self-care-heading p {
  margin: 0;
}

.seasonal-self-care-heading h3 {
  font-size: 20px;
  font-weight: 720;
}

.seasonal-self-care-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.seasonal-self-care-actions {
  display: grid;
  gap: 10px;
}

.seasonal-self-care-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  color: var(--ink);
  text-align: left;
}

.seasonal-self-care-action.fertilize {
  background: var(--gold-soft);
}

.seasonal-self-care-action.spray {
  background: var(--coral-soft);
}

.seasonal-self-care-action > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.seasonal-self-care-action > span:first-child .ui-icon {
  width: 25px;
  height: 25px;
}

.seasonal-self-care-action > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.seasonal-self-care-action strong {
  font-size: 17px;
  font-weight: 720;
}

.seasonal-self-care-action small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.seasonal-action-chevron {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.plant-theme-picker {
  display: grid;
  gap: 11px;
  margin: 10px 0 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  box-shadow: none;
}

.plant-theme-heading {
  display: grid;
  gap: 4px;
}

.plant-theme-heading strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.plant-theme-heading small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.plant-theme-options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(154px, 44%);
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.plant-theme-choice {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

.plant-theme-choice.is-selected {
  border: 2px solid var(--leaf-dark);
}

.plant-theme-choice > button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.plant-theme-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e6ee;
}

.plant-theme-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plant-theme-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--leaf-dark);
}

.plant-theme-check .ui-icon {
  width: 16px;
  height: 16px;
}

.plant-theme-choice-copy {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.plant-theme-choice-copy strong {
  font-size: 13px;
  font-weight: 720;
}

.plant-theme-choice-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-theme-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.plant-theme-credit a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--leaf-dark);
  font-weight: 700;
  text-decoration: none;
}

.plant-theme-credit .ui-icon {
  width: 11px;
  height: 11px;
}

.plant-theme-picker > .field-help {
  margin: 0;
}

@media (max-width: 520px) {
  .plant-theme-options {
    grid-auto-columns: minmax(150px, 70%);
  }
}

.seasonal-self-care-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seasonal-self-care-heading .text-button {
  flex: 0 0 auto;
}

.household-inventory-priority {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.household-inventory-priority .ui-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.household-inventory {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.household-inventory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--leaf-soft);
}

.household-inventory-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 750;
}

.household-inventory-hero h3,
.household-inventory-hero p,
.household-inventory-group-heading h3,
.household-inventory-group-heading p,
.household-inventory-empty h3,
.household-inventory-empty p {
  margin: 0;
}

.household-inventory-hero h3 {
  font-size: 22px;
}

.household-inventory-hero p {
  max-width: 520px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.household-inventory-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 118px;
  margin: 0;
}

.household-inventory-add .ui-icon {
  width: 18px;
  height: 18px;
}

.household-inventory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.household-inventory-stats > div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.household-inventory-stats strong {
  font-size: 20px;
}

.household-inventory-stats span {
  color: var(--muted);
  font-size: 11px;
}

.household-inventory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.household-inventory-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.household-inventory-search > .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.household-inventory-search input {
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.household-inventory-search button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.household-inventory-search button[hidden] {
  display: none;
}

.household-inventory-search button .ui-icon {
  width: 16px;
  height: 16px;
}

.household-inventory-tools > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.household-inventory-results {
  display: grid;
  gap: 14px;
}

.household-inventory-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
}

.household-inventory-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.household-inventory-group-heading h3 {
  font-size: 17px;
}

.household-inventory-group-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.household-inventory-group-heading > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.household-inventory-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-ui);
  background: var(--paper-strong);
  text-align: center;
}

.household-inventory-empty > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
}

.household-inventory-empty > span .ui-icon {
  width: 25px;
  height: 25px;
}

.household-inventory-empty p {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.inventory-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.inventory-owned-badge {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
}

.care-product-suggestion.is-owned {
  border-color: color-mix(in srgb, var(--leaf-dark) 32%, var(--line));
  background: var(--leaf-soft);
}

.product-photo-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-photo-optional {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.product-photo-optional span {
  font-size: 13px;
}

.product-photo-optional small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.product-photo-picker-grid .photo-picker,
.product-photo-picker-grid .photo-picker > span:last-child {
  min-width: 0;
}

@media (max-width: 430px) {
  .household-inventory-hero {
    grid-template-columns: 1fr;
  }

  .household-inventory-add {
    width: 100%;
  }

  .household-inventory-tools {
    grid-template-columns: 1fr;
  }

  .household-inventory-tools > span {
    padding-left: 2px;
  }

  .seasonal-self-care-heading {
    display: grid;
  }

  .seasonal-self-care-heading .text-button {
    justify-self: start;
  }

  .product-photo-picker-grid {
    grid-template-columns: 1fr;
  }
}

/* Retired interim theme. Keep it inert so the Huashi 2026 system above is the
   only active visual layer while older selectors are removed incrementally. */
@supports not (display: block) {
/* Dopamine garden system: solid colour, calm spacing, one geometry. */
:root {
  --paper: #f4f6fb;
  --paper-strong: #ffffff;
  --ink: #202635;
  --muted: #626b7c;
  --line: #968a9d;
  --leaf: #137a4f;
  --leaf-dark: #3154c8;
  --leaf-soft: #e8edff;
  --rose: #c9316b;
  --rose-soft: #ffe2ec;
  --gold: #f2b72e;
  --danger: #b32645;
  --focus: #1d6fe8;
  --photo-scrim: rgba(32, 38, 53, 0.68);
  --shadow: none;
  --small-shadow: none;
}
body,
#app,
.view-page,
.auth-gate {
  background: var(--paper);
  color: var(--ink);
}
.app-header {
  margin-bottom: 14px;
  padding: calc(20px + env(safe-area-inset-top)) 22px 21px;
  border: 0;
  border-radius: 0;
  background: var(--leaf-dark);
}
.app-header h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.app-header .eyebrow {
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.16em;
}
.eyebrow {
  display: none;
}
.app-header .icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--leaf-dark);
}
.home-weather,
.home-search,
.summary-card,
.reminder-card,
.detail-card,
.seasonal-plant-picker,
.profile-search,
.profile-suggestion-card,
.garden-product-card,
.garden-product-group,
.product-card,
.auth-card,
.install-card {
  border-color: var(--line);
  background: var(--paper-strong);
}
.home-weather {
  border-left: 1px solid var(--line);
}
.home-weather-symbol {
  background: #fff1c7;
  color: #a66a00;
}
.home-shortcuts > button {
  border: 1px solid var(--line);
}
.home-shortcuts > button:nth-child(1) {
  border-top: 1px solid var(--line);
  background: #e2f7ee;
}
.home-shortcuts > button:nth-child(2) {
  border-top: 1px solid var(--line);
  background: var(--rose-soft);
}
.home-shortcuts > button:nth-child(3) {
  border-top: 1px solid var(--line);
  background: #fff1c7;
}
.shortcut-icon.plants {
  background: #bfead8;
  color: #176b50;
}
.shortcut-icon.reminders {
  background: #ffc6d5;
  color: #a72348;
}
.shortcut-icon.care {
  background: #ffdf7a;
  color: #795400;
}
.filter-chip.active,
.primary-button,
.small-button,
.profile-search-button {
  background: var(--leaf-dark);
  color: #fff;
}
.plant-card {
  border-color: var(--line);
  background: var(--paper-strong);
}
.plant-card-info {
  background: var(--leaf-soft);
}
.plant-card-info:before {
  display: none;
}
.plant-card .chevron {
  background: transparent;
  color: var(--leaf-dark);
}
.home-photo-card {
  border: 0;
  background: #dfe4ee;
}
.home-photo-empty {
  border: 1px solid var(--line);
  background: var(--leaf-soft);
}
.home-tip-card.seasonal {
  background: #e2f7ee !important;
}
.home-tip-card.weather {
  background: #e8edff !important;
}
.home-tip-card.reminder {
  background: #fff1c7 !important;
}
.home-tip-card > span {
  background: rgba(255, 255, 255, 0.7);
}
.hero {
  background: var(--leaf-dark);
  color: #fff;
}
.seasonal-care-hero {
  border-color: #c9d3fa;
  background: var(--leaf-soft);
  color: var(--ink);
}
.growth-carousel-add,
.fertilizer-season-card,
.garden-product-match,
.action-plan-item,
.quick-photo-new-fields,
.plant-profile-preview,
.trait,
.profile-preview-trait,
.profile-suggestion-trait,
.care-history-item,
.season-item {
  background: var(--leaf-soft);
}
.profile-visual-trait {
  background: rgba(33, 39, 56, 0.72);
}
.toast {
  background: #252d42;
  color: #fff;
}
.bottom-nav {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.nav-item {
  color: #6f7788;
}
.nav-item.active {
  color: var(--leaf-dark);
}
.fab {
  border-color: var(--paper-strong);
  background: var(--rose);
}
.side-tab {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--leaf-dark);
}
@media (min-width: 760px) {
  .app-header {
    border-radius: var(--radius-ui) var(--radius-ui) 0 0;
  }
}
}
