:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #15191f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f5 100%);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 32px;
}

.panel,
.files {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 25, 31, 0.08);
}

.panel {
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5c6875;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.05rem;
}

.upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 22px;
}

.picker {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px dashed #7b8794;
  border-radius: 8px;
  background: #f8fafc;
  color: #26313d;
  font-weight: 700;
}

.picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #176b5b;
  color: white;
  font-weight: 800;
}

button:disabled {
  background: #9aa5b1;
}

.status {
  min-height: 24px;
  margin-top: 14px;
  color: #40505f;
  font-weight: 650;
}

.files {
  margin-top: 16px;
  overflow: hidden;
}

.filesHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5ebf0;
}

.filesHeader button {
  min-height: 38px;
  padding: 0 12px;
  background: #25313d;
  font-size: 0.9rem;
}

.fileList {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fileItem {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f5;
}

.fileItem:last-child {
  border-bottom: 0;
}

.fileItem a {
  color: #0c5a9e;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.meta {
  color: #5c6875;
  font-size: 0.9rem;
}

.empty {
  padding: 18px 16px;
  color: #5c6875;
}

@media (max-width: 520px) {
  .shell {
    padding-inline: 12px;
  }

  .panel {
    padding: 18px;
  }

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

  h1 {
    font-size: 1.7rem;
  }
}
