:root {
  --border: #d5d9de;
  --text: #1b1f24;
  --muted: #5b6470;
  --accent: #2f6fed;
  --error: #c0392b;
  --ok: #1e8e3e;
  --row-hover: #f3f6fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

.header-row {
  position: relative;
  height: 200px;
  min-height: 200px;
}

#logo {
  position: absolute;
  top: 0;
  left: 0;
}

#logo2 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 0 8px;
}

#query {
  flex: 1 1 220px;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

button {
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

button:hover { background: #f2f4f7; }

#searchBtn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#searchBtn:hover { background: #245ed1; }

#status {
  padding: 4px 2px 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

#status.error { color: var(--error); }
#status.ok { color: var(--ok); }

#results-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 60vh;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  position: sticky;
  top: 0;
  background: #f7f8fa;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.chk-col { width: 36px; }

tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #eef0f2;
}

tbody tr:hover { background: var(--row-hover); }

@media (max-width: 640px) {
  #logo { width: 120px; height: 120px; }
  #logo2 { width: 240px; height: 120px; }
  .header-row { height: 120px; min-height: 120px; }
  #controls { flex-direction: column; align-items: stretch; }
  button { width: 100%; }
}
