:root {
  color-scheme: light;
  --paper: #f3eedf;
  --paper-bright: #faf7ed;
  --paper-deep: #e8e1cf;
  --surface: rgba(255, 252, 243, 0.92);
  --surface-solid: #fffaf0;
  --surface-muted: #ebe6d7;
  --ink: #24342d;
  --ink-soft: #5f675e;
  --forest: #18392b;
  --forest-2: #28533f;
  --olive: #7b8460;
  --olive-soft: #cbd0b6;
  --coral: #c95845;
  --coral-soft: #f4d9cf;
  --line: rgba(45, 65, 52, 0.17);
  --shadow: 0 20px 50px rgba(54, 66, 46, 0.13);
  --shadow-soft: 0 10px 28px rgba(54, 66, 46, 0.09);
  --radius-card: 18px;
  --radius-small: 12px;
  --radius-button: 999px;
  --container: min(1280px, calc(100% - 48px));
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17231d;
  --paper-bright: #1d2c24;
  --paper-deep: #111c17;
  --surface: rgba(29, 44, 36, 0.94);
  --surface-solid: #21342a;
  --surface-muted: #2b3f33;
  --ink: #f0ecdf;
  --ink-soft: #b9c2b7;
  --forest: #dce9d6;
  --forest-2: #b8cfac;
  --olive: #aeb991;
  --olive-soft: #53634a;
  --coral: #ef8f78;
  --coral-soft: #533128;
  --line: rgba(230, 238, 226, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(123, 132, 96, 0.11), transparent 28rem),
    linear-gradient(180deg, var(--paper-bright), var(--paper));
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.018em;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
label[for] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(2.35rem, 5.2vw, 5.2rem);
  font-weight: 720;
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  color: var(--forest);
  font-size: 1.15rem;
  line-height: 1.28;
}

p {
  color: var(--ink-soft);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--forest);
  color: var(--paper-bright);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.auth-pending > :not(.auth-gate),
body.auth-required > :not(.auth-gate) {
  display: none !important;
}

body.auth-pending,
body.auth-required {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.auth-gate {
  position: relative;
  z-index: 100;
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  background: #dfe4d2;
}

.auth-showcase {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #254832;
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 42, 29, 0.16), transparent 34%),
    linear-gradient(0deg, rgba(13, 34, 23, 0.24), transparent 38%);
  pointer-events: none;
}

.auth-showcase > :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center;
  transform: none;
  animation: auth-image-enter 1100ms var(--ease) both;
}

.auth-showcase-caption {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 64px);
  z-index: 2;
  display: flex;
  max-width: 380px;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-small);
  background: rgba(249, 247, 237, 0.86);
  color: #173629;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 56px rgba(26, 46, 31, 0.2);
  animation: auth-caption-enter 700ms 280ms var(--ease) both;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}

.auth-showcase-caption:hover {
  background: rgba(249, 247, 237, 0.96);
  box-shadow: 0 26px 64px rgba(26, 46, 31, 0.26);
  transform: translateY(-3px);
}

.auth-showcase-caption:active {
  transform: translateY(-1px) scale(0.985);
}

.auth-showcase-caption:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.auth-showcase-caption > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #234d35;
  color: #f8f5e8;
  font-size: 1.15rem;
}

.auth-showcase-caption strong,
.auth-showcase-caption p {
  display: block;
  margin: 0;
}

.auth-showcase-caption p {
  margin-top: 3px;
  color: #55665a;
  font-size: 0.9rem;
}

.auth-showcase-caption p.is-limit-reached {
  color: var(--coral);
  font-weight: 650;
}

@keyframes auth-image-enter {
  from { opacity: 0.35; transform: none; }
  to { opacity: 1; transform: none; }
}

@keyframes auth-caption-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  min-height: 100dvh;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.auth-card-shell {
  position: absolute;
  top: 8.9%;
  left: 6.45%;
  width: 31.45%;
  height: 80.6%;
  min-height: 0;
  max-height: none;
  padding: clamp(24px, 2.35vw, 40px);
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f8f7f1;
  box-shadow: none;
  pointer-events: auto;
  animation: none;
}

@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 1.15rem;
}

.auth-close-button:hover {
  background: var(--surface-muted);
}

.auth-loading {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: var(--ink-soft);
  text-align: center;
}

.auth-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--forest-2);
  border-radius: 50%;
  animation: auth-spin 800ms linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-content {
  width: 100%;
}

.auth-brand {
  margin-bottom: clamp(18px, 2.5vh, 24px);
}

.auth-content h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 2.45vw, 2.3rem);
  line-height: 1.1;
}

.auth-intro {
  margin-bottom: 18px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-muted);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  font-weight: 750;
}

.auth-tabs button.is-active {
  background: var(--surface-solid);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
}

.auth-kakao-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, #191919 9%, transparent);
  border-radius: 14px;
  background: #fee500;
  color: #191919;
  font-weight: 760;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.auth-kakao-button:hover:not(:disabled) {
  filter: brightness(0.98);
  box-shadow: 0 8px 18px rgba(25, 25, 25, 0.12);
  transform: translateY(-1px);
}

.auth-kakao-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--forest) 34%, transparent);
  outline-offset: 2px;
}

.auth-kakao-button:disabled {
  cursor: wait;
  filter: saturate(0.55);
  opacity: 0.72;
}

.auth-kakao-button i {
  font-size: 1.15rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
  width: 100%;
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form > label {
  display: grid;
  gap: 6px;
  color: var(--forest);
  font-weight: 720;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: var(--surface-solid);
  color: var(--ink);
}

.auth-form input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest-2) 16%, transparent);
}

.auth-form small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.auth-password-row {
  position: relative;
  display: block;
}

.auth-password-row input {
  padding-right: 54px;
}

.auth-password-row button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}

.auth-password-row button:hover {
  background: var(--surface-muted);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
}

.auth-message:empty {
  display: none;
}

.auth-message[data-state="success"] {
  color: var(--forest-2);
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.account-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.25rem;
}

.account-summary > div {
  display: grid;
  min-width: 0;
}

.account-summary strong,
.account-summary span {
  overflow-wrap: anywhere;
}

.account-summary span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-actions .button {
  min-width: 146px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-bright) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.guest-demo-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 19;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--olive-soft) 88%, var(--paper-bright));
  box-shadow: var(--shadow-soft);
}

.guest-demo-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-demo-bar .guest-demo-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.guest-demo-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--forest);
}

.guest-demo-bar p {
  display: flex;
  min-width: 0;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}

.guest-demo-bar p > span {
  color: var(--ink-soft);
}

.guest-demo-ticker {
  min-width: 0;
  overflow: hidden;
}

.guest-demo-ticker-track {
  display: flex;
  width: max-content;
  gap: 24px;
}

.guest-demo-ticker-copy {
  white-space: nowrap;
}

.guest-demo-ticker-copy:last-child {
  display: none;
}

@keyframes guest-demo-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.upload-dropzone.is-trial-used {
  opacity: 0.58;
}

.guest-reanalysis-invite {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.guest-reanalysis-invite > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 1.25rem;
}

.guest-reanalysis-invite p {
  margin: 4px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 1.25rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--surface-muted);
  color: var(--forest);
}

.nav-link:active,
.button:active,
.icon-button:active,
.mini-button:active,
.text-link:active {
  transform: translateY(1px) scale(0.985);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-login-button,
.header-logout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.header-login-button:hover,
.header-logout-button:hover {
  border-color: color-mix(in srgb, var(--forest) 28%, var(--line));
  background: var(--surface-muted);
}

.header-login-button:active,
.header-logout-button:active {
  transform: translateY(1px) scale(0.985);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--forest);
  font-size: 1.2rem;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.icon-button:hover {
  background: var(--surface-muted);
}

.settings-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--forest);
  color: var(--paper-bright);
  font-weight: 700;
}

[data-theme="dark"] .settings-button,
[data-theme="dark"] .button-primary {
  background: #dce9d6;
  color: #173226;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 16px;
  z-index: 30;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.mobile-nav button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  text-align: left;
}

.mobile-nav button:hover {
  background: var(--surface-muted);
}

main {
  min-height: calc(100dvh - var(--header-height));
}

.app-view {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 112px;
  animation: view-enter 420ms var(--ease) both;
}

.home-view {
  width: 100%;
  padding-top: 0;
}

.home-view > :not(.hero) {
  width: var(--container);
  margin-inline: auto;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - var(--header-height));
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #172f25;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 900ms var(--ease), filter 500ms var(--ease);
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 242, 227, 0.98) 0%, rgba(247, 242, 227, 0.88) 35%, rgba(247, 242, 227, 0.18) 66%, rgba(20, 40, 30, 0.2) 100%),
    linear-gradient(0deg, rgba(20, 35, 28, 0.35), transparent 45%);
}

[data-theme="dark"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(20, 33, 27, 0.97) 0%, rgba(20, 33, 27, 0.86) 38%, rgba(20, 33, 27, 0.18) 69%),
    linear-gradient(0deg, rgba(7, 16, 11, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 10vh;
}

.home-view.is-active .hero-content > * {
  animation: hero-content-enter 720ms var(--ease) both;
}

.home-view.is-active .hero-content > :nth-child(2) { animation-delay: 70ms; }
.home-view.is-active .hero-content > :nth-child(3) { animation-delay: 140ms; }
.home-view.is-active .hero-content > :nth-child(4) { animation-delay: 210ms; }

@keyframes hero-content-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero-media img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.015);
  }

  .hero-content h1 {
    transition: transform 420ms var(--ease);
  }

  .hero:hover .hero-content h1 {
    transform: translateY(-3px);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms var(--ease) var(--reveal-delay, 0ms),
    transform 620ms var(--ease) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  max-width: 1050px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
}

.hero-copy {
  max-width: 500px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.eyebrow,
.date-line {
  margin-bottom: 14px;
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.dialog-actions,
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button:focus-visible,
.nav-link:focus-visible,
.icon-button:focus-visible,
.header-login-button:focus-visible,
.header-logout-button:focus-visible,
.auth-close-button:focus-visible,
.mini-button:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.upload-dropzone:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 68%, transparent);
  outline-offset: 3px;
}

.button-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--forest) 20%, transparent);
}

.button-primary:hover {
  background: var(--forest-2);
}

.button-soft {
  border-color: var(--line);
  background: var(--surface);
  color: var(--forest);
}

.button-soft:hover {
  background: var(--surface-muted);
}

.button-outline {
  border-color: color-mix(in srgb, var(--forest) 55%, transparent);
  background: transparent;
  color: var(--forest);
}

.button-danger-outline {
  border-color: color-mix(in srgb, var(--coral) 52%, transparent);
  background: transparent;
  color: var(--coral);
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.button-wide {
  width: 100%;
}

[data-analyze-button] i {
  font-size: 1.15rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 40%, transparent);
  background: transparent;
  color: var(--forest);
  font-weight: 720;
  white-space: nowrap;
  transition: gap 180ms var(--ease), transform 180ms var(--ease);
}

.text-link:hover {
  gap: 12px;
}

.specimen-note {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 38px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 252, 243, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.home-section {
  padding-top: clamp(72px, 9vw, 120px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
}

.compact-heading {
  margin-bottom: 28px;
}

.mission-summary {
  display: grid;
  grid-template-columns: 0.82fr 1.15fr 0.82fr;
  align-items: center;
  gap: 20px;
}

.home-mission-card {
  position: relative;
  min-height: 290px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-mission-card:nth-child(2) {
  min-height: 340px;
  transform: translateY(-12px);
}

.home-mission-card.is-complete {
  background: color-mix(in srgb, var(--olive-soft) 42%, var(--surface));
}

.home-mission-card img {
  width: 100%;
  height: 120px;
  margin-bottom: 18px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.home-mission-card h3 {
  margin-bottom: 10px;
}

.mission-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.status-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-button);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-chip.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 36px;
  border: 1px dashed color-mix(in srgb, var(--olive) 44%, transparent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--olive);
  font-size: 2rem;
}

.home-plant-grid,
.plants-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.plant-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.plant-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.plant-card-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
}

.plant-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.plant-card-title {
  min-width: 0;
}

.plant-card h3 {
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 1.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-card p {
  overflow: hidden;
  margin-bottom: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-card-head .status-chip {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.plant-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.safety-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(90px, 12vw, 150px) !important;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--olive-soft) 40%, var(--surface)), var(--surface));
}

