:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

body {
  margin: 0;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

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

h2 {
  margin: 28px 0 12px;
  font-size: 18px;
}

nav {
  display: flex;
  gap: 12px;
}

a {
  color: #155eef;
  text-decoration: none;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 22px;
}

.compact {
  max-width: 420px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select {
  min-height: 38px;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: #1f7a4f;
  cursor: pointer;
}

.secondary {
  background: #52606d;
}

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

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #ffffff;
}

.file-list span {
  color: #52606d;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

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

.summary div {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 16px;
}

.summary strong,
.summary span {
  display: block;
}

.summary span {
  margin-top: 6px;
  font-size: 24px;
}

.error {
  color: #b42318;
  font-weight: 700;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 700px) {
  header,
  .file-list li,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grid,
  .summary {
    grid-template-columns: 1fr;
  }
}
