:root {
  --bg: #0b0f19;
  --surface: #121826;
  --surface-2: #1a2235;
  --border: #27324a;
  --text: #e6edf7;
  --muted: #93a4c3;
  --primary: #4f8cff;
  --primary-hover: #3b78f0;
  --accent: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #4f8cff, #10b981);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
.brand h1 { margin: 0; font-size: 18px; }
.subtitle { margin: 0; font-size: 12px; color: var(--muted); }
.header-links { display: flex; gap: 18px; font-size: 14px; }
.header-links a { color: var(--muted); text-decoration: none; }
.header-links a:hover { color: var(--text); }

.hero { padding: 30px 0 20px; }
.hero h2 { margin: 0 0 8px; font-size: 26px; }
.hero p { margin: 0; color: var(--muted); max-width: 780px; }

.tabs { display: flex; gap: 10px; margin: 18px 0 20px; flex-wrap: wrap; }
.tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.hint { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"], select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
input[type="text"] { flex: 1; min-width: 240px; }
textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 720px) { .diff-grid { grid-template-columns: 1fr; } }

.btn-primary, .btn-accent, .btn-secondary, .btn-ghost {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #062118; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-pills { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pill, .pill-oss {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  cursor: pointer;
}
.pill:hover, .pill-oss:hover { border-color: var(--primary); }

.result-box {
  margin-top: 18px;
  background: #0d1320;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.result-box.hidden { display: none; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.metric-label { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.metric-val { font-size: 16px; font-weight: 700; margin-top: 4px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-green { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-yellow { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-red { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.tag-danger { border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.tag-good { border-color: rgba(16, 185, 129, 0.45); color: #6ee7b7; }

.cta-banner {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-banner p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { color: var(--primary); text-decoration: none; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
pre { overflow-x: auto; font-size: 12.5px; background: var(--surface); padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
