:root {
  --bg: #0b0f14;
  --panel: #121821;
  --border: #26313d;
  --text: #d7e0e8;
  --dim: #8a97a3;
  --accent: #4fd1c5;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}
h1, h2 { margin-top: 0; }
h1 { font-size: 1.4rem; }
label {
  display: block;
  font-size: 0.8rem;
  color: var(--dim);
  margin: 1rem 0 0.35rem;
}
input[type=text], input[type=password] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: #0e141b;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
}
button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.7rem;
  background: var(--accent);
  color: #06201d;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger);
  color: #fca5a5;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.topbar a { color: var(--dim); text-decoration: none; font-size: 0.85rem; }
.topbar a:hover { color: var(--text); }
ul.filelist { list-style: none; padding: 0; margin: 0; }
ul.filelist li {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.2rem;
  display: flex;
  justify-content: space-between;
}
ul.filelist a { color: var(--accent); text-decoration: none; }
ul.filelist a:hover { text-decoration: underline; }
.size { color: var(--dim); font-size: 0.8rem; }
.empty { color: var(--dim); padding: 2rem 0; text-align: center; }
pre.viewer {
  background: #0e141b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.notice { color: var(--dim); font-style: italic; }
.badge {
  display: inline-block;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}
table.activity {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.activity th, table.activity td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
table.activity th { color: var(--dim); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 0.4rem; }
