:root {
  color-scheme: light;
  --paper: #eaf1ff;
  --ink: #173b67;
  --muted: #5d6d82;
  --accent: #176f82;
  --white: #fff;
  --warn: #b45022;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: Native hidden must override component display rules. */
  display: none !important;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 48px;
}
header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #173b6725;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 5px;
  font-family: monospace;
  font-size: 17px;
  letter-spacing: -3px;
  width: 36px;
  height: 36px;
}
.brand-mark span {
  border-left: 2px solid var(--ink);
  margin-left: 3px;
  padding-left: 2px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  margin: 0;
}
h1 {
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.06;
  letter-spacing: -3px;
  font-weight: 700;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 26px;
}
p {
  line-height: 1.6;
}
.eyebrow {
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.6px;
  margin: 0 0 22px;
  color: var(--accent);
}
.upload-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 84px;
}
.intro {
  padding-top: 12px;
}
.lead {
  font-size: 19px;
  max-width: 400px;
  margin: 28px 0;
  color: var(--muted);
}
.privacy-note {
  display: flex;
  gap: 15px;
  max-width: 400px;
  margin: 32px 0;
  align-items: flex-start;
}
.privacy-note p {
  margin: 0;
  font-size: 15px;
}
.privacy-symbol {
  font-size: 32px;
  line-height: 1.3;
  color: var(--accent);
}
.text-link {
  font-size: 14px;
  font-weight: 650;
}
.text-link span {
  padding-left: 10px;
}
.scan-panel {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 40px #173b6708;
  border: 1px solid #173b671a;
  align-self: start;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #173b6725;
  border-radius: 20px;
  font-family: monospace;
  font-size: 11px;
  white-space: nowrap;
}
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 232px;
  border: 2px dashed #173b673b;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  background: #eaf1ff55;
  padding: 20px;
  text-align: center;
}
.dropzone.dragging,
.dropzone:hover {
  border-color: var(--accent);
  background: var(--paper);
}
.dropzone:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone strong {
  font-size: 17px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.dropzone > span:last-of-type {
  font-size: 14px;
  color: var(--muted);
}
.file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 4px 14px 4px 4px;
  font-size: 26px;
  margin-bottom: 8px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.primary,
.secondary {
  border-radius: 8px;
  border: 1px solid var(--ink);
  padding: 13px 18px;
  font-weight: 650;
}
.primary {
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 22px;
}
.primary:hover {
  background: var(--accent);
}
.secondary {
  color: var(--ink);
  background: transparent;
}
.secondary:hover {
  background: var(--paper);
}
.explanation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  border-top: 1px solid #173b6725;
  padding: 30px 0 48px;
}
.explanation h2 {
  font-size: 17px;
}
.explanation p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 430px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #173b6725;
  padding: 24px 0;
  font-size: 11px;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  list-style: none;
  font-size: 12px;
  gap: 5px;
  margin: 0 0 38px;
}
.steps li {
  padding: 12px 0;
  border-top: 4px solid var(--paper);
}
.steps li.current {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: bold;
}
#result {
  border-left: 5px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-bottom: 32px;
}
#result[data-outcome="infected"],
#result[data-outcome="failed"],
#result[data-outcome="rejected"] {
  border-color: var(--warn);
}
#result p {
  color: var(--muted);
  font-size: 14px;
}
.error {
  border-left: 4px solid var(--warn);
  color: var(--warn);
  padding: 10px 16px;
  background: #b450220a;
}
.dashboard {
  max-width: 1440px;
}
.dashboard main {
  padding: 48px 0;
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.dashboard h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  letter-spacing: -1.7px;
}
.dashboard .eyebrow {
  margin-bottom: 12px;
}
.engine-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
  padding-bottom: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 24px;
}
.periods {
  display: flex;
  gap: 4px;
  background: #173b670a;
  border-radius: 9px;
  padding: 4px;
}
.periods button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
}
.periods button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #173b6725;
  border: 1px solid #173b6725;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.metrics article {
  padding: 22px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metrics article > span {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 35px;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
}
.chart-panel,
.card {
  background: var(--white);
  border: 1px solid #173b671a;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 24px;
}
.chart {
  width: 100%;
  min-height: 220px;
}
.chart svg {
  width: 100%;
  height: 240px;
  display: block;
  overflow: visible;
}
.chart text {
  fill: var(--muted);
  font-size: 11px;
  font-family: monospace;
}
.chart .grid {
  stroke: #173b671a;
}
.chart .area {
  fill: #176f8212;
}
.chart .line {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
}
.chart circle {
  fill: var(--accent);
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.table-scroll {
  overflow: auto;
  max-height: 390px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
  padding: 12px 10px 12px 0;
  white-space: nowrap;
  border-bottom: 1px solid #173b6725;
}
td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid #173b6712;
  font-variant-numeric: tabular-nums;
}
td:first-child {
  overflow-wrap: anywhere;
}
.source-name {
  display: block;
  font-weight: 650;
}
.source-ip {
  display: block;
  font-family: monospace;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
}
.operations {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.operations :where(p) {
  margin-bottom: 0;
}
.active-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #173b6712;
  font-size: 13px;
}
.active-job code {
  font-size: 11px;
}
@media (max-width: 900px) {
  .shell {
    padding: 0 24px;
  }
  .upload-layout {
    gap: 32px;
    padding-top: 48px;
  }
  .scan-panel {
    padding: 22px;
  }
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metrics article {
    padding: 18px;
  }
}
@media (max-width: 620px) {
  .shell {
    padding: 0 20px;
  }
  header {
    min-height: 84px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    gap: 12px;
    font-size: 11px;
  }
  .upload-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
  }
  h1 {
    font-size: 52px;
  }
  .lead {
    font-size: 17px;
  }
  .privacy-note {
    margin: 24px 0;
  }
  .explanation {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  .dashboard main {
    padding-top: 32px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .periods {
    width: 100%;
  }
  .periods button {
    flex: 1;
    padding: 10px 8px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics strong {
    font-size: 28px;
  }
  .chart-panel,
  .card {
    padding: 20px;
  }
  .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .operations {
    flex-direction: column;
    align-items: flex-start;
  }
  .active-job {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .dropzone {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}
