:root {
  --bg: #0c1118;
  --bg-2: #121a24;
  --card: #171f2b;
  --line: #2a3545;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #7eb6ff;
  --mark-bg: #1e3a5f;
  --op: #3fbf7f;
  --dev: #e0b14a;
  --wait: #e05656;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 380;
}
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 520; margin: 0; }
a { color: var(--accent); }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.side nav { display: grid; gap: 0.35rem; }
.nav, .side a.nav {
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}
.quien { font-size: 0.85rem; }
.quien b, .quien .muted { display: block; }
.main { min-width: 0; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 0.8rem; align-items: center; text-decoration: none; color: inherit; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--mark-bg); color: var(--accent);
  font-family: Fraunces, serif; font-size: 1.3rem;
}
.eyebrow {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.wrap { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; border-left: 4px solid var(--op); text-decoration: none; color: inherit;
}
.card.mixto { border-left-color: var(--dev); }
.card.agente { border-left-color: var(--accent); }
.muted { color: var(--muted); }
.btn {
  border: 0; background: var(--mark-bg); color: var(--accent);
  padding: 0.5rem 0.9rem; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
}
label { display: grid; gap: 0.3rem; margin: 0.7rem 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.45rem 0.6rem; font: inherit; text-transform: none; letter-spacing: 0;
}
input[type="checkbox"] { width: 1rem; height: 1rem; padding: 0; accent-color: var(--accent); }
.flash { padding: 0.6rem 0.8rem; border-radius: 10px; }
.flash.ok { background: #143024; color: #8ee0b0; }
.flash.error, .flash.message { background: #3a1515; color: #f5a3a3; }
.card.bloqueada {
  opacity: 0.38;
  filter: grayscale(0.7);
  cursor: not-allowed;
  pointer-events: none;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tab {
  text-decoration: none; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.tab.is-on { color: var(--text); border-color: var(--accent); }
.lienzo {
  width: 100%; height: calc(100vh - 220px); min-height: 520px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
}
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-top: 1rem; }
pre { white-space: pre-wrap; color: var(--muted); font-size: 0.82rem; }
.estado.lista { color: var(--op); }
.estado.error { color: var(--wait); }
.estado.corriendo { color: var(--dev); }
.filtros { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0; }
