:root {
  --mimmir-purple: #5B2D90;
  --mimmir-purple-light: #F0EAF6;
  --mimmir-coral: #FF6B5B;
  --text: #262626;
}
* { box-sizing: border-box; }
body {
  font-family: 'Rubik', -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  margin: 0;
  background: #FAFAFA;
}
a { color: var(--mimmir-purple); }
.topbar {
  background: var(--mimmir-purple);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: white; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topbar .brand { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.nav {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}
.nav a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.nav a.active, .nav a:hover { border-bottom-color: var(--mimmir-coral); color: var(--mimmir-purple); }
.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h1 { color: var(--mimmir-purple); font-size: 24px; }
h2 { color: var(--mimmir-purple); font-size: 18px; }
.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: var(--mimmir-purple-light); color: var(--mimmir-purple); }
.btn {
  display: inline-block;
  background: var(--mimmir-purple);
  color: white;
  padding: 9px 16px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.btn.secondary { background: white; color: var(--mimmir-purple); border: 1px solid var(--mimmir-purple); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--mimmir-purple-light);
  color: var(--mimmir-purple);
}
.badge.warn { background: #FFF3E0; color: #B5651D; }
.badge.danger { background: #FCE4E4; color: #C0392B; }
.badge.ok { background: #E4F7EC; color: #1E7E45; }
input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash.error { background: #FCE4E4; color: #C0392B; }
.flash.success { background: #E4F7EC; color: #1E7E45; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.muted { color: #888; font-size: 13px; }