.safety-band h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.safety-band p {
  max-width: 720px;
  margin-bottom: 0;
}

.safety-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.6rem;
}

.home-supplies-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-top: clamp(72px, 9vw, 120px) !important;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--olive-soft) 66%, transparent), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-supplies-entry.home-section {
  padding-top: 34px;
}

.home-supplies-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.8rem;
}

.home-supplies-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.home-supplies-copy p {
  max-width: 720px;
  margin-bottom: 0;
}

.home-supplies-copy .eyebrow {
  margin-bottom: 6px;
}

.supplies-heading {
  max-width: 980px;
}

.supply-category-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.supply-category-list button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.supply-category-list button:hover,
.supply-category-list button.is-selected {
  border-color: color-mix(in srgb, var(--olive) 68%, var(--line));
  background: color-mix(in srgb, var(--olive-soft) 44%, var(--surface));
  transform: translateY(-2px);
}

.supply-category-list button > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.35rem;
}

.supply-category-list strong,
.supply-category-list small {
  display: block;
}

.supply-category-list strong {
  color: var(--forest);
  font-size: 1rem;
}

.supply-category-list small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.supply-personalized {
  display: block;
  margin-bottom: 56px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--olive) 44%, var(--line));
  border-radius: var(--radius-card);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--olive-soft) 48%, var(--surface)), var(--surface));
}

.supply-personalized h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.supply-recommendation-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.supply-recommendation-item {
  display: grid;
  grid-template-columns: max-content auto minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--olive) 28%, var(--line));
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.supply-recommendation-item strong {
  color: var(--forest);
}

.supply-recommendation-item > span {
  color: var(--olive);
  font-weight: 800;
}

.supply-recommendation-item p {
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
}

.supply-products-section {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.supply-products-heading {
  margin-bottom: 20px;
}

.supply-affiliate-disclosure {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--olive) 42%, var(--line));
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface-muted) 66%, var(--surface));
}

.supply-affiliate-disclosure > span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.supply-affiliate-disclosure p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.supply-product-card {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.supply-product-card:hover {
  border-color: color-mix(in srgb, var(--olive) 58%, var(--line));
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.supply-product-card.is-recommended {
  border-color: color-mix(in srgb, var(--olive) 62%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--olive-soft) 30%, var(--surface-solid)), var(--surface-solid));
}

.supply-product-topline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.supply-product-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.2rem;
}

.supply-category-label,
.supply-match-label {
  padding: 5px 9px;
  border-radius: var(--radius-button);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.supply-category-label {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.supply-match-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: var(--forest);
  color: var(--paper-bright);
}

.supply-product-copy h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.4rem;
}

.supply-product-copy p {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.supply-product-copy p strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.supply-product-copy small {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--olive);
  font-size: 0.8rem;
}

.supply-product-copy small i {
  flex: 0 0 auto;
  margin-top: 0.18em;
  font-size: 1rem;
}

.supply-buy-link {
  width: 100%;
  justify-self: stretch;
  white-space: nowrap;
}

.supply-purchase-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.view-heading {
  max-width: 900px;
  margin-bottom: 48px;
}

.view-heading h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 5.2vw, 5.5rem);
}

.view-heading > p:last-child {
  max-width: 650px;
  font-size: 1.08rem;
}

.heading-with-action,
.missions-heading,
.encyclopedia-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.analyze-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.upload-panel,
.sample-panel,
.settings-card,
.streak-card,
.week-card,
.quick-note-card,
.upcoming-guide-card,
.upcoming-count-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.upload-panel {
  padding: 20px;
}

.upload-dropzone {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed color-mix(in srgb, var(--olive) 56%, transparent);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 74%, transparent), transparent);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.upload-dropzone.is-dragging {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.upload-empty {
  max-width: 530px;
  padding: 44px 28px;
  text-align: center;
}

.upload-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 2rem;
}

.upload-empty h2 {
  font-size: 2rem;
}

.upload-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.file-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.upload-preview {
  position: absolute;
  inset: 0;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-toolbar {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--paper-bright) 88%, transparent);
  backdrop-filter: blur(12px);
}

.mini-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 700;
}

.mini-button.danger {
  color: var(--coral);
}

.photo-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.photo-tips div {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.photo-tips i {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 1.1rem;
}

.upload-message {
  min-height: 25px;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.88rem;
}

.upload-message:empty {
  min-height: 0;
  margin: 0;
}

.sample-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 24px;
  padding: 26px;
}

.sample-panel h2 {
  font-size: 1.45rem;
}

.sample-list {
  display: grid;
  gap: 10px;
}

.sample-button {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.sample-button:hover,
.sample-button.is-selected {
  border-color: var(--olive);
  background: var(--surface-muted);
  transform: translateX(3px);
}

.sample-button img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.sample-button strong,
.sample-button span {
  display: block;
}

.sample-button span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.analysis-progress {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 54px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.scan-window {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.scan-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 4%;
  width: 92%;
  height: 2px;
  background: var(--coral);
  box-shadow: 0 0 22px color-mix(in srgb, var(--coral) 68%, transparent);
  animation: scan 1.7s var(--ease) infinite alternate;
}

@keyframes scan {
  to {
    transform: translateY(340px);
  }
}

.analysis-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.analysis-steps span {
  padding: 8px 12px;
  border-radius: var(--radius-button);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.analysis-steps .is-current {
  background: var(--forest);
  color: var(--paper-bright);
}

.analysis-result {
  margin-top: 62px;
}

.accuracy-result {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.accuracy-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.accuracy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accuracy-seal {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--paper-bright) 92%, transparent);
  color: #18392b;
  font-weight: 760;
  box-shadow: var(--shadow-soft);
}

.accuracy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
}

.accuracy-content h2 {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.accuracy-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

.accuracy-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 12px 0 28px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line));
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--coral-soft) 55%, var(--surface));
}

.accuracy-notice > i {
  color: var(--coral);
  font-size: 1.35rem;
}

.accuracy-notice strong,
.accuracy-notice p {
  display: block;
}

.accuracy-notice p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.accuracy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 28px;
}

.accuracy-points span {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 680;
}

.accuracy-points i {
  color: var(--olive);
  font-size: 1.1rem;
}

.accuracy-actions {
  margin-top: auto;
}

.analysis-retry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.analysis-retry-actions .button {
  width: 100%;
}

.non-plant-result .accuracy-notice {
  border-color: color-mix(in srgb, var(--olive) 42%, var(--line));
  background: color-mix(in srgb, var(--leaf-soft) 62%, var(--surface));
}

.non-plant-result .accuracy-notice > i {
  color: var(--olive);
}

.uncertain-reanalysis {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
}

.uncertain-reanalysis > div:first-child > strong,
.uncertain-reanalysis > div:first-child > p {
  display: block;
}

.uncertain-reanalysis > div:first-child > p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.uncertain-upload {
  display: grid;
  min-height: 76px;
  cursor: pointer;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px dashed var(--olive);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.uncertain-upload > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--forest);
  font-size: 1.25rem;
}

.uncertain-upload strong,
.uncertain-upload small {
  display: block;
}

.uncertain-upload small {
  margin-top: 3px;
  color: var(--ink-soft);
}

.uncertain-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.uncertain-preview-grid figure {
  margin: 0;
}

.uncertain-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.uncertain-preview-grid figcaption {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.uncertain-upload-message {
  min-height: 1.3em;
  margin: 0;
  color: var(--olive);
  font-size: 0.84rem;
}

.uncertain-replace {
  justify-self: center;
}

.candidate-review {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.candidate-review > p {
  margin-bottom: 20px;
}

.candidate-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.candidate-choice {
  position: relative;
  cursor: pointer;
}

.candidate-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.candidate-choice > span {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.candidate-choice:hover > span {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.candidate-choice > input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--olive) 34%, transparent);
  outline-offset: 3px;
}

.candidate-choice > input:checked + span {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--forest);
}

.candidate-choice-check {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
}

.candidate-choice > input:checked + span .candidate-choice-check {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.candidate-choice strong {
  padding-right: 34px;
  color: var(--forest);
  font-size: 1.05rem;
}

.candidate-choice em,
.candidate-choice small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.candidate-choice small {
  font-weight: 760;
}

.candidate-choice p {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 0.88rem;
}

.candidate-choice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.candidate-choice-actions p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.candidate-empty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.candidate-empty > i {
  color: var(--olive);
  font-size: 2rem;
}

.candidate-empty h3,
.candidate-empty p {
  margin: 0;
}

.candidate-empty p {
  margin-top: 4px;
}

.analysis-confirmation-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--leaf-soft);
  color: var(--forest);
}

.analysis-confirmation-note p {
  margin: 0;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confidence-orbit {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 8px solid color-mix(in srgb, var(--olive) 28%, transparent);
  border-top-color: var(--forest-2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.confidence-orbit strong,
.confidence-orbit span {
  display: block;
}

.confidence-orbit strong {
  font-size: 1.5rem;
}

.confidence-orbit span {
  font-size: 0.7rem;
}

.result-summary {
  display: flex;
  flex-direction: column;
  padding: 18px 10px 10px;
}

.result-summary h2 {
  margin-bottom: 2px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.latin-name {
  margin-bottom: 20px;
  color: var(--olive);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
}

.alias-line {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}

.fact-item {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
}

.fact-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fact-item span,
.fact-item strong {
  display: block;
}

.fact-item span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.fact-item strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.98rem;
}

.fact-item.warning strong {
  color: var(--coral);
}

.result-summary .button {
  margin-top: auto;
}

.candidate-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.candidate-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.candidate-card strong {
  color: var(--forest);
}

.candidate-card p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.result-tabs {
  display: flex;
  gap: 8px;
  margin: 52px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.result-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.result-tab.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.result-tab-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.care-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.care-tile {
  grid-column: span 4;
  min-height: 155px;
  padding: 20px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.care-tile:nth-child(1),
.care-tile:nth-child(6) {
  grid-column: span 6;
}

.care-tile i {
  color: var(--olive);
  font-size: 1.4rem;
}

.care-tile h3 {
  margin: 16px 0 6px;
}

.care-tile p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.health-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.health-photo {
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.health-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.health-steps {
  display: grid;
  gap: 12px;
}

.health-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.health-step i {
  color: var(--olive);
  font-size: 1.4rem;
}

.health-step h3 {
  margin-bottom: 4px;
}

.health-step p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.place-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
}

.place-settings,
.place-result,
.purchase-grid {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.place-chip {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
}

.place-chip.is-selected {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.recommendation-callout {
  margin-top: 18px;
  padding: 20px;
  border-left: 4px solid var(--coral);
  background: var(--surface);
}

.purchase-grid {
  display: grid;
  gap: 20px;
}

.affiliate-disclosure {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--olive) 45%, var(--line));
  border-radius: var(--radius-small);
  background: var(--surface);
}

.affiliate-disclosure-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.affiliate-disclosure strong {
  color: var(--forest);
}

.affiliate-disclosure p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.purchase-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.purchase-heading h3,
.purchase-heading p {
  margin: 0;
}

.purchase-heading p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.purchase-heading > span {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 700;
}

.purchase-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.purchase-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.purchase-card:hover {
  border-color: var(--olive);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--forest) 10%, transparent);
  transform: translateY(-2px);
}

.purchase-card:active {
  transform: translateY(0) scale(0.99);
}

.purchase-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--olive) 42%, transparent);
  outline-offset: 3px;
}

