.app--evidence-intake .main {
  padding-bottom: 48px;
}

.app--evidence-intake input {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.status-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.intake-panel {
  margin-top: 18px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 108px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--muted);
  font-weight: 800;
}

.upload-box input {
  max-width: 320px;
}

.metric-grid--evidence-intake {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.intake-panel--wide {
  grid-column: 1 / -1;
}

.intake-list {
  display: grid;
  gap: 10px;
}

.intake-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.intake-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intake-item__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.intake-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.intake-item__body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-actions .button {
  min-height: 34px;
}

.extract-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field--wide {
  grid-column: span 2;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .metric-grid--evidence-intake,
  .intake-grid,
  .extract-form {
    grid-template-columns: 1fr;
  }

  .intake-panel--wide,
  .field--wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .intake-item__head {
    display: grid;
  }
}
