:root {
  --ink: #10231d;
  --muted: #66746f;
  --line: rgba(73, 112, 92, 0.12);
  --paper: #f6fbf7;
  --panel: rgba(255, 255, 255, 0.92);
  --green: #1f6f4b;
  --green-2: #4d8b68;
  --mint: #dcefe5;
  --mint-2: #edf7f1;
  --gold: #d9ad57;
  --gold-soft: #f1dfb8;
  --sky: #7aa7b5;
  --hero-deep: #163328;
  --hero-mid: #244c3d;
  --hero-soft: #315f4d;
  --shadow: 0 22px 60px rgba(17, 47, 36, 0.1);
  --shadow-soft: 0 14px 38px rgba(17, 47, 36, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 239, 229, 0.9), transparent 30%),
    radial-gradient(circle at top right, rgba(241, 223, 184, 0.3), transparent 24%),
    linear-gradient(180deg, #f5fbf8 0%, #f8fbf7 45%, #f3f8f4 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

body::before {
  top: 80px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(201, 231, 214, 0.35);
}

body::after {
  top: 520px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: rgba(241, 223, 184, 0.22);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

a,
article,
section,
label,
input,
textarea {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

#identify,
#atlas,
#community,
#device {
  scroll-margin-top: 118px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 24px));
  margin: 14px auto 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(17, 47, 36, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #289161);
  box-shadow: 0 10px 20px rgba(31, 111, 75, 0.28);
}

.nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(31, 111, 75, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
  background: var(--mint-2);
  transform: translateY(-1px);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #20724d 0%, #14583b 100%);
  box-shadow: 0 14px 28px rgba(31, 111, 75, 0.24);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  box-shadow: 0 18px 32px rgba(31, 111, 75, 0.28);
}

.secondary-btn,
.ghost-btn {
  color: var(--green);
  background: rgba(238, 247, 242, 0.92);
}

.secondary-btn {
  border: 1px solid rgba(31, 111, 75, 0.1);
}

.ghost-btn {
  border: 1px solid rgba(31, 111, 75, 0.14);
  background: rgba(244, 250, 247, 0.85);
}

.full {
  width: 100%;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  align-items: end;
  gap: 24px;
  min-height: 780px;
  margin: 20px 12px 0;
  padding: clamp(64px, 8vw, 108px) clamp(22px, 4.4vw, 64px) 48px;
  border-radius: 0 0 42px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(183, 228, 198, 0.22), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(255, 220, 157, 0.14), transparent 16%),
    linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-mid) 55%, var(--hero-soft) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: 92px;
  right: 18%;
  width: 210px;
  height: 210px;
  background: rgba(220, 239, 229, 0.09);
  filter: blur(4px);
}

.hero::after {
  bottom: 72px;
  left: clamp(16px, 5vw, 80px);
  width: 120px;
  height: 120px;
  background: rgba(241, 223, 184, 0.12);
}

.hero-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(98deg, rgba(7, 21, 16, 0.8) 4%, rgba(11, 31, 23, 0.48) 40%, rgba(12, 31, 23, 0.16) 82%),
    url("./assets/hero-birdora.png") center right / cover no-repeat;
  opacity: 0.95;
}

.hero-copy,
.live-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  width: min(760px, 100%);
  animation: fadeUp 700ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.hero .eyebrow,
.live-card span {
  color: #c9efda;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(50px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.live-card {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(10, 31, 23, 0.48);
  box-shadow: 0 20px 40px rgba(7, 21, 16, 0.18);
  backdrop-filter: blur(18px);
  animation: fadeUp 880ms ease both;
}

.live-card strong {
  font-size: clamp(48px, 5vw, 62px);
  line-height: 0.92;
}

.live-card small {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.workflow,
.split-section,
.atlas-section,
.community-section,
.device-section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: transparent;
}