.purchase-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--forest);
  font-size: 1.35rem;
}

.purchase-card-copy {
  min-width: 0;
}

.purchase-card-copy strong {
  display: block;
  color: var(--forest);
  font-size: 1rem;
}

.purchase-card-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.purchase-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.purchase-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.missions-heading > div:first-child {
  max-width: 720px;
}

.progress-orbit {
  --mission-progress: 0%;
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  align-content: center;
  place-items: center;
  gap: 2px;
  padding: 18px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--forest) var(--mission-progress), var(--olive-soft) 0);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}

.progress-orbit::before {
  position: absolute;
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: inherit;
  background: var(--surface);
  content: "";
}

.progress-orbit strong,
.progress-orbit span {
  position: relative;
  z-index: 1;
}

.progress-orbit strong {
  font-size: 1.8rem;
  font-weight: 790;
  line-height: 1;
}

.progress-orbit span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 720;
}

.progress-orbit.is-complete {
  background: conic-gradient(var(--forest) 100%, var(--olive-soft) 0);
  box-shadow: 0 14px 42px color-mix(in srgb, var(--forest) 20%, transparent);
}

.progress-orbit.is-upcoming {
  background: var(--olive-soft);
}

.mission-view-tabs {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-muted);
}

.mission-view-tabs button {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 720;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.mission-view-tabs button:active {
  transform: scale(0.98);
}

.mission-view-tabs button.is-active {
  background: var(--surface-solid);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
}

.mission-view-tabs strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 8px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.85rem;
}

.missions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.mission-stack {
  display: grid;
  gap: 18px;
}

.guest-mission-invite {
  display: flex;
  width: var(--container);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 4vw, 46px);
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--olive-soft) 52%, transparent), transparent 22rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.guest-mission-invite > div {
  max-width: 720px;
}

.guest-mission-invite h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.guest-mission-invite p:last-child {
  margin-bottom: 0;
}

.today-mission-section,
.mission-section-list {
  display: grid;
  gap: 18px;
}

.mission-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 6px;
}

.mission-section-heading p {
  margin-bottom: 2px;
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 760;
}

.mission-section-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.mission-section-heading > strong,
.completed-missions summary > strong {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 9px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.88rem;
}

.mission-complete-state {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--olive) 55%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 48%, var(--surface));
}

.mission-complete-state > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.45rem;
}

.mission-complete-state h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.mission-complete-state p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.completed-missions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-muted) 74%, transparent);
}

.completed-missions summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--forest);
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.completed-missions summary::-webkit-details-marker {
  display: none;
}

.completed-missions summary > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.completed-missions summary > span i {
  color: var(--olive);
  font-size: 1.25rem;
}

.completed-missions[open] summary {
  border-bottom: 1px solid var(--line);
}

.completed-mission-list {
  padding: 18px;
}

.completed-mission-list .mission-card {
  box-shadow: none;
}

.completed-missions-empty {
  margin: 0;
  padding: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.mission-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.mission-card.is-complete {
  background: color-mix(in srgb, var(--olive-soft) 32%, var(--surface));
}

.mission-card.is-complete .mission-body h2 {
  text-decoration: line-through;
  text-decoration-color: var(--olive);
  text-decoration-thickness: 2px;
}

.mission-image {
  position: relative;
  min-height: 300px;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-image > .mission-plant-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  max-width: calc(100% - 24px);
  align-items: baseline;
  gap: 4px;
  padding: 7px 10px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  color: #18392b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.mission-plant-label strong {
  overflow: hidden;
  font-weight: 780;
  text-overflow: ellipsis;
}

.mission-plant-label small {
  flex: 0 0 auto;
  color: #66746d;
  font-size: 0.92em;
  font-weight: 620;
}

.mission-body {
  padding: 24px;
}

.mission-body h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.mission-reason {
  padding: 14px 16px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.mission-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.mission-details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-actions .button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 0.86rem;
}

.upcoming-day-group {
  display: grid;
  gap: 14px;
}

.upcoming-day-group + .upcoming-day-group {
  margin-top: 14px;
}

.upcoming-day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 6px;
}

.upcoming-day-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 760;
}

.upcoming-day-heading h2 {
  margin-bottom: 0;
  color: var(--forest);
  font-size: 1.35rem;
}

.upcoming-day-heading > strong {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.upcoming-day-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.upcoming-mission-row {
  display: grid;
  grid-template-columns: 76px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.upcoming-mission-row + .upcoming-mission-row {
  border-top: 1px solid var(--line);
}

.upcoming-mission-row > img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.upcoming-mission-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 1.35rem;
}

.upcoming-mission-copy {
  min-width: 0;
}

.upcoming-mission-copy p {
  margin-bottom: 2px;
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: 760;
}

.upcoming-mission-copy h3 {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: 1.08rem;
}

.upcoming-mission-copy > span {
  display: block;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.upcoming-mission-action {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.upcoming-mission-action time {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 760;
}

.upcoming-empty-state {
  min-height: 430px;
}

.care-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 16px;
}

.streak-card,
.week-card,
.quick-note-card,
.upcoming-guide-card,
.upcoming-count-card {
  padding: 22px;
}

.upcoming-guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: color-mix(in srgb, var(--olive-soft) 38%, var(--surface));
}

.upcoming-guide-card > i {
  color: var(--forest);
  font-size: 2rem;
}

.upcoming-guide-card h2,
.upcoming-count-card h2 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.2rem;
}

.upcoming-guide-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.upcoming-count-card dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.upcoming-count-card dl > div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.upcoming-count-card dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.upcoming-count-card dd {
  margin: 0;
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 780;
}

.streak-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.streak-card > i {
  color: var(--coral);
  font-size: 2rem;
}

.streak-card span,
.streak-card strong {
  display: block;
}

.streak-card strong {
  color: var(--forest);
  font-size: 1.65rem;
}

.streak-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.week-card h2 {
  font-size: 1.2rem;
}

.week-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.week-day {
  text-align: center;
}

.week-day span {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.week-day.is-done span {
  background: var(--olive);
  color: var(--paper-bright);
}

.week-day small {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.quick-note-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-weight: 740;
}

textarea,
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-bright);
  color: var(--ink);
}

textarea,
input:not([type="checkbox"]),
select {
  padding: 11px 13px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 75%, transparent);
}

.quick-note-card .button {
  margin-top: 10px;
}

.quick-note-card textarea {
  height: 132px;
  max-height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  resize: none;
}

.plants-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.plants-summary {
  color: var(--ink-soft);
}

.plants-summary strong {
  color: var(--forest);
}

.plants-grid .plant-card {
  grid-column: span 4;
}

.plant-records {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.plant-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.plant-card-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 8px;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-card-actions .plant-card-delete {
  grid-column: 1 / -1;
}

.plant-home-view {
  max-width: 1180px;
}

.plant-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.plant-home-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.plant-home-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 720;
}

.plant-home-back:hover {
  color: var(--forest-2);
}

.plant-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.plant-home-photo {
  min-height: 500px;
}

.plant-home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plant-home-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 60px);
}

.plant-home-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.plant-home-title-row > div {
  min-width: 0;
}

.plant-home-title-row p {
  margin-bottom: 8px;
  color: var(--olive);
  font-weight: 720;
}

.plant-home-title-row h1 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.plant-home-latin {
  display: block;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.plant-home-title-row .status-chip {
  flex: 0 0 auto;
}

.plant-home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plant-home-facts div {
  min-width: 0;
  padding: 18px 14px;
}

.plant-home-facts div + div {
  border-left: 1px solid var(--line);
}

.plant-home-facts span,
.plant-home-facts strong {
  display: block;
}

.plant-home-facts span {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.plant-home-facts strong {
  overflow: hidden;
  color: var(--forest);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plant-home-tabs {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 5;
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin: 32px 0 24px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.plant-home-tabs button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 720;
  white-space: nowrap;
}

.plant-home-tabs button.is-active {
  background: var(--forest);
  color: var(--paper-bright);
}

[data-theme="dark"] .plant-home-tabs button.is-active {
  background: #dce9d6;
  color: #173226;
}

.plant-home-panel {
  min-height: 520px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.plant-home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.plant-home-section-heading h2 {
  margin-bottom: 7px;
}

.plant-home-section-heading p {
  max-width: 640px;
  margin-bottom: 0;
}

.plant-task-list {
  display: grid;
  gap: 12px;
}

.plant-task-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.plant-task-row:first-child {
  padding-top: 0;
}

.plant-task-row.is-complete {
  opacity: 0.72;
}

.plant-task-icon,
.plant-next-icon,
.plant-health-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 1.35rem;
}

.plant-task-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.plant-task-heading h3 {
  margin-bottom: 5px;
}

.plant-task-heading span {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: 720;
}

.plant-task-row p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.plant-calm-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.plant-calm-state > i {
  color: var(--olive);
  font-size: 2rem;
}

.plant-calm-state strong,
.plant-calm-state p {
  display: block;
}

.plant-calm-state p {
  margin: 2px 0 0;
}

.plant-next-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 34%, var(--surface));
}

.plant-next-check.is-due {
  border-color: color-mix(in srgb, var(--coral) 40%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 40%, var(--surface));
}

.plant-next-check > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.plant-next-check p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.plant-next-check h3 {
  margin-bottom: 3px;
}

.plant-next-check > div > div > span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.plant-care-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.plant-care-focus article {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.plant-care-focus article:first-child {
  background: color-mix(in srgb, var(--olive-soft) 48%, var(--surface));
}

.plant-care-focus i {
  color: var(--olive);
  font-size: 1.7rem;
}

.plant-care-focus span {
  display: block;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.plant-care-focus h3 {
  margin: 5px 0 8px;
  font-size: 1.4rem;
}

.plant-care-focus p {
  margin-bottom: 0;
}

.plant-environment {
  margin-top: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.plant-environment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plant-environment-heading span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.plant-environment-heading h3 {
  margin: 2px 0 0;
  font-size: 1.4rem;
}

.plant-environment > p {
  margin: 16px 0 20px;
}

.plant-environment dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 10px;
}

.plant-environment dl div {
  padding: 15px 16px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.plant-environment dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.plant-environment dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-weight: 700;
}

.plant-care-caution {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 20px 22px;
  border-left: 4px solid var(--coral);
  background: color-mix(in srgb, var(--coral-soft) 36%, var(--surface));
}

.plant-care-caution > i {
  color: var(--coral);
  font-size: 1.35rem;
}

.plant-care-caution p {
  margin: 2px 0 0;
}

.plant-health-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 42%, var(--surface));
}

.plant-health-summary.needs-attention {
  background: color-mix(in srgb, var(--coral-soft) 46%, var(--surface));
}

.plant-health-summary p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.plant-health-summary h3 {
  margin: 2px 0;
  font-size: 1.4rem;
}

.plant-health-summary > div > span {
  color: var(--ink-soft);
}

.plant-health-summary .plant-health-updated {
  display: block;
  margin-top: 7px;
  color: var(--olive);
  font-size: 0.74rem;
  font-weight: 700;
}

.plant-record-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.plant-record-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 0 0 26px;
}

.plant-record-row:not(:last-child)::before {
  position: absolute;
  top: 45px;
  bottom: 4px;
  left: 23px;
  width: 1px;
  background: var(--line);
  content: "";
}

.plant-record-row > span {
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--olive);
  font-size: 1.2rem;
}

.plant-record-row time {
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 720;
}

.plant-record-row p {
  margin: 3px 0 0;
  color: var(--ink);
}

