:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f6f7f9;
  color: #171717;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: white;
  font: inherit;
}
.input:focus {
  outline: 2px solid #2563eb33;
  border-color: #2563eb;
}
.label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #4b5563;
  margin-bottom: 0.35rem;
  display: block;
}
.btn {
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.btn-primary { background: #1d4ed8; color: white; }
.btn-secondary { background: white; border: 1px solid #d1d5db; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.site-header { background: white; border-bottom: 1px solid #e5e7eb; }
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.125rem; }

.intro h1 { font-size: 1.875rem; font-weight: 700; margin: 0; }
.muted { color: #6b7280; margin-top: 0.25rem; }
.small { font-size: 0.75rem; }

.product-toggle { display: flex; gap: 0.5rem; }

.filters {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .filters { grid-template-columns: repeat(6, 1fr); }
}

.results-header {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.page-size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.page-size .input { width: auto; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  text-align: left;
  padding: 0.75rem;
  border-top: 1px solid #eee;
}
td {
  padding: 0.8rem 0.75rem;
  border-top: 1px solid #eee;
  font-size: 0.84rem;
  vertical-align: top;
}
.col-wide { min-width: 15rem; }
.score-high { color: #dc2626; }
.empty { text-align: center; color: #6b7280; padding: 2rem; }

.link { display: block; color: #1d4ed8; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-plain { display: block; color: inherit; text-decoration: none; }
.link-button {
  border: 0;
  background: none;
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.link-button:hover { text-decoration: underline; }
.notes-preview { font-size: 0.75rem; color: #b45309; margin-top: 0.15rem; }
.status-select { width: auto; padding: 0.35rem 0.5rem; font-size: 0.8rem; }

.pager {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.page-label { font-size: 0.875rem; color: #6b7280; margin: 0 0.5rem; }

.login-shell {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  padding: 1.5rem;
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-card h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.field { display: flex; flex-direction: column; }
.error { color: #dc2626; font-size: 0.875rem; margin: 0; }
