:root {
  color-scheme: light;
  --ink: #19202b;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --background: #f4f7fb;
  --brand: #2457e6;
  --brand-dark: #1743be;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: var(--brand); }
.shell { width: min(100% - 32px, 920px); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { color: var(--ink); font-size: 1.18rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(16, 24, 40, .05); padding: 30px; }
.narrow { max-width: 480px; margin: 8vh auto 0; }
h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.25rem); letter-spacing: -.04em; }
h2 { margin: 0 0 18px; font-size: 1.15rem; }
.lead { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
label { display: block; margin: 18px 0 7px; font-size: .9rem; font-weight: 650; }
input[type=text], input[type=password], input[type=file] { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 12px 13px; font: inherit; background: #fff; }
input[type=file] { padding: 10px; }
button, .button { display: inline-flex; border: 0; border-radius: 10px; padding: 12px 17px; color: #fff; background: var(--brand); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--brand-dark); }
.button.secondary { color: var(--ink); background: #eef2ff; }
.button.danger { background: #fff1f0; color: var(--danger); }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.alert { margin: 0 0 18px; border-radius: 10px; padding: 12px 14px; line-height: 1.45; }
.alert.error { color: var(--danger); background: #fff1f0; border: 1px solid #fecdca; }
.alert.success { color: #027a48; background: #ecfdf3; border: 1px solid #abefc6; }
.dropzone { border: 2px dashed #b8c3d7; border-radius: 14px; padding: 27px 20px; text-align: center; background: #f8faff; }
.dropzone p { margin: 0 0 14px; color: var(--muted); }
.hint { display: block; margin-top: 8px; color: var(--muted); font-size: .82rem; }
.section { margin-top: 24px; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.share input { flex: 1; color: var(--muted); background: #f8fafc; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
td:last-child, th:last-child { text-align: right; }
.muted { color: var(--muted); }
.expiry { color: #b54708; font-weight: 650; }
.public-files { list-style: none; padding: 0; margin: 20px 0 0; }
.public-files li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.file-name { overflow-wrap: anywhere; }
.file-meta { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
footer { padding: 28px 0; color: var(--muted); font-size: .82rem; text-align: center; }
@media (max-width: 600px) {
  .card { padding: 22px 18px; }
  .topbar { padding: 18px 0; }
  .public-files li { align-items: flex-start; flex-direction: column; }
  .public-files .button { width: 100%; justify-content: center; }
}
