:root {
  color-scheme: light;
  --ink: #24382d;
  --ink-soft: #617268;
  --cream: #f8f5ee;
  --paper: #fffdfa;
  --line: #e5e4da;
  --moss: #56745f;
  --moss-deep: #3f614b;
  --moss-pale: #e5eee5;
  --peach: #df8a67;
  --peach-pale: #faebe2;
  --amber: #c18b32;
  --amber-pale: #fbf2dc;
  --red: #ba5f59;
  --red-pale: #f8e6e2;
  --gray: #8c928c;
  --shadow: 0 16px 45px rgba(70, 84, 73, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --field-height: 43px;
  --field-radius: 11px;
  --field-padding-x: 12px;
  --field-font-size: 12px;
  --ornament-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 220'%3E%3Cg fill='none' stroke='%2324382d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M80 205C75 151 83 92 107 26'/%3E%3Cpath d='M88 145c-29-1-49-18-59-50 33 0 54 17 59 50Z'/%3E%3Cpath d='M94 106c30-5 50-25 61-59-37 5-58 25-61 59Z'/%3E%3Cpath d='M77 176c-21-1-37-12-47-33 25-2 42 9 47 33Z'/%3E%3Cpath d='M101 66c-18-10-27-28-27-53 25 11 34 29 27 53Z'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-cactus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%2324382d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M91 154V46c0-19 12-32 27-32s27 13 27 32v108'/%3E%3Cpath d='M91 82H70c-15 0-26-12-26-27 0-11 7-20 16-23v23c0 6 4 10 10 10h21'/%3E%3Cpath d='M145 98h14c12 0 21-9 21-21 0-9-5-17-13-20v20c0 5-3 8-8 8h-14'/%3E%3Cpath d='M51 154h111'/%3E%3Cpath d='M116 35v104M69 82v59M158 99v43'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-haworthia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 190'%3E%3Cg fill='none' stroke='%2324382d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M95 101C75 77 72 49 95 15c23 34 20 62 0 86Z'/%3E%3Cpath d='M88 105C54 91 36 67 36 29c34 19 50 43 52 76Z'/%3E%3Cpath d='M102 105c34-14 52-38 52-76-34 19-50 43-52 76Z'/%3E%3Cpath d='M83 114c-35 3-62-11-80-43 38 3 63 18 80 43Z'/%3E%3Cpath d='M107 114c35 3 62-11 80-43-38 3-63 18-80 43Z'/%3E%3Cpath d='M95 118c-21 14-31 31-32 51 24-5 38-21 32-51Z'/%3E%3Cpath d='M95 118c21 14 31 31 32 51-24-5-38-21-32-51Z'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-lithops: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 160'%3E%3Cg fill='none' stroke='%2324382d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M91 83c-14 43-54 56-76 27-23-31-3-84 37-91 26-5 42 19 39 64Z'/%3E%3Cpath d='M99 83c14 43 54 56 76 27 23-31 3-84-37-91-26-5-42 19-39 64Z'/%3E%3Cpath d='M95 28c-10 31-9 62 0 98'/%3E%3Cpath d='M47 58c11 3 21 4 30 2M143 58c-11 3-21 4-30 2'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-caudex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 210'%3E%3Cg fill='none' stroke='%2324382d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M84 66c-17 21-31 51-31 84 0 29 13 45 32 45s33-16 33-45c0-33-14-63-34-84Z'/%3E%3Cpath d='M84 66V16'/%3E%3Cpath d='M84 36c-22 1-38-9-49-31 25 0 42 10 49 31Z'/%3E%3Cpath d='M87 30c20-11 39-11 58 1-22 15-42 15-58-1Z'/%3E%3Cpath d='M82 56c-26 4-47-4-62-24 29-3 50 5 62 24Z'/%3E%3Cpath d='M88 54c23-3 42 3 57 18-25 8-44 2-57-18Z'/%3E%3Cpath d='M62 168c15 8 32 8 50 0'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1eadc;
  --ink-soft: #aebdad;
  --cream: #101915;
  --paper: #17231e;
  --line: rgba(220, 229, 211, 0.15);
  --moss: #9eb89d;
  --moss-deep: #c5d6bd;
  --moss-pale: #24352e;
  --peach: #d49a78;
  --peach-pale: #3a2a22;
  --amber: #d1ab64;
  --amber-pale: #3a331f;
  --red: #dc817a;
  --red-pale: #432622;
  --gray: #a8b1a8;
  --shadow: 0 18px 48px rgba(2, 10, 7, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

html[data-theme="dark"] {
  background: #101915;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(229, 238, 229, 0.52), transparent 26%),
    linear-gradient(180deg, #fbf8f0 0%, var(--cream) 42%, #f6f2ea 100%);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  transition:
    background 220ms ease,
    color 180ms ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 89, 72, 0.34), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(96, 121, 91, 0.18), transparent 28%),
    linear-gradient(180deg, #14201b 0%, #101915 48%, #0d1512 100%);
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.sidebar,
.mobile-header,
.mobile-nav,
.plant-card,
.overview-card,
.detail-photo,
.journey-panel,
.detail-section,
.personal-note,
.setup-box,
.compare-photo,
.filmstrip-stat,
.filmstrip-card,
.timeline-card,
.global-timeline-card,
.check-card,
.modal,
input,
select,
textarea,
.icon-button,
.small-button,
.button,
.chip {
  transition:
    background-color 190ms ease,
    color 180ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  width: 228px;
  flex-direction: column;
  padding: 28px 20px 20px;
  border-right: 1px solid rgba(229, 228, 218, 0.78);
  background: rgba(255, 253, 250, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  border-radius: 14px 14px 14px 4px;
  background: var(--moss-deep);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.nav-link,
.mobile-nav-link {
  border: 0;
  color: var(--ink-soft);
  background: transparent;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 var(--moss-deep);
}

.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 30px;
  color: var(--moss-deep);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(229, 228, 218, 0.72);
  border-radius: 13px;
  background: rgba(255, 253, 250, 0.5);
}

.theme-option {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: 160ms ease;
}

.theme-option:hover,
.theme-option.active {
  color: var(--moss-deep);
  background: var(--paper);
  box-shadow: 0 7px 18px rgba(70, 84, 73, 0.08);
}

.sidebar-quote {
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: #f2f2e9;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 12px;
}

.profile small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--peach);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  margin-left: 228px;
}

.content {
  position: relative;
  isolation: isolate;
  width: min(100%, 1500px);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 48px 52px 64px;
}

.content::before {
  position: absolute;
  inset: 28px 34px 40px;
  z-index: -1;
  border: 1px solid rgba(229, 228, 218, 0.55);
  border-radius: 34px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 22px 70px rgba(70, 84, 73, 0.035);
  content: "";
  pointer-events: none;
}

.content::after {
  position: absolute;
  right: 42px;
  bottom: 26px;
  z-index: -1;
  width: 134px;
  height: 160px;
  background: var(--ornament-sprig) center / contain no-repeat;
  content: "";
  opacity: 0.022;
  pointer-events: none;
}

.mobile-header,
.mobile-nav {
  display: none;
}

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

.mobile-theme-toggle {
  width: 104px;
  flex: 0 0 auto;
}

.page-heading,
.section-heading,
.detail-topline,
.check-title-row,
.modal-heading,
.timeline-topline,
.card-meta,
.card-footer,
.quick-actions,
.filter-row,
.tag-row {
  display: flex;
  align-items: center;
}

.page-heading {
  position: relative;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
}

.page-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(178px, 36vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(86, 116, 95, 0.22), rgba(86, 116, 95, 0));
  content: "";
}

.page-heading h1 {
  position: relative;
}

.page-heading h1::after {
  display: block;
  width: 26px;
  height: 8px;
  margin-top: 8px;
  background: var(--ornament-sprig) left center / 26px 35px no-repeat;
  content: "";
  opacity: 0.038;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--peach);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin-bottom: 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.subtitle {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.button,
.icon-button,
.chip,
.small-button {
  border: 0;
  transition: 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.button-primary {
  color: white;
  background: var(--moss-deep);
  box-shadow: 0 8px 18px rgba(63, 97, 75, 0.2);
}

.button-primary:hover {
  background: #34563f;
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.button-ghost {
  color: var(--ink-soft);
  background: transparent;
}

.button-danger {
  color: white;
  background: var(--red);
}

.button-danger:hover {
  background: #a94f4a;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--paper);
}

.icon-button:hover {
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  margin-top: 36px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--ink-soft);
  transform: translateY(-50%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--field-radius);
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.9);
  font-size: var(--field-font-size);
  transition: 160ms ease;
}

input,
select {
  height: var(--field-height);
  min-height: var(--field-height);
  padding: 0 var(--field-padding-x);
  line-height: var(--field-height);
}

select {
  display: block;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(86, 116, 95, 0.1);
}

.search-box input {
  padding-left: 43px;
}

.filter-row {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row select {
  width: auto;
  min-width: 120px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.plants-summary {
  margin: 22px 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 27px;
}

.overview-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(229, 228, 218, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, 0.76);
}

.overview-card::after {
  position: absolute;
  right: -15px;
  bottom: -19px;
  width: 52px;
  height: 62px;
  background: var(--ornament-sprig) center / contain no-repeat;
  content: "";
  opacity: 0.02;
  pointer-events: none;
}

.overview-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.overview-icon svg {
  width: 17px;
  height: 17px;
}

.overview-card.monitor .overview-icon {
  color: #9a6b25;
  background: var(--amber-pale);
}

.overview-card.risk .overview-icon {
  color: var(--red);
  background: var(--red-pale);
}

.overview-card small,
.overview-card strong {
  display: block;
}

.overview-card small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

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

.plant-card {
  overflow: hidden;
  border: 1px solid rgba(229, 228, 218, 0.9);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 7px 24px rgba(70, 84, 73, 0.05);
  cursor: pointer;
  transition: 190ms ease;
}

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

.plant-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.42;
  background: #d8ddcf;
}

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

.photo-overlay {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 50px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.9);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
}

.health-monitor .badge-dot {
  background: var(--amber);
}

.health-risk .badge-dot {
  background: var(--red);
}

.health-archived .badge-dot {
  background: var(--gray);
}

.plant-card-body {
  padding: 12px 13px 13px;
}

.card-meta {
  justify-content: space-between;
  gap: 8px;
}

.category {
  color: #bf6f50;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px 8px 13px;
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(229, 238, 229, 0.6);
  font-size: 10px;
  font-weight: 700;
}

.backup-row div {
  display: flex;
  gap: 6px;
}

.backup-row .small-button {
  padding: 7px 9px;
}

.sample-clear-button {
  color: #8a6d64;
  background: rgba(255, 255, 255, 0.5);
}

.status {
  padding: 3px 6px;
  border-radius: 20px;
  color: var(--moss-deep);
  background: var(--moss-pale);
  font-size: 8px;
  font-weight: 700;
  opacity: 0.84;
  text-transform: uppercase;
}

.status.quarantine {
  color: #9a6530;
  background: var(--amber-pale);
}

.status.archived {
  color: #6a716b;
  background: #ebeeea;
}

.status.adaptation {
  color: #976147;
  background: var(--peach-pale);
}

.plant-card h3 {
  margin-top: 7px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.card-footer {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer i {
  color: var(--moss);
}

.card-footer svg {
  width: 14px;
  height: 14px;
}

.card-footer em {
  color: #87938a;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tiny-label {
  display: block;
  margin-bottom: 3px;
  color: #95a097;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-state {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px dashed #cad4ca;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  text-align: center;
}

.empty-state::after {
  position: absolute;
  right: 20px;
  bottom: -30px;
  width: 110px;
  height: 124px;
  background: var(--ornament-haworthia) center / contain no-repeat;
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  color: var(--moss);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 34px;
}

.detail-sticky {
  position: relative;
  isolation: isolate;
  align-self: start;
}

.detail-sticky::after {
  position: absolute;
  top: 72px;
  left: -34px;
  z-index: -1;
  width: 170px;
  height: 205px;
  background: var(--ornament-sprig) center / contain no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.detail-photo {
  overflow: hidden;
  aspect-ratio: 0.9;
  border-radius: var(--radius-lg);
  background: #d8ddcf;
  box-shadow: var(--shadow);
}

.detail-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 2px 0;
}

.detail-intro::after {
  position: absolute;
  top: 8px;
  right: -20px;
  z-index: 0;
  width: 142px;
  height: 142px;
  background: var(--ornament-sprig) center / contain no-repeat;
  content: "";
  opacity: 0.06;
  pointer-events: none;
}

.detail-intro > * {
  position: relative;
  z-index: 1;
}

.detail-intro.watermark-cactus::after {
  background-image: var(--ornament-cactus);
}

.detail-intro.watermark-haworthia::after {
  background-image: var(--ornament-haworthia);
}

.detail-intro.watermark-lithops::after {
  background-image: var(--ornament-lithops);
}

.detail-intro.watermark-caudex::after {
  background-image: var(--ornament-caudex);
}

.detail-topline {
  justify-content: space-between;
  gap: 10px;
}

.detail-intro h1 {
  margin-top: 12px;
}

.latin-name {
  color: var(--ink-soft);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.detail-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 3px;
}

.edit-plant-button,
.delete-plant-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--moss);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.edit-plant-button:hover {
  color: var(--moss-deep);
}

.delete-plant-button {
  color: #9b827a;
}

.delete-plant-button:hover {
  color: #8c5f58;
}

.edit-plant-button svg,
.delete-plant-button svg {
  width: 14px;
  height: 14px;
}

.quick-panel {
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--moss-pale);
}

.quick-panel p {
  margin-bottom: 11px;
  color: var(--moss-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-actions {
  flex-wrap: wrap;
  gap: 7px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--moss-deep);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.small-button:hover {
  background: white;
}

.detail-content {
  padding-top: 34px;
}

.journey-panel {
  padding: 19px;
  border-radius: var(--radius-md);
  background: var(--moss-pale);
}

.journey-panel .section-heading {
  margin-bottom: 13px;
}

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

.journey-grid div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.journey-grid small,
.journey-grid strong {
  display: block;
}

.journey-grid small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-grid strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
}

.detail-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.journal-section {
  padding-top: 26px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-section .section-heading h2::after,
.journey-panel .section-heading h2::after {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(86, 116, 95, 0.24), rgba(86, 116, 95, 0));
  content: "";
}

.plant-notes-section,
.setup-section {
  padding-top: 25px;
}

.plant-notes-section h2,
.setup-section h2 {
  font-size: 24px;
}

.personal-note {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border-left: 3px solid var(--peach);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  color: var(--ink);
  background: #fbf3eb;
}

.personal-note span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #a86148;
  background: rgba(255, 255, 255, 0.58);
}

.personal-note svg {
  width: 16px;
  height: 16px;
}

.personal-note p {
  margin: 2px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

.archive-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--ink-soft);
}

.archive-facts span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.archive-facts i {
  color: var(--moss);
}

.archive-facts svg {
  width: 13px;
  height: 13px;
}

.archive-facts small {
  color: #87938a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-facts strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.setup-section {
  padding-bottom: 7px;
  border-bottom: 0;
}

.setup-edit-button {
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.setup-box {
  position: relative;
  min-height: 84px;
  padding: 13px;
  border: 1px solid rgba(229, 228, 218, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, 0.5);
}

.setup-box.full {
  grid-column: 1 / -1;
}

.setup-box > span {
  color: var(--moss);
}

.setup-box svg {
  width: 15px;
  height: 15px;
}

.setup-box small,
.setup-box strong {
  display: block;
}

.setup-box small {
  margin-top: 12px;
  color: #87938a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-box strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

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

.info-box {
  min-height: 77px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, 0.76);
}

.compare-mode {
  width: auto;
  min-width: 170px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

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

.compare-photo {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.compare-photo img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
}

.compare-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.compare-photo figcaption strong {
  color: var(--ink);
}

.compare-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.compare-selects label span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-selects select {
  color: var(--ink-soft);
  font-size: 11px;
}

.filmstrip-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.filmstrip-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, 0.62);
}

.filmstrip-stat small {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filmstrip-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
}

.growth-filmstrip {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 2px 2px 11px;
  scroll-snap-type: x proximity;
  scrollbar-color: #cdd8ce transparent;
}

.filmstrip-card {
  flex: 0 0 168px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: left;
  scroll-snap-align: start;
  transition: 170ms ease;
}

.filmstrip-card:hover {
  transform: translateY(-2px);
  border-color: #ced8cf;
  box-shadow: 0 10px 24px rgba(70, 84, 73, 0.08);
}

.filmstrip-card img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  background: var(--moss-pale);
}

