:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e8f1ff 0%, #f6f8fc 100%);
  color: #111827;
}
.card {
  width: min(760px, 92vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
h1 { margin: 0 0 8px; font-size: 1.7rem; }
.hint { margin: 0 0 16px; color: #4b5563; }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
button, input {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}
button { cursor: pointer; background: #0f172a; color: #fff; border: none; }
button:hover { opacity: .92; }
.result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.result:empty {
  display: none;
}
.hero {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-icon {
  font-size: 2rem;
  line-height: 1;
}
.window {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.good { border-color: #86efac; background: #f0fdf4; }
.bad { border-color: #fca5a5; background: #fef2f2; }
.sources {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: .78rem;
  line-height: 1.4;
}
.sources-title {
  font-weight: 600;
  color: #4b5563;
}
.sources-dot {
  margin: 0 6px;
  color: #9ca3af;
}
.sources a {
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sources a:hover {
  color: #374151;
  border-bottom-color: #9ca3af;
}
@media (max-width: 420px) {
  .card {
    width: min(760px, 96vw);
    padding: 16px;
  }
  h1 { font-size: 1.45rem; }
}
@media (min-width: 900px) {
  .actions {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
  }
}
