* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202a;
  background: #f5f7fa;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 18px; margin-bottom: 16px; }
.topbar p { margin-top: 6px; color: #697586; }
.topbar .server-ip {
  margin: 0 0 6px;
  color: #101828;
  font-size: 16px;
  font-weight: 700;
}
.topbar .server-ip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
}
.topbar .domain { margin-top: 6px; }
.panel {
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.narrow { max-width: 420px; }
label { display: grid; gap: 6px; font-size: 14px; color: #344054; }
input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}
button {
  border: 0;
  border-radius: 6px;
  background: #1663d8;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
button.secondary { background: #eef2f7; color: #1f2937; border: 1px solid #d5dde8; }
button.danger { background: #b42318; }
button:disabled { opacity: .55; cursor: not-allowed; }
form { display: grid; gap: 14px; }
.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  align-items: end;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
th { color: #475467; font-weight: 600; background: #f8fafc; }
.actions { display: flex; gap: 8px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; background: #ecfdf3; color: #067647; }
.badge.disabled { background: #fef3f2; color: #b42318; }
.secret {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fedf89;
  background: #fffaeb;
  border-radius: 8px;
}
.secret-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.secret pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.logs {
  max-height: 300px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #101828;
  color: #e4e7ec;
  padding: 12px;
  border-radius: 8px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #101828;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  max-width: 420px;
}
.hidden { display: none !important; }
@media (max-width: 720px) {
  .shell { padding: 16px; }
  .topbar { align-items: flex-start; }
  .inline-form { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
}