.plant-record-photo {
  width: min(280px, 100%);
  margin-top: 10px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.plant-record-danger {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.location-groups {
  display: grid;
  gap: 54px;
}

.location-group {
  min-width: 0;
}

.location-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.location-group-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.location-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--forest);
  font-size: 1.2rem;
}

.location-group-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.location-group-heading p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.input-with-unit > span {
  color: var(--ink-soft);
  font-weight: 700;
}

label > small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.encyclopedia-heading {
  align-items: center;
}

.search-field {
  display: flex;
  width: min(390px, 100%);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
}

.search-field input {
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
}

.search-field input:focus-visible {
  outline: none;
}

.encyclopedia-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

.encyclopedia-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.encyclopedia-card:nth-child(2) {
  transform: translateY(26px);
}

.encyclopedia-card img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

.encyclopedia-card:first-child img {
  aspect-ratio: 4 / 3.3;
}

.encyclopedia-body {
  padding: 22px;
}

.encyclopedia-body h2 {
  margin-bottom: 2px;
  font-size: 1.75rem;
}

.encyclopedia-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.encyclopedia-tags span {
  padding: 6px 9px;
  border-radius: var(--radius-button);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.community-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.community-heading .button {
  flex: 0 0 auto;
}

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.community-filters {
  display: flex;
  align-items: center;
  gap: 4px;
}

.community-filters button,
.community-refresh {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.community-filters button:hover,
.community-refresh:hover {
  color: var(--forest);
  transform: translateY(-1px);
}

.community-filters button.is-active {
  background: var(--forest);
  color: var(--paper-bright);
}

.community-refresh {
  display: grid;
  width: 44px;
  padding: 0;
  place-items: center;
  background: var(--surface-muted);
  font-size: 1.12rem;
}

.community-status {
  min-height: 25px;
  margin: 0 2px 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.community-card.is-featured {
  grid-column: 1 / -1;
}

.community-card-open {
  display: grid;
  width: 100%;
  flex: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.community-card.is-featured .community-card-open {
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  min-height: 420px;
}

.community-card-media {
  min-height: 280px;
  overflow: hidden;
  background: var(--surface-muted);
}

.community-card-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.community-card:hover .community-card-media img {
  transform: scale(1.025);
}

.community-question-visual {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--olive-soft) 78%, transparent), transparent 50%),
    var(--surface-muted);
  color: var(--forest);
}

.community-question-visual i {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  font-size: 2rem;
  box-shadow: var(--shadow-soft);
}

.community-question-visual span {
  color: var(--ink-soft);
  font-weight: 800;
}

.community-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.community-card.is-featured .community-card-body {
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
}

.community-card-meta,
.community-card-footer,
.community-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.community-type-chip {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-weight: 850;
}

.is-question .community-type-chip {
  background: color-mix(in srgb, var(--coral-soft) 55%, var(--surface-muted));
}

.community-card-body h2 {
  margin: 18px 0 10px;
  overflow: hidden;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-card-footer {
  margin-top: auto;
  margin-inline: 24px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
}

.community-card.is-featured .community-card-footer {
  margin-inline: clamp(28px, 4vw, 50px);
}

.community-card-footer > span,
.community-card-comment-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.community-card-footer > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-footer-actions,
.community-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-like-button {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.community-like-button .ph-heart {
  font-size: 1.15rem;
  line-height: 1;
}

.community-like-button:hover {
  color: var(--coral);
  transform: translateY(-1px);
}

.community-like-button:active {
  transform: scale(0.94);
}

.community-like-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 38%, transparent);
  outline-offset: 2px;
}

.community-like-button.is-liked {
  color: var(--coral);
}

.community-like-button.is-liked i {
  animation: community-heart 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.community-like-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@keyframes community-heart {
  50% { transform: scale(1.28); }
}

.community-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 420px;
  place-content: center;
  justify-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.community-empty > span {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 2rem;
}

.community-empty h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.community-empty p {
  max-width: 460px;
  margin-bottom: 24px;
}

.community-empty.is-error > span {
  background: var(--coral-soft);
  color: var(--coral);
}

.community-skeleton {
  pointer-events: none;
}

.community-skeleton-media,
.community-skeleton-body span {
  background: linear-gradient(90deg, var(--surface-muted), var(--surface-solid), var(--surface-muted));
  background-size: 200% 100%;
  animation: community-skeleton 1.5s ease-in-out infinite;
}

.community-skeleton-media {
  min-height: 280px;
}

.community-skeleton-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.community-skeleton-body span {
  height: 18px;
  border-radius: var(--radius-button);
}

.community-skeleton-body span:nth-child(2) {
  width: 75%;
}

.community-skeleton-body span:nth-child(3) {
  width: 45%;
}

@keyframes community-skeleton {
  to { background-position: -200% 0; }
}

.community-compose-dialog {
  width: min(680px, calc(100% - 28px));
}

.community-detail-dialog {
  width: min(900px, calc(100% - 28px));
  padding: 0;
}

.community-report-dialog {
  width: min(540px, calc(100% - 28px));
}

.dialog-title-row,
.community-detail-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-title-row {
  margin-bottom: 24px;
}

.dialog-title-row h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.community-type-fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}

.community-type-fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 850;
}

.community-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.community-type-options label {
  cursor: pointer;
}

.community-type-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.community-type-options span {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-weight: 850;
}

.community-type-options input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.community-type-options input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--forest) 35%, transparent);
  outline-offset: 2px;
}

.community-compose-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 850;
}

.community-compose-field textarea {
  resize: vertical;
}

.community-photo-field {
  margin: 4px 0 18px;
}

.community-photo-field > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.community-photo-field > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.community-photo-picker {
  overflow: hidden;
  border: 1px dashed var(--olive);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.community-photo-empty {
  display: grid;
  min-height: 150px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.community-photo-empty i {
  color: var(--forest);
  font-size: 2rem;
}

.community-photo-picker img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--ink);
}

.community-photo-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-solid);
}

.community-detail-shell {
  min-height: 280px;
}

.community-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  backdrop-filter: blur(10px);
}

.community-detail-photo {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: var(--ink);
}

.community-detail-post,
.community-comments {
  padding: 28px;
}

.community-detail-post h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.community-detail-meta {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.community-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.community-detail-post > p {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}

.community-detail-actions {
  justify-content: space-between;
}

.community-detail-like {
  min-height: 44px;
}

.community-report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.community-report-link:disabled {
  opacity: 0.65;
  cursor: default;
}

.community-comments {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.community-comments-heading h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.community-comments-heading span {
  color: var(--olive);
}

.community-comment-list {
  display: grid;
  gap: 10px;
}

.community-comment {
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: var(--surface-solid);
}

.community-comment.is-mine {
  background: color-mix(in srgb, var(--olive-soft) 65%, var(--surface-solid));
}

.community-comment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.community-comment time {
  color: var(--ink-soft);
}

.community-comment p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.community-comments-empty {
  display: grid;
  justify-items: center;
  padding: 34px;
  color: var(--ink-soft);
  text-align: center;
}

.community-comments-empty i {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.community-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}

.community-comment-form textarea {
  min-height: 58px;
  resize: vertical;
}

.community-comment-form .button {
  width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}

.community-detail-loading {
  display: grid;
  min-height: 340px;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  color: var(--ink-soft);
  text-align: center;
}

.community-detail-loading > i,
.community-compose-dialog .ph-spinner-gap {
  font-size: 1.8rem;
  animation: community-spin 900ms linear infinite;
}

.community-detail-loading.is-error > i {
  color: var(--coral);
  animation: none;
}

@keyframes community-spin {
  to { transform: rotate(360deg); }
}

.community-report-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.dialog-error {
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: var(--radius-small);
  background: var(--coral-soft);
  color: var(--coral);
  font-weight: 750;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.settings-card {
  padding: 26px;
}

.data-card {
  grid-column: 1 / -1;
}

.sync-card {
  background: linear-gradient(145deg, rgba(235, 241, 222, 0.96), rgba(255, 253, 246, 0.98));
}

.sync-status {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-weight: 760;
}

.sync-status[data-state="connected"] {
  border-color: rgba(52, 111, 75, 0.34);
  color: var(--forest-2);
}

.sync-status[data-state="locked"] {
  border-color: rgba(184, 98, 63, 0.35);
  color: var(--danger);
}

.sync-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.sync-privacy-note i {
  margin-top: 3px;
  color: var(--olive);
  font-size: 1.05rem;
}

.sync-actions {
  flex-wrap: wrap;
}

.settings-card-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.settings-card-heading > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--olive);
  font-size: 1.25rem;
}

.settings-card-heading h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.settings-card-heading p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-grid label,
.settings-card > label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 680;
}

.settings-time-field input[type="time"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.settings-time-field {
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
}

.check-row,
.switch-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.check-row {
  justify-content: start;
}

.check-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--forest-2);
}

.check-row strong,
.check-row small,
.switch-row strong,
.switch-row small {
  display: block;
}

.check-row small,
.switch-row small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-weight: 450;
}

.switch-row input {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--ink-soft) 34%, transparent);
  transition: background 180ms var(--ease);
}

.switch-row input::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper-bright);
  content: "";
  transition: transform 180ms var(--ease);
}

.switch-row input:checked {
  background: var(--forest-2);
}

.switch-row input:checked::before {
  transform: translateX(20px);
}

.settings-save {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 160px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.82rem;
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
}

.app-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: 88dvh;
  padding: 26px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(9, 18, 13, 0.55);
  backdrop-filter: blur(6px);
}

.guest-upsell-dialog {
  width: min(680px, calc(100% - 28px));
}

.guest-demo-limit-dialog {
  width: min(520px, calc(100% - 28px));
}

.guest-demo-limit-dialog > p {
  color: var(--ink-soft);
}

.guest-limit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.guest-upsell-copy {
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.guest-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guest-benefit-grid > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.guest-benefit-grid i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 1.2rem;
}

.guest-benefit-grid span,
.guest-benefit-grid small {
  display: block;
  min-width: 0;
}

.guest-benefit-grid small {
  margin-top: 2px;
  color: var(--ink-soft);
}

.guest-benefit-more {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--olive) 28%, var(--line));
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--olive) 8%, var(--surface-solid));
}

.guest-benefit-more > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--surface-solid);
  font-size: 1.2rem;
}

.guest-benefit-more p,
.guest-benefit-more span {
  display: block;
  min-width: 0;
}

.guest-benefit-more p {
  margin: 0;
}

.guest-benefit-more span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.guest-data-note {
  display: flex;
  gap: 8px;
  padding: 13px 15px;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.guest-data-note i {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--olive);
}

.guest-upsell-actions {
  justify-content: flex-end;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dialog-heading > .icon-button {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
}

.dialog-heading h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.dialog-plant {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.dialog-plant img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}

.register-dialog {
  width: min(720px, calc(100% - 28px));
}

.register-dialog .dialog-heading {
  margin-bottom: 12px;
}

.register-step-copy {
  max-width: 46ch;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.register-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 0 0 18px;
}

.register-progress span {
  height: 4px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--olive) 24%, transparent);
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.register-progress span.is-active {
  background: var(--forest-2);
  transform: scaleY(1.35);
}

.register-step {
  min-height: 250px;
  padding-top: 4px;
}

.register-step[hidden] {
  display: none;
}

.register-step .field-grid {
  align-items: start;
}

.register-step .field-grid > label,
.register-interval {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 680;
}

.register-guide-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 22px;
  padding: 17px;
  border-left: 3px solid var(--olive);
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
}

.register-guide-note > i {
  color: var(--olive);
  font-size: 1.4rem;
}

.register-guide-note p {
  margin: 0;
  font-size: 0.86rem;
}

.register-guide-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--forest);
}

.register-plan {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.register-plan-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 18px;
}

.register-plan-heading > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.15rem;
}

.register-plan-heading strong {
  display: block;
  color: var(--forest);
}

.register-plan-heading p {
  margin: 2px 0 0;
  font-size: 0.84rem;
}

