:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f8fafc;
  --focus: rgba(148,163,184,0.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.header{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:var(--card);
}

.logo{
  display:block;
  max-width: 320px;
  width: 100%;
  height:auto;
  margin: 0 auto 10px;
}

.title{
  margin:0;
  font-size: 20px;
  font-weight: 650;
  text-align:center;
}

.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size: 14px;
  text-align:center;
  line-height: 1.4;
}

.controls{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:var(--card);
}

#q{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:16px;
  outline:none;
  background:#fff;
}

#q:focus{
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px var(--focus);
}

.meta{
  margin-top:10px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size: 13px;
}

.results{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--card);
}

.table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width: 520px;
}

thead th{
  text-align:left;
  font-size: 13px;
  color:var(--muted);
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  background:var(--soft);
  position: sticky;
  top: 0;
}

tbody td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  font-size: 14px;
}

tbody tr:hover{
  background:#fcfcfc;
}

.hint{
  padding:12px;
  margin:0;
  color:var(--muted);
  font-size: 13px;
}

.footer{
  margin-top:14px;
  color:var(--muted);
  font-size: 12px;
  text-align:center;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 560px){
  .wrap{ padding: 12px; }
  .title{ font-size: 18px; }
  table{ min-width: 420px; }
}
