:root {
  color-scheme: light;
  --bg-top: #f4efe4;
  --bg-bottom: #d7e2ec;
  --panel: rgba(255, 255, 255, 0.8);
  --border: rgba(32, 45, 58, 0.12);
  --text: #1b2430;
  --muted: #5e6a75;
  --accent: #9e4f2e;
  --accent-soft: #f4d7c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 40%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.panel {
  width: min(100%, 42rem);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 1.5rem 4rem rgba(32, 45, 58, 0.1);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 0.95;
}

.lead,
.note {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
}

.upload-form {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input[type="file"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
}

input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--accent-soft);
  cursor: pointer;
}

button:hover {
  filter: brightness(0.98);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.recent {
  margin-top: 1.5rem;
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-actions form {
  margin: 0;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
}

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

.file-item,
.empty {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.file-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.file-link:hover {
  text-decoration: underline;
}

.meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-panel {
  width: min(100%, 30rem);
}

@media (max-width: 640px) {
  .panel {
    padding: 1.2rem;
  }

  button {
    width: 100%;
  }

  .recent-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
