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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f7fafc;
  color: #2d3748;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 16px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}
header h1 { font-size: 22px; color: #834c9e; margin-bottom: 4px; }
header p { font-size: 14px; color: #718096; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #718096;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: #834c9e; }
.tab.active { color: #834c9e; border-bottom-color: #834c9e; }

.tab-content { display: none; }
.tab-content.active { display: block; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.btn-primary { background: #834c9e; color: #fff; width: 100%; }
.btn-primary:hover { opacity: .9; }

.upload-zone {
  border: 2px dashed #cbd5e0;
  border-radius: 6px;
  padding: 32px;
  text-align: center;
  color: #718096;
  cursor: pointer;
  transition: border-color .15s;
}
.upload-zone:hover { border-color: #834c9e; }
.upload-zone input[type="file"] { display: none; }
.upload-zone.has-file { border-color: #38a169; color: #38a169; }

#results {
  margin-top: 24px;
}

.result-card {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.result-card.success { border-left: 4px solid #38a169; }
.result-card.error { border-left: 4px solid #e53e3e; }
.result-card.not-found { border-left: 4px solid #d69e2e; }

.result-card h3 { font-size: 15px; margin-bottom: 8px; }
.result-card .agreement-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}
.result-card .agreement-row:last-child { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-signed { background: #c6f6d5; color: #276749; }
.badge-pending { background: #edf2f7; color: #4a5568; }
.badge-pending_review { background: #feebc8; color: #9c4221; }

footer {
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
}
