* { box-sizing: border-box; }

body {
  margin: 0;
  background: #1b1e24;
  color: #c9ced7;
  font: 13px Arial, Helvetica, sans-serif;
}

a { color: #6ba4dd; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #14161b;
  border-bottom: 2px solid #000;
  padding: 0 16px;
}

.topbar .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 46px;
}

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-right: 22px;
}
.brand span { color: #d9534f; }
.brand:hover { text-decoration: none; }

.nav a {
  color: #9aa2ae;
  margin-right: 16px;
  font-size: 13px;
}
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: #fff; }

.right { margin-left: auto; font-size: 12px; color: #6f7784; }

.wrap { max-width: 1080px; margin: 18px auto 60px; padding: 0 16px; }

.panel {
  background: #23272f;
  border: 1px solid #31363f;
  border-radius: 3px;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  color: #e6e9ee;
  background: #1f232a;
  border-bottom: 1px solid #31363f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel .body { padding: 12px; }

.stats { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 150px;
  background: #23272f;
  border: 1px solid #31363f;
  border-radius: 3px;
  padding: 10px 12px;
}
.stat .n { font-size: 20px; color: #fff; font-weight: bold; }
.stat .l { font-size: 11px; color: #7f8794; text-transform: uppercase; }

.notice {
  background: #2b2119;
  border: 1px solid #5a4326;
  color: #cfa96f;
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-size: 12px;
}

.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }

input[type=text], input[type=password], input[type=search], textarea, select {
  background: #1b1e24;
  border: 1px solid #383e49;
  color: #dfe3e9;
  padding: 6px 8px;
  border-radius: 3px;
  font: 13px Arial, Helvetica, sans-serif;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #5b6474; }
textarea { width: 100%; min-height: 120px; resize: vertical; }
.search { width: 280px; }

.btn {
  background: #343a44;
  border: 1px solid #434a56;
  color: #dfe3e9;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font: 13px Arial, Helvetica, sans-serif;
}
.btn:hover { background: #3d444f; }
.btn.red { background: #b64843; border-color: #c9524d; color: #fff; }
.btn.red:hover { background: #c4534e; }
.btn.green { background: #3f7a41; border-color: #4a8c4c; color: #fff; }
.btn.small { padding: 3px 8px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: #838b98;
  padding: 8px 10px;
  background: #1f232a;
  border-bottom: 1px solid #31363f;
}
td { padding: 8px 10px; border-bottom: 1px solid #2b3038; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #262b33; }

.thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #3a4049;
  border-radius: 2px;
  background: #14161b;
}
.noimg {
  width: 42px; height: 42px;
  border: 1px solid #3a4049;
  border-radius: 2px;
  background: #191c22;
  color: #4d545e;
  font-size: 10px;
  text-align: center;
  line-height: 42px;
}

.name { color: #e8ebf0; font-weight: bold; font-size: 14px; }

.tag {
  display: inline-block;
  background: #33221f;
  border: 1px solid #5c332e;
  color: #d98b83;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
  margin: 0 4px 3px 0;
}
.tag.f { cursor: pointer; background: #262b33; border-color: #3a4049; color: #9aa2ae; }
.tag.f.on { background: #3a2a26; border-color: #6d3d36; color: #e0a09a; }

.muted { color: #7f8794; font-size: 12px; }
.right-align { text-align: right; }

.pager { display: flex; gap: 6px; justify-content: center; padding: 12px; }

.profile { display: flex; gap: 18px; flex-wrap: wrap; }
.profile .main { flex: 1; min-width: 320px; }
.profile .side { width: 280px; }

.profile h1 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.desc { white-space: pre-wrap; line-height: 1.6; color: #c9ced7; }

.gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery a { display: block; }
.gallery img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #3a4049;
  border-radius: 2px;
  background: #14161b;
}

.rbx { display: flex; gap: 14px; }
.rbx img, .rbx .noavatar {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border: 1px solid #3a4049;
  border-radius: 3px;
  background: #14161b;
}
.rbx .noavatar { color: #4d545e; font-size: 11px; text-align: center; line-height: 100px; }
.rbx .n { color: #e8ebf0; font-weight: bold; font-size: 16px; }
.rbx .about {
  white-space: pre-wrap;
  color: #aab1bc;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  max-height: 140px;
  overflow-y: auto;
}
.chk { color: #6ba4dd; font-size: 11px; font-weight: normal; }

.links li { list-style: none; padding: 5px 0; border-bottom: 1px solid #2b3038; word-break: break-all; }
.links { margin: 0; padding: 0; }
.plat {
  display: inline-block;
  min-width: 66px;
  color: #838b98;
  font-size: 11px;
  text-transform: uppercase;
}

.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; color: #aab1bc; font-size: 12px; }
.field input[type=text], .field input[type=password] { width: 100%; }
.hint { color: #6f7784; font-size: 11px; margin-top: 3px; }

.linkrow { display: flex; gap: 6px; margin-bottom: 6px; }
.linkrow select { width: 110px; }
.linkrow input { flex: 1; }

.msg { padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; font-size: 12px; }
.msg.err { background: #3a2220; border: 1px solid #6b3733; color: #e0918b; }
.msg.ok { background: #1f3324; border: 1px solid #34613c; color: #86c793; }

.footer { text-align: center; color: #5e6672; font-size: 11px; padding: 20px 0; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs button { background: #23272f; border: 1px solid #31363f; color: #9aa2ae; padding: 6px 14px; border-radius: 3px 3px 0 0; cursor: pointer; }
.tabs button.on { background: #2d333c; color: #fff; }

.hidden { display: none; }

@media (max-width: 700px) {
  .search { width: 100%; }
  .profile .side { width: 100%; }
  .hide-sm { display: none; }
}
