:root {
  --ink: #1c3d5a;
  --ink-dark: #14293e;
  --trust-green: #2f7d55;
  --gray-50: #f7f8f9;
  --gray-100: #eef0f2;
  --gray-300: #cbd2d9;
  --gray-600: #52606d;
  --gray-900: #1f2933;
  --danger: #b3261e;
  --radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.site-header {
  background: var(--ink);
  color: white;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.wordmark {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark .accent { color: #7fb3d5; }

.tagline {
  margin: 0.4rem 0 0;
  color: #cfe0ec;
  font-size: 1rem;
}

.trust-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #eaf4ee;
  border: 1px solid #cfe6d9;
  color: var(--trust-green);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}

.trust-banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trust-green);
  flex-shrink: 0;
}

.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.drag-over {
  border-color: var(--ink);
  background: #f2f6f9;
  outline: none;
}

.drop-zone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.drop-zone-sub {
  color: var(--gray-600);
  margin: 0.25rem 0;
}

.drop-zone-note {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 1rem;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
}

button.primary {
  background: var(--ink);
  color: white;
}

button.primary:hover { background: var(--ink-dark); }

button.secondary {
  background: white;
  border-color: var(--gray-300);
  color: var(--gray-900);
}

button.secondary:hover { border-color: var(--ink); }

#file-picker-btn {
  background: var(--ink);
  color: white;
}

.status {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.status.error {
  background: #fbeceb;
  color: var(--danger);
}

.review { margin-top: 2rem; }

.review-header h2 { margin-bottom: 0.25rem; }
.review-header p { color: var(--gray-600); margin-top: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}

th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td[contenteditable="true"] {
  min-width: 6rem;
  outline: none;
}

td[contenteditable="true"]:focus {
  background: #f2f6f9;
}

tr.uncertain td {
  background: #fff8e6;
}

tr.uncertain td:first-child {
  border-left: 3px solid #c9971b;
}

.row-delete {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
}

.review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.limits {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-300);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.limits h2 {
  color: var(--gray-900);
  font-size: 1rem;
}

.site-footer {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  padding: 2rem 1.25rem;
}

.site-footer a { color: var(--ink); }
