:root {
  --deep: #0a1626;
  --gold: #a88b52;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--deep);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168, 139, 82, 0.12), transparent 55%), #f1f5f9;
  padding: 24px;
}

body.login-body {
  color: var(--white);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(168, 139, 82, 0.12), transparent 55%),
    var(--deep);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(48px, 12vh, 140px);
}

.card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card.login-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  color: var(--deep);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.login-card .lead { margin: 8px 0 20px; }
.login-card code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
h1 { margin: 0 0 6px; font-size: 1.45rem; }
.lead { margin: 0; color: #64748b; font-size: 0.95rem; }
.link { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }

.tabs { display: flex; gap: 8px; margin: 20px 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid transparent; color: #64748b; padding: 8px 14px; cursor: pointer; border-radius: 8px; }
.tab.active { color: var(--deep); border-color: rgba(168, 139, 82, 0.45); background: #fffbeb; font-weight: 600; }

.panel { margin-bottom: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
input[type="search"] { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }

.primary, .secondary-btn {
  border-radius: 8px; padding: 10px 16px; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
}
.primary { background: var(--deep); color: #fff; }
.secondary-btn { background: #fff; border-color: #cbd5e1; color: var(--deep); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.stat .n { font-size: 1.6rem; font-weight: 700; }
.stat .l { color: #64748b; font-size: 0.8rem; margin-top: 4px; }

.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.data-list .meta { color: #64748b; font-size: 0.82rem; line-height: 1.45; word-break: break-word; }
.muted { color: #94a3b8; font-size: 0.85rem; }
.hint { color: #64748b; font-size: 0.9rem; }
.subpanel { margin-top: 16px; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fafafa; }
.json { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; overflow: auto; max-height: 420px; }
.status { color: #b45309; margin-top: 12px; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 6px; background: #ecfdf5; color: #047857; }
.badge.skill-ok { background: #ecfdf5; color: #047857; }
.badge.skill-pending { background: #fffbeb; color: #b45309; }
.badge.skill-missing { background: #f1f5f9; color: #64748b; }
.badge.skill-error { background: #fef2f2; color: #b91c1c; }
.badge.skill-unknown { background: #f8fafc; color: #94a3b8; }
button.linkish { background: none; border: none; color: var(--gold); font-weight: 600; cursor: pointer; padding: 0; }
