* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
  margin: 0;
  padding: 2rem 1rem;
}
.card {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.wrap { max-width: 1100px; margin: 0 auto; }
h1 { margin-top: 0; font-size: 1.4rem; }
form { display: flex; flex-direction: column; gap: .75rem; }
input, button {
  padding: .65rem .8rem;
  border-radius: 8px;
  border: 1px solid #d5d7dc;
  font-size: 1rem;
}
button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #1d4ed8; }
.result { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #eee; }
.error { color: #dc2626; margin-top: 1rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: #fff; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid #eee; text-align: left; font-size: .9rem; }
.truncate { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-on { color: #16a34a; font-weight: 600; }
.badge-off { color: #dc2626; font-weight: 600; }
