:root {
  color-scheme: dark;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 14px;
  background: #111;
  color: #e6e6e6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }

.container { width: min(100% - 40px, 960px); margin: 0 auto; }
.site-header { border-bottom: 1px solid #303030; height: 64px; display: flex; align-items: center; }
.header-content { display: flex; align-items: center; justify-content: space-between; }
.site-header .container { font-size: 16px; }
h1 { font-size: 24px; font-weight: 500; margin: 0; }

.login-main { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; }
.login-form { width: min(100%, 360px); }
.login-form h1 { margin-bottom: 32px; }
label { display: block; margin-bottom: 10px; }
input[type="password"] { width: 100%; height: 42px; padding: 0 12px; color: #e6e6e6; background: #1a1a1a; border: 1px solid #444; border-radius: 4px; outline: none; }
input[type="password"]:focus { border-color: #aaa; }
.button { color: #111; background: #e6e6e6; border: 1px solid #e6e6e6; border-radius: 4px; padding: 10px 16px; }
.button:hover { background: #fff; }
.login-form .button { margin-top: 16px; width: 100%; }
.error { min-height: 18px; margin: 12px 0 0; color: #e6a09a; font-size: 12px; }

.link-button { padding: 0; color: #aaa; background: none; border: 0; }
.link-button:hover, .file-actions a:hover, .file-actions button:hover { color: #fff; }
.vault-main { padding-top: 56px; padding-bottom: 60px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.summary { display: flex; gap: 24px; color: #888; font-size: 12px; padding: 12px 0; border-bottom: 1px solid #303030; }
.file-panel { min-height: 160px; }
.file-panel.dragging { outline: 1px dashed #777; outline-offset: -1px; }
.empty-state { padding: 56px 0; color: #888; text-align: center; }
.file-row { min-height: 66px; padding: 12px 0; border-bottom: 1px solid #303030; display: flex; align-items: center; gap: 20px; }
.file-details { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: #888; font-size: 12px; }
.file-actions { display: flex; gap: 20px; }
.file-actions a, .file-actions button { padding: 4px 0; color: #aaa; background: none; border: 0; text-decoration: none; font-size: 12px; }
.upload-status { margin-top: 24px; }
.upload-status-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: #aaa; font-size: 12px; }
.upload-status-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 3px; background: #333; }
.progress-track div { height: 100%; width: 0; background: #ddd; }

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 960px); }
  .vault-main { padding-top: 36px; }
  .page-heading { margin-bottom: 24px; }
  .file-row { gap: 12px; }
  .file-actions { gap: 12px; }
}
