:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #171c22;
  --line: #28303a;
  --text: #f5f7fa;
  --muted: #94a0ad;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, .12);
  --yellow: #facc15;
  --yellow-soft: rgba(250, 204, 21, .12);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, .12);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(74, 222, 128, .08), transparent 30rem),
    radial-gradient(circle at 100% 20%, rgba(96, 165, 250, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, textarea, input { font: inherit; }
code {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.06);
  padding: .12rem .35rem;
  border-radius: .35rem;
}
.topbar {
  min-height: 64px;
  padding: 0 max(20px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,16,.84);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand, .github-link {
  color: var(--text);
  text-decoration: none;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: var(--green); color: #061108; font-weight: 900;
}
.top-actions { display: flex; align-items: center; gap: 16px; }
.privacy-pill {
  font-size: 12px; color: var(--green); border: 1px solid rgba(74,222,128,.28);
  background: var(--green-soft); border-radius: 999px; padding: 7px 10px;
}
.github-link { color: var(--muted); font-size: 14px; }
.shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 36px; }
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-bottom: 24px;
}
.eyebrow, .panel-kicker {
  color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.045em;
  max-width: 930px; margin: 10px 0 18px;
}
.hero-copy { color: var(--muted); max-width: 820px; line-height: 1.7; margin: 0; }
.score-card {
  width: 160px; min-height: 132px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.score-label, .score-status { color: var(--muted); font-size: 12px; }
#score { font-size: 40px; line-height: 1.1; margin: 4px 0; }
.notice {
  color: #c8d0d9; border: 1px solid rgba(96,165,250,.2); background: var(--blue-soft);
  padding: 12px 15px; border-radius: 12px; font-size: 13px; line-height: 1.55; margin-bottom: 18px;
}
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px 14px 0 0;
  background: var(--surface);
}
.toolbar-spacer { flex: 1; }
.button {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--text);
  background: var(--surface-2); cursor: pointer; font-weight: 700; font-size: 13px;
}
.button:hover { border-color: #45515f; transform: translateY(-1px); }
.button.primary { background: #f5f7fa; color: #0a0d10; border-color: #f5f7fa; }
.button.success { background: var(--green); color: #061108; border-color: var(--green); }
.button.ghost { color: var(--muted); background: transparent; }
.workspace {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  min-height: 650px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.panel { background: var(--surface); min-width: 0; }
.results-panel { border-left: 1px solid var(--line); }
.panel-head {
  min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); gap: 12px;
}
.panel-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 900; letter-spacing: .05em;
  border: 1px solid;
}
.badge.safe { color: var(--green); background: var(--green-soft); border-color: rgba(74,222,128,.28); }
.badge.confirm { color: var(--yellow); background: var(--yellow-soft); border-color: rgba(250,204,21,.28); }
.badge.manual { color: var(--red); background: var(--red-soft); border-color: rgba(251,113,133,.28); }
#editor {
  width: 100%; height: calc(100% - 64px); min-height: 585px; resize: none; border: 0; outline: 0;
  background: #0e1216; color: #dce4ec; padding: 22px; line-height: 1.62;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px;
  tab-size: 2;
}
.issues { max-height: 585px; overflow: auto; padding: 14px; }
.empty-state {
  height: 100%; min-height: 360px; display: grid; place-content: center; text-align: center;
  color: var(--muted); padding: 42px;
}
.empty-icon { font-size: 42px; color: #47525f; }
.issue {
  border: 1px solid var(--line); background: #0f1317; border-radius: 12px; padding: 13px; margin-bottom: 10px;
}
.issue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.issue-title { font-weight: 780; font-size: 13px; }
.issue-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.issue p { color: #bdc7d2; font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.diff {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; margin-top: 9px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.diff div { padding: 6px 9px; overflow-wrap: anywhere; }
.diff .before { background: var(--red-soft); color: #fda4af; }
.diff .after { background: var(--green-soft); color: #86efac; }
.clean {
  border: 1px solid rgba(74,222,128,.25); background: var(--green-soft); border-radius: 12px;
  color: #bbf7d0; padding: 22px; line-height: 1.6;
}
.how-it-works { padding: 48px 0 20px; }
.how-it-works h2 { font-size: 28px; letter-spacing: -.03em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.steps article > span { color: var(--green); font-family: monospace; font-size: 12px; }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--muted); line-height: 1.55; font-size: 13px; margin: 0; }
footer {
  width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 36px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px;
}
@media (max-width: 900px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 32px; }
  .topbar { padding: 0 14px; }
  .privacy-pill { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .score-card { width: 100%; min-height: 96px; flex-direction: row; gap: 14px; }
  .workspace { grid-template-columns: 1fr; }
  .results-panel { border-left: 0; border-top: 1px solid var(--line); }
  #editor { min-height: 500px; }
  .issues { max-height: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer { width: calc(100% - 24px); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.25rem; }
  .toolbar { border-radius: 12px 12px 0 0; }
  .button { flex: 1 1 auto; }
  .toolbar-spacer { display: none; }
  .steps { grid-template-columns: 1fr; }
  .legend { display: none; }
}
