:root {
  --green: #215640;
  --light: #eaf1e8;
  --ink: #243b31;
  --muted: #77837c;
  --line: #e1e7df;
  --bg: #f5f7f2;
  --gold: #b38d3b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #d5dfd5;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 14px;
  font-weight: 550;
}
button:hover {
  background: #edf3e9;
  border-color: #8ba18c;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: #a13e35;
}
a {
  color: var(--green);
}
aside {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--green);
  font-size: 25px;
  letter-spacing: -1px;
}
.brand svg {
  width: 42px;
}
.brand b {
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  margin-top: 0;
}
.workspace {
  margin: 43px 13px 14px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #89978c;
}
nav a {
  display: flex;
  gap: 13px;
  padding: 12px 14px;
  margin: 4px 0;
  text-decoration: none;
  color: #617166;
  border-radius: 7px;
  font-size: 13px;
}
nav a.active {
  background: #e9f0e5;
  color: var(--green);
  font-weight: 650;
}
nav a .icon {
  width: 20px;
  font-size: 17px;
}
nav a small {
  margin-left: auto;
  color: #9aa698;
  font-size: 10px;
}
.aside-bottom {
  margin-top: auto;
  color: #68796d;
  font-size: 10px;
  padding-top: 25px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #779b68;
  margin-right: 5px;
}
.aside-bottom small {
  display: block;
  font-size: 10px;
  color: #8b968d;
  margin: 5px 0 17px;
}
.aside-bottom button {
  width: 100%;
  margin: 4px 0;
  font-size: 12px;
}
.aside-bottom p {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6d7b70;
  margin-top: 24px;
}
.aside-bottom p span {
  float: right;
  letter-spacing: 0;
}
main {
  margin-left: 246px;
}
header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.breadcrumb {
  font-size: 12px;
  color: #869188;
}
.breadcrumb b {
  color: #536758;
  font-weight: 500;
}
.breadcrumb span {
  margin: 0 12px;
  color: #bec6be;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.tag {
  display: inline-block;
  border: 1px solid #dae5d5;
  background: #f5f8f1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  color: #607850;
}
#content {
  max-width: 1550px;
  margin: auto;
  padding: 36px 38px 50px;
  min-height: calc(100vh - 145px);
}
.eyebrow {
  color: #73866c;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 8px 0;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
h3 {
  font-size: 14px;
}
.subtitle {
  color: var(--muted);
  margin-top: 9px;
  font-size: 13px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card {
  padding: 20px;
  position: relative;
}
.card .label {
  font-size: 11px;
  color: #7b897d;
}
.card .value {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 15px 0 8px;
}
.card .value small {
  font-size: 12px;
  letter-spacing: 0;
  color: #81907f;
  font-weight: 400;
}
.card .detail {
  font-size: 10px;
  color: #8c978c;
}
.card .mini {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #6b8a62;
  background: #f0f5eb;
  border-radius: 7px;
  padding: 5px 8px;
}
.panel {
  padding: 23px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
  gap: 20px;
}
.panel-header p {
  margin: 4px 0;
  font-size: 11px;
  color: #889286;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eaf0e3;
  border: 1px solid #d8e2cf;
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 23px;
  gap: 20px;
}
.welcome p {
  font-size: 12px;
  color: #748168;
  margin: 6px 0 0;
  max-width: 610px;
}
.welcome h2 {
  color: #3a5934;
}
.notice {
  font-size: 12px;
  background: #f8f5e9;
  color: #786532;
  border: 1px solid #e9dfbd;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px 0;
}
.notice.error {
  background: #fff0ee;
  border-color: #eacdc7;
  color: #9e493c;
}
.empty {
  padding: 45px 15px;
  text-align: center;
  color: #83907e;
}
.empty svg {
  width: 55px;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 16px;
  font-weight: 500;
  color: #52704d;
}
.empty p {
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  max-height: 550px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #839080;
  background: #f5f7f2;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
td {
  padding: 12px;
  border-bottom: 1px solid #edf0e8;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  color: #8a9687;
}
td em {
  font-family: Georgia, serif;
  color: #567052;
}
.status {
  color: #5d7e4c;
  background: #eff5e8;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
}
.status.bad {
  color: #a15e38;
  background: #fff2e8;
}
.tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tools input {
  width: 260px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #6d7e6a;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea,
.tools input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e1d3;
  border-radius: 6px;
  background: white;
  color: #354c32;
  min-width: 0;
}
.field textarea {
  height: 90px;
  resize: vertical;
}
.field small {
  color: #929d8c;
  font-size: 10px;
}
.field input:focus,
.field select:focus,
.tools input:focus {
  outline: 2px solid #c7d9bb;
  outline-offset: 1px;
}
.section-title {
  margin: 26px 0 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tabbar {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tabbar button {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 12px 17px;
  color: #8a9586;
}
.tabbar button.selected {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.barrow {
  display: grid;
  grid-template-columns: 145px 1fr 45px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin: 17px 0;
}
.track {
  height: 9px;
  border-radius: 2px;
  background: #f0f3eb;
}
.bar {
  height: 100%;
  background: #618858;
  border-radius: 2px;
}
.barrow:nth-child(2n) .bar {
  background: #98b07d;
}
.bars-vertical {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 220px;
  border-bottom: 1px solid var(--line);
  padding: 25px 10px 0;
  margin-bottom: 35px;
}
.colbar {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  position: relative;
}
.colbar i {
  display: block;
  width: 80%;
  max-width: 60px;
  background: #6f8f5e;
  border-radius: 4px 4px 0 0;
  min-height: 0;
}
.colbar small {
  position: absolute;
  top: 100%;
  padding-top: 10px;
  font-size: 9px;
  white-space: nowrap;
}
.colbar span {
  font-size: 10px;
  margin: 4px;
}
.workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf3e6;
  color: #6a835b;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.workflow p {
  font-size: 12px;
  margin: 0;
}
.workflow small {
  font-size: 10px;
  color: #8a9786;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: #678554;
  font-size: 11px;
}
.muted {
  color: #879481;
  font-size: 12px;
}
.report {
  max-width: 950px;
  margin: auto;
  background: white;
  padding: 40px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.report h1 {
  font:
    28px Georgia,
    serif;
}
.report p {
  font-size: 13px;
  line-height: 1.8;
  text-align: justify;
}
.report h2 {
  margin-top: 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.report .report-top {
  display: flex;
  justify-content: space-between;
  color: #708668;
  font-size: 10px;
  letter-spacing: 1px;
}
.report table {
  white-space: normal;
}
footer {
  padding: 20px 38px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #899481;
  display: flex;
  justify-content: space-between;
}
dialog {
  border: 1px solid #d7e2ce;
  border-radius: 12px;
  width: min(830px, 94vw);
  padding: 28px;
  box-shadow: 0 20px 100px #18351640;
  color: var(--ink);
}
dialog::backdrop {
  background: #1c321d60;
}
dialog h2 {
  margin-bottom: 22px;
}
.modal-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 25px;
}
.search-results {
  max-height: 340px;
  overflow: auto;
}
.species-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 5px;
  gap: 10px;
}
.species-result strong {
  font-size: 12px;
}
.species-result small {
  display: block;
  color: #86927e;
  font-size: 11px;
}
.suggestions {
  position: relative;
}
.suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  max-height: 200px;
  overflow: auto;
}
.suggestions li {
  padding: 9px;
  cursor: pointer;
}
.suggestions li:hover {
  background: var(--light);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #254f36;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  display: none;
  z-index: 100;
}
.map {
  background: #f0f3e9;
  border: 1px solid #dbe3d0;
  border-radius: 7px;
  height: 430px;
  width: 100%;
}
.map path {
  fill: #93ad7670;
  stroke: #58754a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.map circle {
  fill: #537849;
}
.map text {
  font: 12px Arial;
  fill: #354c32;
}
.catalog-meta {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: #7e8d76;
  margin: 12px 0;
}
.data-badge {
  color: #9c7e3d;
  font-size: 10px;
}
.report .signatures {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid #ccd8c1;
}
.report .chart-download {
  display: none;
}
button.tiny {
  font-size: 10px;
  padding: 4px 7px;
}
details {
  margin: 15px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #637d55;
}
.filter-select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.editcell {
  min-width: 70px;
  padding: 5px;
  width: 85px;
  border: 1px solid #e1e7da;
  border-radius: 4px;
}
.rowactions {
  display: flex;
  gap: 5px;
}
.danger-zone {
  margin-top: 30px;
}
.validation-list {
  max-height: 200px;
  overflow: auto;
  font-size: 12px;
  color: #9b623f;
}
.export-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.print-only {
  display: none;
}
@media (max-width: 1100px) {
  aside {
    width: 210px;
    padding: 25px 14px;
  }
  main {
    margin-left: 210px;
  }
  #content {
    padding: 25px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding: 0 25px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .brand {
    font-size: 23px;
  }
  .workspace,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
  }
  nav a {
    white-space: nowrap;
    padding: 8px;
  }
  nav a .icon,
  nav a small {
    display: none;
  }
  main {
    margin-left: 0;
  }
  header {
    height: auto;
    min-height: 65px;
    padding: 15px;
    gap: 10px;
  }
  .breadcrumb {
    display: none;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  #content {
    padding: 22px 15px;
  }
  .page-heading {
    display: block;
  }
  .page-heading .actions {
    margin-top: 15px;
  }
  .welcome {
    display: block;
    padding: 18px;
  }
  .welcome button {
    margin-top: 15px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .card .value {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .report {
    padding: 25px 20px;
  }
  h1 {
    font-size: 25px;
  }
  .tabbar {
    overflow: auto;
  }
  .tabbar button {
    white-space: nowrap;
  }
  footer span {
    display: none;
  }
  .barrow {
    grid-template-columns: 115px 1fr 35px;
  }
  .catalog-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media print {
  aside,
  header,
  footer,
  .no-print,
  .actions,
  .page-heading,
  .tabbar,
  #toast {
    display: none !important;
  }
  body,
  main,
  #content {
    margin: 0;
    padding: 0;
    background: white;
  }
  .report {
    border: 0;
    padding: 0;
    max-width: none;
  }
  .report h2 {
    break-after: avoid;
  }
  .report table,
  .panel {
    break-inside: avoid;
  }
  .table-wrap {
    max-height: none;
    overflow: visible;
  }
  .report td,
  .report th {
    font-size: 9px;
  }
  .print-only {
    display: block;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  @page {
    size: A4;
    margin: 20mm;
  }
}
.volume-help {
  border: 1px solid #d9e2cf;
  background: #f6f8f1;
  padding: 15px 18px;
  border-radius: 7px;
  margin: 18px 0 22px;
}
.volume-help summary {
  font-weight: 600;
  font-size: 13px;
}
.volume-help p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 1050px;
  color: #66765f;
}
.field.inactive {
  opacity: 0.45;
}
.field.inactive input {
  background: #f0f2ed;
}
.collection-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.collection-entry {
  display: grid;
  grid-template-columns: 1.25fr 1.8fr 0.65fr 0.85fr 0.65fr auto;
  align-items: end;
  gap: 12px;
}
.collection-entry output {
  display: block;
  border: 1px solid #d7e4cc;
  background: #edf5e6;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 650;
  min-height: 43px;
  color: #3b6938;
}
.collection-entry input {
  min-height: 43px;
}
.collection-entry button {
  min-height: 43px;
}
.collection-suggestions {
  max-height: 270px;
  overflow: auto;
  margin: 12px 0;
}
.collection-suggestions:empty {
  display: none;
}
.collection-suggestions button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 15px;
  text-align: left;
  border-radius: 0;
  border-bottom: 0;
  font-weight: 400;
  padding: 11px 13px;
}
.collection-suggestions button:last-child {
  border-bottom: 1px solid #d5dfd5;
}
.collection-suggestions strong {
  font-size: 12px;
}
.collection-suggestions em {
  font:
    13px Georgia,
    serif;
}
.collection-suggestions small {
  font-size: 10px;
  color: #819073;
}
.collection-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #edf3e8;
  border: 1px solid #dce5d4;
  border-radius: 7px;
  margin-top: 24px;
}
.collection-totals > div {
  padding: 18px 22px;
}
.collection-totals small {
  display: block;
  color: #7b8b70;
  font-size: 10px;
}
.collection-totals strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
}
@media (max-width: 1200px) {
  .collection-entry {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .collection-controls {
    grid-template-columns: 1fr 1fr;
  }
  .collection-controls > span {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .collection-controls,
  .collection-entry {
    grid-template-columns: 1fr;
  }
  .collection-suggestions button {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .collection-totals {
    grid-template-columns: 1fr 1fr;
  }
}
.inventory-scope {
  background: #eef3e9;
  border: 1px solid #d9e4d0;
  border-radius: 9px;
  padding: 21px 24px;
  margin-bottom: 24px;
}
.scope-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.scope-heading h2 {
  font-size: 15px;
}
.scope-heading p {
  font-size: 11px;
  color: #829077;
  margin: 4px 0 19px;
}
.scope-heading a {
  font-size: 11px;
  white-space: nowrap;
}
.scope-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.scope-values small {
  display: block;
  font-size: 10px;
  color: #7b896f;
}
.scope-values strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin: 6px 0;
}
.scope-values strong span {
  font-size: 12px;
  font-weight: 400;
  color: #7b896f;
}
.scope-explanation {
  font-size: 12px;
  color: #6b7e5f;
  margin: 18px 0 0;
  border-top: 1px solid #d7e2ce;
  padding-top: 14px;
  line-height: 1.7;
}
.scope-config-preview {
  margin-top: 16px;
  padding: 13px;
  background: #eef4e8;
  border-radius: 6px;
  font-size: 12px;
  color: #688254;
}
.report .inventory-scope {
  margin-top: 20px;
}
.report .scope-heading a {
  display: none;
}
.report .scope-values strong {
  font-size: 19px;
}
.report .scope-explanation {
  font-size: 11px;
}
.report .scope-heading p {
  font-size: 10px;
}
.report .panel {
  padding: 14px;
  margin: 15px 0;
}
.report .panel h2 {
  margin-top: 0;
}
.report .panel .table-wrap {
  max-height: none;
  overflow: visible;
}
.report .panel p {
  font-size: 11px;
}
@media (max-width: 1000px) {
  .scope-values {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
@media (max-width: 700px) {
  .inventory-scope {
    padding: 16px;
  }
  .scope-heading {
    display: block;
  }
  .scope-heading a {
    display: block;
    margin-bottom: 15px;
  }
  .scope-values strong {
    font-size: 22px;
  }
}
@media print {
  .inventory-scope,
  .scope-values {
    break-inside: avoid;
  }
  .scope-heading a {
    display: none;
  }
}
.height-chart-wrap {
  width: 100%;
  overflow: auto;
}
.height-chart {
  display: block;
  width: 100%;
  height: auto;
  min-width: 460px;
}
.abbrev-legend {
  font-size: 11px !important;
  line-height: 1.7 !important;
  color: #74806e;
  margin: 14px 0 0;
}
.occurrence {
  display: block;
  white-space: normal;
  min-width: 115px;
  max-width: 235px;
  line-height: 1.7;
}
.report-findings {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 20px;
}
.report-findings li {
  margin: 8px 0;
}
.report .height-chart {
  min-width: 0;
}
.report .abbrev-legend {
  font-size: 10px !important;
}
.report .table-wrap table {
  table-layout: auto;
}
.report th {
  font-size: 9px;
}
.report td {
  font-size: 11px;
}
.report .occurrence {
  min-width: 70px;
  max-width: 150px;
}
.report .height-chart-wrap {
  overflow: visible;
}
.report h3 {
  break-after: avoid;
}
.methodology-note {
  margin: 12px 0;
  font-size: 12px;
  color: #738169;
  line-height: 1.7;
}
@media print {
  .height-chart-wrap {
    overflow: visible;
  }
  .height-chart {
    min-width: 0;
  }
  .report-findings {
    font-size: 11px;
  }
  .abbrev-legend {
    break-before: avoid;
  }
}
.structure-charts {
  grid-template-columns: 1fr;
}
.structure-charts .height-chart {
  max-width: 1000px;
  margin: auto;
}
.reference-list {
  padding-left: 1.3rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.reference-list li {
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
}
.stage-badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #d7dfd6;
  border-radius: 5px;
  white-space: nowrap;
}
.stage-0 {
  background: #fbe7da;
}
.stage-1 {
  background: #e4edd8;
}
.stage-2 {
  background: #d8e9e0;
}
.report .table-wrap {
  margin: 16px 0;
}
.report .reference-list {
  font-size: 11px;
}
@media print {
  .report .table-wrap {
    overflow: visible;
  }
  .report table {
    font-size: 8px;
  }
  .stage-badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.collection-mode {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 20px;
  align-items: center;
  margin: 22px 0 12px;
  padding: 16px;
  background: #f4f7f0;
  border: 1px solid #dfe7d8;
  border-radius: 8px;
}
.collection-mode .field {
  margin: 0;
}
.collection-mode p {
  margin: 0;
}
.collection-mode select {
  width: 100%;
}
#collectionStemField[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .collection-mode {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.succession-assistant {
  padding: 14px 16px;
  border: 1px solid #d9e3d0;
  border-radius: 8px;
  background: #f6f8f2;
}
.succession-assistant summary {
  font-weight: 600;
  color: #315c3e;
  cursor: pointer;
}
.succession-assistant p {
  font-size: 12px;
  line-height: 1.6;
}
.succession-assistant textarea {
  min-height: 300px;
  line-height: 1.6;
  font-size: 12px;
  background: #fff;
}
.succession-assistant .field {
  margin: 12px 0;
}
.volume-equation {
  font-size: 16px;
  text-align: center;
  padding: 16px;
  background: #f4f7f0;
  border-radius: 6px;
}
.volume-equation sup {
  font-size: 0.75em;
}
/* Ponto Flora 0.8 — identity, navigation and lighter work surface */
:root {
  --green: #074b2b;
  --light: #eff4e5;
  --ink: #24382e;
  --muted: #67776d;
  --line: #e1e8e2;
  --bg: #f8faf8;
  --gold: #809b08;
}
body {
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
aside {
  padding: 17px 18px 24px;
  background: #fff;
  border-right: 1px solid #dce5de;
}
.brand {
  height: 80px;
  position: relative;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.brand img {
  position: absolute;
  width: 240px;
  max-width: none;
  height: auto;
  left: -14px;
  top: -21px;
}
.workspace {
  font-size: 10px;
  letter-spacing: 1.25px;
  font-weight: 800;
  color: #244d36;
  margin: 24px 12px 14px;
}
nav a {
  color: #3f5848;
  font-size: 13px;
  font-weight: 500;
  padding: 12px;
  margin: 5px 0;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
nav a:hover {
  background: #f0f5ed;
  color: #074b2b;
}
nav a.active {
  background: #074b2b;
  color: #fff;
  border-color: #074b2b;
  box-shadow: inset 4px 0 0 #94ad25;
  font-weight: 650;
}
nav a.active small {
  color: #deebd5;
}
nav a .icon {
  font-size: 17px;
}
.aside-bottom {
  color: #52685a;
}
.aside-bottom button {
  border-color: #d2dfd3;
}
header {
  background: #074b2b;
  color: white;
  border-bottom: 3px solid #8ba51d;
  height: 80px;
}
.breadcrumb,
.breadcrumb b {
  color: #fff;
}
.breadcrumb span {
  color: #a5c0ab;
}
.header-actions .tag {
  background: #ffffff17;
  border-color: #ffffff40;
  color: white;
}
.header-actions button {
  color: #fff;
  background: #ffffff12;
  border-color: #ffffff50;
}
.header-actions button:hover {
  background: #ffffff25;
}
h1 {
  font-weight: 650;
  letter-spacing: -0.65px;
}
.eyebrow {
  color: #627e3e;
  font-weight: 700;
}
.panel,
.card {
  border-color: #dfe7df;
  box-shadow: 0 2px 8px #17362204;
  border-radius: 12px;
}
.panel-header p,
.subtitle,
.muted {
  color: #65766a;
}
.field {
  color: #415c48;
  font-size: 12px;
}
.field small {
  color: #6e7f71;
  font-size: 11px;
}
.field input,
.field select,
.field textarea {
  border-color: #cfdbcf;
  color: #213d2a;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #bdcd94;
  outline-offset: 1px;
}
th {
  color: #39573e;
  background: #f0f5eb;
}
.tabbar {
  gap: 8px;
  border-bottom: 0;
  padding: 5px;
  border-radius: 9px;
  background: #eaf0e6;
  flex-wrap: wrap;
}
.tabbar button {
  border-radius: 6px;
  border: 0;
  padding: 10px 15px;
  color: #3d5944;
}
.tabbar button.selected {
  background: #074b2b;
  color: #fff;
  border-bottom: 0;
}
.bar {
  background: #356c43;
}
.colbar i {
  background: #356c43;
}
.welcome,
.inventory-scope {
  background: #f0f5e8;
  border-color: #d8e4cb;
}
.report {
  box-shadow: 0 4px 20px #16332006;
}
.report-logo {
  display: block;
  width: 270px;
  max-width: 70%;
  height: auto;
  margin: -22px 0 -8px -16px;
}
.report h1 {
  font-family: Cambria, Georgia, serif;
}
.report th {
  background: #edf3e8;
  color: #294b33;
}
.height-chart {
  max-width: 100%;
}
.aside-bottom p {
  font-weight: 600;
}
.reference-list a {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .brand img {
    width: 208px;
    left: -12px;
    top: -15px;
  }
  .brand {
    height: 76px;
  }
}
@media (max-width: 700px) {
  aside {
    padding: 8px 15px 12px;
  }
  .brand {
    width: 215px;
    height: 70px;
  }
  .brand img {
    width: 240px;
    left: -14px;
    top: -23px;
  }
  nav a.active {
    box-shadow: inset 0 -3px 0 #94ad25;
  }
  header {
    height: auto;
    min-height: 62px;
  }
  .tabbar {
    flex-wrap: nowrap;
    overflow: auto;
  }
  .report-logo {
    width: 240px;
    margin: -15px 0 -5px -12px;
  }
}
@media print {
  .report {
    box-shadow: none;
  }
  .report-logo {
    width: 230px;
    max-width: none;
    margin: -16px 0 -8px -12px;
  }
  th {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .height-chart {
    break-inside: avoid;
  }
}
/* Planejamento amostral */
.planner-intro {
  background: #edf3e7;
  border-left: 4px solid #718d3d;
  padding: 20px 24px;
  margin: 0 0 24px;
  border-radius: 6px;
}
.planner-intro p {
  margin: 7px 0 0;
}
.planner-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.planner-metrics > div {
  background: #f2f6ed;
  padding: 17px;
  border-radius: 8px;
}
.planner-metrics small {
  display: block;
  color: #5d715e;
}
.planner-metrics strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
  color: #18513a;
}
.planner-map {
  width: 100%;
  max-height: 560px;
  border: 1px solid #dce5d6;
  border-radius: 10px;
  display: block;
  margin-top: 20px;
}
.planner-map.drawing {
  cursor: crosshair;
}
.planner-map-legend {
  display: flex;
  gap: 22px;
  font-size: 12px;
  padding: 10px 0;
  color: #627962;
}
.planner-result {
  background: #eaf2e2;
  padding: 20px 24px;
  border-radius: 9px;
  margin-top: 20px;
}
.planner-result > strong {
  font-size: 25px;
  color: #1a5a3d;
}
.planner-location-table {
  max-height: 350px;
  overflow: auto;
}
#plannerForm .panel {
  margin-bottom: 22px;
}
#plannerForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #526a52;
  font-size: 13px;
}
#plannerForm textarea,
#plannerForm input,
#plannerForm select {
  width: 100%;
  box-sizing: border-box;
}
#plannerForm .tools {
  margin: 18px 0;
  flex-wrap: wrap;
}
#plannerForm progress {
  width: 100%;
  height: 12px;
  accent-color: #53815a;
}
#plannerForm details {
  margin: 18px 0;
}
#plannerForm .notice {
  background: #fff5df;
  padding: 14px;
  border: 1px solid #ead7a9;
  border-radius: 6px;
}
#plannerForm .table-scroll input {
  min-width: 120px;
}
.header-actions {
  flex-wrap: wrap;
}
#openPlanner {
  color: #27583d;
  border-color: #829b5e;
  background: #f4f7ef;
}
@media (max-width: 1000px) {
  .planner-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .planner-metrics {
    grid-template-columns: 1fr;
  }
  .planner-map-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-actions {
    gap: 7px;
  }
  .planner-result > strong {
    font-size: 21px;
  }
}
@media print {
  #plannerForm .tools {
    display: none;
  }
}
#plannerForm input,
#plannerForm select,
#plannerForm textarea {
  padding: 11px 12px;
  border: 1px solid #d3dfcc;
  border-radius: 6px;
  background: white;
  font: inherit;
  color: #284b35;
  min-height: 42px;
}
#plannerForm input[readonly] {
  background: #edf3e7;
}
#plannerForm input:focus,
#plannerForm select:focus,
#plannerForm textarea:focus {
  outline: 2px solid #a5be8c;
  outline-offset: 1px;
}

