  :root {
  --bg: #f4f7fb;
  --bg-gradient-start: #e0e7ff;
  --card: #ffffff;
  --card-hover: #eef2ff;
  --text: #1f2937;
  --inverted-text: #ffffff;
  --muted: #6b7280;
  --border: #dbe3ee;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --ring: rgba(79, 70, 229, 0.2);
  --status-bar: #e5e7eb;
  --status-bar-fill: linear-gradient(90deg, #6366f1, #4f46e5);
  --status-bar-fill-false: linear-gradient(90deg, #f16363, #e54646);
  --true: green;
  --false: red;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, var(--bg-gradient-start) 0%, var(--bg) 35%);
  color: var(--text);
  padding: 1.5rem;
  font-family: Tahoma, sans-serif;
}

.maincontainer {
  width: min(800px, 100%);
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.nav-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav-elem {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
}

.nav-elem:hover {
  background-color: var(--card-hover);
  color: var(--accent);
}

.nav-elem.active {
  background-color: var(--accent);
  color: var(--inverted-text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.auth-name {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.auth-link {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.auth-link:hover {
  border-color: var(--accent);
}

.mainelem {
  margin-bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mainelem > h1 {
  margin: 5px 0 10px 0;
  font-size: 1.8rem;
}

.mainelem > h2 {
  margin: 5px 0 10px 0;
  font-size: 1.5rem;
}

.maintext {
  margin: 10px 0;
  font-size: 0.9rem;
}

.subtext {
  margin: 10px 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: bold;
}

.status-description {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text);
}

.status-bar {
  width: 100%;
  height: 10px;
  background: var(--status-bar);
  border-radius: 999px;
  overflow: hidden;
}

.status-fill {
  height: 100%;
  background: var(--status-bar-fill);
  border-radius: inherit;
}

.status-fill-0 {
  width: 0%;
}

.status-fill-1 {
  width: 33%;
}

.status-fill-2 {
  width: 66%;
}

.status-fill-3 {
  width: 100%;
}

.status-fill-12 {
  width: 100%;
  background: var(--status-bar-fill-false) !important;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
}

.profile-item:first-of-type {
  border-top: 0;
}

.profile-key {
  color: var(--muted);
}

.profile-value {
  color: var(--text);
  font-weight: bold;
  text-align: right;
  word-break: break-word;
}

.form-field {
  margin: 20px 10px;
}

.form-field > label {
  font-weight: bold;
  margin: 10px 0;
  display: block;
}

.form-field > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0;
}

.form-field > fieldset {
  border: 2px solid var(--border);
  border-radius: 10px;
}

.form-field > fieldset > legend {
  font-weight: bold;
}

.form-field > fieldset > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 10px 2px;
}

.box-input-field {
  margin: 5px 0;
}

.wide-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--bg);
}

.wide-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.action-button {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: none;
  border-radius: 10px;
  background-color: var(--accent);
  color: var(--inverted-text);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.08s ease;
  display: block;
  text-align: center;
}

.action-button:hover {
  background-color: var(--accent-hover);
}

.user-list {
  display: grid;
  gap: 0.6rem;
}

.user-item {
  display: grid;
  grid-template-columns: auto auto;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  background-color: var(--bg);
}

.user-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.user-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  gap: 0.45rem;
}

.user-displayname {
  font-weight: bold;
}

.user-username, .user-priority {
  font-size: 0.9rem;
  color: var(--muted);
}

.verify-link {
  padding: 5px;
  border-radius: 10px;
  color: var(--inverted-text);
  background-color: var(--accent);
  text-decoration: none;
}

.nav-elem:active, .auth-link:active, .action-button:active, .verify-link:active {
  transform: translateY(1px);
}

.verified-user {
  border-color: var(--true) !important;
}

.unverified-user {
  border-color: var(--false) !important;
}

.capacity-user {
  border-style: dotted;
}

.danger-button {
  background-color: #e54646 !important;
}