:root{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 18px;
}

body { margin: 0; background: #0b0c10; color: #eaeaea; }

.topbar {
  display:flex; justify-content:space-between; align-items:center;
  padding: 18px 20px; border-bottom: 1px solid #222;
  position: sticky; top: 0; background: rgba(11,12,16,.9); backdrop-filter: blur(10px);
  z-index: 5;
}

h1 { margin: 0; font-size: 28px; }
h2 { margin-top: 0; font-size: 20px; }
.muted { color: #a7a7a7; margin: 6px 0 0; font-size: 15px; }

.pill { padding: 8px 12px; border: 1px solid #2a2a2a; border-radius: 999px; font-size: 14px; color: #cfcfcf; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.card { background: #12131a; border: 1px solid #242536; border-radius: 14px; padding: 16px; }

.form label { display:block; font-size: 14px; color:#cfcfcf; margin: 12px 0; }

input, textarea, select {
  width: 100%; box-sizing: border-box; margin-top: 8px;
  padding: 14px; border-radius: 12px; border: 1px solid #2b2c3f;
  background: #0f1017; color:#eaeaea;
  font-size: 18px;
}
textarea { min-height: 110px; resize: vertical; }

button {
  padding: 12px 14px; border-radius: 12px; border: 1px solid #2b2c3f;
  background: #181a25; color:#fff; cursor:pointer;
  font-size: 16px;
}
button:hover { filter: brightness(1.1); }
.primary { background: #2b2fff; border-color: #2b2fff; }
.danger { background:#2a0f14; border-color:#ff2b44; }
.ghost { background: transparent; }

.list { display:flex; flex-direction:column; gap: 12px; }
.item { border: 1px solid #252640; border-radius: 14px; padding: 16px; background: #0f1017; }
.item-top { display:flex; justify-content:space-between; gap: 12px; align-items:flex-start; }

.badge { font-size: 13px; border:1px solid #2b2c3f; padding: 6px 10px; border-radius: 999px; color:#cfcfcf; }
.badge-red { border-color:#ff2b44; color:#ffd7dc; background: rgba(255,43,68,.12); }

.actions { display:flex; gap: 10px; margin-top: 12px; flex-wrap:wrap; }
a { color: #9bb0ff; text-decoration: none; font-size: 16px; }
a:hover { text-decoration: underline; }

.tabs { display:flex; gap:10px; margin-bottom: 12px; }
.tab.active { background:#2b2fff; border-color:#2b2fff; }

.dialog { border: none; padding: 0; background: transparent; }
.dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-inner {
  width: min(620px, 92vw);
  border: 1px solid #2b2c3f;
  border-radius: 18px;
  padding: 16px;
  background: #12131a;
  color: #eaeaea;
}
.dialog-actions { display:flex; justify-content:flex-end; gap:12px; padding: 0; margin-top: 14px; }

/* ✅ Toast rojo + sonido/alert */
.toast-wrap{
  position: fixed;
  right: 16px;
  top: 78px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 999;
}
.toast{
  width: min(420px, 92vw);
  border: 1px solid #ff2b44;
  background: rgba(255,43,68,.12);
  color: #ffd7dc;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.toast b{ color:#fff; }
.toast .row{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:8px;}
.toast .small{ font-size: 14px; color:#ffd7dc; opacity:.9; }
.toast .x{ border:1px solid rgba(255,255,255,.25); background:transparent; padding:6px 10px; border-radius:10px; }

@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }
