:root {
  color-scheme: light;
  --forest: #29483c;
  --forest-deep: #17342b;
  --leaf: #6f9278;
  --rose: #b56f76;
  --sky: #8eb9c5;
  --gold: #c8a45c;
  --ink: #26322d;
  --muted: #69756f;
  --surface: #ffffff;
  --surface-soft: #eef3f0;
  --border: rgba(38, 50, 45, 0.13);
  --shadow: 0 18px 50px rgba(18, 37, 31, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--forest-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.landscape {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100lvh;
  backface-visibility: hidden;
  background: url("assets/vaucluse-living-sky.png") center / cover no-repeat;
  contain: paint;
  transform: translateZ(0);
}

.landscape::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(243, 248, 245, 0.94) 0%, rgba(243, 248, 245, 0.78) 34%, rgba(243, 248, 245, 0.56) 72%, rgba(23, 52, 43, 0.14) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(23, 52, 43, 0.08));
}

.app-frame {
  display: grid;
  width: 100%;
  min-height: 100lvh;
  grid-template-columns: 232px minmax(0, 1fr);
  background: transparent;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100svh;
  padding: 18px 14px;
  background: transparent;
}

.sidebar-brand {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--forest-deep);
  background: transparent;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: left;
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}

.app-navigation {
  display: grid;
  gap: 5px;
  margin-top: 28px;
}

.nav-link {
  display: grid;
  min-height: 58px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.15;
  transition: color 140ms ease, background 140ms ease;
}

.nav-link:hover {
  color: var(--forest-deep);
  background: rgba(111, 146, 120, 0.09);
}

.nav-link.is-active {
  color: var(--forest-deep);
  background: rgba(111, 146, 120, 0.16);
}

.icon-shell {
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--surface-soft);
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-icon {
  width: 24px;
  height: 24px;
}

.tone-animaux {
  color: #9b5d65;
  background: rgba(181, 111, 118, 0.14);
}

.tone-proprietaires {
  color: #337c84;
  background: rgba(142, 185, 197, 0.2);
}

.tone-faune-flore {
  color: #4f7859;
  background: rgba(111, 146, 120, 0.17);
}

.tone-pourquoi {
  color: #997532;
  background: rgba(200, 164, 92, 0.19);
}

.app-workspace {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(20px, 4vw, 44px);
  background: transparent;
}

.icon-button,
.mobile-home-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  font-size: 1.3rem;
}

.mobile-home-button {
  display: none;
}

.view-title {
  overflow: hidden;
  color: var(--forest-deep);
  font-size: 1rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  width: min(100%, 1120px);
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  outline: none;
}

.screen {
  animation: screen-in 160ms ease-out;
}

.screen-heading {
  margin: 0 0 24px;
  color: var(--forest-deep);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.1;
}

.theme-actions {
  display: grid;
  max-width: 1000px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
}

.theme-action {
  display: grid;
  min-height: 154px;
  grid-template-columns: 92px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 20px;
  padding: 18px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition: transform 140ms ease, background 140ms ease;
}

.theme-action:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}