.workflow article {
  min-height: 210px;
  padding: 34px 30px;
  border: 1px solid rgba(73, 112, 92, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.workflow article:hover,
.bird-card:hover,
.feed article:hover,
.glasses-card:hover,
.result-card:hover,
.post-panel:hover {
  transform: translateY(-4px);
}

.workflow span {
  color: var(--gold);
  font-weight: 900;
}

.workflow h2 {
  margin: 18px 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.workflow p,
.section-head p,
.device-copy p,
.result-card p,
.bird-card p,
.feed p,
.glasses-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.device-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.identify-grid,
.community-layout,
.device-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.upload-zone,
.result-card,
.post-panel,
.feed article,
.bird-card,
.glasses-card {
  border: 1px solid rgba(73, 112, 92, 0.1);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.upload-zone {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  padding: 36px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(220, 239, 229, 0.9), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 248, 0.96));
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px dashed rgba(31, 111, 75, 0.18);
  border-radius: calc(var(--radius-xl) - 10px);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.upload-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px dashed rgba(31, 111, 75, 0.26);
  border-radius: 26px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(31, 111, 75, 0.08);
  font-size: 36px;
}

.upload-zone small {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: var(--muted);
}

#previewImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.upload-zone.has-image {
  color: #fff;
  background: #183529;
}

.upload-zone.has-image::before {
  inset: 20px;
  border-color: rgba(255, 255, 255, 0.2);
}

.upload-zone.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 28, 21, 0.08), rgba(9, 28, 21, 0.78)),
    radial-gradient(circle at top, rgba(201, 239, 218, 0.18), transparent 38%);
}

.upload-zone.has-image > :not(img) {
  position: relative;
  z-index: 1;
}

.upload-zone.has-image #previewImage {
  opacity: 1;
}

.result-card {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(220, 239, 229, 0.65), transparent 20%),
    rgba(255, 255, 255, 0.96);
}

