* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #202124;
}
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
h1 { margin-bottom: 4px; }
h2 { margin-top: 32px; }
.muted { color: #666; }
a { color: inherit; }
.filters {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: end;
  padding: 18px; margin: 22px 0;
  background: white; border: 1px solid #ddd; border-radius: 10px;
}
.filters > div { min-width: 170px; }
.filters .wide { min-width: 300px; flex: 1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input, select, button, .button {
  min-height: 38px; padding: 7px 10px;
  border: 1px solid #bbb; border-radius: 6px;
  background: white; font: inherit;
}
input { width: 100%; }
.range { display: flex; gap: 6px; align-items: center; }
.range input { width: 100px; }
button, .button { cursor: pointer; text-decoration: none; padding: 8px 14px; }
button { background: #202124; color: white; border-color: #202124; }
.actions { display: flex; gap: 8px; }
.secondary { background: #eee; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid #ddd; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid #eee; white-space: nowrap; }
th { background: #fafafa; font-size: .9rem; }
.solution-row { cursor: pointer; }
.solution-row:hover { background: #f1f4f7; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.pagination { display: flex; justify-content: center; gap: 24px; padding: 22px; }
.viewer {
  background: white; border: 1px solid #ddd; border-radius: 10px;
  padding: 15px; text-align: center;
}
.viewer img { max-width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.stats { display: flex; flex-wrap: wrap; gap: 18px; color: #555; margin: 12px 0 20px; }
.hashes { background: white; border: 1px solid #ddd; border-radius: 10px; padding: 18px; }
.hashes dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.hashes dd { margin: 0; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 40px; color: #777; }
@media (max-width: 700px) {
  .container { padding: 12px; }
  .filters > div, .filters .wide { min-width: 100%; }
  .range input { width: 100%; }
  .hashes dl { grid-template-columns: 1fr; }
}
