.soil {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 24px;
  color: #193c2e;
}
.soil-header {
  padding: 20px 0 12px;
  border-bottom: 1px solid #dce5dc;
}
.soil-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.soil-title h1 {
  font-size: 30px;
  margin: 3px 0;
}
.soil .ey {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #617566;
}
.soil-emblem {
  display: grid;
  place-items: center;
  background: #e1eddf;
  color: #326944;
  border-radius: 18px;
  width: 58px;
  height: 58px;
}
.soil-emblem svg,
.soil-empty > span svg {
  width: 32px;
  height: 32px;
}
.soil-header p {
  color: #65746a;
  font-size: 15px;
  margin: 14px 0 18px;
}
.soil button {
  min-height: 44px;
}
.soil-header > .primary {
  padding: 13px 22px;
  border-radius: 12px;
}
.soil #soil-status:empty {
  display: none;
}
.soil #soil-status {
  padding: 12px;
  background: #e9f3e7;
  border-radius: 10px;
  line-height: 1.5;
}
.soil-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
  gap: 12px;
}
.soil-stats div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dbe4db;
  gap: 3px;
}
.soil-stats div:last-child {
  border: 0;
}
.soil-stats strong {
  font-size: 28px;
  line-height: 1.15;
}
.soil-stats span {
  font-size: 13px;
  color: #65746a;
}
.soil-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 12px;
  align-items: end;
}
.soil-filters label {
  font-size: 12px;
  display: grid;
  gap: 6px;
  margin: 0;
}
.soil-filters input,
.soil-filters select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #dce5dc;
  color: #193c2e;
  padding: 10px;
  font-size: 15px;
}
.soil-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0 10px;
}
.soil-list-heading h2 {
  font-size: 19px;
  margin: 0;
}
.soil-list-heading span {
  font-size: 12px;
  color: #65746a;
}
.soil-sample {
  background: #fff;
  border: 1px solid #e0e7de;
  border-radius: 16px;
  margin: 0 0 10px;
  overflow: hidden;
}
.soil-sample > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 16px;
}
.soil-sample > summary::-webkit-details-marker {
  display: none;
}
.soil-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #edf2e7;
  border-radius: 11px;
  color: #507541;
  font-size: 13px;
  font-weight: 700;
}
.soil-sample-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.soil-sample-heading strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.soil-sample-heading small {
  font-size: 11px;
  color: #728077;
  line-height: 1.4;
}
.soil-quick {
  grid-column: 2/4;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: #6b776e;
  padding-top: 4px;
}
.soil-quick b {
  color: #214c34;
  font-size: 15px;
  margin-left: 3px;
}
.soil-quick small {
  font-size: 10px;
}
.soil-chevron {
  transition: transform 0.15s;
}
.soil-sample[open] .soil-chevron {
  transform: rotate(180deg);
}
.soil-sample[open] > summary {
  background: #f2f7ee;
  border-bottom: 1px solid #e0e7de;
}
.soil-detail {
  padding: 18px 16px;
}
.soil-properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.soil-properties div {
  display: grid;
  gap: 5px;
}
.soil-properties span {
  color: #728077;
  font-size: 12px;
}
.soil-properties strong {
  font-size: 13px;
}
.soil-detail h3 {
  font-size: 15px;
  margin: 25px 0 8px;
}
.soil-values {
  margin: 0;
}
.soil-values > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0eb;
}
.soil-values dt {
  font-size: 14px;
}
.soil-values dt small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #728077;
  max-width: 200px;
  margin-top: 4px;
}
.soil-values dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.soil-values dd small {
  font-size: 11px;
  font-weight: 400;
  color: #65746a;
}
.soil-footnote,
.soil-source p {
  font-size: 12px;
  line-height: 1.6;
  color: #728077;
}
.soil-source summary,
.soil-help summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  align-content: center;
}
.soil-source dl {
  font-size: 12px;
  margin: 0;
}
.soil-source dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.soil-source dt {
  color: #728077;
}
.soil-source dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.soil-paging {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
}
.soil-paging[hidden] {
  display: none;
}
.soil-help {
  margin-top: 24px;
  border-top: 1px solid #dce5dc;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #65746a;
}
.soil-help li {
  padding: 4px 0;
}
.soil-help ol {
  padding-left: 22px;
}
.soil-empty {
  text-align: center;
  padding: 44px 20px 26px;
}
.soil-empty > span {
  display: inline-grid;
  place-items: center;
  background: #e6efde;
  padding: 20px;
  border-radius: 50%;
}
.soil-empty h2 {
  font-size: 20px;
  margin: 22px 0 10px;
}
.soil-empty p {
  max-width: 410px;
  margin: auto;
  font-size: 14px;
  color: #728077;
  line-height: 1.7;
}
.soil-empty-small {
  padding: 20px 0;
  font-size: 14px;
  color: #728077;
}
.soil-dialog {
  padding: 0;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  border: 0;
  border-radius: 20px;
  color: #193c2e;
  background: #f6f8f2;
  box-sizing: border-box;
  overflow: auto;
}
.soil-dialog::backdrop {
  background: #08271999;
}
.soil-dialog form {
  padding: 20px;
}
.soil-dialog header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.soil-dialog header h2 {
  font-size: 22px;
  margin: 7px 0;
}
.soil-dialog header button {
  min-width: 44px;
  min-height: 44px;
}
.soil-dialog .ey {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #728077;
}
.soil-dialog p {
  font-size: 13px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.soil-import-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
}
.soil-import-summary strong {
  font-size: 24px;
}
.soil-import-summary span {
  font-size: 14px;
  color: #65746a;
}
.soil-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: -20px;
  background: #f6f8f2;
  padding: 14px 0;
  border-top: 1px solid #dce5dc;
}
.soil-dialog footer button {
  min-height: 46px;
}
.soil-dialog [role='alert']:not(:empty),
.soil-alert {
  background: #fff0dc;
  color: #704211;
  padding: 12px;
  border-radius: 10px;
}
.soil-dialog button:disabled,
.soil button:disabled {
  opacity: 0.5;
  cursor: default;
}
.soil-preview {
  margin: 16px 0;
}
.soil button:focus-visible,
.soil summary:focus-visible,
.soil-dialog summary:focus-visible {
  outline: 3px solid #568e50;
  outline-offset: 3px;
}
.soil-map-section {
  margin: 24px 0 20px;
}
.soil-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.soil-map-heading h2 {
  font-size: 19px;
  margin: 0 0 6px;
}
.soil-map-heading p {
  font-size: 12px;
  color: #65746a;
  margin: 0;
  line-height: 1.5;
}
.soil-map-heading button {
  font-size: 12px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.soil-map-canvas {
  height: 460px;
  height: clamp(320px, 52dvh, 540px);
  border-radius: 18px;
  background: #e5eadf;
  isolation: isolate;
  z-index: 0;
}
.soil-map-canvas .leaflet-control-zoom a {
  min-height: 36px;
  min-width: 36px;
  line-height: 36px;
}
.soil-map-legend {
  display: flex;
  gap: 20px;
  margin: 12px 0 4px;
  font-size: 12px;
  color: #65746a;
}
.soil-map-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.soil-legend-dot {
  display: block;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: #225f3e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #225f3e;
}
.soil-legend-field {
  display: block;
  width: 17px;
  height: 12px;
  border: 2px solid #a2be86;
  background: #e5edd8;
}
.soil-map-status {
  font-size: 12px !important;
  color: #65746a;
  line-height: 1.6;
}
.soil-map-marker {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
}
.soil-map-number {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 5px;
  background: #205e3e;
  color: white;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0007;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.soil-map-marker.selected .soil-map-number {
  background: #ffe27a;
  color: #193c2e;
  transform: scale(1.1);
  border-color: #1b4b31;
}
.soil-map-marker:focus-visible {
  outline: 3px solid #ffe27a;
  outline-offset: 2px;
  border-radius: 50%;
}
.soil-detail-dialog {
  padding: 20px;
}
.soil-detail-dialog > header {
  margin-bottom: 18px;
}
.soil-detail-dialog > footer {
  bottom: -20px;
}
.soil-detail-dialog .soil-sample {
  margin-top: 8px;
}
.soil-detail-dialog > .soil-footnote {
  font-size: 12px;
}
@media (max-width: 500px) {
  .soil-header {
    padding-top: 4px;
  }
  .soil-header > .primary {
    width: 100%;
  }
  .soil-filters {
    grid-template-columns: 1fr;
  }
  .soil-filters label:last-child {
    grid-template-columns: 1fr 165px;
    align-items: center;
  }
  .soil-title h1 {
    font-size: 27px;
  }
  .soil-quick {
    gap: 14px;
  }
  .soil-sample > summary {
    padding: 14px 12px;
    gap: 8px;
  }
  .soil-detail {
    padding: 16px 12px;
  }
  .soil-dialog form {
    padding: 16px;
  }
  .soil-dialog footer {
    bottom: -16px;
  }
  .soil-source dl > div {
    flex-direction: column;
    gap: 3px;
  }
  .soil-source dd {
    text-align: left;
  }
  .soil-map-canvas {
    border-radius: 14px;
    height: clamp(330px, 54dvh, 500px);
  }
  .soil-detail-dialog {
    padding: 16px;
  }
  .soil-detail-dialog > footer {
    bottom: -16px;
  }
}
.soil-map-cluster {
  background: #f6e7b6;
  border-color: #fff8df;
  color: #214c34;
  font-size: 11px;
  min-width: 40px;
}
.soil-map-heading p {
  max-width: 350px;
}
.soil-map-gps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.soil-map-gps button {
  border-radius: 10px;
  min-width: 126px;
  font-size: 13px;
  padding: 10px 14px;
}
.soil-map-gps button[aria-pressed='true'] {
  background: #225c3d;
  color: #fff;
  border-color: #225c3d;
}
.soil-map-gps [data-gps-accuracy] {
  flex: 1;
  min-width: 130px;
  color: #52685b;
  font-size: 12px;
  line-height: 1.5;
}