.confidence-ring {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at center, #fff 57%, transparent 58%),
    conic-gradient(var(--green) 0 92%, #e9f0ec 92% 100%);
}

.confidence-ring span {
  font-size: 26px;
  font-weight: 900;
}

.result-card h3 {
  margin: 0 0 6px;
  font-size: 36px;
  letter-spacing: -0.04em;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dl div {
  padding: 16px 18px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 18px;
  background: rgba(246, 251, 248, 0.88);
}

dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-row {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

.search-row input,
.post-panel input,
.post-panel textarea {
  width: 100%;
  border: 1px solid rgba(73, 112, 92, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.search-row input:focus,
.post-panel input:focus,
.post-panel textarea:focus {
  border-color: rgba(31, 111, 75, 0.3);
  box-shadow: 0 0 0 5px rgba(31, 111, 75, 0.09);
}

.atlas-summary {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.atlas-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(73, 112, 92, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.atlas-detail:empty {
  display: none;
}

.atlas-detail h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.atlas-detail p {
  margin: 0;
  color: var(--muted);
}

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

.atlas-detail dl div {
  padding: 12px 14px;
  border-radius: 16px;
}

.atlas-detail a {
  color: var(--green);
  font-weight: 800;
}

.bird-grid {
  position: relative;
  overflow: visible;
  min-height: 320px;
}

.atlas-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.bird-marquee {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: bird-marquee-scroll 25s linear infinite;
  will-change: transform;
}

.bird-track {
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  width: max-content;
}

.bird-grid:hover .bird-marquee {
  animation-play-state: paused;
}

.bird-grid.is-empty {
  min-height: 280px;
}

.bird-grid.is-empty .bird-card {
  width: min(340px, 100%);
}

.bird-card {
  width: 340px;
  flex: 0 0 340px;
  overflow: hidden;
}

.atlas-results .bird-card,
.atlas-loading {
  width: auto;
  min-width: 0;
  flex: initial;
}

.bird-photo {
  position: relative;
  height: 210px;
  margin: 0;
  overflow: hidden;
  background: #dfe9e4;
}

.bird-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

.bird-card:hover .bird-photo img {
  transform: scale(1.04);
}

.bird-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 30, 23, 0.66);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.bird-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(220, 239, 229, 0.96), transparent 34%),
    linear-gradient(135deg, rgba(242, 249, 245, 0.96), rgba(226, 239, 232, 0.96));
}

.bird-placeholder span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(31, 111, 75, 0.12);
  font-size: 32px;
  font-weight: 900;
}

.bird-card > div:last-child {
  padding: 22px;
}

.bird-card.is-basic .bird-clue {
  color: var(--muted);
}

.atlas-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.source-link-muted {
  color: var(--muted);
  cursor: default;
}

.atlas-open {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 900;
}

.atlas-open:hover,
.atlas-open:focus-visible {
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

@keyframes bird-marquee-scroll {
  from {
    transform: translateX(0);
  }

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

.bird-card h3,
.feed h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.bird-clue {
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  border-radius: 16px;
  background: #f3f8f5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #315b49;
  background: #edf6f1;
  font-size: 12px;
  font-weight: 700;
}

.source-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
}

.community-section {
  position: relative;
  background:
    radial-gradient(circle at right top, rgba(220, 239, 229, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(238, 245, 241, 0.78), rgba(241, 247, 244, 0.92));
}

.post-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.post-panel textarea {
  min-height: 210px;
  resize: vertical;
}

.post-tools {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}

.post-tools .secondary-btn,
.post-tools .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  aspect-ratio: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 24px !important;
}

.post-tools .secondary-btn {
  width: 150px !important;
  height: 56px !important;
  border-radius: 999px !important;
}

.post-tools .primary-btn {
  width: 96px !important;
  height: 56px !important;
  border-radius: 999px !important;
}

.feed-preview {
  display: grid;
  gap: 16px;
}

.feed {
  display: grid;
  gap: 16px;
}

.feed article {
  padding: 22px;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.feed-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.feed-card-preview {
  min-height: 280px;
}

.feed-body {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.7em * 2);
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-card-preview .feed-body {
  -webkit-line-clamp: 2;
}

.more-link {
  width: 116px;
  min-height: 48px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.community-page {
  padding: 32px 20px 80px;
}

.auth-page,
.doc-page {
  padding: 40px 20px 88px;
}

.auth-shell,
.doc-card {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.auth-shell {
  display: grid;
  gap: 24px;
}

.auth-page-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px 28px;
}

.auth-shell-simple {
  width: min(560px, 100%);
  gap: 16px;
}

.auth-intro,
.auth-card,
.doc-card {
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.auth-intro {
  padding: 32px;
}

.auth-intro-simple {
  padding: 24px 28px;
  text-align: center;
  border-color: rgba(73, 112, 92, 0.06);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(17, 47, 36, 0.05);
}

.auth-intro-simple h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-intro p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.72;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.auth-card-main {
  gap: 14px;
  padding: 32px 32px 28px;
  border-radius: 36px;
  border-color: rgba(73, 112, 92, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(17, 47, 36, 0.12);
}

.auth-card-subtle {
  gap: 16px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.82);
}

.auth-card-head {
  display: grid;
  gap: 6px;
}

.auth-card-head-compact {
  gap: 8px;
  margin-bottom: 2px;
}

.auth-card-head p,
.auth-card-head h2 {
  margin: 0;
}

.auth-card h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.auth-subcopy {
  max-width: 420px;
  font-size: 15px;
}

.auth-fields {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.auth-card label > span {
  color: var(--ink);
}

.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(73, 112, 92, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(249, 252, 250, 0.98);
  outline: none;
}

.auth-card input::placeholder {
  color: rgba(82, 99, 92, 0.62);
}

.auth-card input:focus {
  border-color: rgba(31, 111, 75, 0.32);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(220, 239, 229, 0.72);
}

.auth-submit {
  width: 100%;
}

.auth-submit-pill {
  min-height: 56px;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.auth-hidden {
  display: none !important;
}

.auth-register-copy {
  display: grid;
  gap: 6px;
}

.auth-register-copy p,
.auth-register-copy h2 {
  margin: 0;
}

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

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(242, 248, 244, 0.92);
}

.agree-row input {
  width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--green);
}

.agree-row span {
  line-height: 1.7;
}

.agree-row a,
.doc-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.agree-row a:hover,
.doc-card a:hover {
  text-decoration: underline;
}

.auth-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.auth-legal a {
  color: var(--muted);
  text-decoration: none;
}

.auth-legal a:hover {
  color: var(--green);
}

.auth-switch-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  min-height: auto;
}

.auth-switch-btn:hover,
.auth-switch-btn:focus-visible {
  color: #14583b;
  text-decoration: underline;
  box-shadow: none;
  transform: none;
}

.auth-switch-btn:active {
  transform: none;
}

.doc-card {
  padding: 34px 34px 40px;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  line-height: 1.85;
}

.doc-card ul {
  padding-left: 20px;
}

.community-hero,
.community-browser {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.community-browser {
  display: grid;
  gap: 22px;
}

.community-switch {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.community-tab {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: transparent;
  font-weight: 800;
}

.community-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #20724d 0%, #14583b 100%);
  box-shadow: 0 12px 22px rgba(31, 111, 75, 0.2);
}

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

.empty-feed-card {
  min-height: 220px;
  place-content: center;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.comment-box {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 24px;
  background: rgba(245, 250, 247, 0.9);
}

.comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-toggle,
.comment-send {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.comment-toggle {
  min-height: 38px;
  padding: 0 16px;
  color: var(--green);
  background: rgba(220, 239, 229, 0.88);
}

.comment-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.comment-panel {
  display: none;
  margin-top: 14px;
}

.comment-box.is-open .comment-panel {
  display: grid;
  gap: 14px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.comment-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(73, 112, 92, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.comment-input:focus {
  border-color: rgba(31, 111, 75, 0.28);
  box-shadow: 0 0 0 4px rgba(31, 111, 75, 0.08);
}

.comment-send {
  min-width: 86px;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #20724d 0%, #14583b 100%);
  box-shadow: 0 12px 22px rgba(31, 111, 75, 0.18);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-bubble {
  padding: 12px 14px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 18px;
  background: rgba(236, 246, 240, 0.92);
}

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

.comment-bubble span {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.comment-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

.device-section {
  align-items: center;
}

.device-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
  align-items: stretch;
}

.device-panel .device-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 10px;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle;
  flex: 0 0 auto !important;
  appearance: none;
  -webkit-appearance: none;
}

.device-stats > span {
  display: block;
  padding: 22px 24px;
  border: 1px solid rgba(73, 112, 92, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(18, 59, 47, 0.08);
  overflow: hidden;
}

.device-stats strong {
  display: block;
  color: var(--green);
  font-size: 30px;
}

.device-sync-status {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.device-sync-status.is-connecting {
  animation: deviceStatusPulse 1.4s ease-in-out infinite;
}

.device-panel .device-action:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, #3d8e67 0%, #2b7351 100%);
  box-shadow: 0 12px 26px rgba(31, 111, 75, 0.18);
  opacity: 1;
}

.device-panel .device-action:disabled:hover,
.device-panel .device-action:disabled:active {
  transform: none;
  box-shadow: 0 12px 26px rgba(31, 111, 75, 0.18);
}

.device-panel .device-action.is-connecting::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  animation: deviceButtonSpin 900ms linear infinite;
  flex: 0 0 auto;
}

.glasses-card {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 178, 149, 0.18), transparent 40%),
    radial-gradient(circle at top left, rgba(241, 223, 184, 0.22), transparent 22%),
    rgba(255, 255, 255, 0.96);
}

.device-glasses {
  width: min(460px, 100%);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(16, 35, 29, 0.16));
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 12px 12px;
  padding: 26px clamp(20px, 4vw, 56px);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(73, 112, 92, 0.09);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .live-card {
    width: min(320px, 100%);
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: center;
    width: calc(100% - 24px);
  }

  .nav {
    display: none;
  }

  .workflow,
  .identify-grid,
  .community-layout,
  .device-section,
  .community-list {
    grid-template-columns: 1fr;
  }

  .compact {
    display: block;
  }

  .device-stats {
    grid-template-columns: 1fr;
  }

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

  .bird-grid {
    min-height: 580px;
  }

  .bird-card {
    width: 300px;
    flex-basis: 300px;
  }
}

@media (max-width: 560px) {
  .topbar {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 12px 14px;
  }

  .ghost-btn {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .ghost-btn:last-child,
  .topbar-actions .link-btn {
    display: inline-flex;
  }

  .hero {
    min-height: 680px;
    margin-inline: 0;
    padding: 52px 18px 28px;
    border-radius: 0 0 34px 34px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
  }

  .live-card {
    width: 100%;
    padding: 22px;
  }

  .workflow,
  .split-section,
  .atlas-section,
  .community-section,
  .device-section,
  .auth-page,
  .doc-page {
    padding-inline: 18px;
  }

  .workflow article {
    padding: 24px;
    min-height: 160px;
  }

  .upload-zone,
  .result-card,
  .post-panel,
  .glasses-card,
  .feed article,
  .auth-intro,
  .auth-card,
  .doc-card {
    border-radius: 26px;
  }

  .bird-grid {
    min-height: 540px;
  }

  .bird-card {
    width: 280px;
    flex-basis: 280px;
  }

  .device-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-intro,
  .auth-card,
  .doc-card {
    padding: 24px 20px;
  }

  .auth-intro-simple {
    padding: 0;
  }

  .auth-card-main,
  .auth-card-subtle {
    padding: 24px 20px;
  }

  .agree-row {
    padding: 12px 14px;
  }

  .auth-legal {
    flex-wrap: wrap;
  }

  .post-tools,
  footer {
    flex-direction: column;
  }

  .more-link {
    justify-self: start;
  }

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

  .comment-toolbar {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .comment-send {
    width: 100%;
  }

  footer {
    margin-inline: 8px;
    border-radius: 24px;
  }
}

/* Headspace-style refresh: soft, natural, friendly visual layer. */
:root {
  --ink: #123126;
  --muted: #65766f;
  --line: rgba(60, 105, 82, 0.1);
  --panel: rgba(255, 255, 255, 0.94);
  --green: #1f704a;
  --green-2: #579270;
  --mint: #dcefe5;
  --mint-2: #f0f8f3;
  --gold-soft: #f3e3bd;
  --shadow: 0 20px 52px rgba(24, 64, 45, 0.1);
  --shadow-soft: 0 12px 32px rgba(24, 64, 45, 0.075);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

body {
  font-size: 16px;
  line-height: 1.72;
  background:
    radial-gradient(circle at 8% 4%, rgba(220, 239, 229, 0.9), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(243, 227, 189, 0.38), transparent 25%),
    linear-gradient(180deg, #f7fcf8 0%, #f7fbf7 48%, #f2f8f4 100%);
}

.topbar {
  width: min(1220px, calc(100% - 24px));
  padding: 14px 18px;
  border-color: rgba(31, 111, 75, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(24, 64, 45, 0.08);
}

.brand {
  letter-spacing: 0;
}

.nav {
  border-color: rgba(31, 111, 75, 0.08);
  background: rgba(248, 252, 249, 0.82);
}

.nav a {
  font-size: 14px;
  letter-spacing: 0;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--green);
  background: rgba(220, 239, 229, 0.82);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.community-tab,
.comment-toggle,
.comment-send {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, #20754f 0%, #14593c 100%);
  box-shadow: 0 14px 28px rgba(31, 111, 75, 0.22);
}

.secondary-btn,
.ghost-btn {
  color: var(--green);
  background: rgba(238, 247, 242, 0.94);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.community-tab:hover,
.comment-toggle:hover,
.comment-send:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero {
  min-height: 720px;
  border-radius: 36px;
  overflow: hidden;
}

.hero-media,
.hero img,
.hero-bg,
.hero-image,
.hero-visual {
  border-radius: inherit;
}

.hero-media {
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.hero p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.9;
}

.section-head h1,
.community-hero h1 {
  font-size: clamp(40px, 5vw, 54px);
  line-height: 1.12;
}

.section-head h2,
.device-copy h2,
.split-copy h2 {
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.12;
}

.workflow h2,
.bird-card h3,
.feed h3,
.result-card h3,
.auth-card h2 {
  font-size: clamp(23px, 2.2vw, 28px);
  line-height: 1.22;
}

.workflow p,
.section-head p,
.device-copy p,
.result-card p,
.bird-card p,
.feed p,
.glasses-card p,
.auth-card p {
  font-size: 16px;
  line-height: 1.75;
}

.upload-zone,
.result-card,
.post-panel,
.feed article,
.bird-card,
.glasses-card,
.workflow article,
.auth-card,
.auth-intro,
.doc-card {
  border-color: rgba(60, 105, 82, 0.1);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.upload-zone:hover,
.result-card:hover,
.post-panel:hover,
.feed article:hover,
.bird-card:hover,
.glasses-card:hover,
.workflow article:hover,
.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.workflow article {
  border-radius: var(--radius-lg);
}

.search-row input,
.post-panel input,
.post-panel textarea,
.comment-input,
.auth-card input {
  border-color: rgba(60, 105, 82, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.bird-card {
  width: 340px;
  flex-basis: 340px;
}

.bird-photo {
  height: 210px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.bird-card > div:last-child {
  padding: 22px;
}

.bird-clue {
  line-height: 1.7;
  background: #f2f8f5;
}

.tag-row span {
  font-size: 12px;
  background: #edf7f1;
}

.feed-card {
  align-content: start;
  gap: 14px;
}

.feed-body {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.7em * 2);
  margin: 0;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-card-preview {
  min-height: 280px;
  max-height: none;
}

.comment-box {
  margin-top: 8px;
  border-color: rgba(60, 105, 82, 0.08);
  background: rgba(247, 252, 248, 0.92);
}

.comment-toggle {
  min-height: 36px;
  color: var(--green);
  background: rgba(220, 239, 229, 0.84);
}

.comment-panel {
  display: grid;
  gap: 14px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 320ms ease,
    opacity 240ms ease,
    margin-top 240ms ease;
}

.comment-box.is-open .comment-panel {
  max-height: 520px;
  margin-top: 14px;
  opacity: 1;
}

.community-tab.is-active {
  background: linear-gradient(135deg, #20754f 0%, #14593c 100%);
}

@media (max-width: 920px) {
  .hero {
    min-height: 700px;
  }

  .bird-card {
    width: 300px;
    flex-basis: 300px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 660px;
    border-radius: 36px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section-head h2,
  .device-copy h2,
  .split-copy h2 {
    font-size: 36px;
  }

  .bird-card {
    width: 280px;
    flex-basis: 280px;
  }
}

/* Final hero radius fix: keep every visual layer clipped by the same corners. */
.hero,
.hero-section,
.hero-card {
  position: relative;
  border-radius: 64px;
  clip-path: inset(0 round 64px);
  overflow: hidden;
  isolation: isolate;
}

.hero {
  margin: 24px;
}

.hero::before,
.hero::after,
.hero-media,
.hero-bg,
.hero-overlay,
.hero-image,
.hero-visual,
.hero img {
  border-radius: inherit;
  clip-path: inherit;
  overflow: hidden;
}

.hero-media,
.hero-bg,
.hero-overlay {
  inset: 0;
}

@media (max-width: 560px) {
  .hero,
  .hero-section,
  .hero-card {
    border-radius: 40px;
    clip-path: inset(0 round 40px);
    margin: 16px;
  }
}

/* Keep the AI recognition section compact enough for one desktop viewport. */
#identify {
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 64px;
}

#identify .section-head {
  margin-bottom: 22px;
}

#identify .section-head .eyebrow {
  margin-bottom: 8px;
}

#identify .section-head h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
}

#identify .section-head p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 12px;
  line-height: 1.65;
}

.identify-grid {
  gap: 32px;
  align-items: stretch;
}

.upload-zone {
  min-height: 0;
  height: 520px;
  max-height: 520px;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.upload-zone::before {
  inset: 16px;
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 30px;
}

.upload-zone strong {
  font-size: 23px;
}

.upload-zone small {
  font-size: 14px;
  line-height: 1.55;
}

.result-card {
  max-height: 520px;
  overflow: hidden;
  gap: 16px;
  padding: 32px;
}

.confidence-ring {
  width: 96px;
  height: 96px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.confidence-ring span {
  font-size: 22px;
}

.result-card h3 {
  margin-bottom: 4px;
  font-size: 30px;
}

.result-card .eyebrow {
  margin-bottom: 6px;
}

.result-card p {
  line-height: 1.55;
}

.result-card dl {
  gap: 10px;
}

.result-card dl div {
  padding: 14px 18px;
}

.result-card dd {
  margin-top: 5px;
  line-height: 1.55;
}

.result-card .full {
  min-height: 46px;
}

/* Extra compact recognition result card for desktop viewport fit. */
.result-card,
.result-panel {
  max-height: 520px;
  overflow: hidden;
}

.result-card {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 28px 32px;
}

.confidence-ring {
  width: 88px;
  height: 88px;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.42);
}

.confidence-ring span {
  font-size: 20px;
}

.result-card > div:not(.confidence-ring) {
  display: grid;
  gap: 3px;
}

.result-card .eyebrow {
  margin-bottom: 2px;
}

.result-card h3,
.result-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.result-card p,
.result-card dd {
  line-height: 1.45;
}

.result-card dl,
.result-detail,
.result-info {
  gap: 8px;
  min-height: 0;
}

.result-card dl div,
.result-detail,
.result-info,
.info-block {
  padding: 12px 16px;
  margin-bottom: 0;
}

.result-card dt {
  font-size: 11px;
}

.result-card dd {
  margin-top: 4px;
}

#modelDetail {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-card {
  max-height: none;
  overflow: visible;
}

.candidate-panel dd {
  margin-top: 8px;
}

.candidate-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.candidate-list li {
  padding: 9px 0;
  border-top: 1px solid rgba(73, 112, 92, 0.09);
}

.candidate-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.candidate-list strong,
.candidate-list small,
.candidate-list b,
.candidate-list em {
  display: block;
}

.candidate-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.candidate-open:hover,
.candidate-open:focus-visible {
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.candidate-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.candidate-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.candidate-open > span:last-child {
  min-width: 60px;
  text-align: right;
}

.candidate-list b {
  color: var(--green);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.candidate-list em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.candidate-empty {
  display: block !important;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.result-card .full,
.result-action,
.publish-result-btn {
  align-self: end;
  min-height: 44px;
  margin-top: 0;
}

@media (max-width: 920px) {
  #identify {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .upload-zone,
  .result-card {
    height: auto;
    max-height: none;
  }

  .atlas-detail {
    grid-template-columns: 1fr;
  }

  .atlas-detail dl {
    grid-template-columns: 1fr;
  }
}

/* Keep the home community preview compact enough for one desktop viewport. */
#community {
  padding-top: 64px;
  padding-bottom: 64px;
}

#community .section-head {
  margin-bottom: 22px;
}

#community .section-head h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
}

#community .community-layout {
  gap: 32px;
  align-items: stretch;
}

#community .post-panel {
  max-height: 520px;
  padding: 32px;
  gap: 14px;
  align-content: start;
}

#postTitle {
  min-height: 0;
  height: 58px;
  padding-block: 0;
}

#postBody {
  min-height: 0;
  height: 260px;
  resize: none;
}

#community .post-tools {
  margin-top: auto;
}

#community .feed-preview {
  gap: 12px;
  align-content: start;
}

#community .feed {
  gap: 10px;
}

#community .feed article {
  padding: 16px 18px;
}

#community .feed-card-preview {
  min-height: 0;
  height: 158px;
  overflow: hidden;
}

#community .feed-card {
  gap: 7px;
}

#community .feed-meta {
  font-size: 12px;
}

#community .feed h3 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.18;
}

#community .feed-body {
  min-height: 0;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

#community .comment-box {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 18px;
}

#community .comment-toolbar {
  min-height: 40px;
}

#community .comment-toggle {
  min-height: 32px;
  padding: 0 12px;
}

