/* ui/minimal/style.css */
:root{
  --bg:#0b0c0f;
  --card:#101218;
  --muted:#8b93a7;
  --text:#e8ecf5;
  --line:#1b2030;
  --accent:#7aa2f7;
  --bad:#ff6b6b;
  --ok:#2ecc71;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  background:linear-gradient(180deg, #0b0c0f 0%, #090a0d 100%);
  color:var(--text);
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.topbar{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}

.brand{ display:flex; gap:10px; align-items:center; }
.logo{
  width:34px; height:34px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(122,162,247,.14);
  border:1px solid rgba(122,162,247,.25);
  font-weight:800;
  font-family:var(--mono);
}
.h1{ font-weight:800; letter-spacing:.2px; }
.sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.controls{
  display:flex; gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:flex-end;
}
.ctl{
  display:flex; flex-direction:column; gap:6px;
  font-size:12px;
  color:var(--muted);
}
.ctl input, .ctl select{
  height:34px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0d0f15;
  color:var(--text);
  outline:none;
}
.ctl.search input{ min-width:220px; }
.btn{
  height:34px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(122,162,247,.35);
  background:rgba(122,162,247,.12);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ background:rgba(122,162,247,.18); }

.wrap{ max-width:1200px; margin:0 auto; padding:16px; }
.meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 12px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:12px;
}
.card{
  background:rgba(16,18,24,.95);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,.35);
}
.tableWrap{ overflow:auto; max-height:70vh; }
.tbl{
  width:100%;
  border-collapse:collapse;
  font-family:var(--mono);
  font-size:13px;
}
thead th{
  position:sticky; top:0;
  background:#0f121a;
  border-bottom:1px solid var(--line);
  color:#cbd3e6;
  text-align:left;
  padding:10px 10px;
  white-space:nowrap;
}
tbody td{
  padding:9px 10px;
  border-bottom:1px solid rgba(27,32,48,.65);
  vertical-align:top;
}
tbody tr:hover td{ background:rgba(122,162,247,.06); }
.c-rank{ width:56px; }
.c-docs, .c-total, .c-score{ width:110px; text-align:right; }
.c-last{ width:190px; }
.token{
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.pill{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}
.loading{
  padding:18px 10px;
  color:var(--muted);
  text-align:center;
}
.err{
  color:var(--bad);
  font-family:var(--mono);
  font-size:13px;
  padding:14px 10px;
}
.hint{
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
}
.footer{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px 18px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  font-size:12px;
  font-family:var(--mono);
}
