* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: #f3f5f7;
  color: #25323e;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

header {
  height: 64px;
  background: white;
  border-bottom: 1px solid #e2e7eb;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}

header strong {
  color: #185b49;
  letter-spacing: 2px;
  font-size: 21px;
}

header span {
  color: #7b8790;
  border-left: 1px solid #dce1e5;
  padding-left: 16px;
}

main {
  max-width: 790px;
  margin: 65px auto;
  padding: 0 20px;
}

.panel {
  background: white;
  border: 1px solid #e1e6ea;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px #152b3910;
}

h1 {
  margin: 0;
  font-size: 25px;
}

.subtitle {
  color: #7b8790;
  margin: 10px 0 28px;
}

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

.file-card {
  min-width: 0;
  padding: 26px 14px;
  border: 1px dashed #b8c9c3;
  border-radius: 12px;
  background: #fafcfb;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: .15s;
}

.file-card:hover {
  border-color: #185b49;
  background: #f0f8f4;
}

.file-icon {
  background: #e1f1e8;
  color: #176747;
  padding: 16px 12px;
  border-radius: 9px;
  font-weight: 700;
}

.file-card small {
  color: #6c7982;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

input[type=file] {
  width: 100%;
  font-size: 12px;
}

input::file-selector-button {
  background: white;
  border: 1px solid #d4ded9;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
}

button {
  width: 100%;
  border: 0;
  padding: 14px;
  color: white;
  background: #185b49;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 22px;
}

button:disabled {
  background: #a9b8b2;
  cursor: not-allowed;
}

#status {
  line-height: 1.6;
}

#status:not(:empty) {
  margin-top: 16px;
}

#status.error { color: #b42318; }
#status.success { color: #176747; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stats div {
  background: #f5f7f8;
  padding: 15px;
  border-radius: 8px;
}

.stats small {
  display: block;
  color: #75808a;
  font-size: 11px;
}

.stats strong {
  display: block;
  font-size: 23px;
  margin-top: 7px;
}

details { color: #926416; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

footer {
  text-align: center;
  color: #929ba3;
  font-size: 12px;
  margin-top: 22px;
}

@media(max-width: 600px) {
  main { margin: 25px auto; }
  .panel { padding: 20px; }
  .files { grid-template-columns: 1fr; }
  .stats { gap: 6px; }
  .stats div { padding: 10px; }
  h1 { font-size: 22px; }
}

/* Hide duplicate accounts message */
#duplicates {
  display: none !important;
}

/* Hide page title and subtitle */
.panel h1,
.panel .subtitle {
  display: none !important;
}

/* Hide top header */
header {
  display: none !important;
}

/* Hide footer */
footer {
  display: none !important;
}
