*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Courier New', Courier, monospace;
  background: #0f1117;
  color: #e2e8f0;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

header { margin-bottom: 2rem; }
h1 { font-size: 1.4rem; color: #a3e635; letter-spacing: 0.02em; }
.subtitle { color: #64748b; margin-top: 0.4rem; font-size: 0.85rem; }
h2 { font-size: 1rem; color: #94a3b8; margin: 1.8rem 0 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

code { background: #1e293b; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.9em; }

/* Drop zone */
.drop-zone {
  border: 2px dashed #334155;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.95rem;
}
.drop-zone.drag-over { border-color: #a3e635; color: #a3e635; }
.drop-zone input[type="file"] { display: none; }
.file-label { color: #38bdf8; cursor: pointer; text-decoration: underline; }

/* Legend */
.legend {
  margin: 1rem 0;
  font-size: 0.82rem;
  color: #94a3b8;
}
.legend .tgt { color: #a3e635; font-weight: bold; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead tr { border-bottom: 1px solid #334155; }
th { padding: 0.5rem 0.75rem; text-align: left; color: #64748b; font-weight: normal; }
td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #1e293b; }
tr:last-child td { border-bottom: none; }

td.good { color: #a3e635; }
td.warn { color: #fbbf24; }
td.bad  { color: #f87171; }

/* Chart */
#chart-container {
  background: #1e293b;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}
canvas { max-width: 100%; }

.hidden { display: none !important; }
