* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
h1 { font-size: 20px; margin-bottom: 24px; }

.search-form {
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 24px;
}
.search-form h2 { font-size: 14px; color: #666; margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; color: #888; }
.form-group input, .form-group select {
  height: 36px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; outline: none; min-width: 180px;
}
.form-group input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
button.search-btn {
  height: 36px; padding: 0 24px; background: #3b82f6; color: #fff;
  border: none; border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
button.search-btn:hover { background: #2563eb; }
button.clear-btn {
  height: 36px; padding: 0 16px; background: #fff; color: #666;
  border: 1px solid #ddd; border-radius: 6px; font-size: 14px; cursor: pointer;
}
.stats { font-size: 13px; color: #888; margin-bottom: 12px; display: flex; gap: 16px; }
.stats span { background: #eef2ff; padding: 2px 10px; border-radius: 12px; }
.table-wrap {
  background: #fff; border-radius: 8px; overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: #f8fafc; position: sticky; top: 0; }
th { padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; color: #555; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
tr:hover { background: #f8fafc; }
.no-results { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }
.no-results .icon { font-size: 40px; margin-bottom: 12px; }
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 16px; background: #fff; border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pagination button {
  width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 13px;
}
.pagination button.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.pagination button:disabled { opacity: 0.4; cursor: default; }
mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }

/* Masked result card */
.result-card {
  background: #fff; border-radius: 8px; padding: 40px 24px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.result-card.hit { border-left: 4px solid #22c55e; }
.result-card.miss { border-left: 4px solid #ef4444; }
.result-icon { font-size: 48px; margin-bottom: 12px; }
.result-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.result-card.hit .result-title { color: #16a34a; }
.result-card.miss .result-title { color: #dc2626; }
.result-count { font-size: 14px; color: #666; margin-bottom: 4px; }
.result-condition { font-size: 13px; color: #999; margin-bottom: 8px; }
.result-note { font-size: 12px; color: #aaa; }
