:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background: #f4f6f8;
  line-height: 1.45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

h2 {
  margin: 0;
  font-size: 20px;
}

header p {
  max-width: 760px;
  margin: 0;
  color: #5f6368;
}

.upload-card,
#progress-section,
#results-section {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(32 33 36 / 5%);
}

.field {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px dashed #9aa0a6;
  border-radius: 8px;
  background: #fafbfc;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid #c8cdd2;
  border-radius: 6px;
  background: #fff;
  color: #202124;
  cursor: pointer;
}

.file-hint {
  margin: 7px 0 0;
  color: #5f6368;
  font-size: 14px;
  overflow-wrap: anywhere;
}

button,
.report-actions a {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  background: #1769aa;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button {
  margin-top: 22px;
}

button:hover,
.report-actions a:hover {
  background: #125786;
}

button:disabled {
  background: #9aa0a6;
  cursor: wait;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-actions a {
  padding: 8px 13px;
  font-size: 14px;
}

.progress-heading,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

#progress-text {
  color: #5f6368;
}

progress {
  display: block;
  width: 100%;
  height: 18px;
  accent-color: #1769aa;
}

.summary {
  padding: 12px 14px;
  border-radius: 7px;
  background: #eef3f8;
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border: 1px solid #d7dce0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: #f1f3f4;
}

tr.identical {
  background: #f1f8f2;
}

tr.difference {
  background: #fff8e7;
}

tr.warning {
  background: #fff3e0;
}

tr.error,
.error {
  background: #fdeeee;
}

.error {
  padding: 12px 16px;
  border: 1px solid #e5b4b6;
  border-radius: 8px;
  color: #8c1d18;
}

footer {
  margin: 22px 0;
  color: #5f6368;
  font-size: 14px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
    margin: 20px auto;
  }

  .upload-card,
  #progress-section,
  #results-section {
    padding: 16px;
  }

  th,
  td {
    min-width: 120px;
  }

  td:last-child {
    min-width: 260px;
  }
}
