@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --white: #fff;
  --ink: #202c23;
  --muted: #546457;
  --line: #e3e9df;
  --green: #22583d;
  --green-dark: #173f2c;
  --green-light: #e7f1e8;
  --gold: #75551d;
  --gold-light: #fbf0d7;
  --sidebar: 232px;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #71a66e;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 10;
  background: var(--white);
  padding: 12px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
[data-icon],
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.stat-value {
  font-family: Manrope, Inter, sans-serif;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 800;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.3;
  font-weight: 800;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 30px 17px 18px;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 5px 50px;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 800;
}
.brand-logo { display: block; width: 152px; max-width: 100%; height: auto; }
.navigation {
  display: grid;
  gap: 5px;
}
.nav-label {
  font-size: 0.63rem;
  letter-spacing: 0.105em;
  font-weight: 750;
  color: #617165;
  margin: 0 10px 10px;
}
.navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 11px;
  border-radius: 9px;
  color: #49594d;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 46px;
}
.navigation a:hover {
  background: #f0f4ee;
}
.navigation a[aria-current="page"] {
  background: #e5efe4;
  color: #21543a;
  font-weight: 750;
}
.navigation .icon {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f4ee;
  border: 1px solid #e8eee4;
  border-radius: 10px;
  padding: 11px 9px;
  color: #48634d;
}
.local-info .icon {
  width: 17px;
  height: 17px;
}
.sidebar-bottom strong,
.sidebar-bottom small {
  display: block;
  line-height: 1.35;
}
.sidebar-bottom strong {
  font-size: 0.74rem;
}
.sidebar-bottom small {
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 2px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 15px 4px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #e7eddf;
  color: #3c583c;
  font-weight: 750;
  font-size: 0.71rem;
}
.workspace {
  margin-left: var(--sidebar);
  min-height: 100dvh;
}
.topbar {
  height: 72px;
  background: #fcfdfb;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(23px, 3.2vw, 52px);
  gap: 14px;
}
.crumb,
.top-actions,
.season {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crumb {
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}
.crumb .icon,
.season .icon {
  width: 17px;
  height: 17px;
  color: #637466;
}
.crumb-divider {
  color: #839284;
  font-weight: 500;
}
.mobile-brand,
.mobile-local {
  display: none;
}
.season {
  font-size: 0.78rem;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  white-space: nowrap;
  color: var(--muted);
}
.season strong {
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: var(--green-dark);
}
.secondary {
  background: white;
  color: var(--green);
  border-color: #dce6da;
}
.secondary:hover,
.quiet:hover {
  background: #edf4ec;
}
.quiet {
  background: transparent;
  color: var(--green);
}
.content {
  max-width: 1510px;
  margin: 0 auto;
  padding: 32px clamp(23px, 3.2vw, 52px) 36px;
}
.content:focus {
  outline: none;
}
.hero {
  min-height: 264px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: #183a29;
  color: white;
  padding: 29px 34px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #122e21 3%,
      #173b29f5 28%,
      #1839238f 58%,
      #173c2b1f 100%
    ),
    url("assets/lavoura.jpg") center 53% / cover no-repeat;
}
.hero-body {
  max-width: 440px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d2e8b9;
  font-size: 0.74rem;
  font-weight: 750;
  margin-bottom: 12px;
}
.hero-kicker .icon {
  width: 16px;
  height: 16px;
}
.hero h1 {
  font-size: clamp(2.28rem, 4.55vw, 4.05rem);
  line-height: 1;
  letter-spacing: -0.075em;
}
.hero p {
  max-width: 375px;
  margin: 12px 0 19px;
  color: #e7efe5;
  line-height: 1.5;
  font-size: 0.95rem;
}
.hero .button {
  background: #d5edb4;
  color: #193924;
}
.hero .button:hover {
  background: #ecf7d9;
}
.hero-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: white;
  background: #15291dbb;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.64rem;
}
.hero-credit:hover {
  text-decoration: underline;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 19px 0 23px;
}
.stat,
.panel,
.field-card,
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 4px #23422c04;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 13px;
  min-height: 99px;
}
.stat:hover {
  border-color: #a9c3a8;
}
.tile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  background: #eaf3e9;
  color: #336948;
  border-radius: 10px;
}
.tile-icon.amber,
.crop.milho {
  background: var(--gold-light);
  color: var(--gold);
}
.tile-icon.blue {
  background: #ebf1f4;
  color: #426278;
}
.tile-icon .icon {
  width: 19px;
  height: 19px;
}
.stat-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}
.stat-value {
  font-size: 1.54rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
}
.stat-caption {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.3;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 17px 12px;
}
.panel-head p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.panel-head .button {
  min-height: 32px;
  padding: 6px 7px;
  white-space: nowrap;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0 16px 8px;
}
.visit {
  border-top: 1px solid #edf0eb;
}
.visit > button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 12px 2px;
  background: none;
  border: 0;
  color: var(--ink);
}
.visit > button:hover {
  background: #f8faf7;
}
.visit-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.visit-info strong {
  display: block;
  font-size: 0.85rem;
}
.visit-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}
.visit-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
}
.visit-side time {
  color: var(--muted);
  font-size: 0.7rem;
}
.chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip .icon {
  width: 13px;
  height: 13px;
}
.crop.soja,
.status-ok {
  background: #e9f3e9;
  color: #2e6140;
}
.status-watch {
  background: #fcf0d8;
  color: #72531e;
}
.status-critical {
  background: #fbeae6;
  color: #8a3e32;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 9px 0 23px;
}
.page-head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.segments {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.segments button {
  border: 0;
  background: white;
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.83rem;
}
.segments button[aria-pressed="true"] {
  background: var(--green-light);
  color: var(--green);
}
.segments button:hover {
  background: #eef3ed;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(100%, 220px);
  flex: 1;
  max-width: 420px;
}
.search > [data-icon] {
  position: absolute;
  left: 11px;
  color: #67776a;
  pointer-events: none;
}
.search input {
  padding-left: 38px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.81rem;
}
.source-links,
.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-links a + a {
  margin-left: 10px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.product-card,
.field-card {
  min-width: 0;
  padding: 16px;
}
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #7ba474;
}
.product-card.milho::before {
  background: #d4aa59;
}
.product-top,
.field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}
.product-card h2,
.field-card h2 {
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}
.product-card p,
.field-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.product-meta {
  min-height: 38px;
  margin-top: 9px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  margin-top: 9px;
}
.card-actions .button {
  padding: 7px 9px;
  min-height: 35px;
}
.compare-toggle[aria-pressed="true"] {
  background: var(--green-light);
  border-color: #aec8ad;
}
.compare-bar {
  position: sticky;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #214c35;
  color: white;
  box-shadow: 0 5px 20px #2039273b;
}
.compare-bar .button {
  background: #e7f3df;
  color: #244d36;
}
.compare-bar span {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.compare-bar[hidden] {
  display: none;
}
.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.field-layout aside {
  position: sticky;
  top: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.field-card .button {
  margin-top: 13px;
}
.field-card .field-product {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 650;
}
.fields-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}
.empty > strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.empty .button {
  margin-top: 12px;
}

dialog {
  width: min(100% - 25px, 600px);
  max-height: calc(100dvh - 30px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  box-shadow: 0 22px 75px #11281948;
}
dialog::backdrop {
  background: #14251bb0;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 19px 20px 13px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 1.42rem;
  overflow-wrap: anywhere;
}
.dialog-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
}
.icon-button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 37px;
  min-height: 37px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--green);
}
.icon-button:hover {
  background: #eef4eb;
}
.dialog-body {
  padding: 16px 20px 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 650;
  min-width: 0;
}
.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  background: white;
  color: var(--ink);
  border: 1px solid #d3dfd0;
  border-radius: 8px;
  padding: 10px 11px;
  width: 100%;
  min-height: 43px;
  font-size: 1rem;
}
select {
  appearance: none;
  padding-right: 34px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23546457' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E")
    right 9px center/17px no-repeat;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
.form-note,
.form-error {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.form-error {
  color: #8a3e32;
}
.form-error:empty {
  display: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.detail-grid div {
  border: 1px solid var(--line);
  background: #f7f9f5;
  padding: 10px;
  border-radius: 8px;
  min-width: 0;
}
.detail-grid dt {
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-grid dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.note {
  color: var(--muted);
  margin-top: 15px;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.81rem;
  overflow-wrap: anywhere;
  text-align: left;
}
.compare-table th,
.compare-table td {
  vertical-align: top;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead {
  background: #eef4ec;
}
#notification {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: min(380px, calc(100vw - 36px));
  background: #214c35;
  color: white;
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 650;
  padding: 11px 14px;
  box-shadow: 0 4px 15px #21382a45;
}
#notification:empty {
  display: none;
}

@media (max-width: 1120px) {
  :root {
    --sidebar: 199px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .stat {
    gap: 8px;
    padding: 12px 9px;
  }
  .stat .tile-icon {
    width: 33px;
    height: 33px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 880px) {
  .dashboard-grid,
  .field-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-layout aside {
    position: static;
  }
  .map-area {
    aspect-ratio: 2.8;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .stat {
    min-height: 87px;
  }
}
@media (max-width: 690px) {
  .workspace {
    margin-left: 0;
    padding-bottom: 67px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    padding: 4px 7px max(6px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
  }
  .brand,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  .navigation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .navigation a {
    flex-direction: column;
    gap: 4px;
    padding: 6px 2px;
    justify-content: center;
    min-height: 49px;
    font-size: 0.64rem;
    text-align: center;
  }
  .navigation .icon {
    width: 19px;
    height: 19px;
  }
  .topbar {
    height: 59px;
    padding-inline: 13px;
    gap: 7px;
  }
  .top-actions {
    gap: 6px;
  }
  .topbar .button {
    padding-inline: 8px;
    min-height: 36px;
    font-size: 0.71rem;
  }
  .season {
    padding: 7px 5px;
    font-size: 0.68rem;
  }
  .season .icon,
  .crumb {
    display: none;
  }
  .mobile-brand {
    display: inline-block;
    font:
      800 1.15rem/1 Manrope,
      Inter,
      sans-serif;
    letter-spacing: -0.06em;
  }
  .mobile-local {
    display: block;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
  }
  .content {
    padding: 14px 12px 23px;
  }
  .hero {
    min-height: 239px;
    padding: 24px 17px;
    border-radius: 13px;
  }
  .hero::before {
    background:
      linear-gradient(90deg, #143222 1%, #163c28da 54%, #15382655),
      url("assets/lavoura.jpg") center/cover no-repeat;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.65rem);
  }
  .hero p {
    font-size: 0.88rem;
  }
  .stats {
    margin: 11px 0 14px;
  }
  .dashboard-grid {
    gap: 12px;
  }
  .panel-head {
    padding-inline: 12px;
  }
  .list {
    padding-inline: 11px;
  }
  .page-head {
    align-items: start;
    margin: 5px 0 17px;
  }
  .page-head .button {
    flex: none;
    padding-inline: 8px;
  }
  .card-grid,
  .field-grid {
    gap: 8px;
  }
  .product-card,
  .field-card {
    padding: 12px 9px;
  }
  .product-card h2,
  .field-card h2 {
    font-size: 1rem;
  }
  .card-actions .button {
    padding: 6px;
    min-height: 34px;
    font-size: 0.69rem;
  }
  .catalog-meta {
    font-size: 0.74rem;
  }
  #notification {
    bottom: 72px;
  }
}
@media (max-width: 370px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body,
  .dialog-head {
    padding-inline: 13px;
  }
  .visit-info small {
    font-size: 0.68rem;
  }
  .visit > button {
    gap: 7px;
  }
  .visit .tile-icon {
    width: 30px;
    height: 30px;
  }
  .card-actions {
    flex-wrap: wrap;
  }
}

[hidden] {
  display: none !important;
}
.button:disabled {
  cursor: default;
  opacity: 0.6;
}
.profile-choices {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-choices .button {
  width: 100%;
  justify-content: start;
}
.login-panel {
  max-width: 460px;
  margin: clamp(10px, 8vh, 90px) auto;
}
.login-panel h1 {
  font-size: 2rem;
}
.panel-content {
  padding: 4px 16px 16px;
}
.panel-content .list {
  padding-inline: 0;
}
.field-card > .button {
  margin-top: 12px;
}
.select-filter {
  display: grid;
  gap: 5px;
  max-width: 100%;
  min-width: min(100%, 235px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.status-blue {
  background: #ebf1f4;
  color: #365c73;
}
.status-neutral {
  background: #eff0ed;
  color: #535f54;
}
.record-section {
  margin-block: 16px;
}
.record-section > h2,
.record-section > h3 {
  margin-bottom: 9px;
}
.record-section > p + h3 {
  margin-top: 15px;
}
.record-section h3 .icon,
.evidence h3 .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
}
.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.record-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.record-list li > span:not(.chip) {
  color: var(--muted);
}
.record-list .button {
  padding: 3px 0;
  min-height: 32px;
}
.property + .property {
  margin-top: 13px;
}
.property p {
  margin: 3px 0 8px;
}
.area-summary,
.photo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.area-note {
  margin-bottom: 16px;
}
.evidence {
  min-width: 0;
  margin: 3px 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.evidence legend {
  padding: 0 5px;
  font-weight: 750;
}
.evidence-block + .evidence-block {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.evidence-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}
.evidence .button {
  min-height: 34px;
  padding: 6px 8px;
}
.evidence-block > .quiet {
  padding-inline: 0;
}
.photo-actions .file-button {
  position: relative;
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #71a66e;
  outline-offset: 3px;
}
.file-button:has(input:disabled) {
  opacity: 0.6;
  cursor: default;
}
.file-button input {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: inherit;
}
[data-photo-message] {
  margin-top: 6px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.photo-grid:not(:empty) {
  margin-top: 8px;
}
.photo-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}
.photo-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf3eb;
}
.photo-tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.75rem;
  padding: 4px 7px;
  min-height: 34px;
}
.photo-unavailable figcaption::after {
  content: "Foto indisponível";
  color: #8a3e32;
}
.photo-unavailable a {
  display: none;
}
.entry-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  margin: 5px 0;
  border-top: 1px solid var(--line);
}
.entry-editor > [data-custom-label] {
  grid-column: 1 / -1;
}
.entry-editor > .button {
  justify-self: start;
}

@media (max-width: 880px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 690px) {
  .workspace {
    padding-bottom: 118px;
  }
  .sidebar .navigation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sidebar .navigation a {
    min-height: 44px;
    padding-block: 4px;
  }
  .topbar .season {
    display: none;
  }
  #notification {
    bottom: 110px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .record-list li {
    font-size: 0.78rem;
  }
}
@media (max-width: 370px) {
  .entry-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}

.atlas-page {
  --atlas-border: #dce6d9;
}
.atlas-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.atlas-heading p {
  color: var(--muted);
  margin-top: 7px;
}
.atlas-shell {
  display: grid;
  grid-template-columns: minmax(285px, 345px) minmax(0, 1fr);
  border: 1px solid var(--atlas-border);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 15px #1839270a;
}
.atlas-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--atlas-border);
}
.atlas-controls {
  padding: 15px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.atlas-search {
  max-width: none;
}
.search > .icon {
  position: absolute;
  left: 11px;
  color: var(--muted);
  pointer-events: none;
}
.atlas-search input {
  min-height: 48px;
  border-color: #adc3af;
}
.atlas-filters,
.nearby-tools,
.geo-controls,
.place-actions,
.place-routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.map-filter {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
}
.map-filter[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.field-top {
  flex-wrap: wrap;
}
.nearby-tools .button {
  min-height: 38px;
}
.nearby-tools select {
  min-height: 38px;
  font-size: .82rem;
}
#nearby-status:empty,
[data-geo-status]:empty {
  display: none;
}
.atlas-count {
  padding: 12px 15px 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.atlas-results {
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
  min-height: 130px;
  max-height: min(49vh, 410px);
  overflow: auto;
}
.atlas-result {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  display: flex;
  min-height: 63px;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 7px;
}
.atlas-result:is(:hover,[aria-pressed="true"]) {
  background: #f1f6ee;
  border-color: #dce9db;
}
.atlas-result span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.atlas-result strong,
.atlas-result small {
  display: block;
  line-height: 1.35;
}
.atlas-result strong {
  font-size: .87rem;
}
.atlas-result small {
  color: var(--muted);
  font-size: .72rem;
}
.atlas-empty {
  padding: 13px 7px;
  color: var(--muted);
}
.atlas-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.leaflet-surface {
  flex: 1;
  min-height: clamp(470px, 70vh, 720px);
  isolation: isolate;
}
.leaflet-surface,
.geo-sketch {
  background: #edf3e8;
  font-family: Inter, sans-serif;
}
.atlas-foot {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 4px 12px;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .73rem;
}
.atlas-foot .button {
  min-height: 35px;
  padding-inline: 5px;
}
.map-basemaps {
  position: relative;
  border: 1px solid #dce9db;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 6px #17332838;
}
.map-basemap-summary,
.map-basemaps button {
  border: 0;
  border-radius: 6px;
  min-height: 31px;
  padding: 4px 8px;
  font-size: .74rem;
  font-weight: 750;
  color: var(--green);
  background: #fff;
}
.map-basemap-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 11px;
  list-style: none;
}
.map-basemap-summary::-webkit-details-marker {
  display: none;
}
.map-basemap-summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.map-basemap-menu {
  position: absolute;
  right: -1px;
  top: calc(100% + 5px);
  width: min(222px, calc(100vw - 56px));
  max-height: 55vh;
  overflow: auto;
  border: 1px solid #dce9db;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #17332838;
  padding: 8px;
}
.map-base-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}
.map-base-options button {
  border: 1px solid #e3ece1;
  text-align: left;
  line-height: 1.2;
}
.map-layer-search {
  min-height: 34px;
  padding: 6px 8px;
  font-size: .84rem;
}
.map-overlay-options {
  display: grid;
  margin-top: 7px;
}
.map-overlay-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: var(--ink);
  font-size: .76rem;
}
.map-overlay-options input {
  width: 15px;
  height: 15px;
  min-height: 0;
  flex: none;
  accent-color: var(--green);
}
.map-layer-empty {
  margin: 8px 0 2px;
}
.map-kind-filter {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.map-place-label {
  padding: 1px 5px;
  font-size: .71rem;
  font-weight: 750;
}
.nearby-tools .button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.map-basemaps button:hover {
  background: #e9f3e9;
}
.map-basemaps button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.leaflet-control-attribution {
  max-width: min(100%, 440px);
  text-align: right;
  line-height: 1.25;
}
.map-symbol {
  display: grid;
  place-items: center;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  color: #fff;
  flex: none;
}
.map-symbol .icon {
  width: 17px;
  height: 17px;
}
.map-agricultor { background: #286047; }
.map-fazenda { background: #285d92; }
.map-talhao { background: #8a5a1d; }
.map-area { background-color: #76468d; }
.location-marker .map-symbol {
  border: 2px solid white;
  transform: scale(.93);
  border-radius: 50%;
  box-shadow: 0 2px 7px #17332860;
}
.place-title,
.property-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.place-title {
  justify-content: start;
}
.leaflet-popup-content .place-card p {
  margin: 0 0 6px;
}
.leaflet-popup-content .place-card .form-note {
  margin: 7px 0;
}
.place-card .place-routes,
.place-actions .place-routes {
  flex-basis: 100%;
}
.place-actions .button,
.place-routes .button,
.property-head .button {
  min-height: 34px;
  padding: 6px 8px;
}
.leaflet-popup-content .button.primary {
  color: #fff;
}
.leaflet-popup-content .button.secondary {
  color: var(--green);
}
.geo-controls {
  margin-block: 9px 4px;
}
.geo-sketch {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 250px;
  margin-top: 9px;
  isolation: isolate;
}
.template-summary {
  padding: 0;
  list-style: none;
  margin: 10px 0 0;
}
.template-summary li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: .79rem;
}
.template-summary small {
  color: var(--muted);
}
.evidence .check-inline {
  display: flex;
  align-items: center;
}
.check-inline input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.assessment-summary {
  display: grid;
  gap: 9px;
}
.assessment-summary h4 {
  margin: 4px 0 6px;
  font-size: .86rem;
}
.report-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--ink);
}
.report-head {
  margin-bottom: 12px;
}
.report-head span {
  color: var(--green);
  font-weight: 800;
}
.report-head h2 {
  margin-top: 5px;
}
.report-share-note {
  margin-top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 930px) {
  .atlas-shell { grid-template-columns: minmax(245px, 29vw) minmax(0, 1fr); }
}
@media (max-width: 690px) {
  .sidebar .navigation { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sidebar .nav-label { display: none; }
  .atlas-shell { grid-template-columns: minmax(0, 1fr); }
  .atlas-list { display: contents; }
  .atlas-controls { grid-row: 1; padding: 11px; gap: 7px; }
  .atlas-visual { grid-row: 2; }
  .atlas-count { grid-row: 3; }
  .atlas-results { grid-row: 4; max-height: 300px; }
  .leaflet-surface { min-height: clamp(340px, 48vh, 460px); }
  .atlas-heading { margin-bottom: 11px; align-items: start; }
  .atlas-heading h1 { font-size: 2rem; }
  .atlas-heading p { font-size: .82rem; }
  .atlas-heading .button { min-height: 33px; padding: 5px 8px; }
}
@media print {
  body:has(#visit-report) > :not(dialog) { display: none !important; }
  body:has(#visit-report) { background: #fff; }
  dialog:has(#visit-report) {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  dialog:has(#visit-report)::backdrop { background: none; }
  dialog:has(#visit-report) .dialog-head,
  dialog:has(#visit-report) .dialog-body > :not(#visit-report),
  #visit-report figure a { display: none !important; }
  #visit-report { padding: 0; border: 0; }
  #visit-report figure, #visit-report dl div { break-inside: avoid; }
}

.genotype-panel {
  min-width: 0;
}
.genotype-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 6px;
}
.genotype-tools .search {
  flex: 1 1 245px;
  max-width: none;
}
.genotype-origin {
  flex: 0 1 155px;
}
.genotype-origin select {
  font-size: .81rem;
}
.genotype-panel .catalog-meta {
  margin: 0;
  padding: 9px 14px 12px;
}
.genotype-panel .compare-bar {
  margin: 0 10px 10px;
}
.genotype-scroll {
  overflow: auto;
  max-height: min(68vh, 640px);
  border-top: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
  scrollbar-color: #b7cfbb #f5f8f4;
}
.genotype-table {
  width: 100%;
  min-width: 725px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  text-align: left;
  font-size: .81rem;
}
.genotype-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eaf2e9;
  color: #264731;
  padding: 8px 11px;
}
:is(.genotype-table, .record-table) thead button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 750;
  padding: 4px 0;
  white-space: nowrap;
}
:is(.genotype-table, .record-table) thead button span {
  opacity: .58;
}
:is(.genotype-table, .record-table) th[aria-sort] button span {
  color: var(--green);
  opacity: 1;
}
.genotype-table tbody :is(th, td) {
  padding: 9px 11px;
  border-top: 1px solid #e7ede5;
  height: 50px;
}
.genotype-table tbody tr:nth-child(even) {
  background: #fafcf9;
}
.genotype-table tbody tr:hover {
  background: #f0f6ef;
}
.genotype-table tbody th {
  min-width: 115px;
}
.genotype-table tbody th small {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 500;
  margin-top: 2px;
}
.genotype-code {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.genotype-code:hover {
  text-decoration: underline;
}
.genotype-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.genotype-actions .button {
  min-height: 32px;
  padding: 4px 8px;
}
.inline-competitor {
  background: #f7faf5;
}
.inline-competitor .button {
  margin-top: 7px;
}
@media (max-width: 690px) {
  .genotype-tools .search {
    flex-basis: 100%;
  }
  .genotype-table :is(th, td) {
    padding-inline: 8px;
  }
}

.choice-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.choice-field > label {
  cursor: text;
}
.choice-frame {
  display: block;
  position: relative;
  min-width: 0;
}
.choice-frame::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.choice-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.choice-input {
  padding-right: 30px;
}
.choice-disabled .choice-input {
  background: #f4f7f2;
  color: var(--muted);
}
.choice-input[aria-invalid="true"] {
  border-color: #a75944;
}
.choice-error {
  margin: 0;
}
.choice-popover {
  position: fixed;
  z-index: 1200;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid #cfded0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 22px #18392731;
}
.choice-popover [role="option"],
.choice-empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  min-height: 37px;
  color: var(--ink);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.choice-popover [role="option"] {
  border-radius: 6px;
  cursor: pointer;
}
.choice-popover [role="option"]:hover,
.choice-popover .choice-highlight {
  background: #eaf3e8;
}
.choice-popover small,
.choice-empty {
  color: var(--muted);
}
.choice-popover [aria-selected="true"] {
  font-weight: 750;
}
.search-toolbar {
  align-items: end;
}
.search-toolbar .search {
  flex-basis: 230px;
}
.genotype-origin .choice-input,
.nearby-tools .choice-input,
.map-kind-filter .choice-input {
  font-size: .84rem;
}
.nearby-tools .choice-field {
  flex: 1 1 90px;
  max-width: 130px;
}
@media (max-width: 690px) {
  .search-toolbar .search {
    flex-basis: 100%;
    max-width: none;
  }
  .genotype-tools .genotype-origin {
    flex: 1 1 110px;
  }
  .genotype-origin .choice-input,
  .nearby-tools .choice-input,
  .map-kind-filter .choice-input,
  .map-layer-search {
    font-size: 1rem;
  }
}

.navigation {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mobile-navigation {
  display: none;
}
.field-shortcuts,
.mobile-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.mobile-destinations .button {
  flex: 1 1 130px;
}
.work-stats .stat {
  min-width: 0;
}
.work-stats .stat-value {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(1.06rem, 2.3vw, 1.48rem);
}
.work-panels {
  display: grid;
  gap: 14px;
}
.calculator-panels {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.calculator-panels .form-note {
  margin-top: 10px;
}
.calculator-result {
  background: #eaf3e8;
  color: var(--green);
  display: block;
  border-radius: 9px;
  padding: 13px;
  margin-top: 12px;
  font-weight: 750;
}
.h2h-card .panel-head {
  flex-wrap: wrap;
}
.h2h-score {
  font: 800 1.25rem Manrope, Inter, sans-serif;
  color: var(--green);
}
.visit-section,
.voice-transcript {
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.visit-section > summary,
.voice-transcript > summary {
  cursor: pointer;
  font-weight: 750;
  padding: 11px;
  color: var(--green);
}
.visit-section > div,
.voice-transcript > :not(summary) {
  margin: 0 10px 10px;
}
.voice-options .place-actions {
  margin: 10px 0;
}
.voice-options .file-button {
  display: inline-flex;
  flex: 0 1 auto;
  position: relative;
}
.voice-transcript {
  margin-top: 10px;
}
audio {
  display: block;
  max-width: 100%;
  width: 340px;
  margin-block: 6px;
}
.visit-footer {
  background: #fff;
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding: 8px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.visit-footer .dialog-actions {
  margin-top: 7px;
}
@media (max-width: 840px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: auto;
    padding: 5px 9px max(5px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
  }
  .sidebar > :not(.mobile-navigation) {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .mobile-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .mobile-navigation :is(a, button) {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 49px;
    font-size: .71rem;
    font-weight: 750;
  }
  .mobile-navigation [aria-current="page"],
  .mobile-navigation [data-action="new-visit"] {
    background: #e5f1e4;
    color: var(--green);
  }
  #notification {
    bottom: calc(67px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 520px) {
  .field-shortcuts > .button {
    flex: 1 1 43%;
  }
  .visit-footer .dialog-actions > .button {
    flex: 1 1 40%;
  }
  .visit-section summary,
  .voice-transcript summary {
    min-height: 43px;
  }
  .work-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 641px) and (max-width: 840px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.collection-tools,
.planning-tools {
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.collection-tools .search, .planning-tools .search {
  flex: 1 1 230px;
  align-self: end;
}
.planning-tools .choice-field {
  flex: 1 1 138px;
  max-width: 250px;
  min-width: 0;
}
.view-switch {
  background: #edf2eb;
  border: 1px solid #e0e8dd;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  align-self: end;
  margin-inline-start: auto;
}
.view-switch button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  min-height: 35px;
  font-size: .83rem;
  font-weight: 700;
}
.view-switch button[aria-pressed="true"] {
  background: white;
  color: var(--green-dark);
  border-color: #dce6da;
  box-shadow: 0 1px 2px #173f2c10;
}
.view-switch .icon { width: 15px; height: 15px; }
.collection-records {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}
.collection-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.collection-list > li + li { border-top: 1px solid var(--line); }
.collection-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 14px;
  padding: 13px 15px;
  min-width: 0;
}
.collection-item .tile-icon { width: 38px; height: 38px; border-radius: 10px; }
.collection-item .tile-icon .icon { width: 19px; height: 19px; }
.collection-copy {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
  font-size: .96rem;
}
.collection-copy small {
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}
.collection-copy .collection-meta { color: var(--green-dark); }
.collection-tags,
.collection-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.collection-tags { justify-content: end; }
.collection-actions { justify-content: end; }
.collection-actions .button { min-height: 40px; }
.collection-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.collection-blocks .collection-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  min-height: 156px;
}
.collection-blocks .collection-copy,
.collection-blocks .collection-actions { grid-column: 1 / -1; }
.collection-blocks .collection-icon { grid-row: 1; }
.collection-blocks .collection-tags { grid-row: 1; grid-column: 2; }
.collection-blocks .collection-actions { justify-content: start; }
.panel-content .collection-records { margin: 0; }
.panel-content .collection-list { border: 0; border-radius: 0; }
.panel-content .collection-list .collection-item { padding-inline: 0; }
.genotype-panel .collection-blocks { padding: 16px; }
.catalog-meta .view-switch { margin-inline-start: 0; }
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
  margin-bottom: 15px;
}
.h2h-overview { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); }
.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 10px;
}
.section-label > span { color: var(--muted); font-size: .84rem; }
.results-layout h2 { align-self: center; }
.dashboard-header {
  display: flex;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dashboard-header h1 { font-size: clamp(1.75rem, 3.9vw, 2.65rem); }
.dashboard-header p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.dashboard-header > .button { min-height: 44px; }
.dashboard-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.dashboard-nav button {
  color: var(--muted);
  padding: 5px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  min-height: 42px;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}
.dashboard-nav button[aria-pressed="true"] { color: var(--green-dark); border-bottom-color: var(--green); }
.dashboard-nav button:hover { background: var(--green-light); }
.dashboard-kpis { gap: 10px; margin: 0 0 14px; }
.dashboard-kpis .stat { min-height: 88px; padding: 12px; }
.dashboard-kpis .tile-icon { width: 31px; height: 31px; border-radius: 8px; }
.dashboard-kpis .tile-icon .icon { width: 16px; height: 16px; }
.dashboard-kpis .stat-value { font-size: clamp(1.2rem, 1.75vw, 1.65rem); }
.dashboard-kpis .stat-caption { font-size: .73rem; }
.dashboard-priorities {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.dashboard-priorities .panel-head { align-items: center; padding-bottom: 7px; }
.dashboard-priorities .panel-content { padding-top: 4px; }
.dashboard-agenda-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.dashboard-list { padding: 0; margin: 0; list-style: none; }
.dashboard-list li + li { border-top: 1px solid var(--line); }
.dashboard-list :is(a, button) {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 49px;
  padding: 6px 3px;
  border: 0;
  text-align: start;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.dashboard-list :is(a, button):hover { background: var(--paper); }
.dashboard-item-copy { min-width: 0; display: grid; gap: 2px; }
.dashboard-item-copy strong { font-size: .86rem; line-height: 1.25; overflow-wrap: anywhere; }
.dashboard-item-copy small { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.dashboard-list .chip { align-self: center; flex-shrink: 0; }
.dashboard-empty { font-size: .86rem; color: var(--muted); padding-block: 7px; }
.dashboard-filters {
  margin: 0 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.dashboard-filters summary { min-height: 42px; padding: 10px 12px; color: var(--green-dark); cursor: pointer; font-weight: 750; font-size: .86rem; }
.dashboard-filters summary .icon { vertical-align: middle; width: 15px; height: 15px; margin-right: 4px; }
.dashboard-filters .toolbar { margin: 0; padding: 0 12px 12px; }
.dashboard-team-chart { margin-bottom: 13px; }
#manager-results .team-activity { margin-top: 0; }
@media (max-width: 760px) {
  .dashboard-priorities { grid-template-columns: minmax(0, 1fr); }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dashboard-header { margin-bottom: 8px; column-gap: 10px; }
  .dashboard-header > .button { min-height: 40px; padding-inline: 8px; font-size: .77rem; }
  .dashboard-kpis .stat { position: relative; display: block; min-height: 80px; padding: 9px; }
  .dashboard-kpis .stat-label { margin-inline-end: 27px; }
  .dashboard-kpis .tile-icon { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; }
  .dashboard-kpis .tile-icon .icon { width: 14px; height: 14px; }
}
.suite-stats { margin: 0 0 16px; }
.suite-stats .stat { min-width: 0; }
.suite-stats .stat-value {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(1.26rem, 2.05vw, 1.85rem);
}
.segment-chart,
.metric-bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.segment-track, .metric-track {
  display: flex;
  border-radius: 999px;
  min-height: 11px;
  overflow: hidden;
  background: #edf1eb;
}
.segment-track { min-height: 21px; }
.metric-fill, .chart-dot { background: #477d5f; }
.metric-fill.blue, .chart-dot.blue { background: #4d7696; }
.metric-fill.gold, .chart-dot.gold { background: #ab7836; }
.metric-fill.forest, .chart-dot.forest, .delta-track i.forest { background: #2d7452; }
.metric-fill.red, .chart-dot.red, .delta-track i.red { background: #af5e52; }
.metric-fill.olive, .chart-dot.olive { background: #939e76; }
.chart-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chart-legend li, .metric-bars li > div { display: flex; align-items: baseline; gap: 8px; font-size: .87rem; }
.metric-bars li > div { justify-content: space-between; margin-bottom: 5px; }
.chart-legend strong { margin-inline-start: auto; }
.chart-dot { width: 10px; height: 10px; border-radius: 50%; }
.visit-trend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.visit-trend li { display: grid; gap: 5px; text-align: center; font-size: .72rem; color: var(--muted); }
.visit-trend li strong { font-size: .92rem; color: var(--green-dark); }
.visit-trend-bar { height: 76px; background: #edf3ec; border-radius: 5px; display: flex; align-items: end; overflow: hidden; }
.visit-trend-bar i { background: #548566; width: 100%; border-radius: 5px; }
.pair-charts { margin: 12px 0 17px; padding: 0 13px 13px; }
.pair-charts > summary { cursor: pointer; padding: 14px 2px; font-weight: 750; color: var(--green-dark); }
.pair-charts > .analytics-grid { margin: 0; }
.delta-chart { display: grid; gap: 7px; margin: 9px 0; padding: 0; list-style: none; }
.delta-chart button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: .85rem;
  background: transparent;
  padding: 5px 2px;
  text-align: left;
  width: 100%;
}
.delta-chart button:hover { background: #f1f5ef; }
.delta-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #edf2eb; position: relative; }
.delta-track::after { content: ""; position: absolute; left: 50%; inset-block: 0; width: 1px; background: #7c8e7d; }
.delta-track i { position: absolute; height: 100%; border-radius: 999px; }
.agenda-calendar { margin: 0 0 16px; }
.calendar-controls { display: flex; gap: 6px; flex-wrap: wrap; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 12px;
  gap: 7px;
}
.week-grid button {
  display: grid;
  gap: 3px;
  border: 1px solid #e7ede4;
  background: #f6f9f5;
  color: var(--ink);
  border-radius: 9px;
  text-align: left;
  padding: 10px;
  min-width: 0;
  text-transform: capitalize;
}
.week-grid button[aria-current="date"] { border-color: #8fb093; }
.week-grid button[aria-pressed="true"] { background: #21553b; border-color: #21553b; color: white; }
.week-grid button strong { font: 800 1.32rem Manrope, Inter, sans-serif; }
.week-grid button span, .week-grid button small { font-size: .76rem; }
.week-count {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  padding: 0 3px;
  border-radius: 999px;
  place-items: center;
}
.week-count.has-items { background: #e5eee3; color: #234c35; font-weight: 750; }
.team-activity { margin-top: 20px; }
#season-control button { white-space: nowrap; min-width: 0; }
.atlas-list-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 10px 5px; }
.atlas-list-tools .atlas-count { padding-inline: 0; }
.atlas-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: start; }
.atlas-blocks .atlas-result {
  display: grid;
  text-align: left;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  height: 100%;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.atlas-blocks .atlas-empty { grid-column: 1 / -1; }
@media (max-width: 1050px) {
  .h2h-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .atlas-list-tools { grid-row: 3; }
  .collection-list .collection-item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px 10px; }
  .collection-list .collection-tags { grid-column: 2; grid-row: 2; justify-content: start; }
  .collection-list .collection-actions { grid-column: 3; grid-row: 1 / span 2; }
  .collection-list .collection-icon { align-self: start; }
  .analytics-grid { grid-template-columns: minmax(0, 1fr); }
  .planning-tools .choice-field { flex-basis: 128px; max-width: none; }
  .catalog-meta { flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .topbar .top-create { display: none; }
  .collection-list .collection-item { grid-template-columns: auto minmax(0, 1fr); }
  .collection-list .collection-actions { grid-column: 2; grid-row: auto; justify-content: start; }
  .collection-list .collection-actions .button { padding-inline: 2px; }
  .collection-list .collection-tags { grid-row: auto; }
  .week-grid { gap: 4px; padding: 8px; }
  .week-grid button { text-align: center; padding: 7px 1px; }
  .week-grid button strong { font-size: 1.05rem; }
  .week-grid button small { font-size: .67rem; }
  .calendar-controls .button { padding-inline: 9px; }
  #season-control button { font-size: .73rem; padding-inline: 7px; }
  #season-control .icon { width: 14px; height: 14px; }
  .view-switch button { min-height: 39px; }
}
@media (max-width: 360px) {
  #season-control .icon { display: none; }
}

.record-table-scroll {
  min-width: 0;
  margin-bottom: 16px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-color: #b7cfbb #f5f8f4;
}
.record-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: .83rem;
}
.record-table th,
.record-table td {
  padding: 0 11px;
  white-space: nowrap;
}
.record-table thead th {
  height: 36px;
  background: #eaf2e9;
  color: #264731;
  font-weight: 750;
}
.record-table thead button { min-height: 36px; }
.record-table thead button:hover { text-decoration: underline; }
.record-table thead button span { inline-size: 1em; text-align: center; }
.record-table tbody tr { --row-background: var(--white); }
.record-table tbody tr:nth-child(even) { --row-background: #fafcf9; }
.record-table tbody tr:is(:hover, :focus-within) { --row-background: #f0f6ef; }
.record-table tbody :is(th, td) {
  height: 44px;
  border-top: 1px solid #e7ede5;
  background: var(--row-background);
}
.record-cell {
  display: block;
  max-inline-size: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.record-cell .genotype-code {
  display: block;
  max-inline-size: 100%;
  min-height: 36px;
  padding-block: 7px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-cell .genotype-code:focus-visible { outline-offset: -2px; }
.record-number { font-variant-numeric: tabular-nums; }
.record-tags, .record-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.record-actions .button { min-height: 34px; padding: 4px 8px; white-space: nowrap; }
.atlas-results:not(.atlas-blocks) > li:nth-child(even) { background: #fafcf9; }
.atlas-results:not(.atlas-blocks) > li + li { border-top: 1px solid #e7ede5; }
.atlas-results:not(.atlas-blocks) .atlas-result {
  min-height: 44px;
  gap: 7px;
  padding-block: 4px;
  border-radius: 5px;
}
.atlas-results:not(.atlas-blocks) .atlas-result :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .record-table :is(th, td) { padding-inline: 8px; }
  .record-table thead button { min-height: 42px; }
  .record-table :is(thead, tbody) th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    border-inline-end: 1px solid var(--line);
  }
  .record-cell { max-inline-size: 180px; }
  .record-table tbody th .record-cell { max-inline-size: min(42vw, 175px); }
  .record-cell .genotype-code, .record-actions .button { min-height: 42px; }
  .record-cell a.genotype-code { padding-block: 11px; }
}
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: #f1f6ee;
}
.demo-toolbar-label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.demo-roles { display: inline-flex; gap: 3px; }
.demo-roles button {
  min-height: 36px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--green);
  background: transparent;
  font-size: .85rem;
  font-weight: 750;
}
.demo-roles button:hover { background: #e3eddf; }
.demo-roles button[aria-pressed="true"] { color: #fff; background: var(--green); }
.mobile-brand .brand-logo { width: 108px; }
.report-head .brand-logo { width: 122px; }
#ju-button { background: var(--green-light); }
#ju-button .ju-avatar { width: 24px; height: 24px; }
.ju-tour { display: grid; gap: 13px; }
.ju-message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px;
  background: var(--green-light);
  border-radius: 12px;
  line-height: 1.55;
}
.ju-avatar {
  display: block;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-light) url("assets/ju-piscar.webp") 0 50% / 200% 100% no-repeat;
  animation: ju-blink 8s steps(1, end) infinite;
}
@keyframes ju-blink {
  0%, 34%, 80%, 100% { background-position: 0 50%; }
  32.5%, 78.5% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ju-avatar { animation: none; }
}
.ju-count { margin-bottom: 4px; color: var(--green-dark); font-size: .78rem; font-weight: 750; }
.ju-tour .dialog-actions { margin-top: 4px; }
#ju-coach {
  position: fixed;
  z-index: 8;
  right: 18px;
  bottom: 18px;
  width: min(342px, calc(100vw - 24px));
  padding: 13px;
  border: 1px solid var(--green);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 36px #162a2252;
}
#ju-coach.ju-coach-top { top: 12px; bottom: auto; }
.ju-coach-head { display: flex; gap: 9px; align-items: center; }
.ju-coach-head .ju-avatar { width: 44px; height: 44px; }
.ju-coach-head h2 { font-size: 1rem; }
.ju-coach-head .icon-button { margin-left: auto; }
#ju-coach-text { margin-top: 8px; line-height: 1.4; font-size: .9rem; }
.ju-coach-actions { display: flex; justify-content: end; margin-top: 8px; }
.ju-highlight, .ju-highlight:focus-visible, .ju-form-focus {
  outline: 3px solid #afdc59;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #2f5326b8;
  border-radius: 7px;
}
.ju-highlight.location-marker { border-radius: 50%; }
.ju-form-note { margin-bottom: 14px; }
.ju-form-note .ju-avatar { width: 40px; height: 40px; }
.ju-form-note .button { padding: 4px 6px; min-height: 42px; }
.farmer-story-next { margin-top: 10px; }
@media (max-width: 840px) {
  #ju-coach { bottom: calc(68px + env(safe-area-inset-bottom)); right: 12px; }
}
@media (max-width: 500px) {
  #ju-button .ju-button-label { display: none; }
  #ju-button { padding-inline: 5px; }
  #ju-coach { left: 12px; width: auto; }
}
.map-group-symbol {
  width: 38px;
  height: 38px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  box-shadow: 0 2px 7px #192c2170;
}
.map-group-symbol .icon { width: 18px; height: 18px; }
.map-group-symbol strong {
  position: absolute;
  inset: -5px -5px auto auto;
  background: #fff;
  border: 1px solid var(--green);
  color: var(--green-dark);
  border-radius: 10px;
  min-width: 18px;
  padding-inline: 3px;
  text-align: center;
  font-size: .7rem;
}
.map-group-popup h3 { margin: 0 0 8px; }
.map-group-popup ul {
  list-style: none;
  margin: 0;
  padding: 0 2px 2px;
  max-height: min(330px, 46vh);
  overflow: auto;
}
.map-group-popup li + li { margin-top: 4px; }
.leaflet-popup-content .map-group-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.leaflet-popup-content .map-group-choice:hover { background: var(--green-light); }
.map-group-choice small, .map-group-choice strong { display: block; }
.map-group-choice small { color: var(--muted); font-size: .7rem; }
.farmer-story-panel { margin-bottom: 16px; }
.farmer-story { display: grid; gap: 12px; }
.story-text { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.story-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 194px), 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-people li, .story-approach { background: var(--green-light); border-radius: 8px; padding: 11px; overflow-wrap: anywhere; }
.story-people li .chip { margin-inline-start: 7px; }
.story-people p, .story-approach p { margin-top: 5px; }
@media (max-width: 500px) {
  .demo-toolbar { gap: 8px; }
  .demo-toolbar-label { font-size: .73rem; }
  .demo-roles button { min-height: 42px; padding-inline: 9px; }
}
@media (max-width: 370px) {
  .mobile-brand .brand-logo { width: 89px; }
  #profile-button .icon { display: none; }
}
