:root {
  color-scheme: light;
  font-family: Inter, system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #102a2d;
  background: #f4f8f6;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075047; text-underline-offset: .16em; }
a:hover { color: #0b7465; }
:focus-visible { outline: 3px solid #276fcb; outline-offset: 3px; }
[hidden] { display: none !important; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.top {
  background: #fff;
  border-bottom: 1px solid #c5d9d1;
}

.top .shell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  min-height: 66px;
  padding-block: 10px;
}

.brand {
  color: #103d38;
  font-size: 1.32rem;
  font-weight: 800;
  text-decoration: none;
  margin-inline-end: auto;
}

.intro { padding-block: 36px 25px; }
h1, h2 { line-height: 1.2; letter-spacing: -.022em; }
h1 { font-size: clamp(1.95rem, 4.6vw, 3.35rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); margin: 0 0 12px; }
p { margin: 0 0 12px; }
.intro p { max-width: 74ch; }
.lookup, .product, .source {
  border: 1px solid #c5d9d1;
  border-radius: 14px;
  background: #fff;
  padding: clamp(15px, 3vw, 26px);
}

.controls {
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 13px;
  align-items: end;
  margin: 0 0 12px;
  padding: 0;
  min-inline-size: 0;
}

.controls label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  font-weight: 650;
}
input, select, button {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #769e92;
  border-radius: 7px;
  color: inherit;
  background: #fff;
}

input, select { min-width: 0; width: 100%; }

button { cursor: pointer; font-weight: 650; }
button:disabled { cursor: default; color: #546563; background: #eef2ef; }
.status { color: #354f4a; }
.results { overflow: auto; border: 1px solid #c5d9d1; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: #e7f2ed; }
td { border-top: 1px solid #dbe7e2; overflow-wrap: anywhere; }
th:last-child, td:last-child { text-align: end; }
.pager { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.after-results { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-block: 18px 36px; }
.product { background: #e7f2ed; }
.button {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 7px;
  background: #12564e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #0d463f; color: #fff; }
.source ul { padding-inline-start: 22px; margin-block: 0 10px; }

@media (max-width: 800px) {
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); }
  .intro { padding-block: 24px 18px; }
  .controls, .after-results { grid-template-columns: minmax(0, 1fr); }
  table { min-width: 470px; }
}
