:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Nunito, sans-serif;
  color: #f4f1ff;
  background:
    radial-gradient(circle at 12% -8%, #5b21b680 0, transparent 36%),
    linear-gradient(180deg, #140b2e 0%, #0b0718 100%);
}
button, select, input, textarea { font: inherit; font-size: 16px; }
button { min-height: 44px; }
.app { display: grid; min-height: calc(100vh - 42px); }
aside { display: grid; gap: 12px; align-content: start; padding: 12px; background: #100c22; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #6d54f0; }
.brand small, .brand strong { display: block; }
.brand small { letter-spacing: .14em; color: #c4b5fd; font-size: 11px; }
#nav { display: flex; gap: 8px; overflow-x: auto; }
#nav button, .btn, .btn-ghost { border: 0; border-radius: 12px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
#nav button { background: transparent; color: #b7b0d4; white-space: nowrap; }
#nav button.active { background: rgba(255,255,255,.1); color: white; }
.quote { margin: 0; color: #c4b5fd; font-size: 13px; }
.role { display: grid; gap: 4px; color: #b7b0d4; font-size: 12px; font-weight: 800; }
.role select, input, textarea {
  width: 100%; border-radius: 12px; border: 1px solid #2e2952; background: #16122e; color: white; padding: 10px 12px;
}
main { padding: 16px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
h1 { margin: 0; font-size: 1.7rem; }
.langs { display: flex; gap: 6px; }
.langs button { border: 1px solid #2e2952; background: transparent; color: white; border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.langs button.active { background: #6d54f0; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 14px; }
.card p { margin: 4px 0 0; }
.muted { color: #b7b0d4; }
.stat { font-size: 1.8rem; font-weight: 800; }
.badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.ok { background: #14532d; color: #bbf7d0; }
.warn { background: #78350f; color: #fde68a; }
.bad { background: #7f1d1d; color: #fecaca; }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { background: #6d54f0; color: white; }
.btn-ghost { background: transparent; color: #ddd6fe; border: 1px solid rgba(221,214,254,.35); }
.flash { color: #c4b5fd; font-weight: 800; }
.attend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.receipt { background: white; color: #1e1b4b; border-radius: 16px; padding: 18px; }
@media (min-width: 900px) {
  .app { grid-template-columns: 250px 1fr; }
  #nav { flex-direction: column; overflow: visible; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .attend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .actions .btn, .actions .btn-ghost { width: 100%; }
}
@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; inset: 0; }
}
