/* A plain starting point - kept in its own file specifically so this is easy to redesign later. */
:root {
  --bg: #0d0c0f;
  --panel: #17141a;
  --text: #e8e0cf;
  --muted: #8f8677;
  --gold: #c9a24a;
  --line: #2c2731;
  --ink: #14110f;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, "Segoe UI", Arial, sans-serif; margin: 0; }
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 80px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 28px; }
.brand { font-weight: 600; color: var(--gold); letter-spacing: 0.03em; }
.logout { color: var(--muted); text-decoration: none; font-size: 14px; }
.logout:hover { color: var(--text); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
h1 { margin-top: 0; font-size: 20px; }
.muted { color: var(--muted); }
.error { color: #d98080; }
form { display: flex; gap: 10px; margin-top: 18px; }
input[type=text] {
  flex: 1; background: #1b181d; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 15px;
}
input[type=text]:focus { outline: none; border-color: var(--gold); }
button {
  background: var(--gold); border: 0; border-radius: 8px; padding: 10px 18px;
  font-weight: 600; color: var(--ink); cursor: pointer; font-size: 15px;
}
button:hover { filter: brightness(1.08); }
details.folder { margin: 6px 0; }
summary { cursor: pointer; padding: 8px 6px; border-radius: 6px; list-style-position: outside; }
summary:hover { background: #1f1c22; }
.folder-contents { margin-left: 18px; border-left: 1px solid var(--line); padding-left: 14px; }
.file-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 26px; flex-wrap: wrap; }
.file-link { color: var(--text); text-decoration: none; }
.file-link:hover { color: var(--gold); }
.tag {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 20px; padding: 1px 8px; white-space: nowrap;
}
.tag.lang { color: var(--gold); border-color: #4a3d20; }