.register-plan dl,
.register-success-summary {
  margin: 0;
}

.register-plan dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.register-plan dl div {
  min-width: 0;
  padding: 14px 16px;
}

.register-plan dl div + div {
  border-left: 1px solid var(--line);
}

.register-plan dt,
.register-success-summary dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.register-plan dd,
.register-success-summary dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
}

.register-dialog .dialog-actions {
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.register-cancel {
  margin-right: auto;
}

.register-success-dialog {
  width: min(660px, calc(100% - 28px));
}

.register-success-hero {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto 24px;
}

.register-success-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.register-success-mark {
  position: absolute;
  right: 18px;
  bottom: -20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 4px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.3rem;
}

.register-success-copy {
  max-width: 520px;
  margin: 0 auto 20px;
}

.register-success-copy h2 {
  margin-bottom: 8px;
}

.register-success-copy > p:last-child {
  margin-bottom: 0;
}

.register-success-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.register-success-summary div {
  padding: 0 14px;
}

.register-success-summary div + div {
  border-left: 1px solid var(--line);
}

.register-success-summary dt {
  display: flex;
  align-items: center;
  gap: 5px;
}

.register-success-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  width: min(100%, 520px);
  margin: 22px auto 0;
}

.register-success-actions .button-primary {
  justify-self: stretch;
}

@media (prefers-reduced-motion: no-preference) {
  .register-step:not([hidden]) {
    animation: register-step-in 260ms var(--ease) both;
  }
}

@keyframes register-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.state-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.state-option {
  position: relative;
}

.state-option input {
  position: absolute;
  opacity: 0;
}

.state-option span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-weight: 680;
}

.state-option input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.plant-edit-dialog {
  width: min(760px, calc(100% - 28px));
}

.plant-edit-summary {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.plant-edit-summary img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.plant-edit-summary strong,
.plant-edit-summary span {
  display: block;
}

.plant-edit-summary span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.plant-edit-section {
  padding: 22px 0;
}

.plant-edit-section + .plant-edit-section {
  border-top: 1px solid var(--line);
}

.plant-edit-section h3 {
  margin-bottom: 16px;
}

.plant-edit-section .field-grid {
  align-items: start;
}

.plant-edit-section .field-grid > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 680;
}

.plant-edit-check {
  margin-top: 16px;
}

.plant-edit-error {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 680;
}

.light-meter-dialog,
.health-dialog {
  width: min(940px, calc(100% - 28px));
}

.quick-status-dialog {
  width: min(760px, calc(100% - 28px));
}

.quick-status-plant {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.quick-status-plant img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.quick-status-plant strong,
.quick-status-plant span {
  display: block;
}

.quick-status-plant span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.quick-status-name {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-status-name input {
  width: 100%;
}

.quick-status-name small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 540;
}

.quick-status-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.quick-status-fieldset legend {
  margin-bottom: 10px;
  color: var(--forest);
  font-weight: 740;
}

.quick-status-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-status-option {
  position: relative;
  min-width: 0;
}

.quick-status-option input {
  position: absolute;
  opacity: 0;
}

.quick-status-option > span {
  display: grid;
  min-height: 94px;
  grid-template-columns: 38px 1fr;
  align-content: center;
  gap: 1px 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.quick-status-option i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--olive);
  font-size: 1.65rem;
}

.quick-status-option strong,
.quick-status-option small {
  min-width: 0;
}

.quick-status-option small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.quick-status-option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--olive) 34%, transparent);
  outline-offset: 2px;
}

.quick-status-option input:checked + span {
  border-color: var(--forest-2);
  background: color-mix(in srgb, var(--olive-soft) 44%, var(--surface));
}

.quick-status-option input:checked + span i,
.quick-status-option input:checked + span strong {
  color: var(--forest);
}

.quick-status-option input[value="droop"]:checked + span,
.quick-status-option input[value="yellow"]:checked + span,
.quick-status-option input[value="spots"]:checked + span {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral-soft) 48%, var(--surface));
}

.quick-status-option input[value="droop"]:checked + span i,
.quick-status-option input[value="yellow"]:checked + span i,
.quick-status-option input[value="spots"]:checked + span i {
  color: var(--coral);
}

.quick-status-option:active > span {
  transform: scale(0.985);
}

.quick-status-extras {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px;
  margin-top: 22px;
}

.quick-status-extras > label,
.quick-status-label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-status-extras small,
.quick-status-label small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 540;
}

.quick-status-upload {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--olive) 70%, var(--line));
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface-muted) 52%, transparent);
}

.quick-status-upload > i {
  color: var(--olive);
  font-size: 1.75rem;
}

.quick-status-upload strong,
.quick-status-upload small {
  display: block;
}

.quick-status-preview {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.quick-status-preview[hidden] {
  display: none;
}

.quick-status-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.quick-status-preview .button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 36px;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
}

.quick-status-next {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px;
  border-left: 3px solid var(--coral);
  background: color-mix(in srgb, var(--coral-soft) 42%, var(--surface));
}

.quick-status-next[hidden] {
  display: none;
}

.quick-status-next > i {
  margin-top: 2px;
  color: var(--coral);
  font-size: 1.25rem;
}

.quick-status-next strong,
.quick-status-next span {
  display: block;
}

.quick-status-next strong {
  margin-bottom: 2px;
  color: var(--forest);
}

.quick-status-next span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.quick-status-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: var(--radius-small);
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 680;
}

.quick-status-error[hidden] {
  display: none;
}

.light-meter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.light-camera {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #101812;
}

.light-camera video,
.light-photo-preview {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.light-camera video[hidden],
.light-photo-preview[hidden] {
  display: none;
}

.light-camera-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  color: #f6f0df;
  text-align: center;
}

.light-camera-empty[hidden] {
  display: none;
}

.light-camera-empty > i {
  margin-bottom: 14px;
  color: #cbd0b6;
  font-size: 2.7rem;
}

.light-camera-empty p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #cbd0c5;
  font-size: 0.88rem;
}

.light-meter-panel {
  display: flex;
  flex-direction: column;
}

.light-reading {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.light-reading > span,
.light-reading > strong {
  display: block;
}

.light-reading > span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.light-reading > strong {
  margin: 4px 0 10px;
  color: var(--forest);
  font-size: 2rem;
}

.light-reading p {
  min-height: 50px;
  margin-bottom: 16px;
  font-size: 0.86rem;
}

.light-scale {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--olive) 24%, transparent);
}

.light-scale span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olive), #d7b94b);
  transition: width 300ms var(--ease);
}

.light-disclaimer {
  margin: 14px 0 0;
  font-size: 0.76rem;
}

.light-meter-panel .dialog-actions {
  margin-top: auto;
}

.health-photo-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.health-photo-guide > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  padding: 14px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.health-photo-guide i {
  grid-row: 1 / 3;
  color: var(--olive);
  font-size: 1.35rem;
}

.health-photo-guide span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.health-upload {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--olive) 70%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-muted) 55%, transparent);
}

.health-upload > i {
  color: var(--olive);
  font-size: 2rem;
}

.health-upload strong,
.health-upload small {
  display: block;
}

.health-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.health-preview-grid[hidden] {
  display: none;
}

.health-preview-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-small);
}

.health-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.health-preview-grid figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: var(--radius-button);
  background: rgba(18, 31, 23, 0.78);
  color: #fffaf0;
  font-size: 0.68rem;
}

.health-preparing,
.health-error {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  text-align: center;
}

.health-error {
  color: var(--coral);
}

.health-fields {
  margin: 18px 0;
}

.health-analysis-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.health-analysis-result[hidden] {
  display: none;
}

.health-result-heading h3 {
  margin: 10px 0 16px;
  font-size: 1.25rem;
}

.health-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.health-result-grid > div {
  padding: 14px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  font-size: 0.82rem;
}

.health-result-grid ul,
.health-result-grid ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.health-professional {
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--coral-soft);
  color: var(--coral);
}

.health-recovery-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--olive-soft) 55%, var(--surface));
}

.health-recovery-cta > i {
  color: var(--forest);
  font-size: 1.8rem;
}

.health-recovery-cta strong,
.health-recovery-cta span {
  display: block;
}

.health-recovery-cta span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.recovery-active-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 760;
}

.recovery-empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.recovery-empty-state.needs-attention {
  border-color: color-mix(in srgb, var(--coral) 50%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 38%, var(--surface));
}

.recovery-empty-state > span,
.recovery-summary-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.55rem;
}

.recovery-empty-state > div > p,
.recovery-overview > div > p,
.recovery-schedule-card .recovery-subheading p {
  margin-bottom: 4px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 760;
}

.recovery-empty-state h3 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.recovery-empty-actions,
.recovery-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recovery-overview {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--olive) 45%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 34%, var(--surface));
}

.recovery-overview > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.recovery-overview > div {
  align-self: center;
}

.recovery-overview h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.recovery-overview > div > span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.recovery-overview dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 0;
}

.recovery-overview dl > div {
  padding: 11px;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.recovery-overview dt,
.recovery-overview dd {
  margin: 0;
}

.recovery-overview dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.recovery-overview dd {
  margin-top: 2px;
  color: var(--forest);
  font-weight: 760;
}

.recovery-actions-card,
.recovery-schedule-card,
.recovery-history,
.recovery-archive {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.recovery-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.recovery-subheading h3,
.recovery-subheading p {
  margin-bottom: 0;
}

.recovery-subheading > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 760;
}

.recovery-action-list {
  display: grid;
  gap: 8px;
}

.recovery-action-list button {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  color: var(--ink);
  text-align: left;
}

.recovery-action-list button i {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 1.25rem;
}

.recovery-action-list button.is-complete {
  border-color: color-mix(in srgb, var(--olive) 50%, var(--line));
  background: color-mix(in srgb, var(--olive-soft) 45%, var(--surface));
  color: var(--ink-soft);
  text-decoration: line-through;
}

.recovery-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.recovery-stage-track::before {
  position: absolute;
  top: 23px;
  right: 16%;
  left: 16%;
  height: 2px;
  background: var(--line);
  content: "";
}

.recovery-stage-track > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--ink-soft);
  text-align: center;
}

.recovery-stage-track > div > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.recovery-stage-track > div.is-complete > span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-bright);
}

.recovery-stage-track > div.is-due > span {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral);
}

.recovery-stage-track strong {
  color: var(--forest);
  font-size: 0.86rem;
}

.recovery-stage-track small {
  font-size: 0.7rem;
}

.recovery-history {
  display: grid;
  gap: 10px;
}

.recovery-history .recovery-subheading {
  margin-bottom: 4px;
}

.recovery-history article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.recovery-history article > img {
  width: 118px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.recovery-history article > div {
  align-self: center;
  padding: 13px 13px 13px 0;
}

.recovery-history article span,
.recovery-history article time {
  display: block;
}

.recovery-history article span {
  color: var(--forest);
  font-weight: 760;
}

.recovery-history article span i {
  margin-right: 6px;
}

.recovery-history article.worse span {
  color: var(--coral);
}

.recovery-history article time {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.recovery-history article p {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.recovery-archive {
  display: grid;
  gap: 8px;
}

.recovery-archive article {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.recovery-archive article > i {
  color: var(--olive);
  font-size: 1.3rem;
}

.recovery-archive article strong,
.recovery-archive article span {
  display: block;
}

.recovery-archive article span {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.recovery-dialog {
  width: min(780px, calc(100% - 28px));
}

.recovery-dialog-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.recovery-dialog-summary > img {
  width: 92px;
  height: 78px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.recovery-dialog-summary strong,
.recovery-dialog-summary small {
  display: block;
}

.recovery-dialog-summary p {
  margin: 3px 0;
  font-size: 0.86rem;
}

.recovery-dialog-summary small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.recovery-photo-preview {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius-small);
}

.recovery-photo-preview[hidden] {
  display: none;
}

.recovery-photo-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.recovery-photo-preview .button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
}

.recovery-status-fieldset {
  margin-top: 20px;
}

.recovery-status-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.recovery-status-options label {
  position: relative;
}

.recovery-status-options input {
  position: absolute;
  opacity: 0;
}

.recovery-status-options label > span {
  display: grid;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  text-align: center;
}

.recovery-status-options label > span i {
  margin-bottom: 6px;
  color: var(--olive);
  font-size: 1.45rem;
}

.recovery-status-options label > span small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.recovery-status-options input:checked + span {
  border-color: var(--forest);
  background: color-mix(in srgb, var(--olive-soft) 48%, var(--surface));
}

.recovery-status-options input[value="worse"]:checked + span {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral-soft) 52%, var(--surface));
}

.recovery-note-field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: var(--forest);
  font-weight: 700;
}

.growth-empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--olive-soft) 72%, transparent), transparent 34%),
    var(--surface-muted);
}