#community .comment-count {
  font-size: 12px;
}

#community .more-link {
  width: 104px;
  min-height: 42px;
  margin-top: 2px;
}

@media (max-width: 920px) {
  #community {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  #community .post-panel {
    max-height: none;
  }

  #community .feed-card-preview {
    height: auto;
    min-height: 180px;
  }

  #postBody {
    height: 220px;
    resize: vertical;
  }
}

/* Shared title system for the primary product sections. */
#identify .section-head,
#atlas .section-head,
#community .section-head {
  max-width: 980px;
  margin-bottom: 28px;
}

#identify .section-head.compact,
#atlas .section-head.compact,
#community .section-head.compact {
  display: block;
}

#identify .section-head > .eyebrow,
#atlas .section-head > .eyebrow,
#community .section-head > .eyebrow {
  margin: 0 0 18px;
  color: rgba(18, 59, 47, 0.65);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

#identify .section-head > .eyebrow::before,
#atlas .section-head > .eyebrow::before,
#community .section-head > .eyebrow::before {
  width: 34px;
  height: 2px;
  opacity: 0.55;
}

#identify .section-head > h2,
#atlas .section-head > h2,
#community .section-head > h2 {
  margin: 0 0 20px;
  color: #123b2f;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

#identify .section-head > p:not(.eyebrow),
#atlas .section-head > p:not(.eyebrow),
#community .section-head > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 0;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 920px) {
  #identify .section-head > h2,
  #atlas .section-head > h2,
  #community .section-head > h2 {
    font-size: clamp(40px, 7vw, 44px);
  }
}