.filmstrip-card-body {
  display: grid;
  gap: 5px;
  padding: 10px 11px 11px;
}

.filmstrip-card time {
  color: var(--moss-deep);
  font-size: 10px;
  font-weight: 800;
}

.filmstrip-card strong {
  color: var(--ink);
  font-size: 12px;
}

.filmstrip-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-style: normal;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compare-empty,
.timeline-empty {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px dashed #cad4ca;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: rgba(255, 253, 250, 0.44);
  text-align: center;
}

.compare-empty::after,
.timeline-empty::after {
  position: absolute;
  right: 18px;
  bottom: -24px;
  width: 88px;
  height: 100px;
  background: var(--ornament-lithops) center / contain no-repeat;
  content: "";
  opacity: 0.024;
  pointer-events: none;
}

.compare-empty svg,
.timeline-empty svg {
  width: 23px;
  height: 23px;
  margin: 0 auto 8px;
  color: var(--moss);
}

.compare-empty strong,
.timeline-empty strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.compare-empty p,
.timeline-empty p {
  max-width: 390px;
  margin: 6px auto 0;
  font-size: 11px;
  line-height: 1.6;
}

.photo-preview-dialog {
  display: grid;
  gap: 14px;
}

.photo-preview-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.photo-preview-figure img {
  width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
  background: var(--moss-pale);
}

