:root {
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b0d10;
  color: #e6e9ee;
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: #ff8a65; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 28px; background: #10141a; border-bottom: 1px solid #222a35;
  position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5c38; box-shadow: 0 0 10px #ff5c38; }
.brand .tag { font-size: 10px; letter-spacing: 1px; background: #2a1712; color: #ff9a80; padding: 3px 7px; border-radius: 4px; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.searchbox { display: flex; gap: 6px; }
.searchbox input { width: 220px; }
.muted { color: #8b95a5; }
main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
footer { text-align: center; color: #59616f; font-size: 12px; padding: 24px; border-top: 1px solid #1a2029; }
h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.3px; }
h2 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h2 .sub { font-size: 12px; color: #8b95a5; font-weight: 400; }
h3 { font-size: 13px; color: #8b95a5; margin: 18px 0 6px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .actions { display: flex; align-items: center; gap: 10px; }
.back { font-size: 12px; }
.badge { font-size: 10px; letter-spacing: 1.5px; color: #ffb4a1; border: 1px solid #4a2318; background: #1c110d; padding: 5px 10px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #10141a; border: 1px solid #1e2631; border-radius: 10px; padding: 14px 16px; }
.stat span { display: block; font-size: 11px; letter-spacing: 0.8px; color: #8b95a5; text-transform: uppercase; }
.stat strong { font-size: 22px; font-weight: 600; }
.stat strong.small { font-size: 13px; font-weight: 500; }
.card { background: #10141a; border: 1px solid #1e2631; border-radius: 12px; padding: 20px; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
#creds { min-width: 760px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #1b222c; vertical-align: top; }
th { color: #8b95a5; font-weight: 600; font-size: 11px; letter-spacing: 0.7px; text-transform: uppercase; white-space: nowrap; }
tbody tr:hover { background: #131922; }
.mono { font-family: "Cascadia Mono", Consolas, "SF Mono", monospace; font-size: 12px; }
.secret { color: #ffd7a8; word-break: break-word; }
.wrap { word-break: break-all; }
.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input, button {
  font: inherit; color: #e6e9ee; background: #0b0e13;
  border: 1px solid #2a3341; border-radius: 7px; padding: 8px 11px;
}
input:focus { outline: none; border-color: #ff5c38; }
button { cursor: pointer; }
button:hover { border-color: #ff5c38; }
button.primary { width: 100%; margin-top: 20px; background: #ff5c38; border-color: #ff5c38; color: #1a0d08; font-weight: 700; }
button.danger { color: #ffb4a1; border-color: #4a2318; background: #1c110d; }
a.button { display: inline-block; padding: 7px 12px; border: 1px solid #2a3341; border-radius: 7px; font-size: 12px; }
a.button:hover { border-color: #ff5c38; text-decoration: none; }
.login-wrap { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.login { width: 340px; }
.login label { display: block; margin: 12px 0 5px; font-size: 12px; color: #8b95a5; }
.login input { width: 100%; }
.error { background: #24100d; border: 1px solid #5a261a; color: #ffb4a1; padding: 9px 11px; border-radius: 7px; margin-top: 12px; font-size: 13px; }
.flash { background: #10241a; border: 1px solid #1f4a36; color: #a8e6c3; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.filter { width: 100%; margin-bottom: 12px; }
.empty { text-align: center; padding: 40px 20px; }
.notes { white-space: pre-wrap; background: #0b0e13; border: 1px solid #1b222c; border-radius: 8px; padding: 12px; font-size: 12px; color: #b7c0cd; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.kv dt { color: #8b95a5; }
.kv dd { margin: 0; }
@media (max-width: 720px) {
  th:nth-child(3), td:nth-child(3) { display: none; }
  .searchbox input { width: 140px; }
}