@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-regular.ttf");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-bold.ttf");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #203c32;
  background: #f6f7f4;
  --green: #174d3c;
  --line: #e4e9e2;
  --muted: #78847d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #b38d39;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#sidebar {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
  letter-spacing: -1px;
  font-weight: 700;
  min-height: 44px;
}
.light {
  font-weight: 400;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 36px 0 20px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  padding: 14px 12px;
  font-size: 13px;
  border-radius: 8px;
  min-height: 44px;
}
nav a.active {
  background: #eef3ed;
  color: var(--green);
  font-weight: 700;
}
.operator {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.operator span {
  color: var(--muted);
}
.operator button {
  background: white;
  color: var(--green);
}
.shell {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 80px;
  padding: 0 36px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 16px;
}
#menu {
  display: none;
}
main {
  padding: 32px 36px;
  flex: 1;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  margin: 0;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.count {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.count strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
}
.count span {
  font-size: 12px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(400px, 2fr);
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  min-width: 0;
}
.country {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 12px;
}
.country.selected {
  background: #eef3ed;
}
.country span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 9px;
  background: #eef3ed;
  border-radius: 20px;
  color: var(--green);
}
.badge.warning {
  background: #f0f0e7;
  color: #66532c;
}
.metadata {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 12px 0 20px;
}
.check {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.check p {
  grid-column: 1/-1;
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.check strong {
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions button {
  font-size: 12px;
}
.secondary {
  background: white;
  color: var(--green);
}
.history {
  margin-top: 24px;
}
.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 36px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
footer > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.provider {
  gap: 6px;
  font-size: 10px;
  font-weight: 400;
  color: #8a8a8a;
  white-space: nowrap;
}
.provider strong {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0a1812;
}
#message,
#form-error {
  background: #f0f0e7;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 13px;
}
#login {
  max-width: 620px;
  margin: 40px auto;
}
#login .button {
  margin-top: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 24px;
  color: #203c32;
}
dialog::backdrop {
  background: #203c3266;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 16px;
}
input,
select {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #cbd5cc;
  border-radius: 6px;
  width: 100%;
  color: #203c32;
  background: white;
}
dialog .heading button {
  background: white;
  color: var(--green);
}
@media (max-width: 1000px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .counts {
    gap: 10px;
  }
  .count {
    padding: 16px;
  }
}
@media (max-width: 700px) {
  #sidebar {
    position: static;
    width: auto;
    display: none;
    padding: 16px 20px;
  }
  #sidebar.open {
    display: flex;
  }
  .operator {
    margin-top: 20px;
  }
  #sidebar .eyebrow {
    margin: 16px 0;
  }
  .shell {
    margin-left: 0;
  }
  header {
    height: 64px;
    padding: 0 20px;
  }
  header > .muted {
    display: none;
  }
  #menu {
    display: inline-flex;
    background: white;
    color: var(--green);
  }
  main {
    padding: 24px 20px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  h1 {
    font-size: 25px;
  }
  .counts {
    grid-template-columns: 1fr;
  }
  .count {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .count strong {
    font-size: 26px;
    margin: 0;
  }
  .card {
    padding: 20px;
  }
  .check {
    grid-template-columns: 1fr auto;
  }
  footer {
    margin: 0 20px;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  footer > div {
    flex-wrap: wrap;
    gap: 16px;
  }
  .history-row {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
}
