:root {
  --bg: #000; --panel: #16181c; --panel2: #1d1f23; --line: #2f3336; --text: #e7e9ea; --muted: #71767b;
  --blue: #1d9bf0; --blue-d: #1a8cd8; --red: #f4212e; --green: #00ba7c; --yellow: #ffd400;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 8px; }
.ok { color: var(--green); font-size: 14px; }

/* вход */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.box { width: 100%; max-width: 380px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); }
.box.wide { max-width: 520px; }
.logo { font-size: 22px; font-weight: 800; }
label { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
input, select { display: block; width: 100%; margin-top: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus { outline: none; border-color: var(--blue); }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; margin-top: 16px; }
.btn:hover { background: var(--blue-d); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--panel2); }
.btn.small { padding: 4px 12px; font-size: 13px; margin-top: 0; }
.btn.danger { color: var(--red); border-color: #f4212e66; }
.secret { font: 600 18px/1.6 ui-monospace, Menlo, monospace; letter-spacing: 1px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; word-break: break-all; white-space: pre-wrap; user-select: all; }
ol.steps { padding-left: 20px; margin: 10px 0; }
ol.steps li { margin: 6px 0; }

/* панель */
header { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.bar .logo { font-size: 18px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav a { color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
nav a:hover { background: var(--panel); text-decoration: none; }
nav a.on { background: var(--panel); font-weight: 700; }
.me { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
main { max-width: 1180px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 4px 0 12px; }
h2 { font-size: 16px; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--panel); }
.card .n { font-size: 28px; font-weight: 800; }
.section { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tools input, .tools select { width: auto; margin: 0; padding: 7px 10px; }
.chip { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.nw { white-space: nowrap; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.g { color: var(--green); border-color: #00ba7c66; }
.pill.b { color: var(--blue); border-color: #1d9bf066; }
.pill.r { color: var(--red); border-color: #f4212e66; }
.pill.y { color: var(--yellow); border-color: #ffd40066; }
.txt { color: #c9cdd1; max-width: 520px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.row label { margin-top: 0; flex: 1; min-width: 160px; }
.row .btn { margin-top: 0; }
.notice { border: 1px solid #ffd40066; background: #ffd40010; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
@media (max-width: 700px) { .bar .logo { display: none; } }
.mb { margin-bottom: 12px; }
.mt { margin-top: 12px; }
.section.narrow { max-width: 480px; }
.pb { white-space: pre-wrap; line-height: 1.6; color: #c9cdd1; }
