:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --paper: #f4f7fb;
  --card: #ffffff;
  --accent: #0f766e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--accent); }
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; }
.who { margin: 0; color: #cbd5e1; flex: 1; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang-pick, .btn, input {
  border-radius: 999px;
  font: inherit;
}
.lang-pick { padding: 6px 10px; }
main { width: min(920px, calc(100% - 28px)); margin: 24px auto 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
h1 { margin: 0 0 8px; font-size: 1.6rem; }
label { display: block; margin: 12px 0; font-size: 0.95rem; }
input[type="text"], input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid #64748b; }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#pick { display: none; }
.err { color: #b91c1c; min-height: 1.2em; }
.fine, .usage { color: var(--muted); }
.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.file .name { font-weight: 600; word-break: break-word; }
.file .meta { color: var(--muted); font-size: 0.85rem; }
.file a, .file button {
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.empty { color: var(--muted); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
@media (max-width: 700px) {
  .file { grid-template-columns: 1fr 1fr; }
  .file .name { grid-column: 1 / -1; }
}
