@font-face {
  font-family: Inter;
  src: url(fonts/inter.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url(fonts/unbounded.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ash: #120f0d;
  --surface: #1d1916;
  --raised: #26211d;
  --ink: #f7f1ea;
  --muted: #b8aca1;
  --line: #52473e;
  --flame: #ff7a2f;
  --on-flame: #1a1209;
  --error: #ffb4a4;
  --ready: #7ee07a;
  --space: 1.25rem;
  --radius: 1rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font:
    1rem/1.6 Inter,
    system-ui,
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1440px;
  margin: auto;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Unbounded, system-ui;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand span {
  font-family: Inter, system-ui;
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 2rem;
}
h1,
h2,
h3 {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
h1 {
  font-family: Unbounded, system-ui;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0.5rem 0 1rem;
}
h2 {
  font-size: 1.3rem;
  margin: 0;
}
h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}
.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  min-width: 0;
}
.narrow {
  max-width: 480px;
  margin: 5vh auto;
}
.eyebrow {
  font-size: 0.8rem;
  color: var(--flame);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.muted,
footer {
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
input,
select,
button {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--ash);
  padding: 0.65rem 0.8rem;
  min-height: 44px;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-weight: 600;
  background: var(--raised);
}
button:hover {
  border-color: var(--flame);
}
button.primary {
  background: var(--flame);
  color: var(--on-flame);
  border-color: var(--flame);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input {
  width: 100%;
}
form label + label,
#loginForm button {
  margin-top: 1rem;
}
#loginForm button {
  width: 100%;
}
.filters {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}
.filters label {
  flex: 1 1 170px;
}
.filters label + label {
  margin-top: 0;
}
.heading,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head {
  margin-bottom: 1rem;
}
.metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.metric {
  background: var(--raised);
  border-radius: 0.7rem;
  padding: 1rem;
  min-width: 150px;
}
.metric strong {
  display: block;
  font-size: 1.5rem;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 1rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  text-align: left;
}
th,
td {
  padding: 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
}
td {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.file {
  margin: 1rem 0;
  max-width: 500px;
}
#mappingFields label {
  flex-basis: 210px;
}
#previewPanel button {
  margin-top: 1rem;
}
#notice:not(:empty),
#importErrors:not(:empty) {
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 0.65rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
#notice[data-error="true"],
#importErrors {
  color: var(--error);
}
#notice[data-error="false"] {
  color: var(--ready);
}
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 600px) {
  main {
    padding: 1rem;
  }
  header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  .card {
    padding: 1rem;
  }
  .metrics {
    gap: 0.5rem;
  }
  .metric {
    flex: 1;
    min-width: 125px;
  }
  .section-head > * {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .card {
    background: var(--surface);
  }
}
.metric {
  overflow-wrap: anywhere;
}
.pagination {
  flex-wrap: wrap;
}
.pagination #page {
  white-space: nowrap;
}
#importErrors {
  white-space: pre-line;
}
@media (max-width: 600px) {
  .metric {
    flex-basis: 190px;
  }
}
