:root {
  color-scheme: light;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f4f6f8;
  color: #1d2733;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  gap: 24px;
}

.upload-panel,
.list-panel {
  background: #ffffff;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(29, 39, 51, 0.08);
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: #4c6f78;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.lead {
  margin-bottom: 0;
  color: #596777;
  line-height: 1.8;
}

.upload-form {
  display: grid;
  gap: 12px;
}

.file-drop {
  min-height: 144px;
  border: 2px dashed #9eb4be;
  border-radius: 8px;
  background: #f9fbfc;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #40515d;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: #1f6f78;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button {
  color: #1f6f78;
  background: #e7f1f3;
}

.status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #596777;
}

.status.error {
  color: #a83232;
}

.list-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid #e5ebf0;
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #526271;
  font-size: 0.84rem;
  font-weight: 700;
  background: #f9fbfc;
}

td {
  color: #253140;
}

.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .upload-panel,
  .list-panel {
    padding: 18px;
  }

  .upload-panel {
    grid-template-columns: 1fr;
  }

  .list-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