@media (max-width: 560px) {
  #identify .section-head > .eyebrow,
  #atlas .section-head > .eyebrow,
  #community .section-head > .eyebrow {
    font-size: 15px;
    margin-bottom: 14px;
  }

  #identify .section-head > h2,
  #atlas .section-head > h2,
  #community .section-head > h2 {
    font-size: 34px;
    line-height: 1.08;
  }
}

/* Soft Headspace-style motion layer: light, calm, and transform-only where possible. */
@keyframes pageSoftEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  from {
    transform: translateY(-6px);
  }

  to {
    transform: translateY(6px);
  }
}

@keyframes softFloatReverse {
  from {
    transform: translateY(5px);
  }

  to {
    transform: translateY(-5px);
  }
}

@keyframes deviceButtonSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes deviceStatusPulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

body {
  animation: pageSoftEnter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body::before {
  animation: softFloat 9s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
}

body::after {
  animation: softFloatReverse 10s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
}

.live-card {
  animation: softFloat 7.5s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
}

.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease,
    color 240ms ease;
}

.upload-zone,
.result-card,
.post-panel,
.feed article,
.feed-card,
.bird-card,
.glasses-card,
.workflow article,
.community-hero,
.auth-card {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease;
  will-change: transform;
}

.upload-zone:hover,
.result-card:hover,
.post-panel:hover,
.feed article:hover,
.feed-card:hover,
.bird-card:hover,
.glasses-card:hover,
.workflow article:hover,
.community-hero:hover,
.auth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(17, 47, 36, 0.13);
}

