* { box-sizing: border-box; }
body { font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; color: #111; background: #f6f7fb; }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }
header { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
header h1 { font-size: 1.25rem; margin: 0; }
nav a { margin-right: .75rem; text-decoration: none; color: #444; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
nav a.active { background: #e9eefb; color: #223; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.row { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
label { display: flex; flex-direction: column; font-size: .9rem; gap: .25rem; }
input[type="text"], input[type="number"], input[type="file"], select {
  padding: .5rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}
button { padding: .55rem .9rem; background: #2563eb; color: white; border: none; border-radius: 8px; cursor: pointer; }
button:hover { background: #1d4ed8; }
.muted { color: #6b7280; font-size: .9rem; margin-top: .5rem; }
.results { margin-top: 1rem; }
pre { background: #0b1020; color: #d6e1ff; padding: .75rem; border-radius: 8px; overflow: auto; max-height: 240px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem; margin-top: .75rem; }
.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: .6rem .8rem; border-radius: 8px; }
footer { margin-top: 1rem; color: #6b7280; }

/* Vector table */
.vector-table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: .9rem; }
.vector-table thead th { text-align: left; color: #475569; padding: .25rem .4rem; border-bottom: 1px solid #e2e8f0; }
.vector-table td { padding: .25rem .4rem; border-bottom: 1px dashed #eef2f7; }
.vector-table td.idx { width: 3rem; color: #64748b; }
.vector-table td.val { color: #0b132b; }

/* Utils */
.hidden { display: none !important; }
/* Hide old individual load controls when dropdown is used */
#load-demo,
#load-fr-demo,
#load-animaux {
  display: none;
}
