:root {
  color-scheme: light;
  --ink: #16323b;
  --muted: #536a72;
  --sea: #007966;
  --line: #dbe5e7;
  --paper: #f2f7f8;
  --navy: #0e3440;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
header {
  background: var(--navy);
  color: white;
  border-bottom: 4px solid #77e6cc;
}
.head,
main {
  max-width: 1160px;
  margin: auto;
  padding: 28px 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  font-weight: 700;
  color: #a5d6db;
}
h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.head p {
  color: #d0e3e6;
  margin: 10px 0 0;
}
.head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.snapshot {
  font-size: 14px;
  color: #b8d4d8;
  text-align: right;
  white-space: nowrap;
}
.snapshot strong {
  display: block;
  color: white;
  font-size: 16px;
}
main {
  padding-top: 26px;
}
.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  gap: 16px;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #a8bec4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #18ad96;
  outline-offset: 3px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0;
}
.result-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 3px 0 0;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid #a8bec4;
  border-radius: 6px;
  padding: 9px 15px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
button:hover:not(:disabled) {
  background: #e1f4ef;
  border-color: var(--sea);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
  padding: 15px 20px;
  background: #eaf1f3;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8fbfb;
}
.fish-name {
  font-weight: 650;
  font-size: 17px;
}
.fish-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fish-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}
.rate {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--sea);
  white-space: nowrap;
}
.bar {
  height: 4px;
  width: 100%;
  max-width: 140px;
  background: #e7efed;
  border-radius: 2px;
  margin-top: 5px;
}
.bar span {
  display: block;
  height: 100%;
  background: #22b69b;
  border-radius: 2px;
}
.setup strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.setup span {
  font-size: 14px;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 24px;
  gap: 16px;
}
.pager div {
  display: flex;
  gap: 8px;
}
.pager p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
details {
  border-top: 1px solid #ccdcdf;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
}
details p {
  max-width: 850px;
  margin: 10px 0;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
}
noscript p {
  padding: 20px;
  background: #fff0cf;
}
footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.notes-panel {
  --notes-image-width: 25%;
  --notes-font-size: 20px;
  container-type: inline-size;
  display: grid;
  grid-template-columns: var(--notes-image-width) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px;
  line-height: 1.55;
}
.notes-portrait {
  display: block;
  width: 100%;
  height: auto;
}
.notes-copy {
  font-size: clamp(16px, 1.8cqw, var(--notes-font-size));
}
.notes-copy p {
  margin: 0;
}
.notes-copy p + p {
  margin-top: 0.85em;
}
.notes-source {
  font-size: 0.9em;
}
@media (max-width: 600px) {
  .notes-panel {
    align-items: start;
    gap: 14px;
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .head,
  main {
    padding: 22px 18px;
  }
  .snapshot {
    display: none;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .search-label {
    grid-column: 1/-1;
  }
  .time-label {
    grid-column: 1/-1;
  }
  .result-head {
    align-items: flex-start;
  }
  thead {
    display: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  td {
    padding: 0;
    border: 0;
  }
  .fish-name {
    grid-column: 1/-1;
    font-size: 19px;
  }
  .setup {
    grid-column: 1/-1;
    padding-top: 4px;
  }
  .setup strong {
    display: inline;
  }
  .setup span {
    display: inline;
    margin-left: 8px;
  }
  .rate {
    font-size: 25px;
    grid-column: 1/-1;
  }
  .empty {
    grid-column: 1/-1;
  }
  .bar {
    max-width: 100%;
  }
  .pager {
    align-items: flex-start;
  }
  .pager div {
    flex-shrink: 0;
  }
  .pager p {
    max-width: 45%;
  }
}
