:root {
  --primary: #111111;
  --accent: #E53935;
  --red: #D32F2F;
  --yellow: #F9A825;
  --green: #2E7D32;
  --muted: #6b6b6b;
  --line: #e5e5e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--primary);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  width: 100%;
  flex: 1;
}

h1, h2, h3 {
  font-family: Manrope, sans-serif;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
}

.hero p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.upload {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.dropzone {
  border: 1px dashed var(--primary);
  padding: 28px;
  cursor: pointer;
  margin-bottom: 14px;
}

#fileLabel {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.35;
}

.file-summary {
  font-size: 14px;
  color: var(--muted);
}

.file-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--primary);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.dropzone.drag {
  border-color: var(--accent);
}

label {
  display: block;
  margin: 8px 0;
}

select {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 15px;
  margin-bottom: 14px;
}

.btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-small {
  padding: 8px 12px;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.hidden {
  display: none;
}

.trust {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.inline-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #f3b5b4;
  background: #fff4f4;
  color: #9f1d1d;
  font-size: 14px;
  line-height: 1.4;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.risk-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.risk-item.high h3 { color: var(--red); }
.risk-item.medium h3 { color: var(--yellow); }
.risk-item.low h3 { color: var(--green); }

.score-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 10px 0;
}

.score-cell {
  height: 10px;
  background: #efefef;
}

.score-cell.active.low { background: var(--green); }
.score-cell.active.medium { background: var(--yellow); }
.score-cell.active.high { background: var(--red); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 12px 16px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
