/* UI copyright: 千梦网创 · www.fengchou.com · 千梦同学 · 1400981 · 9056559 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f6f8;
}

a {
  color: #16983b;
  text-decoration: none;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f5;
  font-family: Menlo, Consolas, monospace;
  word-break: break-all;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #26313d;
  color: #fff;
  padding: 22px 16px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 26px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar a {
  color: #cfd8e3;
  padding: 12px 14px;
  border-radius: 6px;
}

.sidebar a.active,
.sidebar a:hover {
  color: #fff;
  background: #1aa344;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.userbar {
  display: flex;
  gap: 14px;
  align-items: center;
}

.card,
.login-card,
.install-card {
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.05);
}

.card {
  padding: 22px;
  margin-bottom: 18px;
}

.card h2,
.install-card h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.narrow {
  max-width: 820px;
}

.grid.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e1e6eb;
}

.stat b {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
}

.stat span,
.muted {
  color: #667085;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.form-grid h2,
.form-grid .wide,
.form-grid p {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d6dde5;
  border-radius: 6px;
  padding: 9px 11px;
  color: #172033;
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.check input {
  width: auto;
  min-height: auto;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #19a84a;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn.secondary {
  margin-left: 10px;
  background: #e9eef3;
  color: #172033;
}

button.link {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #16983b;
  font-weight: 500;
}

button.link.danger,
.danger {
  color: #c93535;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  background: #f8fafb;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions form {
  display: inline;
}

.mini-form {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.mini-form input {
  min-height: 32px;
  padding: 6px 8px;
}

.alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.alert.success {
  color: #0d6628;
  background: #e7f8ec;
  border: 1px solid #bde8cb;
}

.alert.error {
  color: #9d1c1c;
  background: #fff0f0;
  border: 1px solid #f3c5c5;
}

.copy-line {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-line input {
  font-family: Menlo, Consolas, monospace;
}

.inline-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.inline-filter label {
  min-width: 220px;
}

.doc-block {
  white-space: pre-wrap;
  line-height: 1.6;
  overflow: auto;
  max-height: 70vh;
  padding: 16px;
  border-radius: 8px;
  background: #101820;
  color: #d7e4ee;
}

.login-wrap,
.install-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.login-card h1,
.install-card h1 {
  margin: 0 0 22px;
  font-size: 24px;
}

.install-card {
  width: min(920px, 100%);
  padding: 28px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.check-list span {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.check-list .ok {
  color: #0d6628;
  background: #e7f8ec;
}

.check-list .bad {
  color: #9d1c1c;
  background: #fff0f0;
}

.secret {
  max-width: 260px;
  display: inline-block;
}

@media (max-width: 860px) {
  .shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    padding: 16px;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .copy-line,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .grid.stats {
    grid-template-columns: 1fr;
  }
}