.growth-empty-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-bright);
  font-size: 1.55rem;
}

.growth-empty-state p,
.growth-latest-card p,
.growth-subheading p {
  margin-bottom: 4px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 760;
}

.growth-empty-state h3 {
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.growth-empty-state > div > span {
  display: block;
  color: var(--ink-soft);
}

.growth-empty-state .button {
  margin-top: 18px;
}

.growth-latest-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--olive) 48%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 30%, var(--surface));
}

.growth-latest-card > img {
  width: 100%;
  min-height: 245px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.growth-latest-card > div {
  align-self: center;
}

.growth-latest-card h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.growth-latest-card > div > span {
  color: var(--ink-soft);
}

.growth-latest-card dl,
.growth-change-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 0;
}

.growth-latest-card dl > div,
.growth-change-summary > div {
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.growth-latest-card dt,
.growth-latest-card dd,
.growth-change-summary span,
.growth-change-summary strong {
  display: block;
  margin: 0;
}

.growth-latest-card dt,
.growth-change-summary span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.growth-latest-card dd,
.growth-change-summary strong {
  margin-top: 3px;
  color: var(--forest);
  font-weight: 760;
}

.growth-compare-card,
.growth-timeline {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.growth-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.growth-subheading h3 {
  margin-bottom: 0;
}

.growth-subheading > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 760;
}

.growth-compare-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
}

.growth-compare-selectors label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.growth-compare-selectors > i {
  padding-bottom: 15px;
  color: var(--olive);
  font-size: 1.2rem;
}

.growth-change-summary {
  margin: 12px 0 16px;
}

.growth-change-summary > div {
  background: var(--surface-muted);
}

.growth-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.growth-side-by-side figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.growth-side-by-side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.growth-side-by-side figcaption,
.growth-overlay-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: var(--radius-button);
  background: rgba(18, 31, 23, 0.78);
  color: #fffaf0;
  font-size: 0.7rem;
  font-weight: 700;
}

.growth-overlay-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.growth-overlay-section > div:first-child strong,
.growth-overlay-section > div:first-child span {
  display: block;
}

.growth-overlay-section > div:first-child span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.growth-overlay {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.growth-overlay > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.growth-overlay > .growth-overlay-after {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: var(--growth-opacity);
}

.growth-overlay-label.before {
  right: auto;
  left: 10px;
}

.growth-overlay-label.after {
  background: color-mix(in srgb, var(--olive) 88%, transparent);
}

.growth-opacity-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.growth-opacity-control input {
  min-height: 28px;
  padding: 0;
  accent-color: var(--forest);
}

.growth-one-photo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--olive) 56%, var(--line));
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.growth-one-photo > i {
  color: var(--olive);
  font-size: 1.6rem;
}

.growth-one-photo strong,
.growth-one-photo span {
  display: block;
}

.growth-one-photo span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.growth-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.growth-timeline-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.growth-timeline-photo {
  position: relative;
}

.growth-timeline-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.growth-timeline-photo > span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 760;
}

.growth-timeline-body {
  padding: 13px;
}

.growth-timeline-body time {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 760;
}

.growth-timeline-body p {
  min-height: 2.8em;
  margin: 5px 0 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.growth-measurements {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
}

.growth-measurements span {
  padding: 4px 7px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.66rem;
}

.growth-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.growth-timeline-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 700;
}

.growth-timeline-actions button.is-danger {
  color: var(--coral);
}

.growth-dialog {
  width: min(780px, calc(100% - 28px));
}

.growth-reference {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.growth-reference > img,
.growth-reference > span {
  width: 92px;
  height: 78px;
  border-radius: var(--radius-small);
}

.growth-reference > img {
  object-fit: cover;
}

.growth-reference > span {
  display: grid;
  place-items: center;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 1.7rem;
}

.growth-reference strong,
.growth-reference p {
  display: block;
}

.growth-reference p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.growth-photo-preview {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius-small);
}

.growth-photo-preview[hidden] {
  display: none;
}

.growth-photo-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.growth-photo-preview .button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
}

.growth-fields {
  margin-top: 18px;
}

.growth-note-field {
  grid-column: 1 / -1;
}

.optional-label {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 500;
}

.growth-representative-check {
  margin-top: 16px;
}

.care-event-heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.care-event-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.care-event-summary {
  position: relative;
  display: grid;
  min-height: 238px;
  grid-template-columns: auto 1fr;
  align-content: space-between;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--olive-soft) 42%, var(--surface));
}

.care-event-summary.is-fertilizer {
  background: color-mix(in srgb, #eadca9 28%, var(--surface));
}

.care-event-summary.needs-check {
  border-color: color-mix(in srgb, var(--coral) 34%, var(--line));
}

.care-event-summary-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 1.4rem;
}

.care-event-summary p {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.care-event-summary h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.care-event-summary div > span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.care-event-summary > small {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 7px 11px;
  border-radius: var(--radius-button);
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 720;
}

.care-event-guidance {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 20px;
  border-left: 4px solid var(--olive);
  background: var(--surface-muted);
}

.care-event-guidance > i {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 1.25rem;
}

.care-event-guidance strong {
  display: block;
  margin-bottom: 4px;
  color: var(--forest);
}

.care-event-guidance p {
  margin: 0;
  font-size: 0.88rem;
}

.care-event-guidance p b {
  margin-right: 4px;
  color: var(--forest);
}

.care-event-guidance p b:not(:first-child) {
  margin-left: 12px;
}

.care-event-history {
  margin-top: 34px;
}

.care-event-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.care-event-history-heading h3 {
  margin-bottom: 3px;
}

.care-event-history-heading p {
  margin: 0;
  font-size: 0.86rem;
}

.care-event-history-heading > span {
  min-width: 42px;
  padding: 6px 10px;
  border-radius: var(--radius-button);
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 720;
  text-align: center;
}

.care-event-list {
  border-top: 1px solid var(--line);
}

.care-event-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.care-event-row-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--forest);
  font-size: 1.2rem;
}

.care-event-row.is-fertilizer .care-event-row-icon {
  background: color-mix(in srgb, #eadca9 42%, var(--surface));
}

.care-event-row-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.care-event-row-title strong,
.care-event-row-title time {
  display: block;
}

.care-event-row-title time {
  margin-top: 2px;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 680;
}

.care-event-row-body > p {
  margin: 7px 0 0;
  color: var(--ink);
}

.care-event-row-body > small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.care-event-row-body blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.care-event-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.care-event-row-actions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-solid);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 680;
}

.care-event-row-actions button.is-danger {
  color: var(--coral);
}

.care-event-empty {
  min-height: 132px;
}

.care-event-dialog {
  width: min(760px, calc(100% - 28px));
}

.care-event-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 18px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface-muted);
}

.care-event-mode button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 720;
}

.care-event-mode button.is-active {
  background: var(--forest);
  color: var(--paper-bright);
}

[data-theme="dark"] .care-event-mode button.is-active {
  background: #dce9d6;
  color: #173226;
}

.care-event-mode button:disabled {
  cursor: default;
  opacity: 1;
}

.care-event-date-field,
.care-event-note-field,
.care-event-fields .field-grid > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 680;
}

.care-event-date-field small {
  color: var(--ink-soft);
  font-weight: 450;
}

.care-event-fields {
  min-width: 0;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.care-event-fields[hidden] {
  display: none;
}

.care-event-fields legend {
  padding: 0;
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 760;
}

.care-event-fields .field-grid {
  margin-top: 16px;
}

.care-event-wide-field {
  grid-column: 1 / -1;
}

.care-event-caution {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--olive-soft) 42%, var(--surface));
}

.care-event-caution.is-warning {
  background: color-mix(in srgb, var(--coral-soft) 48%, var(--surface));
}

.care-event-caution > i {
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 1.2rem;
}

.care-event-caution.is-warning > i {
  color: var(--coral);
}

.care-event-caution p {
  margin: 0;
  font-size: 0.84rem;
}

.care-event-caution strong {
  display: block;
  margin-bottom: 2px;
  color: var(--forest);
}

