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

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

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

.panel,
.results {
  background: #ffffff;
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.08);
}

.intro {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #276c63;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.uploader {
  display: grid;
  gap: 16px;
}

.file-picker {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 2px dashed #7a8c87;
  border-radius: 8px;
  background: #f9faf7;
  color: #276c63;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  padding: 20px;
}

.file-picker input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.preview-wrap {
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

.preview-wrap img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

button {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #276c63;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

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

.status {
  min-height: 1.4em;
  margin: 0;
  color: #52616b;
}

.status.error {
  color: #b42318;
}

.results {
  display: grid;
  gap: 24px;
}

pre {
  margin: 0;
  min-height: 180px;
  overflow: auto;
  border-radius: 8px;
  background: #101820;
  color: #f8fafc;
  padding: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}

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

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

th,
td {
  border-bottom: 1px solid #e5e0d6;
  padding: 10px 12px;
  text-align: left;
}

th {
  background: #eef6f4;
  color: #234b46;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
}
