:root {
  --ink: #17312e;
  --muted: #637470;
  --line: #dce5e0;
  --paper: #f5f7f3;
  --green: #19634c;
  --mint: #d8f4b2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 Inter,
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
input,
select,
a,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 17px;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  border-color: var(--green);
  background: #f3f9ef;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #104f3d;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
aside {
  background: #153e35;
  color: #dcebe2;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  color: white;
  white-space: nowrap;
}
.brand b {
  display: inline-grid;
  place-content: center;
  background: var(--mint);
  color: #173d2c;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  font-size: 23px;
}
nav {
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #b9d1c5;
  font-weight: 500;
}
nav button.active {
  background: #2a5145;
  color: #fff;
}
.aside-note {
  margin-top: auto;
  border-top: 1px solid #3b5b50;
  padding-top: 22px;
  font-size: 12px;
  color: #acc6b8;
}
.aside-note strong {
  color: #e2f2e6;
  font-size: 14px;
}
main {
  min-width: 0;
  padding: 28px 45px 38px;
  max-width: 1550px;
  width: 100%;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin: 35px 0 24px;
}
h1 {
  font-size: clamp(27px, 3vw, 37px);
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 7px 0 12px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
p {
  margin: 6px 0 16px;
}
.muted {
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.spacing {
  margin-top: 22px;
}
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 23px;
  border: 1px solid #d5e4c7;
  border-radius: 12px;
  background: #eaf2df;
  margin-bottom: 22px;
}
.callout p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #4e6850;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 8px 0 3px;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 22px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.panelhead p {
  font-size: 13px;
  margin: 2px 0 0;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  background: #f5f7f4;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e7ece7;
  vertical-align: top;
}
td.detail {
  white-space: normal;
  min-width: 250px;
  max-width: 410px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
}
.gap {
  background: #e5f2d8;
  color: #366024;
}
.review {
  background: #fff0cd;
  color: #7b5b0f;
}
.over {
  background: #fbe5df;
  color: #983e2a;
}
.matched {
  background: #e9eeec;
  color: #526963;
}
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
input,
select {
  border: 1px solid #cdd9d1;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 10px;
  max-width: 100%;
}
input[type="search"] {
  min-width: 230px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}
label input,
label select {
  display: block;
  margin-top: 6px;
  width: 100%;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.importgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.importbox {
  background: #fcfdfb;
  border: 1px dashed #bccdc0;
  padding: 20px;
  border-radius: 10px;
}
.importbox p {
  font-size: 12px;
  color: var(--muted);
  min-height: 45px;
}
.importbox input {
  width: 100%;
  font-size: 12px;
}
.map {
  margin-top: 15px;
}
.map label {
  margin-bottom: 8px;
}
.map select {
  padding: 7px;
}
.filemeta {
  font-size: 12px;
  color: var(--green);
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.error {
  background: #fff0e8;
  border: 1px solid #efbea9;
  border-radius: 8px;
  color: #8c3626;
  padding: 12px 16px;
  margin: 15px 0;
  white-space: pre-wrap;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 9px;
}
.helpgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.helpgrid p,
.helpgrid li {
  font-size: 14px;
  color: var(--muted);
}
.helpgrid li {
  margin: 10px 0;
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  padding-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
}
.hide {
  display: none !important;
}
.notice {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
@media (max-width: 1100px) {
  main {
    padding: 25px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .importgrid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    padding: 15px 18px;
    gap: 14px;
  }
  .brand {
    font-size: 21px;
  }
  .brand b {
    width: 28px;
    height: 28px;
  }
  nav {
    display: flex;
    gap: 3px;
    overflow: auto;
  }
  nav button {
    padding: 8px 11px;
    white-space: nowrap;
    font-size: 12px;
  }
  .aside-note {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  header {
    font-size: 11px;
    padding-bottom: 16px;
  }
  .hero {
    margin-top: 24px;
    gap: 10px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 23px;
  }
  .callout {
    align-items: start;
    flex-direction: column;
    padding: 17px;
  }
  .panel {
    padding: 17px;
  }
  .panelhead {
    align-items: start;
    flex-direction: column;
  }
  .settings,
  .helpgrid {
    grid-template-columns: 1fr;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1;
    font-size: 12px;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
}
@media print {
  aside,
  header,
  .actions,
  .controls,
  .callout,
  #imports,
  #help,
  footer,
  button {
    display: none !important;
  }
  .shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  .stats {
    display: flex;
  }
  .stat {
    flex: 1;
  }
  table {
    white-space: normal;
    font-size: 10px;
  }
  td.detail {
    min-width: 0;
  }
  h1 {
    font-size: 24px;
  }
  .hero {
    margin: 10px 0;
  }
  body {
    background: white;
  }
  .tablewrap {
    overflow: visible;
  }
}
@media (max-width: 700px) {
  #results table {
    white-space: normal;
  }
  #results thead {
    display: none;
  }
  #results tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-bottom: 14px;
    padding: 12px;
  }
  #results td {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border: 0;
    min-width: 0;
    max-width: none;
    flex-wrap: wrap;
  }
  #results td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
  }
  #results td.detail {
    display: block;
  }
  #results td.detail::before {
    display: block;
    margin-bottom: 5px;
  }
  #results td small {
    font-size: 11px;
  }
  input[type="search"] {
    width: 100%;
    min-width: 0;
  }
  .sample-downloads {
    margin-top: 12px;
  }
}