.care-event-note-field {
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  max-width: min(420px, calc(100vw - 44px));
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--forest);
  color: var(--paper-bright);
  box-shadow: var(--shadow);
  animation: toast-in 280ms var(--ease) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  :root {
    --container: min(100% - 36px, 920px);
  }

  .desktop-nav,
  .settings-button {
    display: none;
  }

  .auth-gate {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-logout-button {
    width: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .header-logout-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mobile-menu-button {
    display: grid;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(247, 242, 227, 0.97) 0%, rgba(247, 242, 227, 0.82) 50%, rgba(247, 242, 227, 0.1) 100%);
  }

  .analyze-layout,
  .missions-layout {
    grid-template-columns: 1fr;
  }

  .sample-panel,
  .care-sidebar {
    position: static;
  }

  .sample-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .sample-button {
    grid-template-columns: 58px 1fr;
  }

  .sample-button > i {
    display: none;
  }

  .sample-button img {
    width: 58px;
    height: 58px;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .accuracy-result {
    grid-template-columns: 1fr;
  }

  .result-photo {
    min-height: 480px;
  }

  .mission-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .mission-summary .home-mission-card:nth-child(2) {
    transform: none;
  }

  .community-card.is-featured .community-card-open {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
  }

  .encyclopedia-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .encyclopedia-card:nth-child(2) {
    transform: none;
  }

  .encyclopedia-card:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .encyclopedia-card:nth-child(3) img {
    height: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --container: calc(100% - 28px);
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  body::before {
    opacity: 0.1;
  }

  .analyze-view .view-heading > p:last-child {
    font-size: 17.5px;
  }

  .upload-empty h2 {
    font-size: 28px;
  }

  .upload-empty > p:first-of-type {
    font-size: 13px;
  }

  .place-result > h3 {
    font-size: 17px;
  }

  .place-settings > p {
    margin-top: 20px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
  }

  .auth-gate {
    display: block;
    min-height: 100dvh;
    overflow: visible;
    background: #eff0e5;
  }

  .auth-showcase {
    position: relative;
    inset: auto;
    width: 100%;
    height: 300px;
    min-height: 300px;
  }

  .auth-showcase > :is(img, video) {
    width: 100%;
    max-width: none;
    height: 300px;
    min-height: 300px;
    margin-left: 0;
    object-fit: cover;
    object-position: center;
  }

  .auth-showcase-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    max-width: none;
    padding: 13px 14px;
  }

  .auth-showcase-caption > span {
    width: 38px;
    height: 38px;
  }

  .auth-showcase-caption p {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-panel {
    position: relative;
    inset: auto;
    z-index: 2;
    min-height: auto;
    padding: 0 14px 28px;
    background: transparent;
    pointer-events: auto;
  }

  .auth-card-shell {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 34px 22px 28px;
    margin-top: 0;
    border-radius: 24px;
    overflow: visible;
  }

  .auth-close-button {
    top: 14px;
    right: 14px;
  }

  .auth-brand {
    margin-bottom: 30px;
  }

  .auth-content h2 {
    max-width: 9em;
    font-size: clamp(2.05rem, 10vw, 2.75rem);
  }

  .site-header {
    min-height: var(--header-height);
    padding: 0 14px;
  }

  .guest-demo-bar {
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .guest-demo-bar > div {
    min-width: 0;
  }

  .guest-demo-bar > div:first-child {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .guest-demo-icon {
    width: 34px;
    height: 34px;
  }

  .guest-demo-bar p {
    display: block;
    width: 0;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    line-height: 1.25;
  }

  .guest-demo-bar p strong,
  .guest-demo-bar p > span {
    display: block;
  }

  .guest-demo-bar p > span {
    margin-top: 3px;
    font-size: 0.78rem;
  }

  .guest-demo-ticker {
    display: block;
    width: 100%;
  }

  .guest-demo-ticker-track {
    will-change: transform;
    animation: guest-demo-ticker 9s linear infinite;
  }

  .guest-demo-ticker-copy:last-child {
    display: inline-block;
  }

  .guest-demo-bar .button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 13px;
    font-size: 0.82rem;
  }

  .guest-demo-bar .guest-demo-actions {
    gap: 6px;
  }

  .guest-demo-bar [data-restart-guest-demo] {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
  }

  .guest-demo-bar [data-restart-guest-demo] i {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: 1rem;
    line-height: 1;
  }

  .guest-demo-bar [data-restart-guest-demo] > span {
    display: none;
  }

  .guest-reanalysis-invite {
    grid-template-columns: auto 1fr;
  }

  .guest-reanalysis-invite .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-view {
    padding: 38px 0 80px;
  }

  .home-view {
    padding-top: 0;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
    align-items: end;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(247, 242, 227, 0.98) 0%, rgba(247, 242, 227, 0.9) 48%, rgba(247, 242, 227, 0.18) 78%),
      linear-gradient(90deg, rgba(247, 242, 227, 0.6), transparent);
  }

  [data-theme="dark"] .hero-scrim {
    background:
      linear-gradient(0deg, rgba(20, 33, 27, 0.99) 0%, rgba(20, 33, 27, 0.9) 52%, rgba(20, 33, 27, 0.18) 82%);
  }

  .hero-content {
    padding: 130px 0 44px;
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-copy {
    max-width: 340px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions label.button {
    width: 100%;
    min-width: 0;
  }

  .specimen-note {
    display: none;
  }

  .home-section {
    padding-top: 74px;
  }

  .section-heading,
  .heading-with-action,
  .missions-heading,
  .encyclopedia-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .home-supplies-entry {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 24px 20px;
  }

  .home-supplies-entry.home-section {
    padding-top: 24px;
  }

  .home-supplies-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
  }

  .home-supplies-entry .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .supply-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .supply-category-list button[data-supply-category="all"] {
    grid-column: 1 / -1;
  }

  .supplies-heading > p:last-child {
    font-size: 15px;
  }

  .supply-category-list button {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 88px;
    padding: 14px;
  }

  .supply-category-list button > i {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .supply-category-list small {
    display: none;
  }

  .supply-personalized {
    margin-bottom: 38px;
    padding: 22px 18px;
  }

  .supply-personalized h2 {
    font-size: 1.35rem;
  }

  .supply-recommendation-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .supply-recommendation-item > span {
    display: none;
  }

  .supply-products-section {
    padding: 20px 16px;
  }

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

  .supply-product-card {
    gap: 16px;
    padding: 18px;
  }

  .supply-affiliate-disclosure {
    padding: 12px;
  }

  .supply-buy-link {
    min-height: 48px;
  }

  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mission-summary,
  .home-plant-grid,
  .plants-grid,
  .settings-grid,
  .field-grid,
  .candidate-strip,
  .health-panel,
  .place-panel,
  .purchase-grid,
  .analysis-progress {
    grid-template-columns: 1fr;
  }

  .home-mission-card,
  .home-mission-card:nth-child(2) {
    min-height: 0;
    transform: none;
  }

  .home-mission-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .home-mission-card img {
    width: 92px;
    height: 100%;
    min-height: 140px;
    margin-bottom: 0;
  }

  .plant-card,
  .plants-grid .plant-card {
    grid-column: 1 / -1;
  }

  .plant-home-hero {
    display: block;
  }

  .plant-home-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .plant-home-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .plant-home-toolbar .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 14px;
  }

  .plant-home-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .plant-home-intro {
    padding: 24px 20px;
  }

  .plant-home-title-row {
    display: grid;
    gap: 14px;
  }

  .plant-home-title-row h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .plant-home-title-row .status-chip {
    justify-self: start;
  }

  .plant-home-facts {
    grid-template-columns: 1fr;
    margin: 24px 0;
  }

  .plant-home-facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 12px 0;
  }

  .plant-home-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .plant-home-facts span {
    margin-bottom: 0;
  }

  .plant-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .plant-home-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .plant-home-tabs {
    top: calc(var(--header-height) + 8px);
    width: 100%;
    margin: 22px 0 16px;
  }

  .plant-home-tabs button {
    flex: 1 0 auto;
    padding-inline: 16px;
  }

  .plant-home-panel {
    min-height: 0;
    padding: 22px 18px;
  }

  .plant-home-section-heading,
  .plant-next-check,
  .plant-environment-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .plant-home-section-heading .button,
  .plant-next-check > .button,
  .plant-environment-heading .button {
    width: 100%;
  }

  .plant-task-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .plant-task-row > .button {
    grid-column: 2;
    justify-self: start;
  }

  .plant-task-icon {
    width: 44px;
    height: 44px;
  }

  .plant-task-heading {
    display: block;
  }

  .plant-task-heading span {
    display: block;
    margin-bottom: 4px;
  }

  .plant-next-check {
    display: flex;
    padding: 20px;
  }

  .plant-next-check > div {
    align-items: start;
  }

  .plant-next-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }

  .plant-care-focus,
  .plant-environment dl {
    grid-template-columns: 1fr;
  }

  .plant-care-focus article {
    min-height: 190px;
  }

  .plant-environment {
    padding: 20px;
  }

  .plant-health-summary {
    align-items: start;
  }

  .care-event-heading-actions,
  .care-event-overview {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .care-event-heading-actions .button {
    width: 100%;
  }

  .care-event-summary {
    min-height: 210px;
    padding: 22px 20px;
  }

  .care-event-guidance p b,
  .care-event-guidance p b:not(:first-child) {
    display: block;
    margin: 8px 0 1px;
  }

  .care-event-row-title {
    display: grid;
  }

  .care-event-row-actions {
    justify-self: start;
  }

  .care-event-dialog .field-grid {
    grid-template-columns: 1fr;
  }

  .care-event-wide-field {
    grid-column: auto;
  }

  .care-event-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .care-event-dialog .dialog-actions .button {
    width: 100%;
    min-width: 0;
  }

  .plant-record-danger .button {
    width: 100%;
  }

  .plant-edit-dialog .field-grid {
    grid-template-columns: 1fr;
  }

  .plant-edit-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .plant-edit-dialog .dialog-actions .button {
    width: 100%;
  }

  .location-groups {
    gap: 44px;
  }

  .location-group-heading {
    align-items: start;
  }

  .light-meter-layout,
  .health-result-grid {
    grid-template-columns: 1fr;
  }

  .light-camera,
  .light-camera video,
  .light-photo-preview {
    min-height: 0;
  }

  .light-camera {
    aspect-ratio: 4 / 3;
  }

  .light-camera video,
  .light-photo-preview {
    height: 100%;
  }

  .settings-card,
  .settings-card > label,
  .settings-time-field,
  .settings-time-field input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .settings-time-field input[type="time"] {
    inline-size: 100%;
    appearance: none;
    -webkit-appearance: none;
  }

  .health-photo-guide {
    grid-template-columns: 1fr;
  }

  .quick-status-options,
  .quick-status-extras {
    grid-template-columns: 1fr;
  }

  .quick-status-option > span {
    min-height: 82px;
  }

  .quick-status-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .quick-status-dialog .dialog-actions .button {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .health-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .safety-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .safety-band .button {
    width: 100%;
  }

  .view-heading {
    margin-bottom: 34px;
  }

  .view-heading h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .community-heading {
    display: grid;
    gap: 20px;
  }

  .community-heading h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.5vw, 2.45rem);
    word-break: keep-all;
  }

  .community-heading > div > p:last-child {
    word-break: keep-all;
  }

  .community-heading .button {
    width: 100%;
  }

  .community-toolbar {
    align-items: stretch;
    border-radius: var(--radius-card);
  }

  .community-filters {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-filters button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-card.is-featured {
    grid-column: auto;
  }

  .community-card.is-featured .community-card-open {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .community-card-media,
  .community-card-media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .community-card.is-featured .community-card-body,
  .community-card-body {
    padding: 20px;
  }

  .community-card-footer,
  .community-card.is-featured .community-card-footer {
    margin-inline: 20px;
    padding-bottom: 18px;
  }

  .community-card-body h2 {
    font-size: 1.42rem;
  }

  .community-empty {
    min-height: 360px;
    padding: 34px 20px;
  }

  .community-compose-dialog,
  .community-report-dialog {
    padding: 18px;
  }

  .community-detail-post,
  .community-comments {
    padding: 22px 18px;
  }

  .community-type-options {
    grid-template-columns: 1fr;
  }

  .community-photo-field > div:first-child {
    display: grid;
  }

  .community-photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .community-photo-actions .button {
    width: 100%;
  }

  .community-detail-photo {
    max-height: 55dvh;
  }

  .upload-panel {
    padding: 10px;
  }

  .upload-dropzone {
    min-height: 470px;
  }

  .upload-actions {
    display: grid;
  }

  .photo-tips,
  .sample-list {
    grid-template-columns: 1fr;
  }

  .photo-tips div {
    min-height: 48px;
  }

  .analysis-progress {
    gap: 24px;
    padding: 18px;
  }

  .result-hero {
    padding: 10px;
  }

  .accuracy-result {
    padding: 10px;
  }

  .accuracy-photo {
    min-height: 380px;
  }

  .accuracy-content {
    padding: 20px 10px 16px;
  }

  .accuracy-points {
    grid-template-columns: 1fr;
  }

  .accuracy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analysis-retry-actions {
    grid-template-columns: 1fr;
  }

  .candidate-choice-grid {
    grid-template-columns: 1fr;
  }

  .candidate-choice > span {
    min-height: 160px;
  }

  .candidate-choice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-choice-actions .button {
    width: 100%;
  }

  .uncertain-preview-grid {
    grid-template-columns: 1fr;
  }

  .result-photo {
    min-height: 420px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-item:nth-child(odd) {
    border-right: 0;
  }

  .result-tab-panel {
    padding: 16px;
  }

  .care-tile,
  .care-tile:nth-child(1),
  .care-tile:nth-child(6) {
    grid-column: span 12;
  }

  .place-panel,
  .health-panel {
    display: grid;
  }

  .purchase-grid {
    padding: 18px;
  }

  .purchase-links {
    grid-template-columns: 1fr;
  }

  .purchase-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .purchase-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px;
  }

  .purchase-card-icon {
    width: 44px;
    height: 44px;
  }

  .purchase-card-action {
    grid-column: 2;
    justify-self: start;
  }

  .affiliate-disclosure {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 15px;
  }

  .affiliate-disclosure-mark {
    width: 40px;
    height: 40px;
  }

  .progress-orbit {
    width: 110px;
    height: 110px;
    padding: 14px;
  }

  .progress-orbit::before {
    inset: 8px;
  }

  .progress-orbit strong {
    font-size: 1.4rem;
  }

  .progress-orbit span {
    font-size: 0.66rem;
  }

  .view-heading h1,
  .community-heading h1 {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.45rem, 6.2vw, 2rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mission-body h2 {
    overflow: hidden;
    font-size: clamp(1rem, 4.2vw, 1.32rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mission-view-tabs {
    width: 100%;
    margin-bottom: 22px;
  }

  .mission-view-tabs button {
    min-height: 48px;
    padding-left: 14px;
  }

  .mission-card {
    grid-template-columns: 1fr;
  }

  .mission-image {
    min-height: 220px;
  }

  .mission-body {
    padding: 20px;
  }

  .mission-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mission-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .upcoming-day-heading {
    align-items: start;
  }

  .upcoming-day-heading h2 {
    font-size: 1.12rem;
  }

  .upcoming-mission-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .upcoming-mission-row > img {
    width: 64px;
    height: 64px;
  }

  .upcoming-mission-icon {
    display: none;
  }

  .upcoming-mission-action {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-top: 2px;
  }

  .upcoming-mission-action .button {
    min-height: 42px;
  }

  .encyclopedia-grid,
  .encyclopedia-card:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr;
  }

  .encyclopedia-card:nth-child(3) {
    grid-column: auto;
  }

  .encyclopedia-card img,
  .encyclopedia-card:first-child img,
  .encyclopedia-card:nth-child(3) img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .data-card,
  .settings-save {
    grid-column: auto;
  }

  .settings-card {
    padding: 20px;
  }

  .account-actions {
    justify-content: stretch;
    margin-top: 16px;
    padding-top: 16px;
  }

  .account-actions .button {
    width: 100%;
  }

  .settings-save {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .site-footer p {
    text-align: left;
  }

  .app-dialog {
    padding: 20px;
  }

  .guest-mission-invite {
    display: grid;
    gap: 20px;
    padding: 24px 20px;
  }

  .guest-mission-invite .button {
    width: 100%;
  }

  .guest-benefit-grid {
    grid-template-columns: 1fr;
  }

  .guest-upsell-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guest-limit-actions {
    grid-template-columns: 1fr;
  }

  .guest-upsell-actions .button {
    width: 100%;
  }

  .register-dialog {
    max-height: calc(100dvh - 20px);
  }

  .register-dialog .dialog-plant {
    grid-template-columns: 68px 1fr;
  }

  .register-dialog .dialog-plant img {
    width: 68px;
    height: 68px;
  }

  .register-step {
    min-height: 0;
  }

  .register-plan dl,
  .register-success-summary {
    grid-template-columns: 1fr;
  }

  .register-plan dl div + div,
  .register-success-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .register-success-summary div {
    padding: 10px 4px;
  }

  .register-success-actions {
    grid-template-columns: 1fr;
  }

  .register-success-actions .button {
    width: 100%;
  }

  .register-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .register-dialog .dialog-actions .register-cancel,
  .register-dialog[data-active-step="0"] .dialog-actions [data-register-next] {
    grid-column: 1 / -1;
  }

  .register-cancel {
    margin-right: 0;
  }

  .state-options {
    grid-template-columns: 1fr;
  }

  .health-recovery-cta {
    grid-template-columns: auto 1fr;
  }

  .health-recovery-cta .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .recovery-empty-state,
  .recovery-overview {
    grid-template-columns: 1fr;
  }

  .recovery-empty-state > span {
    width: 48px;
    height: 48px;
  }

  .recovery-overview > img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .recovery-overview dl {
    grid-template-columns: 1fr;
  }

  .recovery-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recovery-panel-actions .button {
    width: 100%;
  }

  .recovery-history article {
    grid-template-columns: 92px 1fr;
  }

  .recovery-history article > img {
    width: 92px;
  }

  .recovery-dialog-summary {
    grid-template-columns: 72px 1fr;
  }

  .recovery-dialog-summary > img {
    width: 72px;
    height: 72px;
  }

  .recovery-status-options {
    grid-template-columns: 1fr;
  }

  .recovery-status-options label > span {
    min-height: 86px;
    grid-template-columns: 36px 1fr;
    justify-items: start;
    text-align: left;
  }

  .recovery-status-options label > span i {
    grid-row: 1 / 3;
    align-self: center;
    margin-bottom: 0;
  }

  .growth-empty-state,
  .growth-latest-card {
    grid-template-columns: 1fr;
  }

  .growth-empty-state > span {
    width: 50px;
    height: 50px;
  }

  .growth-latest-card > img {
    min-height: 0;
  }

  .growth-latest-card dl,
  .growth-change-summary {
    grid-template-columns: 1fr;
  }

  .growth-compare-selectors {
    grid-template-columns: 1fr;
  }

  .growth-compare-selectors > i {
    justify-self: center;
    padding-bottom: 0;
    transform: rotate(90deg);
  }

  .growth-side-by-side {
    gap: 6px;
  }

  .growth-side-by-side figcaption {
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
  }

  .growth-timeline-grid {
    grid-template-columns: 1fr;
  }

  .growth-timeline-grid article {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .growth-timeline-photo img {
    height: 100%;
    aspect-ratio: auto;
  }

  .growth-reference {
    grid-template-columns: 72px 1fr;
  }

  .growth-reference > img,
  .growth-reference > span {
    width: 72px;
    height: 72px;
  }

  .growth-fields {
    grid-template-columns: 1fr;
  }

  .growth-note-field {
    grid-column: auto;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}

/* 로그인 화면은 태블릿과 모바일에서도 한 화면 안에서 완결합니다. */
@media (max-width: 900px) {
  .auth-gate {
    --auth-media-height: clamp(108px, 16dvh, 150px);
    display: grid;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: var(--auth-media-height) minmax(0, 1fr);
    overflow: hidden;
    background: #eff0e5;
    overscroll-behavior: none;
  }

  .auth-showcase {
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--auth-media-height);
    min-height: 0;
    overflow: hidden;
  }

  .auth-showcase > :is(img, video) {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin-left: 0;
    object-fit: cover;
    object-position: center;
  }

  .auth-showcase-caption {
    right: 10px;
    bottom: 8px;
    left: 10px;
    max-width: none;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .auth-showcase-caption > span {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .auth-showcase-caption strong {
    font-size: 0.84rem;
  }

  .auth-showcase-caption p {
    overflow: hidden;
    margin-top: 1px;
    font-size: 0.7rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-panel {
    position: relative;
    inset: auto;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 12px 10px;
    overflow: hidden;
    background: transparent;
    pointer-events: auto;
  }

  .auth-card-shell {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: clamp(14px, 2.2dvh, 20px) 20px 12px;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
  }

  .auth-close-button {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .auth-brand {
    margin-bottom: clamp(6px, 1dvh, 10px);
  }

  .auth-brand .brand-mark {
    width: 32px;
    height: 32px;
  }

  .auth-content > .eyebrow {
    margin-bottom: 3px;
    font-size: 0.7rem;
  }

  .auth-content h2 {
    max-width: none;
    margin-bottom: 5px;
    font-size: clamp(1.5rem, 6.4vw, 1.9rem);
    line-height: 1.06;
  }

  .auth-intro {
    margin-bottom: 7px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .auth-tabs {
    padding: 4px;
    margin-bottom: 7px;
  }

  .auth-tabs button {
    min-height: 36px;
    font-size: 0.88rem;
  }

  .auth-kakao-button {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .auth-divider {
    margin: 5px 0;
    font-size: 0.66rem;
  }

  .auth-form {
    gap: 6px;
  }

  .auth-form > label {
    gap: 4px;
    font-size: 0.82rem;
  }

  .auth-form input {
    height: 40px;
    padding-inline: 13px;
    font-size: 0.86rem;
  }

  .auth-password-row input {
    padding-right: 46px;
  }

  .auth-password-row button {
    right: 5px;
    width: 34px;
    height: 34px;
  }

  .auth-form small {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .auth-message {
    min-height: 14px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .auth-submit {
    min-height: 40px;
    margin-top: 0;
    padding-inline: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .auth-gate {
    --auth-media-height: 96px;
  }

  .auth-brand {
    margin-bottom: 5px;
  }

  .auth-content > .eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 0.64rem;
  }

  .auth-content h2 {
    font-size: clamp(1.4rem, 6vw, 1.72rem);
  }

  .auth-intro {
    margin-bottom: 6px;
    font-size: 0.74rem;
  }

  .auth-tabs {
    margin-bottom: 6px;
  }

  .auth-card-shell {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .auth-form {
    gap: 5px;
  }

  .auth-form input,
  .auth-submit,
  .auth-kakao-button {
    height: 38px;
    min-height: 38px;
  }

  .auth-showcase-caption p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-like-button.is-liked i {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll,
  .home-view.is-active .hero-content > * {
    opacity: 1;
    transform: none;
  }

  .hero-media img,
  .hero:hover .hero-media img,
  .hero:hover .hero-content h1 {
    transform: none;
    filter: none;
  }

  .auth-showcase {
    background: #254832 url("assets/login-lemon-showcase.png") center / cover no-repeat;
  }

  .auth-background-video {
    display: none;
  }

  .guest-demo-ticker-track {
    animation-duration: 9s !important;
    animation-iteration-count: infinite !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .preview-toolbar,
  .auth-showcase-caption {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 로그인 카드 하단의 안내와 버튼까지 화면 안에서 한 번에 보이게 합니다. */
@media (min-width: 901px) {
  .auth-card-shell {
    top: 50%;
    height: auto;
    max-height: calc(100dvh - 32px);
    padding: clamp(20px, 1.9vw, 32px);
    overflow: hidden;
    transform: translateY(-50%);
  }

  .auth-brand {
    margin-bottom: clamp(10px, 1.6dvh, 16px);
  }

  .auth-content > .eyebrow {
    margin-bottom: 4px;
    font-size: 0.74rem;
  }

  .auth-content h2 {
    margin-bottom: 6px;
    font-size: clamp(1.65rem, 2.15vw, 2.05rem);
  }

  .auth-intro {
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .auth-tabs {
    margin-bottom: 10px;
  }

  .auth-tabs button {
    min-height: 38px;
  }

  .auth-kakao-button {
    min-height: 42px;
  }

  .auth-divider {
    margin: 7px 0;
  }

  .auth-form {
    gap: 8px;
  }

  .auth-form > label {
    gap: 4px;
    font-size: 0.9rem;
  }

  .auth-form input {
    height: 44px;
  }

  .auth-form small {
    font-size: 0.72rem;
  }

  .auth-submit {
    min-height: 44px;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .auth-gate {
    --auth-media-height: clamp(76px, 11dvh, 98px);
  }

  .auth-panel {
    padding: 0 12px 8px;
  }

  .auth-card-shell {
    display: flex;
    align-items: center;
    padding: clamp(10px, 1.7dvh, 14px) 18px 10px;
    transform: none;
  }

  .auth-brand {
    margin-bottom: 5px;
  }

  .auth-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .auth-content > .eyebrow {
    margin-bottom: 2px;
    font-size: 0.66rem;
  }

  .auth-content h2 {
    margin-bottom: 4px;
    font-size: clamp(1.35rem, 5.7vw, 1.72rem);
  }

  .auth-intro {
    margin-bottom: 5px;
    font-size: 0.75rem;
    line-height: 1.28;
  }

  .auth-tabs {
    margin-bottom: 5px;
  }

  .auth-tabs button,
  .auth-kakao-button,
  .auth-submit {
    min-height: 36px;
  }

  .auth-divider {
    margin: 4px 0;
  }

  .auth-form {
    gap: 5px;
  }

  .auth-form > label {
    gap: 3px;
    font-size: 0.78rem;
  }

  .auth-form input {
    height: 38px;
  }

  .auth-form small {
    font-size: 0.65rem;
  }

  .auth-message {
    min-height: 12px;
    font-size: 0.66rem;
  }
}
