:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #d89b22;
  --brand-dark: #9a6413;
  --ok-bg: #ecfdf5;
  --ok-line: #86efac;
  --ok-text: #166534;
  --err-bg: #fff1f2;
  --err-line: #fecdd3;
  --err-text: #9f1239;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --warn-text: #92400e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 155, 34, .35), transparent 32rem),
    linear-gradient(135deg, #0f172a, #111827 58%, #020617);
}
a { color: var(--brand-dark); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 60px; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: #fff;
}
.top h1 { margin: 0; font-size: 34px; letter-spacing: -0.04em; }
.top p { margin: 6px 0 0; color: #cbd5e1; }
.navlinks { display: flex; gap: 10px; flex-wrap: wrap; }
.navlinks a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.card, .alert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(2, 6, 23, .20);
  padding: 24px;
  margin: 18px 0;
}
.login-card { max-width: 520px; }
h2, h3 { margin: 0 0 16px; letter-spacing: -0.02em; }
label { display: block; margin: 14px 0 7px; color: #334155; font-weight: 700; }
input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(216,155,34,.16); }
button {
  margin-top: 18px;
  border: 0;
  border-radius: 15px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 14px 30px rgba(154, 100, 19, .28);
}
button:hover { filter: brightness(1.02); transform: translateY(-1px); }
.domainline { display: flex; align-items: center; gap: 8px; }
.domainline input { flex: 1; }
.domainline span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.small, .muted { color: var(--muted); line-height: 1.55; }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.alert.error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
pre {
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
  line-height: 1.45;
  max-height: 520px;
}
table { width: 100%; border-collapse: collapse; }
td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
td:first-child { color: #475569; font-weight: 700; width: 210px; }
.mono { font-family: Consolas, Monaco, 'Courier New', monospace; font-size: 13px; word-break: break-all; }
.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 800; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.badge.pass { background: #dcfce7; color: #166534; }
.badge.fail { background: #ffe4e6; color: #9f1239; }
.badge.warn { background: #fef3c7; color: #92400e; }
.diag-table td:last-child { text-align: right; width: 120px; }
@media (max-width: 760px) {
  .top, .domainline { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 20px, 1120px); padding-top: 20px; }
}
.table-scroll { width: 100%; overflow-x: auto; }
.instances-table { min-width: 900px; }
.instances-table th {
  text-align: left;
  color: #334155;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 13px;
}
.instances-table td:first-child { width: auto; }
.instances-table tbody tr:hover { background: #f8fafc; }
