:root{
  color-scheme: dark;
  --bg:#000;
  --card:#0b0b0c;
  --card2:#121214;
  --text:#f3f4f6;
  --muted:#9aa0a6;
  --line:#232328;
  --ok:#19c37d;
  --err:#ff4d4f;
  --accent:#7c3aed;
  --btn:#1a1a1f;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{
  max-width:980px;
  margin:0 auto;
  padding:16px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.brand{
  font-weight:800;
  letter-spacing:.08em;
}
.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.02);
}
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.small{color:var(--muted); font-size:13px; line-height:1.35}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

label{display:block; margin-top:10px; font-size:13px; color:var(--muted)}
input, textarea, select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--card2);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px; resize:vertical}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  font-weight:600;
  cursor:pointer;
}
.btn:hover{border-color:#2f2f37}
.btn.primary{background:rgba(124,58,237,.18); border-color:rgba(124,58,237,.35)}
.btn.danger{background:rgba(255,77,79,.12); border-color:rgba(255,77,79,.35)}
.btn.ok{background:rgba(25,195,125,.12); border-color:rgba(25,195,125,.35)}
.btn.link{background:transparent}

.msg{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  margin:10px 0;
  font-size:14px;
}
.msg.ok{border-color:rgba(25,195,125,.35); background:rgba(25,195,125,.08)}
.msg.err{border-color:rgba(255,77,79,.35); background:rgba(255,77,79,.08)}

.tablewrap{margin-top:12px; overflow:auto; border-radius:14px; border:1px solid var(--line)}
table{width:100%; border-collapse:collapse; min-width:780px; background:rgba(255,255,255,.01)}
th,td{padding:10px 10px; border-bottom:1px solid var(--line); vertical-align:top}
th{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; background:rgba(255,255,255,.02)}
tr:hover td{background:rgba(255,255,255,.02)}

.row{display:flex; gap:10px; flex-wrap:wrap}
.row > *{flex:1; min-width:220px}

hr{border:0; border-top:1px solid var(--line); margin:14px 0}
