:root {
  --lila: #7e57c2;
  --lila-osc: #5e35b1;
  --lila-claro: #ede7f6;
  --texto: #2d2440;
  --error: #c62828;
  --ok: #2e7d32;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--lila-claro);
  color: var(--texto);
  min-height: 100vh;
}
header {
  background: var(--lila);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 { margin: 0; font-size: 1.25rem; }
main { max-width: 900px; margin: 32px auto; padding: 0 16px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(94, 53, 177, .12);
}
.card.small { max-width: 420px; margin: 0 auto; }
h2 { margin-top: 0; color: var(--lila-osc); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc3e6;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--lila); border-color: transparent; }
button, .btn {
  background: var(--lila);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--lila-osc); }
button.full { width: 100%; margin-top: 20px; }
button.ghost { background: transparent; border: 1px solid #fff; }
button.ghost:hover { background: rgba(255,255,255,.15); }
.msg { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; }
th { background: var(--lila-claro); color: var(--lila-osc); }
.empty { text-align: center; color: #888; padding: 24px; }
.hidden { display: none; }
