@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap");
:root {
  --paper: #101814;
  --ink: #edf3e9;
  --muted: #a4b3a3;
  --line: #304338;
  --accent: #ed8055;
  --pale: #203128;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 17px;
  border-radius: 5px;
}
button:hover {
  background: var(--pale);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.site-header {
  height: 99px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  gap: 25px;
}
.brand {
  text-decoration: none;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 29px;
}
.brand span {
  font: 24px var(--serif);
  letter-spacing: -0.7px;
}
.site-header nav {
  display: flex;
  gap: 34px;
  height: 100%;
  align-items: center;
}
.site-header > .search-label {
  margin-left: auto;
}
.site-header nav a {
  text-decoration: none;
  font-size: 13px;
  padding: 39px 0;
}
.site-header nav a.active {
  border-bottom: 2px solid var(--ink);
}
.reference-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 6% 100px;
}
.reference-intro {
  max-width: 680px;
  margin-bottom: 48px;
}
.reference-intro h1 {
  max-width: 620px;
  margin: 12px 0 18px;
  font: 52px/1.03 var(--serif);
  letter-spacing: -1.5px;
}
.reference-intro > p:last-child {
  max-width: 590px;
  color: var(--muted);
  line-height: 1.7;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.reference-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--pale);
}
.reference-card > a:first-child {
  display: block;
  aspect-ratio: 4 / 3;
  background: #17241c;
}
.reference-photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  aspect-ratio: 4 / 3;
  gap: 2px;
  background: #17241c;
}
.reference-photo-grid a {
  min-width: 0;
  overflow: hidden;
}
.reference-photo-grid a:first-child {
  grid-row: span 2;
}
.reference-photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.reference-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.reference-card > div {
  padding: 22px 24px 25px;
}
.reference-card h2 {
  margin: 7px 0 8px;
  font: 29px/1.1 var(--serif);
}
.reference-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  min-height: 48px;
}
.reference-source {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
}
.reference-add {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.header-note,
.eyebrow,
.hero-bottom,
.art-note,
footer > span {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 600;
}
.header-note {
  color: var(--muted);
}
.hero {
  margin: 0 6%;
  padding: 68px 0 0;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}
.eyebrow {
  line-height: 1.8;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font: clamp(64px, 7.5vw, 112px)/0.98 var(--serif);
  letter-spacing: -4px;
  margin: 26px 0;
}
h1 em {
  font-weight: 400;
  color: var(--accent);
}
.hero-description {
  color: var(--muted);
  line-height: 1.8;
  margin: 27px 0 39px;
  font-size: 14px;
}
.hero-art {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}
.flower {
  font-size: 310px;
  font-weight: 400;
  line-height: 1;
  color: #8f9b73;
  transform: rotate(18deg);
  text-shadow: 15px 12px 0 #2b4032;
  position: relative;
}
.orbit {
  position: absolute;
  border: 1px solid #38503f;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  transform: rotate(-30deg) scaleX(0.8);
}
.orbit-two {
  transform: rotate(45deg) scaleX(0.8);
  width: 420px;
  height: 420px;
}
.art-note {
  position: absolute;
  bottom: 13px;
  right: 4px;
  line-height: 1.8;
  font-size: 8px;
  color: var(--muted);
  text-align: right;
}
.hero-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 9px;
}
.collection-section {
  padding: 55px 6% 85px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.section-heading .eyebrow {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 12px;
}
h2 {
  font: 40px/1.15 var(--serif);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.accent {
  color: var(--accent);
}
.search-label {
  display: flex;
  align-items: center;
  padding: 7px 0;
  gap: 12px;
}
.search-label span {
  font-size: 25px;
}
.search-label input {
  border: 0;
  background: transparent;
  width: 200px;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.public-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.35rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.public-filter input {
  accent-color: var(--accent);
}

.consistency-panel {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.consistency-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.consistency-panel ul {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
}

.consistency-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.help-page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.help-page h1 {
  max-width: 12ch;
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
}

.help-intro {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.entity-diagram {
  margin: 2rem 0 3rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.035);
}

.entity-diagram svg {
  display: block;
  width: 900px;
  max-width: none;
  height: auto;
}

.diagram-box rect {
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 2;
}

.diagram-box text:first-of-type {
  fill: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.diagram-box text:not(:first-of-type) {
  fill: var(--ink);
  font-size: 15px;
}

.diagram-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.7;
}

.diagram-lines marker path {
  fill: var(--accent);
  stroke: none;
}

.diagram-label text {
  fill: var(--muted);
  font-size: 12px;
  font-style: italic;
}

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

.help-grid section {
  padding: 1.2rem;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.035);
}

.help-grid h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.help-grid p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .help-page {
    padding-top: 2.5rem;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}
.filters button {
  border-radius: 25px;
  font-size: 12px;
  padding: 8px 17px;
}
.filters button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.plant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.update-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #18251e;
}
.update-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--pale);
  aspect-ratio: 1;
  overflow: hidden;
}
.update-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.update-image .botanical-placeholder {
  min-height: 0;
}
.update-body {
  padding: 17px 19px 18px;
}
.update-body h3 {
  font: 21px/1.2 var(--serif);
  margin: 8px 0;
}
.update-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.update-link {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  text-decoration: underline;
}
.plant-card {
  padding: 0;
  text-align: left;
  background: #18251e;
  border-radius: 7px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.plant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px #293f3210;
  background: #18251e;
}
.photo-card .card-image {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.photo-specimen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
}
.photo-specimen-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: 26px/1.2 var(--serif);
  text-align: left;
  text-decoration: none;
}
.photo-specimen-link span {
  color: var(--muted);
  font: 12px/1.6 var(--sans);
  font-weight: 400;
}
.card-image {
  position: relative;
  overflow: hidden;
  background: var(--pale);
  aspect-ratio: 1;
}
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #101814d9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 10px;
}
.botanical-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #263a2c;
  color: #7f906d;
  gap: 10px;
}
.botanical-placeholder.utricularia {
  background: #302b35;
  color: #9c89a2;
}
.botanical-placeholder.dionaea {
  background: #3a3325;
  color: #a48a5a;
}
.plant-mark {
  font-size: 105px;
  font-weight: 400;
  line-height: 1.1;
}
.botanical-placeholder > span:last-child {
  font-size: 8px;
  letter-spacing: 2px;
}
.card-body {
  padding: 17px 19px 18px;
}
.card-body > .eyebrow {
  font-size: 8px;
  color: var(--muted);
}
.card-body h3 {
  font: 26px/1.2 var(--serif);
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.card-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 14px;
  font-size: 10px;
  color: var(--muted);
}
.card-bottom > span:last-child {
  font-size: 17px;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed #bcc5ae;
  text-align: center;
  border-radius: 6px;
  padding: 55px 20px;
}
.empty > span {
  font-size: 42px;
  color: #94a27d;
}
.empty h3 {
  font: 28px var(--serif);
  margin: 16px 0 10px;
}
.empty p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}
footer {
  border-top: 1px solid var(--line);
  padding: 32px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
footer > span {
  font-size: 8px;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(860px, 94vw);
  max-height: 90vh;
  box-shadow: 0 25px 100px #15221b50;
}
dialog::backdrop {
  background: #15221b99;
  backdrop-filter: blur(3px);
}
.photo-editor {
  width: min(1100px, 96vw);
}
.photo-editor .edit-photo {
  max-height: 64vh;
}
.quick-add-dialog {
  width: min(420px, 94vw);
}
.quick-add-dialog form {
  padding: 28px;
}
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--paper);
  border-radius: 50%;
  padding: 0;
  width: 36px;
  height: 36px;
  font-size: 24px;
  z-index: 2;
}
.detail-hero {
  height: 320px;
  overflow: hidden;
  background: var(--pale);
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-full {
  height: auto;
  max-height: 60vh;
}
.photo-full img {
  object-fit: contain;
  max-height: 60vh;
}
.detail-body {
  padding: 36px;
}
.detail-body h3 {
  font: 26px var(--serif);
  margin: 28px 0 16px;
}
.common-name {
  color: var(--muted);
}
.notes {
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.care-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 4px;
}
.care-item:last-child {
  grid-column: 1/-1;
}
.care-item p {
  line-height: 1.7;
  font-size: 13px;
  margin-top: 8px;
  white-space: pre-wrap;
}
.source-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-tile {
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.photo-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.photo-tile span {
  display: block;
  padding: 9px;
  font-size: 11px;
}
.count {
  font: 14px var(--sans);
  color: var(--muted);
}
.local-badge {
  background: var(--pale);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 1px;
}
.admin-main {
  max-width: 1150px;
  margin: 50px auto;
  padding: 0 30px;
}
.admin-main h1 {
  font-size: 52px;
  letter-spacing: -1.5px;
  margin: 10px 0 15px;
}
.admin-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}
.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-record-search {
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
}
.specimen-tools {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 20px 0 4px;
}
.specimen-tools label {
  margin: 0;
  min-width: 230px;
}
.specimen-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--accent);
}
.specimen-group-heading div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.specimen-group-heading span {
  color: var(--muted);
  font-size: 11px;
}
.environment-members ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.environment-members li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.environment-members li span {
  color: var(--muted);
  font-size: 12px;
}
.primary {
  background: #2f6046;
  border-color: #47785a;
  color: #f2f7ef;
}
.primary:hover {
  background: #3f7957;
}
.admin-record {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.admin-record > div {
  flex: 1;
  min-width: 0;
}
.record-view-link {
  color: inherit;
  text-decoration: none;
}
.record-view-link h3 {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.record-view-link:hover h3 {
  text-decoration-color: var(--accent);
}
.nested-environment {
  margin-left: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.admin-record h3 {
  font: 24px var(--serif);
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.admin-record p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.record-symbol {
  font-size: 36px;
  color: #8b9b76;
  background: var(--pale);
  border-radius: 5px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
}
.record-thumb {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
}
.danger {
  color: #a0452f;
}
.quiet {
  border-color: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #465747;
  border-radius: 4px;
  padding: 11px;
  background: #18251e;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9dbc8d;
  outline-offset: 1px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--paper);
}
#form-error {
  color: #a0452f;
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.preset-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.preset-row label {
  flex: 1;
}
.preset-row button {
  margin-top: 3px;
  flex-shrink: 0;
}
.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.checkbox input {
  width: auto;
  accent-color: var(--ink);
}
.assignment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}
.assignment-actions input {
  flex: 1;
  min-width: 180px;
}
.assignment-actions button {
  font-size: 12px;
  padding: 9px 12px;
}
.assignment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.assignment-group h4 {
  font: 18px var(--serif);
  margin: 0 0 10px;
}
.assignment-option[hidden] {
  display: none;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 24px;
  padding: 20px;
}
legend {
  font-size: 12px;
  font-weight: 600;
}
.edit-photo {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin: 10px 0 20px;
}
.photo-advanced {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
}
.photo-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.danger-zone {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.danger-zone summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.danger-zone button {
  margin-top: 12px;
}
#status {
  font-size: 13px;
  min-height: 20px;
}
.specimen-card {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 12px 0;
  border-radius: 6px;
}
.specimen-card h4 {
  font: 22px var(--serif);
  margin-bottom: 10px;
}
.specimen-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  font-size: 12px;
  gap: 8px;
}
.specimen-card dt {
  color: var(--muted);
}
.specimen-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.environment-history-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.environment-history-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.new-specimen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.environment-history-row label {
  margin-bottom: 10px;
}
.specimen-card p {
  font-size: 13px;
}
.specimen-card .photo-tile {
  max-width: 220px;
}
.lineage-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 28px;
  border-left: 2px solid var(--line);
}
.lineage-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0 8px 14px;
  font-size: 13px;
}
.lineage-list li span {
  color: var(--muted);
}
.lineage-list ul {
  list-style: none;
  margin: 8px 0 0 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
@media (min-width: 1500px) {
  .hero,
  .collection-section,
  .site-header,
  footer {
    padding-left: max(6%, calc((100vw - 1320px) / 2));
    padding-right: max(6%, calc((100vw - 1320px) / 2));
  }
  .hero {
    margin: 0;
  }
}
@media (max-width: 1000px) {
  .header-note {
    display: none;
  }
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .update-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flower {
    font-size: 240px;
  }
  .orbit {
    width: 250px;
    height: 250px;
  }
  .orbit-two {
    width: 300px;
    height: 300px;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 640px) {
  .reference-page {
    padding: 44px 5% 72px;
  }
  .reference-intro h1 {
    font-size: 42px;
  }
  .reference-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .site-header {
    height: 80px;
    padding: 0 5%;
    gap: 15px;
  }
  .brand span {
    font-size: 20px;
  }
  .site-header nav {
    gap: 15px;
  }
  .site-header nav a {
    font-size: 10px;
    padding: 30px 0;
  }
  .hero {
    margin: 0 5%;
    padding-top: 40px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 78px;
  }
  .hero-art {
    display: none;
  }
  .hero-bottom {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .collection-section {
    padding: 35px 5% 50px;
  }
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  h2 {
    font-size: 34px;
  }
  .search-label {
    max-width: 100%;
  }
  .search-label input {
    width: 100%;
  }
  .plant-grid {
    grid-template-columns: 1fr;
  }
  .update-grid {
    grid-template-columns: 1fr;
  }
  footer {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    padding: 25px 5%;
  }
  .detail-body {
    padding: 26px;
  }
  .detail-hero {
    height: 240px;
  }
  .care-grid,
  .form-grid,
  .environment-history-row {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-main {
    padding: 0 5%;
    margin-top: 30px;
  }
  .admin-main h1 {
    font-size: 42px;
  }
  .admin-page .site-header > .local-badge {
    display: none;
  }
  .admin-page .site-header > a:last-child {
    font-size: 11px;
  }
  .admin-toolbar {
    flex-wrap: wrap;
    margin-top: 25px;
  }
  .admin-toolbar .filters {
    margin-bottom: 0;
  }
  .admin-record {
    gap: 9px;
    flex-wrap: wrap;
  }
  .admin-record > div {
    flex-basis: 65%;
  }
  .admin-record h3 {
    font-size: 22px;
  }
  .record-symbol {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
  .record-thumb {
    width: 104px;
    height: 104px;
  }
  .form-actions {
    padding: 15px;
    flex-wrap: wrap;
  }
  #form-error {
    flex-basis: 100%;
  }
  .preset-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .preset-row button {
    margin-bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.search-label {
  flex-direction: row;
  margin-bottom: 0;
}
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.duplicate-review {
  margin-top: 0.7rem;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.duplicate-comparison {
  display: flex;
  gap: 0.55rem;
  margin: 0.5rem 0;
  overflow-x: auto;
}

.duplicate-comparison figure {
  flex: 0 0 110px;
  margin: 0;
}

.duplicate-comparison img {
  display: block;
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 0.35rem;
}

.duplicate-comparison figcaption {
  margin-top: 0.25rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-skipped {
  opacity: 0.55;
}
.upload-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
}
.upload-item div {
  min-width: 0;
}
.upload-item strong,
.upload-item span {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.upload-item span {
  color: var(--muted);
  margin-top: 5px;
}
#upload-queue {
  max-height: 290px;
  overflow: auto;
  margin-bottom: 20px;
}
.photo-select {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.photo-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.photo-tools label {
  margin: 0 10px 0 0;
}
.photo-tools button {
  font-size: 12px;
}
@media (max-width: 640px) {
  body.admin-page {
    font-size: 16px;
    overscroll-behavior-x: none;
    overflow-x: hidden;
  }
  .admin-page .site-header {
    min-height: 64px;
    height: auto;
    padding: 12px 5%;
    gap: 12px;
  }
  .admin-page .site-header .brand {
    font-size: 20px;
  }
  .admin-page .site-header .brand span {
    font-size: 19px;
  }
  .admin-page .site-header > a:last-child {
    white-space: nowrap;
  }
  .admin-main {
    padding: 0 4%;
    margin: 22px auto 40px;
  }
  .admin-main h1 {
    font-size: 34px;
  }
  .admin-toolbar {
    display: block;
    margin-top: 20px;
  }
  .admin-toolbar .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
  }
  .admin-toolbar .filters button {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    padding-inline: 8px;
  }
  .admin-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-record-search {
    grid-column: 1 / -1;
    width: 100%;
  }
  .specimen-tools {
    justify-content: stretch;
  }
  .specimen-tools label,
  .specimen-tools select {
    width: 100%;
  }
  .specimen-group-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .specimen-group-heading button {
    min-height: 44px;
  }
  .admin-toolbar-actions button {
    min-height: 46px;
    padding-inline: 10px;
  }
  .admin-record {
    gap: 10px;
    padding: 16px 0;
  }
  .admin-record > div {
    flex-basis: calc(100% - 118px);
  }
  .admin-record h3 {
    font-size: 18px;
    line-height: 1.15;
  }
  .admin-record p {
    font-size: 13px;
    line-height: 1.35;
  }
  .admin-record > button {
    min-height: 44px;
    flex: 1 1 45%;
  }
  .admin-record > button.primary {
    flex-basis: 100%;
  }
  .admin-record > a {
    min-height: 44px;
    flex: 1 1 45%;
  }
  dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
  }
  .detail-body {
    padding: 22px 18px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 46px;
  }
  select[multiple] {
    min-height: 150px;
  }
  .checkbox {
    min-height: 44px;
    justify-content: center;
  }
  .checkbox input {
    width: 22px;
    height: 22px;
  }
  .form-actions {
    padding: 12px 18px;
    gap: 8px;
  }
  .form-actions button {
    min-height: 46px;
    flex: 1 1 45%;
  }
  .photo-tools {
    align-items: stretch;
  }
  .photo-tools > * {
    min-height: 44px;
  }
  .close {
    width: 42px;
    height: 42px;
  }
  .assignment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .assignment-actions input {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .assignment-actions button {
    min-height: 44px;
  }
  .assignment-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .new-specimen-row {
    grid-template-columns: 1fr;
  }
  fieldset {
    padding: 14px 12px;
  }
}