.device-stats > span {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease;
  will-change: transform;
}

.device-stats > span:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(17, 47, 36, 0.13);
}

button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.comment-toggle,
.comment-send,
.community-tab,
.more-link,
.link-btn,
.auth-submit {
  transition:
    transform 230ms ease,
    box-shadow 230ms ease,
    background-color 230ms ease,
    border-color 230ms ease,
    color 230ms ease;
  will-change: transform;
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.comment-toggle:hover,
.comment-send:hover,
.community-tab:hover,
.more-link:hover,
.link-btn:hover,
.auth-submit:hover {
  transform: translateY(-2px) scale(1.02);
}

button:active,
.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.comment-toggle:active,
.comment-send:active,
.community-tab:active,
.more-link:active,
.link-btn:active,
.auth-submit:active {
  transform: translateY(0) scale(0.98);
}

.upload-zone {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease;
}

.upload-zone::before,
.upload-icon {
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.upload-zone:hover {
  border-color: rgba(31, 111, 75, 0.2);
  background:
    radial-gradient(circle at top, rgba(220, 239, 229, 0.98), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 244, 0.98));
}

.upload-zone:hover::before {
  border-color: rgba(31, 111, 75, 0.34);
}

.upload-zone:hover .upload-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(31, 111, 75, 0.38);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 38px rgba(31, 111, 75, 0.12);
}

.comment-panel {
  display: grid;
  max-height: 0;
  margin-top: 0;
  gap: 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 340ms ease,
    margin-top 340ms ease,
    opacity 300ms ease,
    transform 340ms ease;
}

.comment-box.is-open .comment-panel {
  display: grid;
  max-height: 900px;
  margin-top: 14px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

#community .feed-preview .reveal-card {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

#community .feed-preview .reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  #community .feed-preview .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
