* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.container { max-width: 640px; width: 100%; }
h1 { text-align: center; margin-bottom: 24px; font-size: 1.8em; }
h2 { margin-bottom: 16px; font-size: 1.2em; }

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

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

input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 16px;
  margin-bottom: 12px;
}
input:focus { outline: none; border-color: #58a6ff; }

button {
  padding: 10px 20px;
  background: #238636;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
button:hover { background: #2ea043; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  background: #21262d;
  border: 1px solid #30363d;
}
.btn-sm:hover { background: #30363d; }

.error { color: #f85149; font-size: 14px; margin-top: 8px; }
.msg { color: #3fb950; font-size: 14px; margin-top: 8px; }

.hidden { display: none; }

.file-list { list-style: none; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  margin-bottom: 8px;
}
.file-list li:hover { border-color: #30363d; }

.file-name { flex: 1; word-break: break-all; }
.file-size { color: #8b949e; font-size: 12px; margin: 0 12px; white-space: nowrap; }

.btn-download {
  padding: 6px 12px;
  background: #1f6feb;
  font-size: 12px;
  white-space: nowrap;
}
.btn-download:hover { background: #388bfd; }

.btn-delete {
  padding: 6px 12px;
  background: #da3633;
  font-size: 12px;
  margin-left: 8px;
}
.btn-delete:hover { background: #f85149; }

.upload-area {
  margin-bottom: 16px;
  padding: 16px;
  background: #0d1117;
  border: 2px dashed #30363d;
  border-radius: 8px;
  text-align: center;
}
.upload-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.upload-btn:hover { background: #30363d; }

#upload-status { display: block; margin-top: 8px; font-size: 13px; color: #8b949e; }

.storage-bar { margin-bottom: 12px; }
.storage-label { font-size: 12px; color: #8b949e; margin-bottom: 4px; }
.storage-track { height: 6px; background: #21262d; border-radius: 3px; overflow: hidden; }
.storage-fill { height: 100%; background: #238636; border-radius: 3px; transition: width 0.3s; }