/* ==========================================================================
   Ponto Flora 1.1 — refinamento visual, campo (toque/sol) e desempenho
   ========================================================================== */
:root {
  --green-900: #053a21;
  --green-700: #074b2b;
  --green-500: #2f6b47;
  --olive: #8ba51d;
  --radius: 10px;
  --shadow-sm: 0 1px 2px #0b2a1a0d, 0 1px 1px #0b2a1a08;
  --shadow-md: 0 6px 22px #0b2a1a12;
  --focus: 0 0 0 3px #a9c46a;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Logo recortada: não precisa mais de deslocamentos para esconder margens */
.brand {
  height: auto;
  overflow: visible;
  position: static;
  display: block;
  padding: 6px 4px 2px;
}
.brand picture,
.brand img {
  position: static;
  display: block;
  width: 100%;
  max-width: 206px;
  height: auto;
}
.workspace {
  margin: 26px 12px 10px;
}
/* Navegação com ícones vetoriais */
nav a {
  align-items: center;
  border-radius: 9px;
}
nav a .icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}
nav a.active .icon {
  opacity: 1;
}
nav a small {
  background: #eef3ea;
  border-radius: 99px;
  padding: 1px 8px;
  font-weight: 600;
}
nav a.active small {
  background: #ffffff22;
}
.card .mini {
  display: inline-grid;
  place-items: center;
  color: var(--green-500);
}
.card {
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.panel {
  box-shadow: var(--shadow-sm);
}
/* Botões e campos: foco visível (teclado) e alvos de toque maiores */
button {
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button.primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
}
button.ghost {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7f9d55;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 8px;
}
#content:focus {
  outline: none;
}
/* Tabelas longas: cabeçalho fixo e paginação */
.table-wrap {
  max-height: 72vh;
  overflow: auto;
}
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5ee;
}
tbody tr:hover td {
  background: #f7faf4;
}
td,
th {
  font-variant-numeric: tabular-nums;
}
.table-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.table-more span {
  margin-right: auto;
}
/* Estado de gravação e conexão */
.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Carregamento inicial */
.boot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 60px 0;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cfdcc8;
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Diálogo */
dialog {
  border-radius: 14px;
  box-shadow: 0 24px 60px #0b2a1a33;
}
dialog::backdrop {
  background: #0b2a1a59;
  backdrop-filter: blur(2px);
}
#toast {
  box-shadow: var(--shadow-md);
  border-radius: 10px;
}
/* Menu móvel (gaveta) */
.menu-toggle,
.scrim {
  display: none;
}
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: #ffffff14;
    border-color: #ffffff4d;
  }
  aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    z-index: 60;
    overflow-y: auto;
    box-shadow: 0 0 40px #0b2a1a40;
  }
  body.menu-open aside {
    transform: none;
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0b2a1a66;
    z-index: 50;
  }
  .scrim[hidden] {
    display: none;
  }
  aside .workspace,
  aside .aside-bottom {
    display: flex;
  }
  aside .aside-bottom {
    flex-direction: column;
    gap: 8px;
  }
  aside .workspace {
    display: block;
  }
  nav {
    display: block;
    overflow: visible;
    margin-top: 0;
  }
  nav a {
    white-space: normal;
    padding: 12px;
    min-height: 46px;
  }
  nav a .icon,
  nav a small {
    display: inline-grid;
  }
  nav a.active {
    box-shadow: inset 4px 0 0 #94ad25;
  }
  .brand {
    width: auto;
    height: auto;
  }
  .brand img {
    width: 100%;
    max-width: 210px;
  }
  main {
    margin-left: 0;
  }
  header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    height: auto;
    min-height: 60px;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .breadcrumb {
    display: block;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }
  .breadcrumb {
    font-size: 0;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb #projectName {
    font-size: 14px;
  }
  .header-actions {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }
  #openPlanner,
  #biomeTag {
    display: none;
  }
  #newProject {
    padding: 8px 10px;
    white-space: nowrap;
  }
}
@media (max-width: 700px) {
  /* Campos com 16 px evitam o zoom automático do iPhone ao tocar */
  input,
  select,
  textarea {
    font-size: 16px;
  }
  button {
    min-height: 44px;
  }
  button.tiny {
    min-height: 36px;
  }
  .page-heading .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .page-heading .actions button {
    width: 100%;
    margin: 0;
  }
  .table-wrap {
    max-height: none;
  }
  .table-more button {
    flex: 1;
  }
  dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .menu-toggle,
  .scrim,
  .skip-link,
  .table-more {
    display: none !important;
  }
  .table-wrap {
    max-height: none;
    overflow: visible;
  }
}
.import-errors ol {
  max-height: 46vh;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px 12px 12px 34px;
  background: #fff7f5;
  border: 1px solid #f0d2cc;
  border-radius: 8px;
  color: #7a2e25;
  font-size: 13px;
}
.import-errors li + li {
  margin-top: 4px;
}
/* Logo recortada no relatório: sem margens negativas */
.report-logo {
  width: 240px;
  max-width: 70%;
  margin: 0 0 14px;
}
@media print {
  .report-logo {
    width: 210px;
    margin: 0 0 10px;
  }
}
