/* 运营后台样式：不引外部资源，手机宽度下导航换行、表格横向滚动。 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.6 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #222;
  background: #f4f5f7;
}
a { color: #1a5fb4; }
h1 { font-size: 20px; margin: 0 0 12px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
code { font-family: Consolas, Menlo, monospace; }
pre { white-space: pre-wrap; word-break: break-all; margin: 4px 0; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 16px;
  background: #23272e;
  color: #ddd;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.top nav a { color: #ddd; text-decoration: none; padding: 2px 0; }
.top nav a.cur { color: #fff; border-bottom: 2px solid #6cb0ff; }
.top .me { display: flex; align-items: center; gap: 8px; }
.top .me .link { color: #ddd; }

main { padding: 16px; max-width: 1200px; }

.flash { padding: 8px 12px; border-radius: 4px; }
.flash.ok { background: #e3f4e6; color: #1d6b2c; }
.flash.err { background: #fde8e8; color: #a11d1d; }
.good { color: #1d6b2c; }
.bad { color: #a11d1d; }
.hint { color: #666; font-size: 13px; }

.box { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 8px 0 16px; }
.box.wide { max-width: 860px; }
.box label { display: flex; flex-direction: column; gap: 4px; }
.box label.check { flex-direction: row; align-items: center; }
input, select, textarea, button { font: inherit; }
input, select, textarea { padding: 6px 8px; border: 1px solid #bbb; border-radius: 4px; background: #fff; }
textarea { width: 100%; }
button { padding: 6px 14px; border: 1px solid #1a5fb4; border-radius: 4px; background: #1a5fb4; color: #fff; cursor: pointer; }
button.link { padding: 0; border: 0; background: none; color: #1a5fb4; text-decoration: underline; }
button.danger, button.link.danger { color: #a11d1d; }
form.inline { display: inline-flex; align-items: center; gap: 4px; margin: 0 8px 0 0; }

.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.search label { display: flex; align-items: center; gap: 4px; }

.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
table { border-collapse: collapse; background: #fff; min-width: 100%; }
th, td { border: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #eef0f3; }
td.actions { white-space: normal; min-width: 160px; }
table.kv th { width: 110px; }
table.kv td { white-space: normal; }
.tbl input { width: 100%; min-width: 160px; }
details pre, details p { white-space: pre-wrap; max-width: 480px; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.stats div { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 16px; min-width: 140px; }
.stats dt { color: #666; font-size: 13px; }
.stats dd { margin: 0; font-size: 22px; }
.probe { display: inline-block; margin-right: 16px; }

.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; max-width: 640px; }
.codes code, .newpw, .secret { font-size: 16px; background: #fff; border: 1px solid #ccc; padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.pager { display: flex; gap: 12px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

@media (max-width: 640px) {
  main { padding: 12px; }
  .top { padding: 8px 12px; }
  .box { max-width: none; }
}
