:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e6e8ec;
  --muted: #8a93a6;
  --accent: #4f8cff;
  --accent-hover: #6ea0ff;
  --border: #262a34;
  --error: #ff6b6b;
  --success: #58d68d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

header h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.01em; }
header .sub { margin: 0 0 32px; color: var(--muted); }

section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0b0d12;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover:not(:disabled) { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#lock-btn {
  margin-top: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
}
#lock-btn:hover { color: var(--text); border-color: var(--muted); }

#files-count { color: var(--muted); font-size: 13px; }

#files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b0d12;
}

.file-info { display: flex; flex-direction: column; min-width: 0; }
.file-name {
  font-size: 14px;
  word-break: break-all;
}
.file-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.file-actions button {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 13px;
}

.status {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 1em;
  color: var(--muted);
}
.status.error { color: var(--error); }
.status.success { color: var(--success); }
