*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#fff;
  --text:#111;
  --muted:#888;
  --border:#e0e0e0;
  --safe:#2d7a2d;
  --warn:#9a6200;
  --danger:#c0392b;
}

@media(prefers-color-scheme:dark){
  :root{
    --bg:#111;
    --text:#f0f0f0;
    --muted:#666;
    --border:#2a2a2a;
    --safe:#6abf6a;
    --warn:#e6a817;
    --danger:#e05c4a;
  }
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
}

.wrap{
  width:100%;
  max-width:520px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.header{display:flex;align-items:center;gap:14px;margin-bottom:28px}
.header img{width:52px;height:52px;object-fit:contain;border-radius:8px}
.header-text h1{font-size:22px;font-weight:500;color:var(--text)}
.header-sub{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-top:2px}
.header-product{font-size:11px;color:var(--muted);margin-top:1px}

.row{display:flex;gap:8px;margin-bottom:10px}

input{
  flex:1;
  font-size:14px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--bg);
  color:var(--text);
  outline:none;
  font-family:'SF Mono','Fira Code',monospace;
}
input::placeholder{color:var(--muted);font-family:inherit}
input:focus{border-color:var(--text)}

button.go{
  padding:10px 18px;
  font-size:14px;
  font-weight:500;
  background:var(--text);
  color:var(--bg);
  border:none;
  border-radius:6px;
  cursor:pointer;
  white-space:nowrap;
}
button.go:hover{opacity:.8}
button.go:disabled{opacity:.35;cursor:not-allowed}

.hint{font-size:12px;color:var(--muted);margin-bottom:32px}
.hint.err{color:var(--danger)}

.spinner{
  width:14px;height:14px;
  border:1.5px solid var(--border);
  border-top-color:var(--muted);
  border-radius:50%;
  animation:spin .7s linear infinite;
  display:inline-block;
}
@keyframes spin{to{transform:rotate(360deg)}}

.loading{
  display:none;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:28px;
}

.result{opacity:0;transition:opacity .25s}
.result.show{opacity:1}

.verdict-line{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.verdict-text{font-size:20px;font-weight:600}
.score{font-size:13px;color:var(--muted)}

.summary{font-size:14px;color:var(--muted);margin-bottom:24px;line-height:1.6}

.findings-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:10px;
}

.finding{
  display:flex;
  gap:12px;
  padding:10px 0;
  border-top:1px solid var(--border);
  font-size:13px;
  line-height:1.5;
  align-items:flex-start;
}
.finding:last-child{border-bottom:1px solid var(--border)}

.dot{width:6px;height:6px;border-radius:50%;margin-top:5px;flex-shrink:0}
.dot-safe{background:var(--safe)}
.dot-warn{background:var(--warn)}
.dot-danger{background:var(--danger)}
.dot-info{background:var(--muted)}

.finding-body{flex:1}
.finding-cat{font-size:11px;color:var(--muted);margin-top:1px}

.examples{margin-top:40px;padding-top:24px;border-top:1px solid var(--border)}
.examples-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:10px;
}

.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{
  font-size:11px;
  font-family:'SF Mono',monospace;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:4px;
  background:none;
  color:var(--muted);
  cursor:pointer;
}
.pill:hover{color:var(--text);border-color:var(--text)}

footer{
  width:100%;
  max-width:520px;
  padding-top:32px;
  margin-top:auto;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer-left{display:flex;flex-direction:column;gap:3px}
.footer-name{font-size:13px;font-weight:500;color:var(--text);text-decoration:none}
.footer-name:hover{opacity:.7}
.footer-product{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}
.footer-product img{width:13px;height:13px;border-radius:3px;object-fit:cover}

.footer-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.footer-links a{
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:5px;
}
.footer-links a:hover{color:var(--text)}
.footer-links svg{width:14px;height:14px;flex-shrink:0}