.theme-action-icon {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.theme-action-icon .app-icon {
  width: 48px;
  height: 48px;
}

.theme-action-label {
  color: var(--forest-deep);
  font-size: 1.22rem;
  font-weight: 780;
  line-height: 1.2;
}

.action-chevron,
.list-chevron {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

.app-list {
  display: grid;
  max-width: 820px;
  gap: 4px;
}

.category-layout {
  display: grid;
  max-width: 1000px;
  gap: 36px;
}

.category-layout.has-information {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: start;
}

.category-layout .app-list {
  max-width: none;
}

.information-rail {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.information-title {
  margin: 0 0 8px;
  color: var(--forest-deep);
  font-size: 1.08rem;
  line-height: 1.2;
}

.information-action {
  display: grid;
  min-height: 104px;
  grid-template-columns: 68px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  transition: background 140ms ease, transform 140ms ease;
}

.information-action:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateX(3px);
}

.information-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 8px;
  color: #9b5d65;
  background: rgba(181, 111, 118, 0.16);
}

.information-alimentation .information-icon {
  color: #4f7859;
  background: rgba(111, 146, 120, 0.2);
}

.information-icon .app-icon {
  width: 34px;
  height: 34px;
}

.information-label {
  color: var(--forest-deep);
  font-size: 1rem;
  line-height: 1.25;
}

.information-chevron {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

.app-list-row {
  display: grid;
  min-height: 88px;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 8px;
  border-radius: 8px;
  transition: background 140ms ease;
}

.app-list-row:hover {
  background: rgba(255, 255, 255, 0.3);
}

.list-leading {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.list-leading.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.list-generic-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.list-title {
  color: var(--forest-deep);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.nature-boards {
  display: grid;
  max-width: 1000px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.nature-board {
  min-height: 280px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.nature-board-faune {
  background: rgba(142, 185, 197, 0.2);
}

.nature-board-flore {
  background: rgba(111, 146, 120, 0.2);
}

.nature-board-title {
  margin: 0 0 16px;
  color: var(--forest-deep);
  font-size: 1.2rem;
  line-height: 1.2;
}

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

.nature-entry {
  display: grid;
  min-height: 112px;
  grid-template-columns: 88px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 140ms ease, transform 140ms ease;
}

.nature-entry:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(3px);
}

.nature-entry-portrait {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nature-entry-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nature-entry-copy {
  display: grid;
  gap: 5px;
}

.nature-entry-title {
  color: var(--forest-deep);
  font-size: 1rem;
  line-height: 1.22;
}

.nature-entry-scientific {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.nature-entry-chevron {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

.nature-board-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--forest);
  text-align: center;
}

.nature-board-empty .app-icon {
  width: 42px;
  height: 42px;
}

.nature-board-empty p {
  max-width: 24ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plant-guide-screen {
  max-width: 1040px;
  padding-bottom: 40px;
}

.plant-guide-intro {
  max-width: 72ch;
  margin: -8px 0 26px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.plant-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.plant-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.plant-table th,
.plant-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(38, 50, 45, 0.11);
  color: var(--ink);
  text-align: left;
  vertical-align: middle;
}

.plant-table th {
  color: var(--forest-deep);
  background: rgba(111, 146, 120, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.plant-table tbody tr:last-child td {
  border-bottom: 0;
}

.plant-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.34);
}

.plant-cell {
  display: flex;
  min-width: 330px;
  align-items: center;
  gap: 14px;
}

.plant-cell img {
  width: 104px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-soft);
}

.plant-cell strong,
.plant-cell em {
  display: block;
}

.plant-cell strong {
  color: var(--forest-deep);
  font-size: 0.98rem;
}

.plant-cell em {
  margin-top: 2px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.plant-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #244b35;
  background: rgba(79, 125, 85, 0.12);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.plant-chip-danger {
  color: #8f3030;
  background: rgba(165, 58, 58, 0.12);
}

.muted-cell {
  color: var(--muted) !important;
}

.species-detail-screen {
  max-width: 1040px;
  padding-bottom: 40px;
}

.species-hero {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
  margin-bottom: 34px;
}

.species-portrait {
  display: grid;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.species-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.species-introduction {
  display: grid;
  align-content: center;
  gap: 10px;
}

.species-title {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 790;
  line-height: 1.02;
}

.species-scientific-name {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.species-subtitle {
  max-width: 30ch;
  margin: 6px 0 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.35;
}

.species-audio-control {
  display: flex;
  margin-top: 10px;
}

.species-audio-button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--forest-deep);
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.species-audio-button:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: scale(1.04);
}

.species-audio-button.is-playing {
  color: #ffffff;
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(181, 111, 118, 0.18);
}

.species-audio-button .app-icon {
  width: 26px;
  height: 26px;
}

.species-identity,
.species-observations {
  margin-bottom: 34px;
}

.species-identity {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
}

.species-section-title {
  margin: 0 0 18px;
  color: var(--forest-deep);
  font-size: 1.35rem;
  line-height: 1.2;
}

.identity-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.identity-fact {
  display: grid;
  align-content: start;
  gap: 4px;
}

.identity-fact dt {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-fact dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

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

.species-gallery-item {
  display: grid;
  margin: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.species-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.species-gallery-item figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.learning-section {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.learning-section h2 {
  margin: 0 0 12px;
  color: var(--forest-deep);
  font-size: 1.2rem;
  line-height: 1.25;
}

.learning-section p {
  margin: 0 0 0.85em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.62;
}

.learning-section p:last-child {
  margin-bottom: 0;
}

.learning-section.tone-feature {
  background: rgba(142, 185, 197, 0.3);
}

.learning-section.tone-anecdote {
  background: rgba(200, 164, 92, 0.24);
}

.learning-section.tone-useful {
  background: rgba(111, 146, 120, 0.27);
}

.detail-screen {
  max-width: 860px;
}

.detail-gallery {
  display: grid;
  grid-auto-columns: min(72vw, 500px);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0 0 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.detail-photo {
  display: grid;
  height: clamp(360px, 62svh, 600px);
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  scroll-snap-align: start;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-copy {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.detail-copy p {
  margin: 0 0 1em;
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  color: #ffffff;
  background: var(--forest);
  font-weight: 760;
}

.pending-content {
  display: grid;
  max-width: 620px;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.22);
  text-align: center;
}

.pending-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.pending-content p {
  max-width: 34ch;
  margin: 0;
  line-height: 1.55;
}

.nav-link:focus-visible,
.theme-action:focus-visible,
.app-list-row:focus-visible,
.nature-entry:focus-visible,
.icon-button:focus-visible,
.mobile-home-button:focus-visible,
.sidebar-brand:focus-visible,
.primary-link:focus-visible,
.species-audio-button:focus-visible {
  outline: 3px solid rgba(142, 185, 197, 0.9);
  outline-offset: 3px;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-frame {
    display: block;
    min-height: 100lvh;
    padding-bottom: 76px;
    background: transparent;
  }

  .app-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 76px;
    padding: 6px 8px;
    border-top: 0;
    border-right: 0;
    background: linear-gradient(0deg, rgba(241, 247, 243, 0.98) 62%, rgba(241, 247, 243, 0.88));
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  .sidebar-brand {
    display: none;
  }

  .app-navigation {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
  }

  .nav-link {
    display: grid;
    min-width: 0;
    min-height: 62px;
    grid-template-columns: 1fr;
    grid-template-rows: 30px auto;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 7px;
    font-size: 0.64rem;
    text-align: center;
  }

  .nav-link:hover {
    background: transparent;
  }

  .nav-link.is-active {
    background: rgba(111, 146, 120, 0.14);
  }

  .nav-icon {
    width: 30px;
    height: 30px;
    background: transparent;
  }

  .nav-icon .app-icon {
    width: 22px;
    height: 22px;
  }

  .nav-label {
    overflow: hidden;
    width: 100%;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-header {
    min-height: 60px;
    gap: 9px;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(241, 247, 243, 0.92), rgba(241, 247, 243, 0.56));
    backdrop-filter: blur(10px);
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mobile-home-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 8px;
  }

  .mobile-home-button img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .view-title {
    font-size: 0.96rem;
  }

  .app-main {
    min-height: calc(100svh - 136px);
    padding: 22px 14px 34px;
  }

  .screen-heading {
    margin-bottom: 18px;
    font-size: 1.55rem;
  }

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

  .theme-action {
    position: relative;
    min-height: 138px;
    grid-template-columns: 1fr;
    grid-template-rows: 58px auto;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 14px 8px;
    text-align: center;
  }

  .theme-action:hover {
    transform: none;
  }

  .theme-action-icon {
    width: 58px;
    height: 58px;
  }

  .theme-action-label {
    font-size: 0.9rem;
  }

  .theme-action-icon .app-icon {
    width: 30px;
    height: 30px;
  }

  .category-layout,
  .category-layout.has-information {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .information-rail {
    order: -1;
    padding: 0 0 16px;
    background: transparent;
  }

  .information-action {
    min-height: 88px;
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    background: rgba(255, 255, 255, 0.32);
  }

  .information-icon {
    width: 58px;
    height: 58px;
  }

  .action-chevron {
    display: none;
  }

  .app-list-row {
    min-height: 78px;
    grid-template-columns: 56px minmax(0, 1fr) 20px;
    gap: 11px;
    padding: 10px 12px 10px 10px;
  }

  .list-leading {
    width: 56px;
    height: 56px;
  }

  .list-generic-icon {
    width: 44px;
    height: 44px;
  }

  .list-title {
    font-size: 0.94rem;
  }

  .plant-table-wrap {
    overflow: visible;
    background: transparent;
  }

  .plant-table,
  .plant-table thead,
  .plant-table tbody,
  .plant-table tr,
  .plant-table th,
  .plant-table td {
    display: block;
  }

  .plant-table {
    min-width: 0;
  }

  .plant-table thead {
    display: none;
  }

  .plant-table tbody {
    display: grid;
    gap: 12px;
  }

  .plant-table tr {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
  }

  .plant-table td {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(38, 50, 45, 0.1);
  }

  .plant-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .plant-table td:first-child {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .plant-table td:first-child::before {
    display: none;
  }

  .plant-table td:last-child {
    border-bottom: 0;
  }

  .plant-cell {
    min-width: 0;
    gap: 12px;
  }

  .plant-cell img {
    width: 96px;
    height: 70px;
  }

  .plant-chip {
    white-space: normal;
  }

  .nature-boards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nature-board {
    min-height: 0;
    padding: 16px;
  }

  .nature-entry {
    min-height: 94px;
    grid-template-columns: 68px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 10px;
  }

  .nature-entry-portrait {
    width: 68px;
    height: 68px;
  }

  .nature-board-empty {
    min-height: 130px;
  }

  .species-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .species-portrait {
    width: min(100%, 430px);
    justify-self: center;
  }

  .species-title {
    font-size: 2.15rem;
  }

  .species-identity {
    padding: 18px 16px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .species-gallery {
    grid-auto-columns: calc(100vw - 48px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-bottom: 8px;
    padding-left: 14px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .species-gallery-item {
    scroll-snap-align: start;
  }

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

  .learning-section {
    padding: 18px 16px;
  }

  .detail-gallery {
    grid-auto-columns: calc(100vw - 36px);
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail-photo {
    height: min(64svh, 540px);
  }
}

@media (max-width: 380px) {
  .nav-link {
    font-size: 0.59rem;
  }

  .theme-action {
    min-height: 138px;
  }

  .theme-action-label {
    font-size: 0.84rem;
  }
}

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