.photo-preview-copy {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 250, 0.62);
}

.photo-preview-copy small {
  display: block;
  color: var(--moss-deep);
  font-size: 10px;
  font-weight: 800;
}

.photo-preview-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.photo-preview-copy p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.chip {
  padding: 7px 10px;
  border-radius: 30px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 10px;
  font-weight: 800;
}

.chip:hover,
.chip.active {
  color: var(--moss-deep);
  background: var(--moss-pale);
}

.info-box strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-list::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
}

.timeline-dot {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 22px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 2px var(--moss-pale);
}

.timeline-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: 170ms ease;
}

.timeline-card:hover {
  border-color: #ced8cf;
  box-shadow: 0 8px 22px rgba(70, 84, 73, 0.06);
}

.timeline-card.no-photo {
  grid-template-columns: 1fr;
}

.timeline-photo {
  min-height: 136px;
  background: var(--moss-pale);
}

.timeline-body {
  padding: 15px;
}

.timeline-topline {
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.timeline-topline time {
  color: var(--moss-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.timeline-body h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

.activity-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach);
}

.timeline-body p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.timeline-entry-actions {
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

.timeline-entry-actions button {
  padding: 0;
  border: 0;
  color: var(--moss);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.timeline-entry-actions button:hover {
  color: var(--moss-deep);
}

.timeline-entry-actions button + button {
  color: #9b827a;
}

.timeline-entry-actions button + button:hover {
  color: #8c5f58;
}

.condition {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 30px;
  color: var(--moss-deep);
  background: var(--moss-pale);
  font-size: 9px;
  font-weight: 800;
}

.condition.concern,
.condition.stress {
  color: #9b6041;
  background: var(--peach-pale);
}

.global-timeline {
  display: grid;
  max-width: 900px;
  gap: 20px;
  margin-top: 33px;
}

.global-day h3 {
  margin-bottom: 10px;
  color: var(--moss-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.global-timeline-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: 160ms ease;
}

.global-timeline-card + .global-timeline-card {
  margin-top: 8px;
}

.global-timeline-card:hover {
  border-color: #cad4ca;
  box-shadow: 0 8px 24px rgba(70, 84, 73, 0.07);
}

.global-timeline-card img {
  width: 108px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.global-timeline-card h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.global-timeline-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.check-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.check-title-row {
  gap: 10px;
}

.check-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--peach);
  background: var(--peach-pale);
}

.check-title-row p,
.check-title-row h3 {
  margin: 0;
}

.check-title-row p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #faf9f4;
  text-align: left;
}

.check-item:hover {
  background: var(--moss-pale);
}

.check-item img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

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

.check-item strong {
  font-size: 11px;
}

.check-item small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.check-empty {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 22px;
  background: rgba(36, 56, 45, 0.32);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 630px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(36, 56, 45, 0.24);
}

.modal-heading {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 13px 14px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  line-height: 1.2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field textarea {
  min-height: 88px;
  padding: 11px;
  resize: vertical;
}

.photo-upload-shell {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #c8d4c9;
  border-radius: var(--radius-sm);
  background: rgba(229, 238, 229, 0.42);
}

.upload-preview {
  display: grid;
  width: 122px;
  height: 92px;
  place-items: center;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: var(--moss);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  cursor: pointer;
}

.upload-preview svg {
  width: 21px;
  height: 21px;
}

.upload-preview small {
  max-width: 86px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.35;
}

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

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--moss-deep);
  cursor: pointer;
}

.upload-button:hover {
  background: #34563f;
}

.upload-button svg {
  width: 15px;
  height: 15px;
}

.upload-button strong {
  font-size: 11px;
}

.upload-button small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-actions p {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-photo-button {
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: #9b827a;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.remove-photo-button:hover {
  color: #8c5f58;
}

.hidden {
  display: none;
}

.advanced-photo {
  margin-top: 9px;
}

.advanced-photo input {
  width: 100%;
  margin-top: 7px;
}

.advanced-photo summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.confirm-copy {
  padding: 15px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--red-pale);
}

.confirm-copy p {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.confirm-copy small {
  color: #8c625d;
  font-size: 11px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 11px;
  color: white;
  background: var(--moss-deep);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .sidebar {
  border-right-color: rgba(220, 229, 211, 0.12);
  background: rgba(18, 29, 24, 0.88);
}

html[data-theme="dark"] .mobile-header,
html[data-theme="dark"] .mobile-nav {
  border-color: rgba(220, 229, 211, 0.12);
  background: rgba(18, 29, 24, 0.92);
}

html[data-theme="dark"] .brand-mark {
  color: #102018;
  background: var(--moss-deep);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(220, 229, 211, 0.13);
  background: rgba(11, 20, 16, 0.42);
}

html[data-theme="dark"] .theme-option.active,
html[data-theme="dark"] .theme-option:hover {
  background: rgba(197, 214, 189, 0.11);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .sidebar-quote,
html[data-theme="dark"] .backup-row,
html[data-theme="dark"] .quick-panel,
html[data-theme="dark"] .journey-panel {
  background: rgba(36, 53, 46, 0.74);
}

html[data-theme="dark"] .nav-count,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .small-button,
html[data-theme="dark"] .journey-grid div,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .filmstrip-stat,
html[data-theme="dark"] .photo-preview-copy,
html[data-theme="dark"] .info-box {
  background: rgba(241, 234, 220, 0.06);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .sample-clear-button,
html[data-theme="dark"] .setup-box,
html[data-theme="dark"] .compare-empty,
html[data-theme="dark"] .timeline-empty {
  background: rgba(23, 35, 30, 0.86);
}

html[data-theme="dark"] .small-button:hover {
  background: rgba(241, 234, 220, 0.1);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(174, 189, 173, 0.64);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(158, 184, 157, 0.16);
}

html[data-theme="dark"] .content::before {
  border-color: rgba(220, 229, 211, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(241, 234, 220, 0.05),
    0 22px 70px rgba(2, 10, 7, 0.2);
}

html[data-theme="dark"] .content::after,
html[data-theme="dark"] .overview-card::after,
html[data-theme="dark"] .empty-state::after,
html[data-theme="dark"] .detail-sticky::after,
html[data-theme="dark"] .detail-intro::after,
html[data-theme="dark"] .compare-empty::after,
html[data-theme="dark"] .timeline-empty::after,
html[data-theme="dark"] .page-heading h1::after {
  filter: invert(91%) sepia(12%) saturate(260%) hue-rotate(54deg);
}

html[data-theme="dark"] .plant-card,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .compare-photo,
html[data-theme="dark"] .filmstrip-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .global-timeline-card,
html[data-theme="dark"] .check-card,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .photo-preview-figure,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .compare-empty,
html[data-theme="dark"] .timeline-empty {
  border-color: rgba(220, 229, 211, 0.13);
  background: rgba(23, 35, 30, 0.94);
  box-shadow: 0 14px 38px rgba(2, 10, 7, 0.18);
}

html[data-theme="dark"] .plant-card:hover,
html[data-theme="dark"] .filmstrip-card:hover,
html[data-theme="dark"] .timeline-card:hover,
html[data-theme="dark"] .global-timeline-card:hover {
  border-color: rgba(197, 214, 189, 0.24);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .plant-photo,
html[data-theme="dark"] .detail-photo,
html[data-theme="dark"] .timeline-photo,
html[data-theme="dark"] .filmstrip-card img,
html[data-theme="dark"] .photo-preview-figure img {
  background: #23322a;
}

html[data-theme="dark"] .personal-note {
  border-left-color: rgba(212, 154, 120, 0.82);
  background: rgba(58, 42, 34, 0.72);
}

html[data-theme="dark"] .personal-note span,
html[data-theme="dark"] .upload-preview {
  background: rgba(241, 234, 220, 0.07);
}

html[data-theme="dark"] .archive-facts small,
html[data-theme="dark"] .card-footer em,
html[data-theme="dark"] .tiny-label,
html[data-theme="dark"] .setup-box small {
  color: rgba(174, 189, 173, 0.72);
}

html[data-theme="dark"] .category {
  color: var(--peach);
}

html[data-theme="dark"] .status.archived {
  color: #bac5ba;
  background: rgba(174, 189, 173, 0.11);
}

html[data-theme="dark"] .photo-upload-shell {
  border-color: rgba(158, 184, 157, 0.28);
  background: rgba(36, 53, 46, 0.52);
}

html[data-theme="dark"] .check-item {
  color: var(--ink);
  background: rgba(241, 234, 220, 0.045);
}

html[data-theme="dark"] .check-item:hover {
  background: rgba(36, 53, 46, 0.86);
}

html[data-theme="dark"] .modal-backdrop {
  background: rgba(5, 12, 9, 0.62);
}

html[data-theme="dark"] .upload-button,
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .toast {
  color: #102018;
  background: var(--moss-deep);
}

html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .upload-button:hover {
  background: #d4e2ce;
}

html[data-theme="dark"] .button-danger {
  color: #fff6ee;
  background: #a9504b;
}

html[data-theme="dark"] .confirm-copy {
  background: rgba(67, 38, 34, 0.86);
}

html[data-theme="dark"] .confirm-copy small,
html[data-theme="dark"] .delete-plant-button,
html[data-theme="dark"] .timeline-entry-actions button + button,
html[data-theme="dark"] .remove-photo-button {
  color: #d49a8f;
}

@media (min-width: 1250px) {
  .plant-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 200px;
  }

  .app-shell {
    margin-left: 200px;
  }

  .content {
    padding: 40px 32px 54px;
  }

  .content::before {
    inset: 22px 20px 32px;
    border-radius: 26px;
  }

  .content::after {
    right: 22px;
    bottom: 20px;
    width: 94px;
    height: 112px;
    opacity: 0.018;
  }

  .plant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 24px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 70px;
  }

  .sidebar {
    display: none;
  }

  .app-shell {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 250, 0.85);
  }

  .mobile-header .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-header .brand strong {
    font-size: 19px;
  }

  .mobile-header .brand small {
    font-size: 8px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 250, 0.95);
    backdrop-filter: blur(10px);
  }

  .mobile-nav-link {
    display: grid;
    min-height: 62px;
    place-items: center;
    align-content: center;
    gap: 4px;
  }

  .mobile-nav-link svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-link small {
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-nav-link.active {
    color: var(--moss-deep);
  }

  .content {
    padding: 27px 17px 36px;
  }

  .content::before {
    inset: 14px 10px 22px;
    border-radius: 22px;
  }

  .content::after {
    width: 72px;
    height: 88px;
    opacity: 0.014;
  }

  h1 {
    font-size: 38px;
  }

  .page-heading {
    padding-bottom: 13px;
  }

  .page-heading h1::after {
    width: 22px;
    margin-top: 7px;
    background-size: 22px 30px;
  }

  .page-heading .button {
    display: none;
  }

  .toolbar {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .collection-overview {
    gap: 8px;
    margin-top: 22px;
  }

  .overview-card {
    min-height: 58px;
    padding: 9px 10px;
  }

  .overview-icon {
    width: 29px;
    height: 29px;
  }

  .overview-card small {
    font-size: 8px;
  }

  .overview-card strong {
    font-size: 18px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-row {
    display: block;
    line-height: 1.5;
  }

  .backup-row div {
    margin-top: 7px;
  }

  .filter-row select {
    width: 100%;
    min-width: 0;
  }

  .plants-summary {
    margin-top: 22px;
  }

  .plant-grid {
    gap: 12px;
  }

  .plant-photo {
    aspect-ratio: 1.08;
  }

  .plant-card-body {
    padding: 10px;
  }

  .plant-card h3 {
    margin-top: 6px;
    font-size: 17px;
  }

  .status,
  .photo-overlay .badge {
    font-size: 8px;
  }

  .card-footer {
    gap: 5px;
    margin-top: 9px;
    font-size: 9px;
  }

  .card-footer em {
    display: none;
  }

  .card-footer svg {
    width: 12px;
    height: 12px;
  }

  .detail-layout {
    display: block;
  }

  .detail-photo {
    aspect-ratio: 1.2;
  }

  .detail-intro::after {
    right: -32px;
    width: 72px;
    height: 72px;
    opacity: 0.014;
  }

  .detail-content {
    padding-top: 12px;
  }

  .journey-panel {
    margin-top: 17px;
    padding: 14px;
  }

  .compare-section .section-heading {
    display: block;
  }

  .compare-mode {
    width: 100%;
    margin-top: 11px;
  }

  .compare-selects {
    grid-template-columns: 1fr;
  }

  .filmstrip-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filmstrip-card {
    flex-basis: 150px;
  }

  .filmstrip-card-body {
    padding: 9px 10px 11px;
  }

  .info-grid {
    gap: 9px;
  }

  .info-box {
    min-height: 68px;
    padding: 11px;
  }

  .info-box strong {
    font-size: 11px;
  }

  .personal-note p {
    font-size: 16px;
  }

  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline-photo {
    min-height: 126px;
  }

  .timeline-body {
    padding: 12px;
  }

  .global-timeline-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .global-timeline-card img {
    width: 72px;
    height: 63px;
  }

  .global-timeline-card .condition {
    display: none;
  }

  .check-grid {
    grid-template-columns: 1fr;
    margin-top: 23px;
  }

  .modal {
    padding: 18px;
  }

  .photo-upload-shell {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .upload-preview {
    width: 94px;
    height: 82px;
  }

  .upload-button {
    display: flex;
    flex-wrap: wrap;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}
