@import url("https://api.munetios.com/beautiful-css/beautiful.css");
:root {
  font-feature-settings: "ss01" 1;
  color-scheme: dark;
  font-family: "Google Sans Flex", system-ui, sans-serif;
  background: #160b27;
  color: #f2ebff;
}
* {
  box-sizing: border-box;
}
body.munet-dashboard {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 15% 0%, #3f1d65, transparent 60%), #160b27;
}
.munet-dashboard a {
  color: #d9c4ff;
  text-decoration: none;
}
.munet-dashboard a:hover {
  color: #fff;
}
.munet-dashboard .liquid-glass {
  background: rgba(129, 83, 178, 0.12);
  border: 1px solid rgba(220, 191, 255, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 20px;
}
.topbar {
  padding: 16px;
  background: transparent;
  position: relative;
  z-index: 2;
}
.floating-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  width: fit-content;
  max-width: 100%;
}
.brand {
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 750;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.floating-nav a,
summary {
  font-size: 0.9rem;
}
.language-menu {
  position: relative;
  margin-left: auto;
}
.language-menu summary {
  cursor: pointer;
}
.language-options {
  position: absolute;
  right: 0;
  top: 30px;
  display: grid;
  padding: 12px;
  min-inline-size: 210px;
  max-height: 65dvh;
  overflow-y: auto;
}
.language-options a {
  padding: 8px 12px;
  border-radius: 8px;
}
.language-options a[aria-current],
.language-options a:hover {
  background: rgba(183, 133, 255, 0.2);
}
.munet-dashboard main {
  max-width: 1250px;
  margin: 16px auto;
  padding: 0 clamp(16px, 3vw, 32px) 48px;
}
.panel {
  padding: clamp(20px, 4vw, 40px);
}
.panel h1 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}
.panel h2 {
  font-size: 1.15rem;
  margin-top: 36px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 16px;
}
.metric {
  padding: 24px;
  display: grid;
  gap: 8px;
}
.metric strong {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
}
.metric span,
.muted {
  color: #c3afd7;
}
.activity {
  display: grid;
  gap: 12px;
}
.activity label {
  display: grid;
  align-items: center;
  grid-template-columns: 70px 1fr 50px;
  gap: 12px;
}
.activity meter {
  width: 100%;
  accent-color: #ac79f5;
  height: 24px;
}
.panel form {
  max-width: 600px;
  display: grid;
  gap: 20px;
}
.panel form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: #e0ceee;
}
.panel input,
.panel textarea,
.panel select,
.panel button {
  font: inherit;
  border-radius: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(208, 172, 251, 0.3);
  background: rgba(96, 56, 132, 0.18);
  color: #fff;
  width: 100%;
  min-height: 46px;
}
.panel textarea { resize: vertical; min-height: 120px; }
.panel .database-advanced { min-inline-size: 0; padding: 20px; margin: 0; }
.database-advanced legend { padding-inline: 8px; font-weight: 650; }
.database-role-options { display: grid; gap: 8px; }
.panel .database-role-options input[type="radio"] { width: 24px; height: 24px; min-height: 24px; border-radius: 50%; padding: 4px; }
.panel .database-role-options input[type="radio"]::before { width: 14px; height: 14px; background: transparent; }
.panel .database-role-options input[type="radio"]:checked::before { transform: none; background: #fff; }
.database-advanced p { margin: 0 0 18px; line-height: 1.5; }
.database-field-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.panel label.database-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.panel .database-toggle input { appearance: none; width: 44px; min-height: 26px; height: 26px; border-radius: 20px; padding: 3px; flex-shrink: 0; cursor: pointer; background: rgba(126, 89, 158, 0.25); }
.panel .database-toggle input::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #c8b9dd; transition: transform 150ms ease, background 150ms ease; }
.panel .database-toggle input:checked { background: #7141b0; border-color: #ba8cf5; }
.panel .database-toggle input:checked::before { transform: translateX(18px); background: #fff; }
@media (prefers-reduced-motion: reduce) { .panel .database-toggle input::before { transition: none; } }
.panel input:focus-visible,
.panel select:focus-visible,
.panel button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #b991ff;
  outline-offset: 3px;
}
.panel input[type="color"] {
  padding: 5px;
}
.panel .primary {
  border-color: #9d6cdf;
  background: #7141b0;
  cursor: pointer;
  font-weight: 650;
  justify-self: start;
  width: auto;
  min-width: 130px;
  transition: background 0.15s ease;
}
.panel .primary:hover {
  background: #8854ca;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.actions a,
.pagination a {
  padding: 12px 16px;
  border: 1px solid rgba(208, 172, 251, 0.22);
  border-radius: 12px;
  background: rgba(125, 81, 165, 0.13);
}
.notice {
  color: #c2edc9;
}
[role="alert"] {
  color: #ffc2d5;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.panel form.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.9rem;
}
.table-scroll th,
.table-scroll td {
  border-bottom: 1px solid rgba(201, 161, 249, 0.16);
  padding: 14px 12px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.table-scroll th {
  color: #c3afd7;
  font-weight: 550;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .floating-nav {
    gap: 14px;
    padding: 16px;
    width: 100%;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 12px;
  }
  .language-menu {
    margin-left: 0;
  }
  .panel {
    border-radius: 16px !important;
  }
}

.changelog-entry { padding: clamp(16px, 4vw, 28px); margin-block: 20px; }
.changelog-entry h2 { margin-top: 0; }
.changelog-entry li { margin-block: 10px; line-height: 1.6; overflow-wrap: anywhere; }
