:root {
  --bg: #0f1115; --panel: #171a21; --line: #242833; --text: #e8eaf0;
  --muted: #8b91a0; --accent: #b14cff; --on: #36d399; --warn: #ffb454; --err: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 22px 70px; }

header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
.tag { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 14px 0;
}
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .4px; }
.muted { color: var(--muted); font-size: 12.5px; }

.toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.toggle:first-of-type { border-top: 0; }
.toggle input { width: 36px; height: 20px; cursor: pointer; accent-color: var(--accent); }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 4px; }
.cats label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.cats input { accent-color: var(--accent); }

.addrow { display: flex; gap: 8px; margin: 10px 0; }
.addrow input { flex: 1; min-width: 0; }
.addrow #listName { flex: 0 0 130px; }
input[type=text] {
  background: #0a0c10; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; font-size: 13px;
}
input[type=text]:focus { outline: none; border-color: var(--accent); }

button {
  background: #1e222b; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 13px; font-size: 13px; cursor: pointer;
}
button:hover { border-color: var(--accent); }
button.primary { background: rgba(177,76,255,.16); border-color: var(--accent); color: #cf9bff; }
button.primary:hover { background: rgba(177,76,255,.28); }

.lists { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.list-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: #14171e; border: 1px solid var(--line); border-radius: 9px;
}
.list-item .meta { flex: 1; min-width: 0; }
.list-item .nm { font-size: 13px; }
.list-item .url { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .st { font-size: 11px; }
.list-item .st.ok { color: var(--on); }
.list-item .st.err { color: var(--err); }
.list-item input { accent-color: var(--accent); }
.list-item .rm { color: var(--muted); cursor: pointer; padding: 2px 7px; border-radius: 6px; }
.list-item .rm:hover { color: var(--err); background: #242833; }

.rowbtns { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

.bignum { text-align: center; padding: 6px 0 12px; }
.bignum b { display: block; font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1; }
.bignum span { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
ul.kv { list-style: none; margin: 0; padding: 0; }
ul.kv li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
ul.kv li:first-child { border-top: 0; }
ul.kv li b { color: var(--accent); }
code { background: #0a0c10; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; }

footer { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 18px; padding: 0 4px; }
