.nexobrain-admin {
  --nexobrain-ink: #333;
  --nexobrain-surface: #fff;
  --nexobrain-soft: #e5e5e5;
  --nexobrain-muted: #727272;
  --nexobrain-accent: #50b428;
  --nexobrain-blue: #618c8b;
  --nexobrain-danger: #c93c35;
  --nexobrain-radius: 22px;
  box-sizing: border-box;
  color: var(--nexobrain-ink);
  font-family: "DM Sans", "Avenir Next", "Century Gothic", sans-serif;
  max-width: 1300px;
}

.nexobrain-admin *,
.nexobrain-admin *::before,
.nexobrain-admin *::after {
  box-sizing: border-box;
}

.nexobrain-front-header {
  align-items: center;
  background: var(--nexobrain-ink);
  border-radius: 18px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 20px 0 24px;
  padding: 18px 26px;
}

.nexobrain-front-header h1 {
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.nexobrain-eyebrow {
  color: #c5f5c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.nexobrain-header-count,
.nexobrain-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-height: 24px;
  padding: 0 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nexobrain-header-count {
  background: #c5f5c5;
  color: #2d5a27;
}

.nexobrain-front-content {
  background: var(--nexobrain-surface);
  border-radius: var(--nexobrain-radius);
  margin-top: 14px;
  padding: 28px 32px 32px;
}

.nexobrain-front-title {
  color: var(--nexobrain-ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.nexobrain-section-copy {
  color: var(--nexobrain-muted);
  margin: 7px 0 20px;
}

.nexobrain-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.nexobrain-field {
  display: grid;
  gap: 7px;
}

.nexobrain-field--wide {
  grid-column: 1 / -1;
}

.nexobrain-field > span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nexobrain-admin input[type="text"],
.nexobrain-admin input[type="search"],
.nexobrain-admin input[type="number"],
.nexobrain-admin input:not([type]),
.nexobrain-admin select,
.nexobrain-admin textarea {
  border: 1px solid var(--nexobrain-ink);
  border-radius: 18px;
  box-shadow: none;
  color: var(--nexobrain-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
  padding: 8px 13px;
}

.nexobrain-admin textarea {
  border-radius: 14px;
  resize: vertical;
}

.nexobrain-admin input:focus,
.nexobrain-admin select:focus,
.nexobrain-admin textarea:focus {
  border-color: var(--nexobrain-accent);
  box-shadow: 0 0 0 3px rgba(80, 180, 40, .14);
  outline: 0;
}

.nexobrain-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

.nexobrain-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.nexobrain-btn--primary {
  background: var(--nexobrain-ink);
  color: #fff;
}

.nexobrain-btn--secondary {
  background: var(--nexobrain-soft);
  color: var(--nexobrain-ink);
}

.nexobrain-btn--danger {
  background: var(--nexobrain-danger);
  color: #fff;
}

.nexobrain-toolbar {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nexobrain-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nexobrain-filters input,
.nexobrain-filters select {
  max-width: 180px;
}

.nexobrain-table-scroll {
  border-radius: 14px;
  overflow-x: auto;
}

.nexobrain-front-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  min-width: 980px;
  overflow: hidden;
  width: 100%;
}

.nexobrain-admin .widefat {
  border: 0;
  border-collapse: separate;
  border-radius: 14px;
  border-spacing: 0;
  overflow: hidden;
}

.nexobrain-admin .widefat thead th,
.nexobrain-admin .widefat tfoot th {
  background: var(--nexobrain-ink);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 12px;
  text-transform: uppercase;
}

.nexobrain-admin .widefat td,
.nexobrain-admin .widefat tbody th {
  padding: 12px;
}

.nexobrain-front-table th {
  background: var(--nexobrain-ink);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  text-transform: uppercase;
}

.nexobrain-front-table td {
  border-bottom: 1px solid var(--nexobrain-ink);
  border-right: 1px solid var(--nexobrain-ink);
  color: var(--nexobrain-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 12px;
  vertical-align: middle;
}

.nexobrain-front-table td:last-child {
  border-right: 0;
}

.nexobrain-front-table tr:last-child td {
  border-bottom: 0;
}

.nexobrain-front-table tbody tr:hover {
  background: var(--nexobrain-soft);
}

.nexobrain-front-table small {
  color: var(--nexobrain-muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.nexobrain-badge.is-active {
  background: #c5f5c5;
  color: #2d5a27;
}

.nexobrain-badge.is-revoked {
  background: #ffe8e8;
  color: #a52222;
}

.nexobrain-badge.is-expired {
  background: #fff2d8;
  color: #a86700;
}

.nexobrain-actions-cell form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nexobrain-actions-cell input {
  max-width: 130px;
}

.nexobrain-empty-state {
  color: var(--nexobrain-muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 782px) {
  .nexobrain-front-header,
  .nexobrain-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nexobrain-front-content {
    border-radius: 16px;
    padding: 22px 18px;
  }

  .nexobrain-form-grid {
    grid-template-columns: 1fr;
  }

  .nexobrain-field--wide {
    grid-column: auto;
  }

  .nexobrain-filters,
  .nexobrain-filters label,
  .nexobrain-filters input,
  .nexobrain-filters select,
  .nexobrain-filters .nexobrain-btn {
    max-width: none;
    width: 100%;
  }
}
