:root {
  --bg: #070b11;
  --card: #0d1522;
  --card-2: #121e31;
  --border: #1e2f48;
  --emerald: #10b981;
  --blue: #38bdf8;
  --red: #f87171;
  --text: #e6edf6;
  --muted: #93a4bc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(22px, 3vw, 30px);
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero a {
  color: #6ee7b7;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.tab-btn.active {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.5);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 4px;
}

textarea,
input,
select {
  width: 100%;
  background: #080d16;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
}

.row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions {
  margin-top: 12px;
}

.btn-primary {
  cursor: pointer;
  border: none;
  background: var(--emerald);
  color: #032116;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 8px;
}

.examples-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-btn {
  cursor: pointer;
  text-align: left;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}

.ex-btn:hover {
  border-color: var(--emerald);
  color: var(--text);
}

.result-box {
  background: #080d16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
}

.kv {
  margin: 6px 0;
}

.kv strong {
  color: #f8fafc;
}

.kv code {
  color: #7dd3fc;
}

.status-ok {
  color: #6ee7b7;
  font-weight: 700;
  font-size: 16px;
}

.status-bad {
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}

.bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 56px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-track {
  height: 9px;
  background: #080d16;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #38bdf8);
}

.hits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hit-card {
  background: #080d16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.hit-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.hit-meta {
  font-size: 11.5px;
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hit-body {
  font-size: 12.5px;
  color: var(--muted);
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}